/* ==========================================================
   Qodec — Landing Page
   Tokens, base, components, sections
   ========================================================== */

:root {
  /* Brand */
  --brand-forest: #3e643a;
  --brand-sage:   #79a375;
  --brand-leaf:   #c1d0a6;
  --brand-pale:   #c0cfa6;

  /* Accent */
  --accent-orange: #ee8601;
  --accent-orange-hover: #d47801;
  --accent-cream:  #ffe7b1;

  /* Neutrals */
  --neutral-900: #1a1a1a;
  --neutral-800: #2a2a2a;
  --neutral-700: #3a3a3a;
  --neutral-600: #555555;
  --neutral-500: #6f6f6f;
  --neutral-400: #8a8a8a;
  --neutral-300: #c5c5bf;
  --neutral-200: #e5e5e0;
  --neutral-100: #f0efea;
  --neutral-50:  #f8f7f4;
  --white: #ffffff;

  /* Spacing (8px grid) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-12: 96px;
  --s-16: 128px;

  /* Type */
  --font: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Container */
  --container: 1200px;
  --pad-x: 64px;

  --r: 2px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--neutral-50);
  color: var(--neutral-900);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

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

img, svg { display: block; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

input, textarea, select {
  font: inherit;
}

/* ----------------- Containers & sections ----------------- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }
.section { padding: var(--s-16) 0; position: relative; }
.section.dark { background: var(--neutral-900); color: var(--white); }
.section.tight { padding: var(--s-12) 0; }

@media (max-width: 1024px) {
  :root { --pad-x: 40px; }
  .section { padding: var(--s-12) 0; }
}
@media (max-width: 640px) {
  :root { --pad-x: 24px; }
}

/* ----------------- Type utilities ----------------- */
.overline {
  font-family: var(--font);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-sage);
  margin: 0 0 var(--s-3) 0;
}
.dark .overline { color: var(--brand-leaf); }

h1, h2, h3, h4, h5 { font-family: var(--font); margin: 0; color: var(--brand-forest); }
.dark h1, .dark h2, .dark h3 { color: var(--white); }

h1 { font-weight: 700; font-size: 56px; line-height: 1.1; letter-spacing: -0.5px; }
h2 { font-weight: 600; font-size: 40px; line-height: 1.2; letter-spacing: -0.25px; }
h3 { font-weight: 600; font-size: 22px; line-height: 1.3; }

@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}

.subhead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--neutral-600);
  max-width: 720px;
  margin: 16px 0 0 0;
}
.dark .subhead { color: var(--brand-leaf); }

.body, p { font-size: 15px; line-height: 1.7; color: var(--neutral-600); margin: 0; }
.dark .body, .dark p { color: var(--brand-leaf); }

.mono { font-family: var(--font); }

/* ----------------- Buttons ----------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  transition: transform 150ms ease, background 150ms ease, color 150ms ease, border-color 150ms ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent-orange);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-orange-hover); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  border-color: var(--brand-sage);
  color: var(--brand-forest);
}
.dark .btn-secondary { color: var(--brand-leaf); }
.btn-secondary:hover { background: rgba(121, 163, 117, 0.08); }

.btn-ghost {
  background: transparent;
  color: var(--brand-leaf);
  border-color: rgba(121, 163, 117, 0.3);
}
.btn-ghost:hover { border-color: var(--brand-sage); }

.tlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-forest);
  font-weight: 500;
  font-size: 14px;
  border-bottom: 1px solid rgba(62, 100, 58, 0.6);
  padding-bottom: 2px;
  transition: border-color 150ms ease;
}
.tlink:hover { border-color: var(--brand-forest); }
.dark .tlink { color: var(--brand-leaf); border-bottom-color: rgba(193, 208, 166, 0.6); }

/* ----------------- Cards ----------------- */
.card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--r);
  padding: 32px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
  position: relative;
}
.card:hover { border-color: rgba(121, 163, 117, 0.6); }
.dark .card {
  background: var(--neutral-800);
  border-color: rgba(121, 163, 117, 0.2);
}
.dark .card:hover { border-color: rgba(121, 163, 117, 0.4); }

.card-strip {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-sage);
  font-weight: 500;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--neutral-200);
}
.dark .card-strip { border-bottom-color: rgba(121, 163, 117, 0.2); }

/* ----------------- Pills / badges ----------------- */
.pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--r);
  font-size: 11px;
  font-weight: 500;
  background: rgba(193, 208, 166, 0.25);
  color: var(--brand-forest);
}
.pill.normal    { background: rgba(193, 208, 166, 0.4); color: var(--brand-forest); }
.pill.attention { background: rgba(255, 231, 177, 0.5); color: var(--brand-forest); }
.pill.warning   { background: var(--accent-cream); color: var(--neutral-900); }
.pill.urgent    { background: rgba(238, 134, 1, 0.25); color: var(--accent-orange); }
.pill.critical  { background: var(--accent-orange); color: var(--white); }

/* ----------------- Keylines ----------------- */
.hairline { height: 1px; background: var(--neutral-200); border: 0; width: 100%; }
.dark .hairline { background: rgba(121, 163, 117, 0.2); }
.sage-keyline { height: 1px; background: rgba(121, 163, 117, 0.3); width: 100%; }

