:root {
  --ink: #111827;
  --muted: #637083;
  --line: #d8e0ec;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --blue: #194ed8;
  --blue-dark: #0a2d7a;
  --red: #e11937;
  --red-dark: #ad1028;
  --green: #12966c;
  --gold: #c47b00;
  --shadow: 0 24px 70px rgba(16, 30, 58, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(225, 25, 55, 0.08), transparent 32rem),
    linear-gradient(210deg, rgba(25, 78, 216, 0.12), transparent 34rem),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f3f6fb 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11em;
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 5.4vw, 5rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.08rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

label {
  display: block;
  margin: 0 0 0.45rem;
  color: #263348;
  font-size: 0.84rem;
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #c7d3e4;
  border-radius: 8px;
  outline: none;
}

input,
select {
  height: 3.05rem;
  padding: 0 0.9rem;
}

textarea {
  resize: vertical;
  padding: 0.9rem;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(25, 78, 216, 0.12);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.85rem 0;
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  padding: 0.4rem 0.65rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(216, 224, 236, 0.8);
  border-radius: 8px;
}

.brand-lockup img {
  display: block;
  width: 174px;
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: #3d4b62;
  font-size: 0.94rem;
  font-weight: 750;
}

.top-nav a:hover {
  color: var(--red);
}

.signin-button,
.logout-button {
  min-height: 2.55rem;
  padding: 0 0.95rem;
  color: var(--blue-dark);
  background: #ffffff;
  border: 1px solid #c7d3e4;
  border-radius: 8px;
  font-weight: 850;
}

.signin-button:hover,
.logout-button:hover {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.hero,
.section,
.pilot-band,
.free-preview,
.flow-shell,
.auth-shell,
.app-shell,
.painted-shell {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 2.5rem;
}

.eyebrow {
  display: none;
}

.hero-lede {
  max-width: 44rem;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
}

.trust-row,
.button-row,
.provider-row,
.mode-tabs,
.app-tabs,
.step-rail,
.time-tabs,
.alert-channels,
.checkbox-grid,
.subscribe-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.trust-row {
  margin-top: 1.4rem;
}

.trust-row span,
.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.42rem 0.68rem;
  color: #344054;
  background: #eef4fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.status-badge {
  margin-bottom: 0.8rem;
}

.status-badge.success,
.status-dot.success {
  color: #0f6d51;
  background: #e7f8f1;
  border-color: #bde6d6;
}

.status-badge.warning {
  color: #945f00;
  background: #fff6e5;
  border-color: #f4d190;
}

.start-card,
.panel,
.pilot-band,
.flow-mini article,
.benefit-list article,
.free-preview,
.app-frame,
.limit-modal,
.demo-controls,
.journey-card,
.deploy-card,
.metric-grid article {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.start-card {
  display: grid;
  gap: 0.85rem;
  padding: 1.1rem;
}

.start-card h2 {
  margin-bottom: 0;
  font-size: 1.55rem;
}

.start-card-header {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.2rem;
}

.start-card-header .status-badge {
  justify-content: center;
  min-height: 2.45rem;
  margin-bottom: 0;
  text-align: center;
}

.form-note {
  margin: 0;
  font-size: 0.86rem;
}

.legal-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.legal-note a,
.site-footer a {
  color: var(--blue-dark);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.primary-button,
.secondary-button,
.ghost-button,
.google-button,
.danger-button,
.icon-plus-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1rem;
  border-radius: 8px;
  font-weight: 850;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.primary-button {
  color: #ffffff;
  background: var(--blue);
  border: 1px solid var(--blue);
  box-shadow: 0 14px 30px rgba(25, 78, 216, 0.22);
}

.primary-button.light {
  color: var(--blue-dark);
  background: #ffffff;
  border-color: #ffffff;
}

.primary-button:hover,
.ghost-button:hover {
  background: var(--blue-dark);
}

.primary-button.light:hover {
  background: #eef4fb;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.wide {
  width: 100%;
}

.secondary-button,
.google-button {
  color: var(--blue-dark);
  background: #ffffff;
  border: 1px solid #c7d3e4;
}

.secondary-button.stop {
  color: var(--red-dark);
}

.danger-button {
  color: #9f2636;
  background: #fff3f5;
  border: 1px solid #f3c3cb;
}

.ghost-button {
  color: #ffffff;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.icon-plus-button {
  width: 3.25rem;
  min-height: 3.25rem;
  padding: 0;
  color: #ffffff;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(25, 78, 216, 0.22);
  font-size: 1.8rem;
  line-height: 1;
}

.primary-button:hover,
.secondary-button:hover,
.google-button:hover,
.danger-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.pilot-band {
  display: grid;
  gap: 1.3rem;
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
}

.pilot-flow-heading {
  max-width: none;
  white-space: nowrap;
}

.flow-mini {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.flow-mini article {
  min-height: 9.4rem;
  padding: 1rem;
  box-shadow: none;
}

.flow-mini span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  color: #ffffff;
  background: var(--red);
  border-radius: 8px;
  font-weight: 900;
}

.flow-mini strong {
  display: block;
  margin-bottom: 0.35rem;
}

.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-heading {
  max-width: 50rem;
  margin-bottom: 1.6rem;
}

.one-line-heading {
  max-width: none;
  white-space: nowrap;
}

.split-section,
.flow-shell,
.auth-shell,
.painted-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  gap: 1.2rem;
  align-items: start;
}

.split-section {
  border-top: 1px solid var(--line);
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.benefit-list article {
  padding: 1.25rem;
  box-shadow: none;
}

.labs-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 clamp(3rem, 6vw, 4.5rem);
}

.labs-context article {
  min-height: 13rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 44px rgba(16, 30, 58, 0.08);
}

.labs-context article:first-child {
  background:
    linear-gradient(135deg, rgba(225, 25, 55, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.94);
}

.labs-context article:last-child {
  background:
    linear-gradient(135deg, rgba(25, 78, 216, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.94);
}

.labs-context h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
}

.labs-context p {
  margin-bottom: 0;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.journey-card {
  display: grid;
  align-content: start;
  min-height: 15rem;
  padding: 1rem;
  box-shadow: 0 14px 36px rgba(16, 30, 58, 0.1);
}

.journey-graphic {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.25;
  margin-bottom: 1rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(25, 78, 216, 0.12), rgba(225, 25, 55, 0.08)),
    #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.journey-graphic span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: #ffffff;
  background: var(--blue);
  border-radius: 8px;
  font-weight: 950;
}

.journey-graphic i {
  position: absolute;
  inset: auto 0.8rem 0.8rem;
  height: 0.7rem;
  background: var(--red);
  border-radius: 999px;
}

.journey-graphic.account::before,
.journey-graphic.source::before,
.journey-graphic.deploy::before,
.journey-graphic.url::before,
.journey-graphic.alerts::before {
  position: absolute;
  inset: 1rem;
  content: "";
  border: 1px solid rgba(19, 38, 73, 0.16);
  border-radius: 8px;
}

.journey-graphic.source span {
  background: #101e3a;
}

.journey-graphic.deploy span {
  background: var(--red);
}

.journey-graphic.url span {
  background: #0f8b68;
}

.journey-graphic.alerts span {
  background: #6d55d8;
}

.journey-card h3 {
  font-size: 0.98rem;
}

.journey-card p {
  margin-bottom: 0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.free-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 5rem;
  padding: clamp(2rem, 5vw, 3rem);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(225, 25, 55, 0.88), transparent 50%),
    linear-gradient(135deg, #0a2d7a, #071a43);
}

.free-preview h2,
.free-preview p,
.free-preview .eyebrow {
  color: #ffffff;
}

.free-preview p {
  opacity: 0.86;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1200px, calc(100% - 2rem));
  margin: -2.5rem auto 3rem;
  padding: 1rem 0;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.flow-shell,
.auth-shell,
.painted-shell {
  padding: clamp(2.5rem, 6vw, 5rem) 0 6rem;
}

.auth-shell {
  align-items: stretch;
}

.panel {
  padding: clamp(1.35rem, 3vw, 2rem);
}

.hero-panel {
  min-height: 24rem;
}

.provider-row {
  margin-top: 1.6rem;
}

.provider {
  min-height: 3rem;
  padding: 0 1rem;
  color: #334155;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
}

.provider.active {
  color: #ffffff;
  background: var(--ink);
  border-color: var(--ink);
}

.provider.future {
  opacity: 0.72;
}

.provider span {
  margin-left: 0.35rem;
  color: var(--red);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.repo-card {
  display: grid;
  gap: 1rem;
}

.validation-card {
  display: grid;
  gap: 0.7rem;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.7rem;
  padding: 0.75rem;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-row span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--muted);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.check-row.done {
  color: var(--ink);
  background: #effaf5;
  border-color: #bee6d5;
}

.check-row.done span {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

dl {
  display: grid;
  gap: 0.8rem;
  margin: 1.1rem 0;
}

dl div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid #edf2f7;
}

dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 750;
}

.auth-card {
  display: grid;
  gap: 1rem;
}

.auth-copy,
.auth-card {
  height: 100%;
}

.auth-copy {
  display: grid;
  align-content: center;
}

.account-benefits {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.account-benefits article {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.account-benefits span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.mode-tabs {
  padding: 0.25rem;
  background: #eef4fb;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mode-tabs button {
  flex: 1;
  min-height: 2.7rem;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 850;
}

.mode-tabs button.active {
  color: var(--blue-dark);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(18, 38, 77, 0.08);
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.divider::before,
.divider::after {
  height: 1px;
  content: "";
  background: var(--line);
}

.auth-card form,
.interest-form {
  display: grid;
  gap: 0.82rem;
}

.confirmation,
.event-card,
.empty-event {
  padding: 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.app-shell {
  padding: clamp(2rem, 5vw, 3.5rem) 0 6rem;
}

.apps-home {
  display: grid;
  gap: 1.2rem;
  min-height: 36rem;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.apps-home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.apps-home-header h1 {
  max-width: none;
  margin-bottom: 0.2rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.apps-home-header p {
  margin-bottom: 0;
}

.first-app-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.45fr);
  gap: 1rem;
  align-items: stretch;
}

.first-app-panel article,
.mini-app-card {
  padding: clamp(1.4rem, 3vw, 2rem);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(16, 30, 58, 0.08);
}

.first-app-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.mini-app-card {
  display: grid;
  align-content: center;
  gap: 0.6rem;
  min-height: 14rem;
  color: var(--muted);
  background:
    linear-gradient(135deg, rgba(225, 25, 55, 0.06), transparent 60%),
    #f8fbff;
}

.mini-app-card strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.apps-list {
  display: grid;
  gap: 0.8rem;
}

.app-list-card,
.new-app-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 5rem;
  padding: 1rem;
  text-align: left;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(16, 30, 58, 0.08);
}

.app-list-card small,
.new-app-card small {
  display: block;
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.app-list-card em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.app-icon {
  width: 2.4rem;
  height: 2.4rem;
  background: linear-gradient(135deg, var(--red), var(--blue));
  border-radius: 8px;
}

.new-app-card {
  grid-template-columns: auto minmax(0, 1fr);
  background:
    linear-gradient(135deg, rgba(25, 78, 216, 0.08), transparent 60%),
    #f8fbff;
}

.new-app-card span {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  color: #ffffff;
  background: var(--blue);
  border-radius: 8px;
  font-size: 1.5rem;
  font-weight: 900;
}

.app-frame {
  overflow: hidden;
  box-shadow: 0 18px 58px rgba(16, 30, 58, 0.12);
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-bottom: 4px solid var(--red);
}

.back-link {
  margin: 0 0 0.35rem;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.back-link::before {
  content: "< ";
}

.app-topbar h1 {
  max-width: none;
  margin-bottom: 0.12rem;
  font-size: clamp(1.4rem, 3vw, 2rem);
}

.app-topbar p {
  margin-bottom: 0;
  font-size: 0.86rem;
}

.app-status,
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--red);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.app-status span {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--red);
  border-radius: 999px;
}

.app-status.active {
  color: var(--green);
}

.app-status.active span {
  background: var(--green);
}

.setup-banner {
  display: grid;
  gap: 0.15rem;
  padding: 0.95rem 1.2rem;
  background: #fff9ee;
  border-bottom: 1px solid #f1dfbe;
}

.setup-banner.success {
  background: #effaf5;
  border-bottom-color: #bee6d5;
}

.setup-banner span {
  color: var(--muted);
  font-size: 0.88rem;
}

.page-app-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1rem;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(25, 78, 216, 0.08), transparent 55%),
    #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.page-app-prompt strong {
  display: block;
  margin-bottom: 0.18rem;
}

.page-app-prompt span {
  color: var(--muted);
  font-size: 0.88rem;
}

.app-tabs {
  gap: 0;
  padding: 0 1.2rem;
  border-bottom: 1px solid var(--line);
}

.app-tabs button {
  flex: 1;
  min-height: 3.4rem;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-weight: 900;
}

.app-tabs button.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.app-content {
  min-height: 32rem;
  background: #ffffff;
}

.tab-panel {
  padding: 1.2rem;
}

.source-setup-panel {
  display: grid;
  justify-items: center;
  align-items: start;
  min-height: 31rem;
  padding-top: 2rem;
}

.source-setup-card {
  width: min(100%, 48rem);
  text-align: center;
}

.source-setup-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.provider-row.compact {
  justify-content: center;
  margin: 1.2rem 0;
}

.source-form {
  display: grid;
  gap: 0.55rem;
  margin: 1.2rem auto 0.8rem;
  max-width: 34rem;
  text-align: left;
}

.inline-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
}

.two-column {
  display: grid;
  grid-template-columns: 20rem minmax(0, 1fr);
  gap: 1.2rem;
}

.project-sidebar {
  padding: 1.2rem;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.project-sidebar h2 {
  font-size: 1.45rem;
}

.deploy-card {
  padding: 1.35rem;
  box-shadow: 0 14px 36px rgba(16, 30, 58, 0.08);
}

.repo-row,
.health-actions,
.metric-heading,
.logs-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.status-dot {
  padding: 0.35rem 0.55rem;
  border: 1px solid #bde6d6;
  border-radius: 999px;
}

.health-panel,
.logs-panel,
.access-panel,
.alerts-panel,
.empty-panel {
  display: grid;
  gap: 1rem;
}

.health-actions span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.history-row {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-heading h2 {
  margin: 0;
  font-size: 1.3rem;
}

.metric-heading h2 span {
  color: var(--green);
}

.time-tabs button,
.segmented button,
.alert-channels button {
  min-height: 2.5rem;
  padding: 0 0.8rem;
  color: var(--muted);
  background: #f8fbff;
  border: 1px solid var(--line);
  font-weight: 850;
}

.time-tabs button.active,
.segmented button.active,
.alert-channels button.active {
  color: var(--blue-dark);
  background: #ffffff;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.metric-grid article {
  padding: 1rem;
  box-shadow: none;
}

.metric-grid article > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.metric-grid strong {
  color: var(--ink);
}

.sparkline {
  height: 4.1rem;
  border: 1px solid #dbe7f3;
  background: linear-gradient(180deg, rgba(25, 78, 216, 0.06), rgba(25, 78, 216, 0.24));
}

.tone-1 {
  background: linear-gradient(180deg, rgba(18, 150, 108, 0.06), rgba(18, 150, 108, 0.22));
}

.tone-2 {
  background: linear-gradient(180deg, rgba(107, 72, 190, 0.06), rgba(107, 72, 190, 0.22));
}

.tone-3 {
  background: linear-gradient(180deg, rgba(14, 116, 144, 0.06), rgba(14, 116, 144, 0.2));
}

.terminal {
  min-height: 25rem;
  padding: 0.8rem;
  overflow: auto;
  color: #f8fafc;
  background: #020617;
  border-radius: 8px;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
}

.terminal div {
  display: grid;
  grid-template-columns: 9.5rem 3.7rem minmax(0, 1fr);
  gap: 0.55rem;
  margin-bottom: 0.3rem;
}

.terminal time {
  color: #cbd5e1;
}

.terminal span {
  display: inline-flex;
  justify-content: center;
  padding: 0.1rem 0.25rem;
  border-radius: 4px;
  font-weight: 900;
}

.terminal .info {
  color: #0f172a;
  background: #93c5fd;
}

.terminal .error {
  color: #ffffff;
  background: #e11d48;
}

.terminal code {
  white-space: normal;
}

.terminal-status {
  margin: 0.65rem 0 0;
  color: #c7d2fe;
  font-size: 0.82rem;
}

.access-panel {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
}

.url-box,
.subscribe-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
  margin: 1rem 0;
}

.url-box span {
  min-width: 0;
  padding: 0.78rem 0.9rem;
  overflow-wrap: anywhere;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
}

.url-box button {
  padding: 0 0.9rem;
  color: var(--blue-dark);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.toggle-row input,
.checkbox-grid input {
  width: auto;
  height: auto;
}

.alerts-panel {
  place-items: center;
}

.alerts-panel .deploy-card {
  width: min(100%, 46rem);
}

.alert-channels {
  justify-content: center;
  margin: 1rem 0;
}

.checkbox-grid {
  justify-content: center;
  margin: 1rem 0;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(12, 23, 43, 0.45);
  backdrop-filter: blur(10px);
}

.limit-modal {
  width: min(100%, 36rem);
  padding: 1.5rem;
}

.painted-shell {
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.75fr);
}

.painted-shell.single-panel {
  grid-template-columns: minmax(0, 43rem);
  justify-content: center;
}

.event-card h3 {
  margin-bottom: 1rem;
}

.notification-panel {
  position: sticky;
  top: 5.5rem;
}

.demo-controls {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 30;
  width: min(28rem, calc(100% - 2rem));
  padding: 0.75rem;
}

.feedback-widget {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 35;
}

.feedback-trigger {
  min-height: 3rem;
  padding: 0 1rem;
  color: #ffffff;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(16, 30, 58, 0.22);
  font-weight: 900;
}

.feedback-panel {
  position: absolute;
  bottom: 3.7rem;
  left: 0;
  width: min(24rem, calc(100vw - 2rem));
  padding: 1rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feedback-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.feedback-panel-header button {
  width: 2rem;
  height: 2rem;
  color: var(--muted);
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
}

.feedback-form {
  display: grid;
  gap: 0.75rem;
}

.feedback-success h2 {
  font-size: 1.25rem;
}

.feedback-success p {
  margin-bottom: 0;
}

.email-preview {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
  padding: 0.85rem;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.email-preview div {
  display: grid;
  gap: 0.15rem;
}

.email-preview span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.email-preview strong {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
}

.email-preview pre {
  max-height: 14rem;
  margin: 0;
  padding: 0.75rem;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.78rem;
  line-height: 1.45;
}

.confirmation .secondary-button {
  margin-top: 0.8rem;
}

.demo-controls > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.demo-controls strong {
  font-size: 0.9rem;
}

.demo-controls span {
  color: var(--muted);
  font-size: 0.78rem;
}

.step-rail {
  gap: 0.35rem;
}

.step-rail button {
  min-height: 2rem;
  padding: 0 0.52rem;
  color: var(--muted);
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
}

.step-rail button.active {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

@media (max-width: 1120px) {
  .journey-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .top-nav {
    display: none;
  }

  .header-actions {
    gap: 0;
  }

  .hero,
  .split-section,
  .flow-shell,
  .auth-shell,
  .painted-shell,
  .two-column,
  .access-panel,
  .first-app-panel {
    grid-template-columns: 1fr;
  }

  .flow-mini,
  .benefit-list,
  .labs-context,
  .journey-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .notification-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  h1 {
    font-size: 2.65rem;
  }

  .one-line-heading {
    white-space: normal;
  }

  .pilot-flow-heading {
    white-space: normal;
  }

  .site-header,
  .hero,
  .section,
  .pilot-band,
  .labs-context,
  .free-preview,
  .flow-shell,
  .auth-shell,
  .app-shell,
  .painted-shell {
    width: min(100% - 1rem, 1200px);
  }

  .brand-lockup img {
    width: 134px;
  }

  .hero {
    padding-top: 2rem;
  }

  .free-preview,
  .app-topbar,
  .apps-home-header,
  .app-list-card,
  .new-app-card,
  .page-app-prompt,
  .repo-row,
  .health-actions,
  .metric-heading,
  .logs-header,
  .button-row,
  .demo-controls > div:first-child {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .danger-button,
  .google-button {
    width: 100%;
  }

  dl div,
  .terminal div,
  .url-box,
  .subscribe-row,
  .inline-form-row {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .app-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .app-tabs button {
    flex: 0 0 6rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    margin-top: -2rem;
  }

  .demo-controls {
    position: static;
    width: min(100% - 1rem, 1200px);
    margin: 0 auto 1rem;
  }

  .feedback-widget {
    position: static;
    width: min(100% - 1rem, 1200px);
    margin: 0 auto 1rem;
  }

  .feedback-trigger {
    width: 100%;
    border-radius: 8px;
  }

  .feedback-panel {
    position: static;
    width: 100%;
    margin-top: 0.6rem;
  }
}