/* ==========================================================
   NAV
   ========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(248, 247, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--neutral-200);
}
.nav-inner {
  width: 100%;
  max-width: var(--container);
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-size: 18px;
  color: var(--brand-forest);
}
.nav.is-hero .nav-brand { color: var(--white); }
.nav-mark {
  width: 26px; height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nav-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.nav-mark .logo-light { display: none; }
.nav.is-hero .nav-mark .logo-light { display: block; }
.nav.is-hero .nav-mark .logo-dark { display: none; }
.nav-links {
  display: flex; gap: 32px;
}
.nav-links a {
  font-weight: 500; font-size: 14px;
  color: var(--neutral-600);
  transition: color 150ms ease;
}
.nav.is-hero .nav-links a { color: rgba(255,255,255,0.75); }
.nav-links a:hover { color: var(--brand-forest); }
.nav.is-hero .nav-links a:hover { color: var(--white); }

.nav-cta {
  height: 40px;
  padding: 0 18px;
  font-size: 13px;
}
@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--neutral-900);
  color: var(--white);
  padding-top: 64px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(121,163,117,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(121,163,117,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.hero-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(121,163,117,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: 64px 0;
}
.hero-copy { max-width: 560px; }
.hero-copy .overline {
  display: inline-block;
  border: 1px solid rgba(121,163,117,0.3);
  padding: 6px 12px;
  border-radius: var(--r);
  margin-bottom: 32px;
  color: var(--brand-leaf);
  background: rgba(121,163,117,0.05);
}
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero .subhead { color: var(--brand-leaf); margin-bottom: 16px; }
.hero-support {
  font-size: 14px;
  color: rgba(193, 208, 166, 0.7);
  margin: 0 0 32px 0;
  line-height: 1.6;
}
.hero-ctas {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero-trust {
  font-size: 12px;
  color: var(--brand-leaf);
  letter-spacing: 0.4px;
  border-top: 1px solid rgba(121,163,117,0.2);
  padding-top: 20px;
}

.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 640px;
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-stage { min-height: 520px; }
}

/* ----------------- Phone in hand ----------------- */
.phone-frame {
  position: relative;
  width: 320px;
  height: 660px;
  border-radius: 38px;
  background: linear-gradient(135deg, #1c1e22 0%, #0d0f12 60%, #1c1e22 100%);
  box-shadow:
    0 0 0 2px #2a2c30,
    0 0 0 3px #44464a,
    0 0 0 5px #1a1c20,
    0 30px 80px rgba(0,0,0,0.6),
    0 80px 160px -40px rgba(0,0,0,0.5);
  padding: 12px;
  transform: rotate(-4deg);
  transition: opacity 700ms ease;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  border-radius: 28px;
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px;
  background: #000;
  border-radius: 14px;
  z-index: 5;
}
.phone-notch::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #15171a;
  border: 1px solid #2a2c30;
}

.hand {
  position: absolute;
  bottom: -160px;
  right: -80px;
  left: auto;
  width: 540px;
  height: 620px;
  pointer-events: none;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.55));
  z-index: 0;
}

.phone-wrap {
  position: relative;
  z-index: 1;
}

/* ----------------- Phone screen UI ----------------- */
.screen-stage { position: absolute; inset: 0; }
.screen-time {
  position: absolute;
  top: 18px; left: 24px;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,0.85);
  z-index: 4;
}
.screen-status {
  position: absolute;
  top: 18px; right: 24px;
  display: flex; gap: 5px; align-items: center;
  z-index: 4;
  font-size: 11px;
  color: rgba(255,255,255,0.85);
}

.orb-wrap {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  z-index: 2;
  opacity: 0;
  transition: opacity 600ms ease;
}
.orb-wrap.show { opacity: 1; }
.orb-label {
  font-size: 11px;
  color: var(--brand-sage);
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity 400ms ease;
}
.orb-wrap.show .orb-label { opacity: 1; }

/* Orb itself */
.orb {
  position: relative;
  width: 140px; height: 140px;
}
.orb canvas {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border-radius: 50%;
}
.orb-halo {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(121,163,117,0.18) 0%, rgba(121,163,117,0) 65%);
  opacity: 0.6;
  animation: haloBreath 2.5s ease-in-out infinite;
}
@keyframes haloBreath {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.06); }
}

.orb.size-mini { width: 36px; height: 36px; }
.orb.size-icon { width: 24px; height: 24px; }
.orb.size-icon .orb-halo, .orb.size-mini .orb-halo { display: none; }

/* Subtitle pill */
.subtitle-pill {
  position: absolute;
  bottom: 110px; left: 50%; transform: translate(-50%, 12px);
  background: rgba(26,26,26,0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(121,163,117,0.3);
  border-radius: var(--r);
  padding: 10px 14px;
  color: var(--neutral-100);
  font-size: 11px;
  line-height: 1.5;
  max-width: 240px;
  text-align: center;
  opacity: 0;
  transition: opacity 300ms ease, transform 300ms ease;
  z-index: 3;
}
.subtitle-pill.show { opacity: 1; transform: translate(-50%, 0); }

.context-meter {
  position: absolute;
  top: 56px; right: 16px;
  font-size: 10px;
  color: var(--brand-sage);
  letter-spacing: 0.5px;
  opacity: 0;
  transition: opacity 250ms ease;
  z-index: 3;
  background: rgba(26,26,26,0.6);
  padding: 4px 8px;
  border-radius: var(--r);
  border: 1px solid rgba(121,163,117,0.2);
}
.context-meter.show { opacity: 1; }

/* Chat bubble */
.chat-bubble {
  position: absolute;
  bottom: 32px; left: 16px; right: 16px;
  background: rgba(26,26,26,0.85);
  border: 1px solid rgba(121,163,117,0.25);
  border-radius: var(--r);
  padding: 14px 16px;
  color: var(--neutral-100);
  font-size: 12px;
  line-height: 1.55;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 300ms ease, transform 300ms ease;
  z-index: 3;
}
.chat-bubble.show { opacity: 1; transform: translateY(0); }
.chat-bubble .speaker {
  display: block;
  font-size: 10px;
  color: var(--brand-sage);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

/* Camera frame */
.camera-view {
  position: absolute;
  inset: 44px 16px 16px 16px;
  background: #1a1a1a;
  border: 1px solid rgba(121,163,117,0.25);
  border-radius: var(--r);
  opacity: 0;
  transition: opacity 250ms ease;
  z-index: 2;
  overflow: hidden;
}
.camera-view.show { opacity: 1; }
.camera-view::before {
  /* faux skin-tone gradient simulating viewfinder content */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 55%,
    #c89a82 0%, #a87560 40%, #4a3528 80%, #1a1010 100%);
  filter: blur(2px);
}
.camera-reticule {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 140px; height: 140px;
  z-index: 1;
}
.camera-reticule::before, .camera-reticule::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  border: 1px solid rgba(255,255,255,0.85);
}
.camera-reticule::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.camera-reticule::after  { bottom: 0; right: 0; border-left: none; border-top: none; }
.camera-reticule .br-tl {
  position: absolute; top: 0; right: 0; width: 22px; height: 22px;
  border: 1px solid rgba(255,255,255,0.85);
  border-left: none; border-bottom: none;
}
.camera-reticule .br-bl {
  position: absolute; bottom: 0; left: 0; width: 22px; height: 22px;
  border: 1px solid rgba(255,255,255,0.85);
  border-right: none; border-top: none;
}
.camera-mini-orb {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 3;
}
.shutter-flash {
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
}

/* JSON scrim */
.json-scrim {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  background: rgba(20,20,20,0.92);
  border: 1px solid rgba(121,163,117,0.2);
  border-radius: var(--r);
  padding: 12px 14px;
  color: var(--neutral-100);
  font-size: 10.5px;
  line-height: 1.7;
  opacity: 0;
  transition: opacity 250ms ease, height 600ms ease;
  z-index: 3;
  overflow: hidden;
}
.json-scrim.show { opacity: 1; }
.json-scrim .row {
  display: flex; gap: 10px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.json-scrim .row:last-child { border-bottom: 0; }
.json-scrim .key { color: var(--brand-sage); min-width: 64px; }
.json-scrim .val { color: var(--brand-leaf); flex: 1; }

.compress-line {
  display: none;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--brand-sage);
  letter-spacing: 0.5px;
}
.json-scrim.collapsed { padding: 8px 14px; }
.json-scrim.collapsed .row { display: none; }
.json-scrim.collapsed .compress-line { display: flex; }

.antenna-pulse {
  display: inline-block;
  width: 8px; height: 10px;
  background: var(--brand-sage);
  margin-left: 6px;
  vertical-align: middle;
}

/* Analyst card */
.analyst-card {
  position: absolute;
  top: 44px; left: 16px; right: 16px;
  background: var(--neutral-50);
  color: var(--neutral-900);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 11px;
  border-bottom: 1px solid var(--neutral-200);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 400ms ease, transform 400ms ease;
  z-index: 4;
}
.analyst-card.show { opacity: 1; transform: translateY(0); }
.analyst-card .ov {
  font-size: 9px; letter-spacing: 1.5px; color: var(--brand-sage); margin-bottom: 4px;
}
.analyst-card .h {
  font-weight: 600; font-size: 13px; color: var(--neutral-900); margin-bottom: 2px;
}
.analyst-card .t { font-size: 10px; color: var(--neutral-500); }

.replay-btn {
  position: absolute;
  bottom: -56px;
  right: -240px;
  font-size: 11px;
  color: var(--brand-leaf);
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(121,163,117,0.3);
  padding: 8px 14px;
  border-radius: var(--r);
  z-index: 10;
  opacity: 0;
  transition: opacity 300ms ease;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
  min-width: 200px;
  text-align: center;
  cursor: pointer;
}
.replay-btn.show { opacity: 1; }
.replay-btn:hover { background: rgba(0,0,0,0.6); border-color: var(--brand-sage); }

@media (max-width: 1280px) {
  .replay-btn { right: -200px; min-width: 180px; }
}
@media (max-width: 1024px) {
  .replay-btn {
    position: relative;
    right: auto;
    bottom: auto;
    margin: 16px auto 0;
    display: block;
    width: max-content;
  }
}

.scene-label {
  position: absolute;
  top: 50%; right: -120px;
  transform: translateY(-50%);
  width: 100px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 10px;
  color: rgba(193,208,166,0.5);
  z-index: 5;
}
.scene-label .step {
  display: flex; align-items: center; gap: 8px;
  letter-spacing: 0.5px;
}
.scene-label .step.active { color: var(--brand-leaf); }
.scene-label .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(193,208,166,0.3);
}
.scene-label .step.active .dot { background: var(--accent-orange); }

@media (max-width: 1024px) {
  .scene-label { display: none; }
  .phone-frame { transform: rotate(-2deg); }
  .hand { bottom: -120px; right: -40px; left: auto; width: 460px; }
}
@media (max-width: 640px) {
  .phone-frame { width: 280px; height: 580px; transform: none; }
  .hand { display: none; }
}

/* ==========================================================
   SECTION 2 — Shape of the platform
   ========================================================== */
.shape-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--neutral-200);
  border: 1px solid var(--neutral-200);
  margin-top: 64px;
}
.shape-grid .card {
  border: 0;
  border-radius: 0;
  padding: 32px;
  background: var(--white);
}
.shape-grid .card:hover { background: var(--neutral-50); }
.shape-grid .card-num {
  font-size: 11px; letter-spacing: 2px; color: var(--brand-sage);
  margin-bottom: 24px;
}
.shape-grid h3 { margin-bottom: 16px; }
.shape-connector {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--brand-sage);
  letter-spacing: 1px;
  padding-top: 32px;
  border-top: 1px solid rgba(121,163,117,0.3);
}
@media (max-width: 1024px) {
  .shape-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .shape-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   SECTION 3 — On-device experience
   ========================================================== */
.ondevice-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  margin-top: 48px;
  align-items: start;
}
.ondevice-orb-stage {
  border: 1px solid var(--neutral-200);
  background: var(--white);
  border-radius: 16px;
  padding: 64px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  position: relative;
}
.ondevice-orb-stage .orb { width: 120px; height: 120px; }
.ondevice-orb-stage .label {
  font-size: 11px;
  color: var(--brand-sage);
  letter-spacing: 1px;
}
.orb-stage-eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--brand-sage);
  font-weight: 500;
  text-transform: uppercase;
}
.orb-stage-body {
  text-align: center;
  max-width: 420px;
  min-height: 5.6em;
  transition: opacity 200ms ease;
}
.orb-stage-body.is-swapping { opacity: 0; }

/* Dark variant of the orb stage tile.
   The surrounding section keeps its light cream background; only the
   tile inverts. */
.ondevice-orb-stage.is-dark {
  background: var(--neutral-900);
  border-color: rgba(121, 163, 117, 0.25);
  box-shadow: 0 24px 60px -32px rgba(26, 26, 26, 0.45);
  overflow: hidden;
}
.ondevice-orb-stage.is-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 30%, rgba(121, 163, 117, 0.18), transparent 70%),
    radial-gradient(80% 60% at 50% 100%, rgba(193, 208, 166, 0.06), transparent 75%);
  pointer-events: none;
}
.ondevice-orb-stage.is-dark > * { position: relative; z-index: 1; }
.ondevice-orb-stage.is-dark .label { color: var(--brand-leaf); }
.ondevice-orb-stage.is-dark .orb-stage-body {
  color: var(--brand-leaf);
  opacity: 0.92;
}
.ondevice-orb-stage.is-dark .orb-stage-body.is-swapping { opacity: 0; }
.ondevice-orb-stage.is-dark .orb-halo {
  background: radial-gradient(circle, rgba(121,163,117,0.32) 0%, rgba(121,163,117,0) 65%);
  opacity: 0.85;
}

.state-strip {
  margin-top: 24px;
  display: flex; gap: 4px; flex-wrap: wrap;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid var(--neutral-200);
  width: 100%;
}
.state-strip .state {
  font-size: 10px;
  letter-spacing: 1px;
  padding: 6px 10px;
  color: var(--neutral-400);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 200ms ease;
}
.state-strip .state.active {
  color: var(--brand-forest);
  border-color: var(--brand-sage);
  background: rgba(121,163,117,0.08);
}
.ondevice-orb-stage.is-dark .state-strip {
  border-top-color: rgba(121, 163, 117, 0.18);
}
.ondevice-orb-stage.is-dark .state-strip .state {
  color: rgba(193, 208, 166, 0.55);
}
.ondevice-orb-stage.is-dark .state-strip .state:hover {
  color: var(--brand-leaf);
}
.ondevice-orb-stage.is-dark .state-strip .state.active {
  color: var(--brand-leaf);
  border-color: rgba(121, 163, 117, 0.55);
  background: rgba(121, 163, 117, 0.14);
}

.mode-stack { display: flex; flex-direction: column; gap: 16px; }
.mode-card { padding: 24px; }

@media (max-width: 1024px) {
  .ondevice-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   SECTION 4 — Three layers
   ========================================================== */
.three-layers {
  margin-top: 64px;
  position: relative;
}
.three-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--neutral-200);
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  overflow: hidden;
}
.layer-col {
  background: var(--white);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.layer-num {
  font-size: 11px; letter-spacing: 2px; color: var(--brand-sage);
}
.layer-visual {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--neutral-200);
  background: var(--neutral-50);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.layer-visual .orb { width: 56px; height: 56px; }
.layer-caps {
  list-style: none; margin: 0; padding: 16px 0 0 0;
  border-top: 1px solid var(--neutral-200);
}
.layer-caps li {
  font-size: 11px;
  color: var(--brand-forest);
  padding: 6px 0;
  display: flex; align-items: flex-start; gap: 10px;
}
.layer-caps li::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--brand-leaf);
  display: inline-block;
  flex-shrink: 0;
  margin-top: 5px;
}
.layer-caption {
  font-size: 11px;
  color: var(--brand-sage);
  letter-spacing: 0.5px;
  margin-top: 4px;
}
@media (max-width: 1024px) {
  .three-cols { grid-template-columns: 1fr; }
}

/* Dark variant of the three-layers grid. The section itself is dark
   (var(--neutral-900)); the three columns and their inner visual tiles
   are a step lighter so they read as cards, and the orb glow has a
   dark surface to shine on. */
.section.dark .three-cols {
  background: rgba(121, 163, 117, 0.18);
  border-color: rgba(121, 163, 117, 0.18);
}
.section.dark .layer-col {
  background: var(--neutral-900);
}
.section.dark .layer-visual {
  background: var(--neutral-800);
  border-color: rgba(121, 163, 117, 0.2);
}
.section.dark .layer-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(121, 163, 117, 0.16), transparent 70%);
  pointer-events: none;
}
.section.dark .layer-visual > * { position: relative; z-index: 1; }
.section.dark .layer-caps {
  border-top-color: rgba(121, 163, 117, 0.18);
}
.section.dark .layer-caps li {
  color: var(--brand-leaf);
}
.section.dark .layer-caps li::before {
  background: var(--brand-sage);
}

/* Mini console preview for layer 2 */
.mini-console {
  width: 80%; height: 100%;
  border: 1px solid var(--brand-sage);
  background: var(--white);
  padding: 8px;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 9px;
}
.mini-console .head { color: var(--brand-sage); letter-spacing: 1px; }
.mini-console .bub {
  background: var(--neutral-100);
  padding: 4px 6px;
  margin-top: 4px;
  font-size: 8.5px;
  color: var(--neutral-600);
}
.mini-console .bub-reply {
  background: rgba(121, 163, 117, 0.1);
  color: var(--brand-forest);
}
.section.dark .mini-console {
  background: var(--neutral-900);
  border-color: rgba(121, 163, 117, 0.45);
}
.section.dark .mini-console .bub {
  background: rgba(255, 255, 255, 0.04);
  color: var(--brand-leaf);
}
.section.dark .mini-console .bub-reply {
  background: rgba(121, 163, 117, 0.18);
  color: var(--brand-leaf);
}

.specialised-graph {
  width: 100%; height: 100%;
  position: relative;
}
.specialised-graph svg { width: 100%; height: 100%; }

/* ==========================================================
   SECTION 5 — Live carrier demo
   ========================================================== */
.carrier-shell {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 240px 1fr 1fr;
  gap: 1px;
  background: var(--neutral-200);
  border: 1px solid var(--neutral-200);
}
.cs-pane {
  background: var(--white);
  padding: 24px;
  min-height: 460px;
}
.cs-pane.dark {
  background: var(--neutral-900);
  color: var(--white);
}
.cs-pane .pane-ov {
  font-size: 10px; letter-spacing: 2px; color: var(--brand-sage);
  margin-bottom: 16px;
}

.scenario-list { display: flex; flex-direction: column; gap: 8px; }
.scenario {
  display: flex; flex-direction: column;
  text-align: left;
  padding: 12px;
  border: 1px solid var(--neutral-200);
  border-radius: var(--r);
  font-size: 12px;
  color: var(--neutral-700);
  transition: all 200ms ease;
  cursor: pointer;
  background: var(--white);
}
.scenario:hover { border-color: var(--brand-sage); }
.scenario.active {
  border-color: var(--brand-forest);
  background: rgba(62,100,58,0.05);
  color: var(--brand-forest);
  border-left-width: 3px;
  padding-left: 10px;
}
.scenario .id {
  font-size: 10px;
  color: var(--neutral-400);
  margin-top: 4px;
}

.cs-input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--neutral-200);
  border-radius: 0;
  padding: 0 12px;
  margin-top: 16px;
  font-size: 12px;
  background: var(--white);
}
.cs-input:focus { outline: none; border-color: var(--brand-forest); }
.cs-foot {
  font-size: 10px; color: var(--neutral-400);
  margin-top: 16px;
  line-height: 1.5;
}

.json-block {
  background: var(--neutral-900);
  border: 1px solid rgba(121,163,117,0.2);
  padding: 16px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--brand-leaf);
  position: relative;
  min-height: 300px;
}
.json-block .copy-btn {
  position: absolute; top: 8px; right: 8px;
  font-size: 9px; letter-spacing: 1px;
  color: var(--brand-leaf);
  border: 1px solid var(--neutral-700);
  padding: 4px 8px;
  border-radius: var(--r);
  background: rgba(0,0,0,0.3);
}
.json-block .copy-btn:hover { border-color: var(--brand-sage); }
.jrow {
  display: grid; grid-template-columns: 80px 1fr;
  gap: 12px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 250ms ease, transform 250ms ease;
}
.jrow.show { opacity: 1; transform: translateY(0); }
.jrow .k { color: var(--brand-sage); }
.jrow .v { color: var(--brand-leaf); word-break: break-word; }

.compress-bars { padding: 8px 0; }
.compress-row { margin-bottom: 16px; }
.compress-row .label {
  font-size: 11px;
  color: var(--neutral-700);
  margin-bottom: 6px;
  display: flex; justify-content: space-between;
}
.bar-track {
  height: 18px;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
}
.bar-fill {
  height: 100%;
  background: var(--brand-leaf);
  border-right: 1px solid var(--brand-sage);
  width: 0;
  transition: width 700ms cubic-bezier(0.16, 1, 0.3, 1);
}
.bar-fill.compressed { background: var(--brand-sage); }
.compress-result {
  font-size: 14px;
  color: var(--brand-forest);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--neutral-200);
  font-weight: 600;
}

@media (max-width: 1024px) {
  .carrier-shell { grid-template-columns: 1fr; }
}

/* ==========================================================
   SECTION 6 — Phone Shop
   ========================================================== */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.shop-card {
  border: 1px solid var(--neutral-200);
  background: var(--white);
  padding: 24px;
  transition: border-color 200ms ease;
}
.shop-card:hover { border-color: var(--brand-sage); }
.phone-photo {
  height: 280px;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  margin-bottom: 16px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.phone-photo .ph-device {
  width: 100px; height: 220px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2a2c30, #0d0f12);
  box-shadow: 0 0 0 1.5px #44464a, 0 20px 40px rgba(0,0,0,0.3);
  position: relative;
  transform: rotate(-12deg);
}
.phone-photo .ph-device::before {
  content: "";
  position: absolute;
  inset: 5px;
  background: #000;
  border-radius: 14px;
}
.phone-photo .ph-device::after {
  content: "";
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 8px;
  background: #15171a;
  border-radius: 6px;
  z-index: 2;
}
.shop-card .spec {
  font-size: 12px;
  color: var(--neutral-700);
  margin-top: 12px;
  line-height: 1.6;
}
.shop-card .name {
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-forest);
  margin-bottom: 4px;
}
.shop-actions {
  margin-top: 48px;
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(121,163,117,0.3);
  display: flex; justify-content: center; gap: 32px;
}
@media (max-width: 1024px) {
  .shop-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
}

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(26,26,26,0.5);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: var(--r);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-head {
  padding: 24px 32px;
  border-bottom: 1px solid var(--neutral-200);
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
}
.modal-head h3 { font-size: 20px; color: var(--brand-forest); margin-bottom: 4px; }
.modal-head .sub { font-size: 11px; color: var(--neutral-500); }
.modal-close {
  width: 32px; height: 32px;
  border: 1px solid var(--neutral-200);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.modal-close:hover { border-color: var(--brand-forest); }
.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--neutral-200);
}
.modal-body > div { padding: 24px 32px; }
.modal-body > div:first-child { border-right: 1px solid var(--neutral-200); }
.modal-body .col-h {
  font-size: 10px; letter-spacing: 2px; color: var(--brand-sage);
  margin-bottom: 16px;
}
.modal-body .device-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--neutral-200);
  font-size: 13px;
}
.modal-body .device-row:last-child { border-bottom: 0; }
.modal-body .device-row .pill { font-size: 9px; padding: 2px 6px; }
.modal-foot {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================
   SECTION 7 — Dual-network SIM
   ========================================================== */
.sim-stage {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  margin-top: 48px;
  align-items: center;
}
.sim-diagram {
  border: 1px solid var(--neutral-200);
  background: var(--white);
  padding: 48px 32px;
  position: relative;
}
.sim-diagram svg { width: 100%; height: auto; }

.sim-prices { display: flex; flex-direction: column; gap: 16px; }
.sim-price-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--neutral-200);
}
.sim-price-row .big { font-size: 18px; font-weight: 600; color: var(--brand-forest); }
.sim-price-row .unit { font-size: 13px; color: var(--neutral-500); }
.sim-table {
  margin-top: 16px;
  border: 1px solid var(--neutral-200);
}
.sim-table .row {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  font-size: 11px;
  border-bottom: 1px solid var(--neutral-200);
}
.sim-table .row:last-child { border-bottom: 0; }
.sim-table .cell {
  padding: 10px 12px;
  border-right: 1px solid var(--neutral-200);
}
.sim-table .cell:last-child { border-right: 0; }
.sim-table .head .cell {
  background: var(--neutral-100);
  font-weight: 500; color: var(--brand-sage);
  letter-spacing: 1px;
  font-size: 10px;
}
@media (max-width: 1024px) {
  .sim-stage { grid-template-columns: 1fr; }
}

/* ==========================================================
   SECTION 8 — SOS Flow
   ========================================================== */
.sos-flow {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  position: relative;
}
.sos-stage {
  background: var(--neutral-800);
  border: 1px solid rgba(121,163,117,0.3);
  border-right: 0;
  padding: 24px 16px;
  position: relative;
}
.sos-stage:last-child { border-right: 1px solid rgba(121,163,117,0.3); }
.sos-stage.highlight {
  border-color: var(--accent-orange);
  border-left-width: 3px;
}
.sos-stage .num {
  font-size: 10px; color: var(--brand-sage); letter-spacing: 2px;
  margin-bottom: 12px;
}
.sos-stage .name {
  font-weight: 600; font-size: 14px; color: var(--white);
  margin-bottom: 6px;
}
.sos-stage .det {
  font-size: 10px; color: var(--brand-leaf);
  line-height: 1.5;
}
.sos-stage::after {
  content: "";
  position: absolute;
  top: 50%; right: -7px;
  width: 14px; height: 1px;
  background: var(--brand-sage);
  z-index: 2;
}
.sos-stage:last-child::after { display: none; }
.sos-stage::before {
  content: "";
  position: absolute;
  top: calc(50% - 4px); right: -4px;
  width: 0; height: 0;
  border-left: 6px solid var(--brand-sage);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  z-index: 2;
}
.sos-stage:last-child::before { display: none; }
.sos-foot {
  margin-top: 32px;
  text-align: center;
  font-size: 11px;
  color: var(--brand-leaf);
  padding-top: 24px;
  border-top: 1px solid rgba(121,163,117,0.2);
}
@media (max-width: 1024px) {
  .sos-flow { grid-template-columns: 1fr; }
  .sos-stage { border-right: 1px solid rgba(121,163,117,0.3); border-bottom: 0; }
  .sos-stage:not(:last-child) { border-bottom: 0; }
  .sos-stage::after { display: none; }
  .sos-stage::before { display: none; }
}

/* ==========================================================
   SECTION 9 — Worked examples
   ========================================================== */
.examples-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.example-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  padding: 32px;
  border-top: 4px solid var(--brand-forest);
  transition: border-color 200ms ease;
}
.example-card:hover { border-color: var(--brand-sage); }
.example-card.k1 { border-top-color: var(--brand-forest); }
.example-card.k2 { border-top-color: var(--brand-sage); }
.example-card.k3 { border-top-color: var(--accent-cream); }
.example-card.k4 { border-top-color: var(--accent-orange); }
.example-card .ov { font-size: 10px; letter-spacing: 2px; color: var(--brand-sage); margin-bottom: 12px; }
.example-card h3 { margin-bottom: 12px; }
.example-card .foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(121,163,117,0.3);
  font-size: 11px;
  color: var(--brand-sage);
  letter-spacing: 0.5px;
}
@media (max-width: 768px) {
  .examples-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   SECTION 10 — Pricing
   ========================================================== */
.pricing-table {
  margin-top: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  border-top: 1px solid var(--neutral-200);
}
.price-row {
  display: grid;
  grid-template-columns: 130px 1fr 160px 100px;
  padding: 18px 0;
  border-bottom: 1px solid var(--neutral-200);
  align-items: baseline;
  gap: 16px;
}
.price-row.heavy { border-top: 2px solid var(--neutral-900); }
.price-row .item { font-size: 14px; color: var(--neutral-900); font-weight: 500; }
.price-row .det { font-size: 13px; color: var(--neutral-500); }
.price-row .unit { font-size: 11px; color: var(--neutral-500); text-align: right; letter-spacing: 0.5px; }
.price-row .price { font-size: 16px; font-weight: 600; color: var(--neutral-900); text-align: right; }
.price-row .price.free { color: var(--brand-forest); }
.pricing-foot {
  margin-top: 32px;
  text-align: center;
  font-size: 11px;
  color: var(--neutral-500);
}
.pricing-cta {
  margin-top: 24px;
  text-align: center;
}
@media (max-width: 768px) {
  .price-row { grid-template-columns: 1fr 1fr; }
  .price-row .det { grid-column: 1 / -1; padding-left: 0; }
  .price-row .unit { text-align: left; }
}

/* ==========================================================
   SECTION 11 — Built for partners
   ========================================================== */
.partners-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(121,163,117,0.2);
  border: 1px solid rgba(121,163,117,0.2);
}
.partners-grid .card {
  border: 0;
  border-radius: 0;
  padding: 40px 32px;
  background: var(--neutral-900);
}
.partners-grid .card:hover { background: var(--neutral-800); }
.partners-grid .strip {
  font-size: 11px; letter-spacing: 2px; color: var(--brand-sage);
  margin-bottom: 16px;
}
.partners-grid h3 { color: var(--white); margin-bottom: 12px; }
.partners-grid p { color: var(--brand-leaf); font-size: 14px; }
.partners-grid .conn-list {
  font-size: 11px;
  color: rgba(193,208,166,0.7);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(121,163,117,0.2);
  line-height: 1.8;
  letter-spacing: 0.3px;
}
.code-snippet {
  margin-top: 16px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--neutral-700);
  padding: 12px;
  font-size: 11px;
  color: var(--brand-leaf);
  border-radius: var(--r);
  line-height: 1.7;
}
.code-snippet .ki { color: var(--brand-sage); }
.partners-foot {
  margin-top: 48px;
  text-align: center;
  font-size: 13px;
  color: var(--brand-leaf);
  padding-top: 32px;
  border-top: 1px solid rgba(121,163,117,0.2);
  letter-spacing: 1px;
}
@media (max-width: 768px) {
  .partners-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   SECTION 12 — Early access + footer
   ========================================================== */
.access-card {
  margin-top: 48px;
  max-width: 640px;
  margin-left: auto; margin-right: auto;
  border: 1px solid var(--neutral-200);
  background: var(--white);
  border-left: 4px solid var(--accent-orange);
  padding: 40px;
  transition: background 400ms ease;
}
.access-card.success { background: rgba(62,100,58,0.05); }
.form-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px; letter-spacing: 1px;
  color: var(--brand-sage);
}
.field input, .field textarea, .field select {
  height: 44px;
  padding: 0 12px;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
  border-radius: var(--r);
  font-size: 14px;
  color: var(--neutral-900);
}
.field textarea { height: 96px; padding: 12px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-sage);
}
.access-card .full { grid-column: 1 / -1; }
.access-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 16px;
}
.success-msg {
  display: none;
  text-align: center;
  padding: 24px;
}
.access-card.success .form-content { display: none; }
.access-card.success .success-msg { display: block; }
.success-msg .check {
  width: 48px; height: 48px;
  border: 1.5px solid var(--brand-sage);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--brand-sage);
}

.trust-row {
  margin-top: 24px;
  text-align: center;
  font-size: 11px;
  color: var(--brand-sage);
  letter-spacing: 1px;
}

.footer {
  background: var(--neutral-900);
  color: var(--brand-leaf);
  padding: 64px 0 48px 0;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(121,163,117,0.2);
  margin-bottom: 32px;
}
.footer h5 { color: var(--white); font-size: 12px; letter-spacing: 2px; margin-bottom: 16px; text-transform: uppercase; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; }
.footer .legal {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px;
  color: rgba(193,208,166,0.7);
  flex-wrap: wrap;
  gap: 16px;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ----------------- Reveal-on-scroll ----------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 200ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================
   Section header pattern
   ========================================================== */
.sec-head {
  max-width: 720px;
  border-bottom: 1px solid var(--neutral-200);
  padding-bottom: 32px;
}
.dark .sec-head { border-bottom-color: rgba(121,163,117,0.2); }

/* Hand SVG positioning helper */
.hand-svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================
   HERO REVISIONS — green fog, call controls, capability strip
   ========================================================== */

/* Green fog cursor follow */
.hero-fog {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s ease-out;
}
.hero-fog.show { opacity: 1; }
.hero-fog::before {
  content: "";
  position: absolute;
  width: 720px;
  height: 720px;
  left: var(--fog-x, 50%);
  top: var(--fog-y, 50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(110, 165, 110, 0.28) 0%,
    rgba(80, 130, 85, 0.18) 22%,
    rgba(60, 100, 70, 0.10) 45%,
    rgba(0, 0, 0, 0) 70%
  );
  filter: blur(60px);
  transition: left 1.6s cubic-bezier(0.16, 1, 0.3, 1),
              top 1.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-fog::after {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  left: var(--fog-x, 50%);
  top: var(--fog-y, 50%);
  transform: translate(-50%, -50%);
  background: radial-gradient(
    circle at center,
    rgba(140, 200, 140, 0.18) 0%,
    rgba(100, 160, 110, 0.10) 35%,
    rgba(0, 0, 0, 0) 75%
  );
  filter: blur(40px);
  transition: left 1.0s cubic-bezier(0.16, 1, 0.3, 1),
              top 1.0s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (max-width: 768px) {
  .hero-fog { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-fog { display: none; }
}

/* Make sure copy and stage sit above fog */
.hero-inner { position: relative; z-index: 2; }
.hero-grid-bg, .hero-vignette { z-index: 1; }

/* Orb state label (in-screen, replaces text label) */
.orb-state-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(193, 208, 166, 0.55);
  opacity: 0;
  transition: opacity 300ms ease;
}
.orb-wrap.show .orb-state-label { opacity: 1; }

/* iOS-style call controls bar (replaces label area) */
.call-controls {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 12px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 22, 20, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 400ms ease, transform 400ms ease;
  z-index: 4;
}
.call-controls.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.cc-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(46, 50, 54, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: transform 200ms ease, background 200ms ease, border-color 200ms ease;
}
.cc-btn:hover { transform: translateY(-1px); background: rgba(60, 64, 70, 0.95); }
.cc-end {
  background: #c8463a;
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 2px 8px rgba(160, 40, 30, 0.35);
}
.cc-end:hover { background: #d75547; }
.cc-pill {
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  border: 1px solid rgba(193, 208, 166, 0.28);
  background: rgba(121, 163, 117, 0.12);
  color: var(--brand-leaf);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}
.cc-pill span { white-space: nowrap; }
.cc-pill:hover { background: rgba(121, 163, 117, 0.22); border-color: rgba(193, 208, 166, 0.5); transform: translateY(-1px); }
.cc-pill svg { opacity: 0.75; flex-shrink: 0; }

/* Side capability strip — replaces 8-step scene label */
.capability-strip {
  position: absolute;
  top: 50%;
  right: -240px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 5;
  pointer-events: none;
}
.cap {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(20, 22, 24, 0.6);
  border: 1px solid rgba(121, 163, 117, 0.18);
  border-radius: 2px;
  min-width: 200px;
  opacity: 0.35;
  transform: translateX(-8px);
  transition: opacity 400ms ease, transform 400ms ease, border-color 400ms ease, background 400ms ease;
}
.cap.active {
  opacity: 1;
  transform: translateX(0);
  border-color: rgba(255, 106, 61, 0.65);
  background: rgba(28, 30, 34, 0.85);
}
.cap-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(193, 208, 166, 0.55);
  transition: color 400ms ease;
}
.cap.active .cap-icon { color: var(--accent-orange); }
.cap-name {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.5px;
}
.cap.active .cap-name { color: #fff; }
.cap-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: rgba(193, 208, 166, 0.55);
  letter-spacing: 0.3px;
  margin-top: 2px;
}

@media (max-width: 1280px) {
  .capability-strip { right: -200px; min-width: 180px; }
  .cap { min-width: 180px; }
}
@media (max-width: 1024px) {
  .capability-strip {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 32px;
    gap: 8px;
  }
  .cap { min-width: auto; padding: 8px 10px; }
  .cap-sub { display: none; }
}

/* Hide old scene-label completely if it's still rendered */
.scene-label { display: none !important; }

/* ==========================================================
   PHONE SCREEN — Samsung-style voice mode
   ========================================================== */

/* Status bar: signal bars + 4G/NO SERVICE label + battery.
   The label cycles via JS to convey "works without connectivity". */
.screen-status {
  top: 16px;
  right: 20px;
  gap: 8px;
  align-items: center;
}
.screen-time { font-weight: 500; opacity: 0.65; }

.net-block {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 350ms ease;
}
.signal-bars {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 9px;
}
.signal-bars .bar {
  width: 2.5px;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 0.5px;
  transition: background 350ms ease;
}
.signal-bars .bar:nth-child(1) { height: 3px; }
.signal-bars .bar:nth-child(2) { height: 5px; }
.signal-bars .bar:nth-child(3) { height: 7px; }
.signal-bars .bar:nth-child(4) { height: 9px; }
.net-block[data-bars="1"] .signal-bars .bar:nth-child(1) { background: rgba(255, 255, 255, 0.85); }
.net-block[data-bars="0"] .net-label {
  color: rgba(220, 130, 120, 0.85);
  font-size: 8.5px;
}
.net-block[data-bars="0"] .signal-bars .bar { background: rgba(255, 255, 255, 0.18); }

.battery {
  position: relative;
  display: inline-block;
  width: 18px;
  height: 9px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  padding: 1px;
}
.battery::after {
  content: "";
  position: absolute;
  right: -2.5px;
  top: 50%;
  transform: translateY(-50%);
  width: 1.5px;
  height: 4px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 1px 1px 0;
}
.battery-fill {
  display: block;
  width: 70%;
  height: 100%;
  background: #4ade80;
  border-radius: 1px;
}

/* Top chrome: privacy pill + chevron — sits below status row */
.screen-top-chrome {
  position: absolute;
  top: 56px;
  left: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 6;
}
.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(121, 163, 117, 0.35);
  background: rgba(40, 60, 45, 0.35);
  color: var(--brand-leaf);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3px;
}
.chevron-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

/* State pill above orb (replaces orb-state-label below) */
.state-pill-top {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 2.5px;
  color: var(--brand-leaf);
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0;
  transition: opacity 320ms ease;
  z-index: 5;
  white-space: nowrap;
}
.state-pill-top.show { opacity: 1; }
.orb-wrap.show ~ .state-pill-top { opacity: 1; }
/* Hide old in-orb-wrap state label */
.orb-state-label { display: none !important; }

/* Bigger, glowier orb in hero */
.phone-screen .orb {
  width: 200px;
  height: 200px;
}
.phone-screen .orb-halo {
  inset: -60px;
  background: radial-gradient(
    circle,
    rgba(121, 163, 117, 0.45) 0%,
    rgba(121, 163, 117, 0.22) 25%,
    rgba(121, 163, 117, 0.08) 50%,
    rgba(121, 163, 117, 0) 75%
  );
  opacity: 0.95;
  filter: blur(8px);
}

/* Lift orb-wrap a bit so state label and call controls fit cleanly */
.phone-screen .orb-wrap {
  top: 46%;
}

/* Subtitle pill — sits below the orb, above the call controls */
.subtitle-pill {
  bottom: 168px !important;
  background: rgba(20, 24, 22, 0.7);
  border-color: rgba(121, 163, 117, 0.25);
  font-size: 11px;
  max-width: 220px;
}
/* Word-by-word reveal so subtitles feel spoken, not slammed in. */
.subtitle-pill .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity 220ms ease, transform 220ms ease;
}
.subtitle-pill .word.show {
  opacity: 1;
  transform: translateY(0);
}

/* Call controls — fixed above the bottom tab bar. Hidden until the
   session begins (after the prompt screen). */
.call-controls {
  bottom: 84px !important;
}

/* Bottom Samsung-style tab bar */
.phone-tabbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: rgba(15, 18, 16, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 8px;
  z-index: 5;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(200, 210, 200, 0.55);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 10px;
  font-weight: 400;
  padding-top: 4px;
}
.tab svg { display: block; }
.tab-active {
  color: var(--brand-leaf);
}
.tab-mic {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(121, 163, 117, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b8d4a8;
}

/* Camera view: reposition so it doesn't collide with new chrome */
.phone-screen .camera-view {
  inset: 96px 16px 80px 16px;
}
/* Capture beat: the camera scene replaces the orb fully so the user
   sees what's being filmed (a forearm with a bandage, POV-style). */
.phone-screen .camera-view.overlay {
  inset: 96px 16px 80px 16px;
  background: #0a0a09;
  border: 1px solid rgba(193, 208, 166, 0.18);
  border-radius: var(--r);
  overflow: hidden;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.phone-screen .camera-view::before { content: none; }
.camera-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.camera-reticule {
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  z-index: 2;
}
.camera-reticule::before,
.camera-reticule::after,
.camera-reticule .br-tl,
.camera-reticule .br-bl {
  border-color: rgba(255, 255, 255, 0.85);
  width: 20px;
  height: 20px;
}
.camera-rec-dot {
  position: absolute;
  top: 12px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 10px;
  color: #ffffff;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.8px;
  z-index: 3;
}
.camera-rec-dot .rec-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff4a3d;
  box-shadow: 0 0 0 2px rgba(255, 74, 61, 0.25);
  animation: recPulse 1.4s ease-in-out infinite;
}
@keyframes recPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* Hide the orb during the capture beat so the camera scene is the focus. */
.orb-wrap.hidden {
  opacity: 0;
  transition: opacity 350ms ease;
  pointer-events: none;
}

/* ========== Prompt screen (pre-session check-in) ========== */
.prompt-screen {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease;
}
.prompt-screen.show {
  opacity: 1;
  pointer-events: auto;
}
.prompt-title {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.2px;
  white-space: nowrap;
  text-align: center;
}
.prompt-sub {
  position: absolute;
  top: 122px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.8px;
  color: rgba(193, 208, 166, 0.7);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}
.prompt-actions {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: calc(100% - 56px);
}
.prompt-btn {
  height: 44px;
  border-radius: 22px;
  border: 1px solid transparent;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.1px;
  transition: transform 220ms cubic-bezier(0.34, 1.56, 0.64, 1), background 200ms ease, border-color 200ms ease;
}
.prompt-btn-primary {
  background: var(--brand-sage);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(90, 130, 80, 0.32);
}
.prompt-btn-primary:hover { background: #8ab084; }
.prompt-btn-primary.tap { transform: scale(1.06); }
.prompt-btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.78);
}
.prompt-btn-ghost:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.32); }

/* ========== Compression carrier card (hero) ========== */
.compress-card {
  position: absolute;
  top: 50%;
  left: 24px;
  right: 24px;
  transform: translateY(-50%) translateY(12px);
  background: rgba(20, 24, 22, 0.78);
  border: 1px solid rgba(193, 208, 166, 0.22);
  border-radius: 12px;
  padding: 16px 16px 14px;
  z-index: 3;
  opacity: 0;
  transition: opacity 400ms ease, transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.compress-card.show {
  opacity: 1;
  transform: translateY(-50%) translateY(0);
}
.compress-card .cc-row { margin-bottom: 12px; }
.compress-card .cc-row:last-of-type { margin-bottom: 8px; }
.compress-card .cc-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  letter-spacing: 0.8px;
  color: rgba(193, 208, 166, 0.85);
  margin-bottom: 5px;
  text-transform: uppercase;
}
.compress-card .cc-raw  { color: rgba(255, 255, 255, 0.85); }
.compress-card .cc-comp { color: var(--brand-leaf); }
.compress-card .cc-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}
.compress-card .cc-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  transition: width 1100ms cubic-bezier(0.16, 1, 0.3, 1);
}
.compress-card .cc-fill-raw  { background: rgba(193, 208, 166, 0.4); }
.compress-card .cc-fill-comp { background: var(--brand-sage); }
.compress-card.fill-raw  .cc-fill-raw  { width: 100%; }
.compress-card.fill-comp .cc-fill-comp { width: 13%; }
.compress-card .cc-result {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--brand-leaf);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  text-align: right;
  opacity: 0;
  transition: opacity 350ms ease 600ms;
}
.compress-card.fill-comp .cc-result { opacity: 1; }
/* Replace skin gradient with neutral viewfinder */
.phone-screen .camera-view::before {
  background: radial-gradient(
    ellipse at 50% 55%,
    rgba(80, 90, 80, 0.6) 0%,
    rgba(40, 45, 40, 0.85) 60%,
    rgba(15, 18, 15, 1) 100%
  );
  filter: blur(0);
}

/* Analyst card slides in from below state label */
.phone-screen .analyst-card {
  top: 142px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

/* Soften JSON scrim away — replace with abstract analysing visual handled via JS */
.json-scrim { display: none !important; }
.context-meter { display: none !important; }
