/* Migrapulse — soft amber (candlelit) palette, voice-first migraine tracker */

:root {
  --bg: #000000;
  --bg-2: #0a0805;
  --surface: #1d1812;
  --surface-2: #2a2114;
  --line: #2e2820;
  --line-soft: #1a160f;
  --teal-glow: #7a5520;
  --teal-soft: #c89656;

  --ink: #f5f5f4;
  --ink-2: #e8e6e0;
  --ink-dim: #a39f93;
  --ink-faint: #6f6a5d;

  --accent: #e8b86b;
  --accent-glow: #f4d093;
  --accent-deep: #7a5520;
  --warn: oklch(0.65 0.16 25);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 36px;

  --shadow-card: 0 30px 60px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.03);
  --shadow-soft: 0 60px 120px -50px rgba(0,0,0,0.8);

  --serif: "Funnel Display", "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --sans: "Geist", "Söhne", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  --max: 1200px;
  --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-synthesis: none;
}

img, svg { max-width: 100%; height: auto; display: block; }

::selection { background: var(--accent); color: #000; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; text-align: left; }

.skip-link {
  position: absolute;
  top: -40px; left: 12px;
  padding: 10px 16px;
  background: var(--ink); color: #000;
  border-radius: 8px;
  z-index: 100;
  font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- nav ---------- */
nav.top {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10,10,10,0.7);
  border-bottom: 1px solid var(--line-soft);
}
nav.top .inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink);
  flex-shrink: 0;
}
.logo img { height: 26px; width: auto; }
footer .logo img { height: 22px; }

nav .links { display: flex; gap: 28px; font-size: 14px; color: var(--ink-dim); }
nav .links a { transition: color 0.2s; }
nav .links a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: 0.005em;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
  font-family: var(--sans);
}
.btn-primary {
  background: var(--ink);
  color: #0a0a0a;
}
.btn-primary:hover { transform: translateY(-1px); background: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--teal-soft); }

.btn .arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.035em; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(40px, 7vw, 96px); line-height: 1.0; }
h2 { font-size: clamp(32px, 4.6vw, 60px); line-height: 1.05; }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.2; }
h4 { font-size: 22px; line-height: 1.2; font-weight: 400; }

.lead { font-size: 19px; color: var(--ink-dim); max-width: 56ch; line-height: 1.5; text-wrap: pretty; }

em { font-style: normal; color: var(--accent-glow); }

section { padding: 120px 0; position: relative; }

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding-top: 140px;
  padding-bottom: 60px;
  display: grid;
  place-items: center;
  /* Prevent intrinsic min-content from expanding the column past viewport.
     Without this, a single wide child (e.g. the 56-bar wave at 444px) would
     force every grid item to be centered inside that wider column, pushing
     content off-screen on narrow phones. */
  grid-template-columns: minmax(0, 1fr);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  place-items: center;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  min-width: 0;
}
.hero-stage { min-width: 0; overflow: hidden; }

.hero::before {
  content: "";
  position: absolute;
  left: -10%; right: -10%;
  bottom: -45%;
  height: 90%;
  background:
    radial-gradient(ellipse 70% 60% at 50% 30%, rgba(232, 184, 107, 0.30) 0%, rgba(122, 85, 32, 0.18) 25%, transparent 55%),
    radial-gradient(ellipse 40% 25% at 50% 35%, rgba(244, 208, 147, 0.16) 0%, transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%;
  bottom: 14%;
  height: 1px;
  background: radial-gradient(ellipse 50% 100% at 50% 50%, rgba(200, 220, 230, 0.5), transparent 70%);
  pointer-events: none;
}

.stars {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 22%, rgba(255,255,255,0.5), transparent 60%),
    radial-gradient(1px 1px at 78% 18%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 33% 38%, rgba(255,255,255,0.35), transparent 60%),
    radial-gradient(1px 1px at 56% 28%, rgba(255,255,255,0.45), transparent 60%),
    radial-gradient(1px 1px at 88% 42%, rgba(255,255,255,0.3), transparent 60%),
    radial-gradient(1px 1px at 18% 55%, rgba(255,255,255,0.25), transparent 60%),
    radial-gradient(1px 1px at 67% 60%, rgba(255,255,255,0.4), transparent 60%),
    radial-gradient(1px 1px at 42% 12%, rgba(255,255,255,0.3), transparent 60%);
}

.hero .badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-dim);
  font-family: var(--mono); letter-spacing: 0.04em;
  margin-bottom: 36px;
  backdrop-filter: blur(10px);
  position: relative; z-index: 2;
}
.hero .badge .pip {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  position: relative;
}
.hero .badge .pip::after {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--bg);
}

.hero h1, .hero .lead, .hero .ctas, .hero .meta { position: relative; z-index: 2; }
.hero h1 .row { display: block; }
.hero .lead { margin: 28px auto 0; }
.hero .ctas { margin-top: 36px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .meta {
  margin-top: 22px;
  display: flex; gap: 18px; justify-content: center; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  letter-spacing: 0.08em; text-transform: uppercase;
  flex-wrap: wrap;
}
.hero .meta .sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; }

.hero-stage {
  margin-top: 64px;
  width: 100%;
  max-width: 1100px;
  position: relative;
  z-index: 2;
}
.orb-frame {
  position: relative;
  height: 360px;
  display: grid;
  place-items: center;
}

.orb {
  position: relative;
  width: 220px; height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%,
      rgba(251, 234, 204, 0.95) 0%,
      var(--accent) 22%,
      var(--accent-glow) 50%,
      var(--accent-deep) 75%,
      #1a1108 95%);
  box-shadow:
    inset 0 -10px 30px rgba(30, 18, 8, 0.6),
    inset 0 8px 30px rgba(250, 230, 200, 0.3),
    0 0 80px rgba(232, 184, 107, 0.45),
    0 0 180px rgba(122, 85, 32, 0.30);
  animation: breathe 4s ease-in-out infinite;
  will-change: transform;
}
.orb::before, .orb::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(150, 185, 200, 0.4);
}
.orb::before { animation: ring 4s ease-out infinite; }
.orb::after { animation: ring 4s ease-out infinite 1.3s; }

@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes ring {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(2.4); opacity: 0; }
}

.orb-label {
  position: absolute; bottom: 16px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--ink-faint); text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.orb-label .live,
.transcript-card .head .live,
.voice-foot .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 1.4s ease-in-out infinite;
}
@keyframes blink { 0%,100% { opacity: 0.3; } 50% { opacity: 1; } }

.wave {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 80px;
  margin: 0 auto;
  max-width: 720px;
}
.wave .bar {
  width: 4px; border-radius: 4px;
  background: linear-gradient(to top, var(--accent-deep), var(--accent));
  height: 8px;
  animation: wv 1.2s ease-in-out infinite;
  box-shadow: 0 0 6px rgba(150, 185, 200, 0.4);
}
@keyframes wv {
  0%, 100% { height: 8px; opacity: 0.45; }
  50%      { height: var(--h, 50px); opacity: 1; }
}

.transcript-card {
  margin: 24px auto 0;
  max-width: 580px;
  background: rgba(19, 21, 22, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  text-align: left;
  font-family: var(--serif); font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.015em;
  position: relative;
  backdrop-filter: blur(12px);
}
.transcript-card .head {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  color: var(--ink-faint); text-transform: uppercase;
  margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}
.transcript-card .word {
  display: inline-block;
  opacity: 0;
  animation: word-in 0.4s ease forwards;
}
.transcript-card .tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 8px;
  background: rgba(120, 165, 185, 0.15);
  color: var(--accent);
  font-family: var(--mono); font-size: 13px;
  margin: 0 2px;
  font-style: normal;
  border: 1px solid rgba(120, 165, 185, 0.3);
  opacity: 0;
  animation: word-in 0.4s ease forwards;
}
@keyframes word-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- HOW IT WORKS ---------- */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 64px 0 0;
}
.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.step .num {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  color: var(--ink-faint); text-transform: uppercase;
  margin-bottom: 18px;
}
.step .visual {
  height: 200px;
  border-radius: var(--r);
  background:
    radial-gradient(ellipse at 50% 50%, rgba(74, 106, 120, 0.25), transparent 60%),
    var(--bg-2);
  margin-bottom: 24px;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-dim); margin: 0; font-size: 15px; }

.mini-orb {
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(220,235,240,0.9), var(--accent) 25%, var(--accent-glow) 55%, var(--accent-deep) 90%);
  box-shadow: 0 0 40px rgba(100, 145, 165, 0.5);
  animation: breathe 3s ease-in-out infinite;
  position: relative;
}
.tap-ripple {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--accent);
  animation: tap-ring 2s ease-out infinite;
}
@keyframes tap-ring {
  0% { transform: scale(0.8); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: scale(2); opacity: 0; }
}

.step .visual .wave-mini {
  display: flex; align-items: center; gap: 3px; height: 60px;
}
.step .visual .wave-mini .bar {
  width: 3px; background: var(--accent); border-radius: 3px;
  animation: wv 1.2s ease-in-out infinite;
  box-shadow: 0 0 4px var(--accent);
}

.tag-cloud {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 24px; align-content: center; justify-content: center;
}
.tag-cloud .tag-chip {
  font-family: var(--mono); font-size: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(120, 165, 185, 0.10);
  color: var(--accent);
  border: 1px solid rgba(120, 165, 185, 0.30);
  opacity: 0;
  animation: chip-in 0.4s ease forwards;
}
@keyframes chip-in {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}

/* ---------- COMPARISON ---------- */
.compare {
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(232, 184, 107, 0.16), transparent 60%),
    var(--bg);
}
.compare-grid {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
  align-items: stretch;
}
.compare-col {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  display: flex; flex-direction: column;
  position: relative;
  overflow: hidden;
}
.compare-col.bad { background: var(--surface-2); }
.compare-col.good {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(120, 165, 185, 0.18), transparent 55%),
    var(--surface);
  border-color: rgba(120, 165, 185, 0.35);
}
.compare-col .label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
}
.compare-col.good .label { color: var(--accent); }
.compare-col .title { font-family: var(--serif); font-size: 28px; line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.02em; color: var(--ink); }
.compare-col .stat {
  font-family: var(--serif); font-size: 64px; line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.04em;
  font-weight: 350;
}
.compare-col.bad .stat { color: var(--warn); }
.compare-col.good .stat { color: var(--accent); }
.compare-col .stat-label { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.05em; margin-bottom: 24px; }

.compare-col .demo {
  flex: 1;
  margin-top: 8px;
  border-radius: var(--r);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 20px;
  display: flex; flex-direction: column;
  min-height: 380px;
  position: relative;
}

.form-demo {
  background: white !important;
  color: #1a1a1a;
  font-family: var(--sans);
}
.form-demo .ftitle {
  font-size: 13px; font-weight: 600;
  border-bottom: 1px solid #ececec;
  padding-bottom: 10px; margin-bottom: 12px;
  display: flex; justify-content: space-between; align-items: center;
}
.form-demo .ftitle .x { color: #777; font-size: 18px; }
.form-demo .field { margin-bottom: 10px; font-size: 12px; }
.form-demo .field label { display: block; color: #666; margin-bottom: 4px; font-size: 11px; }
.form-demo .field input,
.form-demo .field select {
  width: 100%; border: 1px solid #ddd; background: white;
  padding: 6px 8px; border-radius: 4px; font: inherit; color: inherit;
}
.form-demo .checks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 11px; }
.form-demo .checks label { display: flex; align-items: center; gap: 6px; }
.form-demo .checks .cb { width: 12px; height: 12px; border: 1px solid #aaa; border-radius: 2px; flex-shrink: 0; }
.form-demo .checks .cb.on { background: #3b6bea; border-color: #3b6bea; }
.form-demo .slider {
  height: 6px; background: #eee; border-radius: 3px; position: relative; margin: 6px 0 14px;
}
.form-demo .slider::after {
  content: ""; position: absolute; left: 35%; top: -4px; width: 14px; height: 14px;
  background: #3b6bea; border-radius: 50%;
}
.form-demo .submit {
  margin-top: auto; padding: 8px;
  background: #3b6bea; color: white;
  text-align: center; border-radius: 4px;
  font-size: 12px; font-weight: 600;
}

.tap-counter {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--mono);
  font-size: 11px;
  background: var(--warn);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 5;
}

.voice-demo {
  background:
    radial-gradient(ellipse at 50% 30%, rgba(120, 165, 185, 0.18), transparent 60%),
    var(--bg-2);
  align-items: center; justify-content: center;
  text-align: center;
  border-color: var(--line);
}
.voice-demo .demo-orb {
  width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(220,235,240,0.9), var(--accent) 25%, var(--accent-glow) 55%, var(--accent-deep) 90%);
  margin: 12px auto;
  animation: breathe 3s ease-in-out infinite;
  box-shadow: 0 0 50px rgba(100, 145, 165, 0.6);
}
.voice-demo .quote {
  font-family: var(--serif); font-size: 18px; line-height: 1.4;
  color: var(--ink); max-width: 280px;
  letter-spacing: -0.015em;
  margin: 16px auto 12px;
}
.voice-demo .auto-tags {
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center;
  margin-top: 8px;
}
.voice-demo .auto-tags .at {
  font-family: var(--mono); font-size: 11px;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(120, 165, 185, 0.12);
  color: var(--accent);
  border: 1px solid rgba(120, 165, 185, 0.30);
}
.voice-demo .voice-foot {
  margin-top: auto;
  padding-top: 16px;
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  letter-spacing: 0.08em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; justify-content: center;
}

.compare-divider {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic;
  color: var(--ink-faint);
  font-size: 18px;
  padding: 20px 0;
  width: 50px;
}

.friction { margin-top: 18px; display: grid; gap: 10px; }
.friction-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.friction-item.bad::before {
  content: "✕"; color: var(--warn);
  width: 18px; height: 18px; display: grid; place-items: center;
  border: 1px solid rgba(220, 90, 70, 0.4);
  border-radius: 4px; font-size: 11px; flex-shrink: 0;
}
.friction-item.good::before {
  content: "→"; color: var(--accent);
  width: 18px; height: 18px; display: grid; place-items: center;
  border: 1px solid rgba(120, 165, 185, 0.45);
  border-radius: 4px; font-size: 11px; flex-shrink: 0;
}

/* ---------- SECTION HEADERS ---------- */
.sec-head { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.sec-head .lead { margin: 0; }

/* ---------- VOICE FLOW ---------- */
.flow-stage {
  margin-top: 64px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(74, 106, 120, 0.20), transparent 55%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 56px 60px;
  position: relative;
  overflow: hidden;
}

.flow-progress {
  display: flex;
  gap: 0;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.flow-tab {
  padding: 14px 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--ink-faint); text-transform: uppercase;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
  background: transparent;
}
.flow-tab .num {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 11px; color: var(--ink-dim);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.flow-tab.active { color: var(--accent); border-color: var(--accent); }
.flow-tab.active .num { background: var(--accent); color: #0a0a0a; border-color: transparent; }

.flow-panels { position: relative; min-height: 480px; }
.flow-panel {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px;
  align-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s ease;
}
.flow-panel.active { opacity: 1; pointer-events: auto; }
.flow-panel[hidden] { display: grid; }
.flow-panel .copy h3 { margin-bottom: 14px; }
.flow-panel .copy p { color: var(--ink-dim); margin: 0; font-size: 16px; }
.flow-panel .copy .p-spaced { margin-top: 14px; }
.flow-panel .copy .hint {
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 14px;
}
.flow-panel .visual {
  display: grid; place-items: center;
  height: 480px;
  position: relative;
}

/* phone */
.phone {
  width: 260px; height: 530px;
  background: var(--bg);
  border: 8px solid #050505;
  border-radius: 44px;
  position: relative;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), inset 0 0 0 1px #1f2224;
  overflow: hidden;
}
.phone .notch {
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 24px; background: #050505; border-radius: 999px;
  z-index: 5;
}
.phone .screen {
  position: absolute; inset: 0;
  padding: 38px 16px 16px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(ellipse at 50% 100%, rgba(74, 106, 120, 0.30), transparent 65%),
    var(--bg);
}
.phone .status {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 10px; color: var(--ink);
  padding: 0 16px;
}
.phone .body {
  flex: 1; padding: 24px 8px; display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.phone .ptitle {
  font-family: var(--serif); font-size: 22px; letter-spacing: -0.02em;
  margin-bottom: 4px; text-align: center; color: var(--ink); font-weight: 400;
}
.phone .ptitle.is-mono {
  font-size: 14px; color: var(--ink-faint); font-family: var(--mono);
  letter-spacing: 0.12em; text-transform: uppercase; margin: 0;
}
.phone .psub {
  font-family: var(--mono); font-size: 9px; color: var(--ink-faint);
  letter-spacing: 0.12em; text-transform: uppercase;
  text-align: center; margin-bottom: 30px;
}
.phone .big-orb {
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(220,235,240,0.9), var(--accent) 25%, var(--accent-glow) 55%, var(--accent-deep) 90%);
  box-shadow: 0 0 70px rgba(100, 145, 165, 0.6);
  animation: breathe 4s ease-in-out infinite;
  position: relative;
}
.phone .big-orb::before, .phone .big-orb::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px solid rgba(150, 185, 200, 0.45);
}
.phone .big-orb::before { animation: ring 4s ease-out infinite; }
.phone .big-orb::after { animation: ring 4s ease-out infinite 1.5s; }
.phone .help {
  font-family: var(--mono); font-size: 9px; color: var(--ink-faint);
  letter-spacing: 0.10em; text-transform: uppercase;
  margin-top: 30px;
}

.phone.listening .body { padding: 16px 8px; justify-content: flex-start; }
.phone.listening .wave-phone {
  width: 100%; height: 60px;
  display: flex; align-items: center; justify-content: center; gap: 3px;
  margin: 24px 0;
}
.phone.listening .wave-phone .bar {
  width: 3px; background: var(--accent); border-radius: 3px;
  animation: wv 1.2s ease-in-out infinite;
  box-shadow: 0 0 4px var(--accent);
}
.phone .live-text {
  font-family: var(--serif); font-size: 17px; line-height: 1.35;
  color: var(--ink); padding: 0 12px; text-align: center;
  letter-spacing: -0.01em; margin-top: 12px;
}
.phone .live-text .word {
  display: inline-block; opacity: 0;
  animation: word-in 0.4s ease forwards;
}

.phone.tagged .body { padding: 12px 8px; justify-content: flex-start; align-items: stretch; }
.phone.tagged .tagged-quote {
  font-family: var(--serif); font-size: 14px; line-height: 1.4;
  color: var(--ink-2); padding: 12px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.phone.tagged .tagged-quote .hl {
  background: rgba(120, 165, 185, 0.20);
  color: var(--accent);
  padding: 1px 4px; border-radius: 3px;
  font-style: normal;
}
.phone.tagged .label-row {
  font-family: var(--mono); font-size: 9px; color: var(--ink-faint);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 6px;
}
.phone.tagged .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.phone.tagged .chip {
  font-family: var(--mono); font-size: 10px;
  padding: 3px 8px; border-radius: 999px;
  background: rgba(120, 165, 185, 0.10);
  color: var(--accent);
  border: 1px solid rgba(120, 165, 185, 0.30);
}
.phone.tagged .severity { display: flex; gap: 4px; margin-bottom: 14px; }
.phone.tagged .severity .pip {
  flex: 1; height: 6px; border-radius: 3px; background: #2a2d2f;
}
.phone.tagged .severity .pip.on { background: var(--accent); box-shadow: 0 0 4px var(--accent); }

/* ---------- INSIGHTS ---------- */
.insights-grid { margin-top: 64px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.chart-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px;
  position: relative; overflow: hidden;
}
.chart-card .head {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 32px;
}
.chart-card .head h3 { margin-bottom: 4px; }
.chart-card .head .sub { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: 0.06em; text-transform: uppercase; }
.calendar { display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; }
.calendar .day { aspect-ratio: 1; border-radius: 4px; background: #1d2022; }
.calendar .day.l1 { background: rgba(120, 165, 185, 0.30); }
.calendar .day.l2 { background: rgba(120, 165, 185, 0.55); }
.calendar .day.l3 { background: rgba(120, 165, 185, 0.80); }
.calendar .day.l4 { background: var(--accent); box-shadow: 0 0 6px rgba(120, 165, 185, 0.5); }

.calendar-legend {
  margin-top: 18px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  letter-spacing: 0.05em;
}
.calendar-legend .scale { display: flex; gap: 4px; }
.calendar-legend .scale .sq { width: 12px; height: 12px; border-radius: 3px; }
.calendar-legend .sq-l0 { background: oklch(0.26 0.01 60); }
.calendar-legend .sq-l1 { background: color-mix(in oklab, var(--accent) 25%, oklch(0.26 0.01 60)); }
.calendar-legend .sq-l2 { background: color-mix(in oklab, var(--accent) 50%, oklch(0.26 0.01 60)); }
.calendar-legend .sq-l3 { background: color-mix(in oklab, var(--accent) 75%, oklch(0.26 0.01 60)); }
.calendar-legend .sq-l4 { background: var(--accent); }

.insight-cards { display: flex; flex-direction: column; gap: 16px; }
.insight-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px 28px;
}
.insight-card .icon-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.insight-card .icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: rgba(120, 165, 185, 0.15);
  display: grid; place-items: center;
  color: var(--accent);
  font-family: var(--mono); font-size: 12px;
}
.insight-card .lbl {
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  letter-spacing: 0.08em; text-transform: uppercase;
}
.insight-card h4 { margin: 0 0 8px; }
.insight-card p { font-size: 14px; color: var(--ink-dim); margin: 0; }

.trigger-bars { display: grid; gap: 10px; margin-top: 12px; }
.trigger-bar {
  display: grid; grid-template-columns: 96px 1fr 36px; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-2);
}
.trigger-bar .track {
  height: 8px; background: #1d2022; border-radius: 4px; overflow: hidden;
}
.trigger-bar .fill {
  height: 100%; background: linear-gradient(90deg, var(--accent-deep), var(--accent));
  border-radius: 4px;
  transform-origin: left;
  animation: bar-grow 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- PRICING ---------- */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 64px; }
.price {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 40px;
  position: relative;
  display: flex; flex-direction: column;
}
.price.plus {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(120, 165, 185, 0.18), transparent 55%),
    var(--surface);
  border-color: rgba(120, 165, 185, 0.35);
}
.price .ptag {
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 12px;
}
.price.plus .ptag { color: var(--accent); }
.price h3 { font-size: 32px; margin-bottom: 8px; font-weight: 400; }
.price .desc { color: var(--ink-dim); margin-bottom: 28px; font-size: 15px; }
.price .amt {
  font-family: var(--serif); font-size: 56px; line-height: 1;
  letter-spacing: -0.04em;
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 28px; color: var(--ink); font-weight: 350;
}
.price .amt .per { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); letter-spacing: 0.05em; font-weight: 400; }
.price ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 10px; }
.price ul li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink);
}
.price ul li::before {
  content: ""; width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(120, 165, 185, 0.15);
  border: 1px solid rgba(120, 165, 185, 0.40);
  flex-shrink: 0;
  background-image:
    linear-gradient(45deg, transparent 45%, var(--accent) 45%, var(--accent) 55%, transparent 55%),
    linear-gradient(-45deg, transparent 45%, var(--accent) 45%, var(--accent) 55%, transparent 55%);
}
.price .btn { align-self: flex-start; margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { margin-top: 56px; max-width: 820px; }
.q {
  width: 100%;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 24px;
  transition: color 0.2s;
  background: transparent;
  font-family: inherit;
  text-align: left;
  color: inherit;
}
.q:hover { color: var(--accent); }
.q:last-child { border-bottom: 1px solid var(--line); }
.q .qtext { font-family: var(--serif); font-size: clamp(18px, 2.4vw, 22px); letter-spacing: -0.02em; line-height: 1.2; font-weight: 400; }
.q .plus { font-family: var(--mono); font-size: 18px; color: var(--ink-faint); flex-shrink: 0; transition: transform 0.2s, color 0.2s; }
.q[data-open="true"] .plus { color: var(--accent); transform: rotate(45deg); }
.q-answer {
  display: none;
  font-size: 15px; color: var(--ink-dim);
  max-width: 56ch;
  margin-top: 8px;
}
.q[data-open="true"] .q-answer { display: block; }

/* ---------- CTA ---------- */
.cta-final {
  background:
    radial-gradient(ellipse 70% 60% at 50% 80%, rgba(232, 184, 107, 0.35) 0%, rgba(122, 85, 32, 0.20) 25%, transparent 60%),
    radial-gradient(ellipse 30% 20% at 50% 80%, rgba(250, 220, 170, 0.16) 0%, transparent 60%),
    var(--bg);
  text-align: center;
  padding: 180px 0;
  position: relative;
  overflow: hidden;
}
.cta-final::after {
  content: "";
  position: absolute;
  left: 10%; right: 10%;
  bottom: 33%;
  height: 1px;
  background: radial-gradient(ellipse 50% 100% at 50% 50%, rgba(200, 220, 230, 0.45), transparent 70%);
  pointer-events: none;
}
.cta-final h2 {
  font-size: clamp(36px, 5vw, 76px);
  max-width: 18ch; margin: 0 auto 28px;
  position: relative; z-index: 2;
}
.cta-final p { color: var(--ink-dim); max-width: 50ch; margin: 0 auto 36px; position: relative; z-index: 2; }
.cta-final .btn { position: relative; z-index: 2; }

/* ---------- FOOTER ---------- */
footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-faint);
  background: var(--bg);
}
footer .frow { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; }
footer .flinks { display: flex; gap: 24px; flex-wrap: wrap; }
footer .flinks a { transition: color 0.2s; }
footer .flinks a:hover { color: var(--ink); }
footer .copy {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em;
  margin-top: 24px;
}
footer .ftag {
  margin-top: 14px; max-width: 32ch; color: var(--ink-faint); font-size: 13px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .flow-stage { padding: 48px 40px; }
  .flow-panel { gap: 40px; }
}

@media (max-width: 920px) {
  :root { --gutter: 24px; }
  section { padding: 90px 0; }
  .steps { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-divider { transform: rotate(90deg); padding: 0; height: 30px; width: auto; }
  .insights-grid { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }

  .flow-panel { grid-template-columns: 1fr; gap: 32px; }
  .flow-panel .visual { height: 540px; }
  .flow-stage { padding: 36px 24px; }

  nav .links { display: none; }
  nav.top .inner { padding: 12px 20px; }

  .hero-stage { margin-top: 48px; }
  .orb-frame { height: 300px; }
  .orb { width: 180px; height: 180px; }

  .cta-final { padding: 130px 0; }
  .compare-col { padding: 28px 22px; }
  .chart-card { padding: 28px; }
  .price { padding: 32px 28px; }

  footer .frow { align-items: flex-start; }
}

@media (max-width: 600px) {
  :root { --gutter: 18px; }
  body { font-size: 16px; }
  section { padding: 72px 0; }

  nav.top .inner { padding: 10px 16px; }
  .nav-cta { padding: 10px 16px; font-size: 13px; }
  .nav-cta .arrow { display: none; }

  .hero { padding-top: 110px; padding-bottom: 40px; }
  .hero .badge {
    margin-bottom: 24px;
    font-size: 10.5px;
    padding: 5px 12px 5px 7px;
    letter-spacing: 0.02em;
  }
  .hero h1 {
    font-size: clamp(26px, 8vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.025em;
  }
  .hero .lead { font-size: 16px; margin-top: 20px; max-width: 38ch; }
  .hero .ctas { margin-top: 26px; flex-direction: column; align-items: stretch; width: 100%; max-width: 320px; }
  .hero .ctas .btn { justify-content: center; }
  .hero .meta { gap: 10px; font-size: 10px; }

  .hero-stage { margin-top: 40px; }
  .orb-frame { height: 220px; }
  .orb { width: 140px; height: 140px; }
  .wave { height: 52px; gap: 2px; }
  .wave .bar { width: 3px; }
  .transcript-card {
    padding: 16px 18px;
    font-size: 16px;
    line-height: 1.4;
  }
  .transcript-card .tag { font-size: 12px; padding: 2px 8px; }

  .step { padding: 22px; }
  .step .visual { height: 160px; }

  .flow-stage { padding: 28px 18px; margin-top: 48px; }
  .flow-progress { margin-bottom: 32px; gap: 0; overflow-x: auto; flex-wrap: nowrap; }
  .flow-tab { padding: 12px 14px; font-size: 11px; flex-shrink: 0; }
  .flow-panels { min-height: 720px; }
  .flow-panel { gap: 24px; }
  .flow-panel .visual { height: 460px; }

  .phone { width: 220px; height: 460px; border-radius: 38px; border-width: 6px; }
  .phone .notch { width: 70px; height: 20px; }
  .phone .big-orb { width: 130px; height: 130px; }

  .compare-col { padding: 24px 18px; }
  .compare-col .stat { font-size: 52px; }
  .compare-col .demo { padding: 16px; min-height: 320px; }

  .chart-card { padding: 22px; }
  .calendar { grid-template-columns: repeat(12, 1fr); gap: 4px; }
  .insight-card { padding: 20px 22px; }
  .trigger-bar { grid-template-columns: 80px 1fr 32px; font-size: 10px; }

  .price { padding: 28px 22px; }
  .price h3 { font-size: 28px; }
  .price .amt { font-size: 44px; }

  .faq { margin-top: 40px; }
  .q { padding: 20px 0; gap: 16px; }

  .cta-final { padding: 100px 0; }

  footer { padding: 48px 0 32px; }
  footer .flinks { gap: 16px 20px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 26px; }
  .hero .badge { font-size: 10px; letter-spacing: 0.015em; }
  .flow-tab { padding: 10px 10px; }
  .phone { width: 200px; height: 420px; }
  .phone .big-orb { width: 110px; height: 110px; }
  .compare-col .stat { font-size: 44px; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .orb,
  .mini-orb,
  .voice-demo .demo-orb,
  .phone .big-orb { animation: none !important; }
  .orb::before, .orb::after,
  .phone .big-orb::before, .phone .big-orb::after,
  .tap-ripple,
  .orb-label .live,
  .transcript-card .head .live,
  .voice-foot .dot { animation: none !important; opacity: 0.6; }
  .wave .bar { animation: none !important; height: var(--h, 30px); opacity: 0.7; }
  .transcript-card .word, .transcript-card .tag,
  .phone .live-text .word,
  .tag-cloud .tag-chip,
  .trigger-bar .fill { opacity: 1 !important; transform: none !important; animation: none !important; }
}

/* ============================================================
   App-screen embeds — true reflections of the actual Migrapulse
   app rendered inside an iPhone bezel for the marketing site.
   The app is designed at 402×874 (iPhone artboard) and scaled
   to 0.657 to fit the 264×574 phone interior.
   ============================================================ */

.flow-panel .visual { height: 620px; }

.phone-app {
  width: 280px;
  height: 600px;
  background: #000;
  border: 8px solid #050505;
  border-radius: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.8), inset 0 0 0 1px #1f2224;
  flex-shrink: 0;
}
.phone-app .notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 22px;
  background: #050505;
  border-radius: 999px;
  z-index: 10;
}

.phone-app .app-screen {
  position: absolute;
  inset: 0;
  width: 402px;
  height: 874px;
  transform: scale(0.657);
  transform-origin: top left;
  background: #000;
  font-family: var(--sans);
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

/* Pause animations on inactive flow panels — keeps the page calm. */
.flow-panel:not(.active) .phone-app * { animation-play-state: paused !important; }

/* HorizonGlow background — intensity varies per state. */
.phone-app .horizon-bloom {
  position: absolute;
  left: -20%; right: -20%; bottom: -30%;
  height: 55%;
  pointer-events: none;
  filter: blur(40px);
}
.app-screen[data-state="asking"] .horizon-bloom {
  background: radial-gradient(ellipse 60% 70% at 50% 30%,
    rgba(255, 140, 74, 0.070)   0%,
    rgba(232, 184, 107, 0.098) 18%,
    rgba(168,  99, 42, 0.070)  40%,
    transparent 65%);
}
.app-screen[data-state="listening"] .horizon-bloom {
  background: radial-gradient(ellipse 60% 70% at 50% 30%,
    rgba(255, 140, 74, 0.140)   0%,
    rgba(232, 184, 107, 0.196) 18%,
    rgba(168,  99, 42, 0.140)  40%,
    transparent 65%);
}
.app-screen[data-state="review"] .horizon-bloom {
  background: radial-gradient(ellipse 60% 70% at 50% 30%,
    rgba(255, 140, 74, 0.080)   0%,
    rgba(232, 184, 107, 0.112) 18%,
    rgba(168,  99, 42, 0.080)  40%,
    transparent 65%);
}
.phone-app .grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.app-screen .top-spacer { height: 60px; flex-shrink: 0; }

/* TopBar */
.app-screen .as-topbar {
  padding: 14px 16px 10px;
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 4;
}
.app-screen .as-topbar__cancel {
  background: rgba(255, 240, 220, 0.06);
  border: 1px solid rgba(255, 220, 180, 0.10);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px; font-weight: 400;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: default;
}
.app-screen .as-topbar__speaker {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255, 240, 220, 0.06);
  border: 1px solid rgba(255, 220, 180, 0.10);
  display: grid; place-items: center;
  cursor: default;
}

/* RecHeader */
.app-screen .recheader { padding: 0 24px; position: relative; z-index: 4; }
.app-screen .recheader__row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--sans);
  font-size: 12px; line-height: 1.3; letter-spacing: 0.005em; font-weight: 400;
  color: var(--ink-dim);
  margin-bottom: 8px;
}
.app-screen .recheader__section { display: inline-flex; align-items: center; gap: 8px; }
.app-screen .recheader__target {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
}
.app-screen .recheader__target::after {
  content: ""; width: 4px; height: 4px;
  border-radius: 50%;
}
.app-screen[data-state="asking"]    .recheader__target,
.app-screen[data-state="asking"]    .recheader__target::after { border-color: #a8632a; background: #a8632a; }
.app-screen[data-state="listening"] .recheader__target,
.app-screen[data-state="listening"] .recheader__target::after,
.app-screen[data-state="review"]    .recheader__target,
.app-screen[data-state="review"]    .recheader__target::after { border-color: #e8b86b; background: #e8b86b; }
.app-screen .recheader__target { border-style: solid; border-width: 1.4px; background: transparent; }

.app-screen .recheader__bars { display: flex; gap: 4px; }
.app-screen .recheader__bar {
  flex: 1; height: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, 0.07);
}
.app-screen .recheader__bar--done   { background: rgba(232, 184, 107, 0.32); }
.app-screen[data-state="asking"]    .recheader__bar--active { background: #a8632a; }
.app-screen[data-state="listening"] .recheader__bar--active {
  background: linear-gradient(90deg, #e8b86b, #ffd97a);
  box-shadow: 0 0 8px rgba(232, 184, 107, 0.5);
}

/* Chat area */
.app-screen .chat-area {
  flex: 1; min-height: 0;
  padding: 18px 20px;
  display: flex; flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  overflow: hidden;
  position: relative; z-index: 4;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 56px, black 100%);
          mask-image: linear-gradient(to bottom, transparent 0, black 56px, black 100%);
}
.app-screen .chat-row {
  display: flex; align-items: flex-end; gap: 10px;
  animation: msg-in 0.42s ease forwards;
}
.app-screen .chat-row--ai   { justify-content: flex-start; }
.app-screen .chat-row--user { justify-content: flex-end; }

.app-screen .chat-avatar {
  position: relative;
  width: 26px; height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  background: radial-gradient(circle at 35% 30%,
    rgba(255, 245, 220, 0.95)   0%,
    rgba(255, 217, 122, 0.90)  12%,
    #e8b86b                    40%,
    #a8632a                    75%,
    #2a1408                    100%);
  box-shadow:
    0 0 0 1px rgba(255, 140, 74, 0.5),
    0 0 10px rgba(255, 165, 90, 0.35);
  animation: so-orb-breathe-ask 3.4s ease-in-out infinite;
  margin-bottom: 4px;
}
.app-screen .chat-avatar.is-active {
  animation: so-orb-breathe-listen 1.6s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(255, 140, 74, 0.6),
    0 0 16px rgba(255, 165, 90, 0.55);
}
.app-screen .chat-avatar.is-active::before,
.app-screen .chat-avatar.is-active::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 1px solid rgba(232, 184, 107, 0.45);
  animation: avatar-ring 2.4s ease-out infinite;
  pointer-events: none;
}
.app-screen .chat-avatar.is-active::after { animation-delay: 1.2s; }

.app-screen .chat-bubble--ai {
  max-width: 268px;
  padding: 10px 14px;
  background: rgba(255, 240, 220, 0.05);
  border: 1px solid rgba(255, 220, 180, 0.10);
  border-radius: 16px 16px 16px 6px;
  color: var(--ink-dim);
  font-family: var(--sans);
  font-size: 14.5px; line-height: 1.45;
  letter-spacing: 0; font-weight: 400;
}
.app-screen .chat-bubble--ai strong { color: var(--ink); font-weight: 500; }

.app-screen .chat-bubble--user {
  max-width: 268px;
  padding: 11px 16px;
  background: rgba(232, 184, 107, 0.10);
  border: 1px solid rgba(232, 184, 107, 0.32);
  border-radius: 18px 18px 6px 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px; line-height: 1.25;
  letter-spacing: -0.015em; font-weight: 400;
}
.app-screen .chat-bubble--user.is-active {
  background: rgba(232, 184, 107, 0.14);
  border-color: rgba(232, 184, 107, 0.5);
  box-shadow:
    0 0 0 1px rgba(232, 184, 107, 0.10),
    0 0 28px rgba(232, 184, 107, 0.16);
}
.app-screen .ti-cursor {
  display: inline-block;
  width: 2px; height: 0.85em;
  background: #e8b86b;
  margin-left: 4px; vertical-align: -2px;
  box-shadow: 0 0 6px #e8b86b;
  animation: ti-blink 0.9s steps(2) infinite;
}

.app-screen .speaker-caption {
  margin-top: 6px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.app-screen .listener-caption {
  margin-top: 6px; margin-right: 4px;
  display: inline-flex; align-items: center; gap: 8px;
  justify-content: flex-end;
  font-family: var(--sans);
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.app-screen .speaker-caption .label-active,
.app-screen .listener-caption .label-active { color: #e8b86b; }
.app-screen .listener-caption__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #e8b86b;
  box-shadow: 0 0 8px #e8b86b;
  animation: so-orb-breathe-listen 1.6s ease-in-out infinite;
}
.app-screen .speaking-dots { display: inline-flex; align-items: center; gap: 3px; }
.app-screen .speaking-dots__d {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: #e8b86b;
  box-shadow: 0 0 6px rgba(232, 184, 107, 0.6);
  animation: speaking-dot 1.2s ease-in-out infinite;
}
.app-screen .speaking-dots__d:nth-child(2) { animation-delay: 0.18s; }
.app-screen .speaking-dots__d:nth-child(3) { animation-delay: 0.36s; }

.app-screen .ti-w {
  display: inline-block;
  opacity: 0;
  animation: ti-fade 0.45s ease forwards;
}

/* Mic strip */
.app-screen .mic-strip {
  margin: 28px 28px 10px;
  display: flex; align-items: center; gap: 10px;
  position: relative; z-index: 4;
}
.app-screen[data-state="asking"] .mic-strip { opacity: 0.55; }
.app-screen .session-orb-mini {
  width: 30px; height: 30px;
  border-radius: 50%;
  flex-shrink: 0;
}
.app-screen[data-state="listening"] .session-orb-mini {
  background: radial-gradient(circle at 35% 30%,
    rgba(255, 245, 220, 0.95)   0%,
    rgba(255, 217, 122, 0.90)  12%,
    #e8b86b                    40%,
    #a8632a                    75%,
    #2a1408                    100%);
  box-shadow:
    0 0 0 1px rgba(255, 140, 74, 0.5),
    0 0 12px rgba(255, 165, 90, 0.5);
}
.app-screen[data-state="asking"] .session-orb-mini {
  background: radial-gradient(circle at 35% 30%,
    rgba(180, 130,  90, 0.55)   0%,
    rgba( 70,  40,  18, 0.85)  50%,
    #0a0604                    96%);
  border: 1px solid rgba(232, 184, 107, 0.22);
  box-shadow:
    inset 0 -3px 8px rgba(0, 0, 0, 0.6),
    0 0 14px rgba(168, 99, 42, 0.22);
  animation: so-orb-breathe-ask 3.4s ease-in-out infinite;
}
.app-screen .voice-bars {
  flex: 1;
  display: flex; align-items: center; gap: 2px;
  height: 22px;
}
.app-screen .voice-bar {
  flex: 1; height: 22px;
  border-radius: 1px;
  transform-origin: center;
  background: linear-gradient(180deg, #ffd97a, #e8b86b);
}
.app-screen[data-state="listening"] .voice-bar {
  filter: drop-shadow(0 0 2px #e8b86b);
  animation-name: so-bar;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.app-screen[data-state="asking"] .voice-bar {
  transform: scaleY(0.18);
  opacity: 0.35;
}
.app-screen .live-label,
.app-screen .standby-label {
  font-family: var(--sans);
  font-size: 12px; line-height: 1.3; letter-spacing: 0.005em; font-weight: 400;
}
.app-screen .live-label { color: #e8b86b; }
.app-screen .standby-label { color: var(--ink-dim); }

.app-screen .voice-hint {
  font-family: var(--sans);
  font-size: 12px; line-height: 1.3; letter-spacing: 0.005em; font-weight: 400;
  color: var(--ink-faint);
  text-align: center;
  margin-bottom: 14px;
  position: relative; z-index: 4;
}
.app-screen .actions {
  display: flex; gap: 10px;
  padding: 0 20px 24px;
  position: relative; z-index: 4;
}
.app-screen .as-btn {
  flex: 1;
  padding: 14px 16px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px; font-weight: 500;
  cursor: default;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none;
}
.app-screen .as-btn--primary { background: var(--ink); color: #1a0d05; }
.app-screen .as-btn--primary .as-btn__chip {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #1a0d05;
  color: #ffd97a;
  display: inline-grid; place-items: center;
  font-size: 11px;
}
.app-screen .as-btn--ghost {
  background: transparent;
  border: 1px solid rgba(232, 184, 107, 0.40);
  color: var(--ink);
}
.app-screen .as-btn--ghost .as-btn__chip {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid #e8b86b;
  color: #e8b86b;
  display: inline-grid; place-items: center;
  font-size: 10px;
}

/* Per-bar timing (32 bars) for the open mic strip */
.app-screen[data-state="listening"] .voice-bar:nth-child(1)  { opacity: 0.60; animation-duration: 0.45s; animation-delay: 0.00s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(2)  { opacity: 0.68; animation-duration: 0.55s; animation-delay: 0.03s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(3)  { opacity: 0.76; animation-duration: 0.65s; animation-delay: 0.06s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(4)  { opacity: 0.84; animation-duration: 0.75s; animation-delay: 0.09s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(5)  { opacity: 0.92; animation-duration: 0.45s; animation-delay: 0.12s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(6)  { opacity: 0.60; animation-duration: 0.55s; animation-delay: 0.15s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(7)  { opacity: 0.68; animation-duration: 0.65s; animation-delay: 0.18s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(8)  { opacity: 0.76; animation-duration: 0.75s; animation-delay: 0.21s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(9)  { opacity: 0.84; animation-duration: 0.45s; animation-delay: 0.24s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(10) { opacity: 0.92; animation-duration: 0.55s; animation-delay: 0.27s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(11) { opacity: 0.60; animation-duration: 0.65s; animation-delay: 0.30s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(12) { opacity: 0.68; animation-duration: 0.75s; animation-delay: 0.33s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(13) { opacity: 0.76; animation-duration: 0.45s; animation-delay: 0.36s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(14) { opacity: 0.84; animation-duration: 0.55s; animation-delay: 0.39s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(15) { opacity: 0.92; animation-duration: 0.65s; animation-delay: 0.42s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(16) { opacity: 0.60; animation-duration: 0.75s; animation-delay: 0.45s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(17) { opacity: 0.68; animation-duration: 0.45s; animation-delay: 0.48s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(18) { opacity: 0.76; animation-duration: 0.55s; animation-delay: 0.51s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(19) { opacity: 0.84; animation-duration: 0.65s; animation-delay: 0.54s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(20) { opacity: 0.92; animation-duration: 0.75s; animation-delay: 0.57s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(21) { opacity: 0.60; animation-duration: 0.45s; animation-delay: 0.60s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(22) { opacity: 0.68; animation-duration: 0.55s; animation-delay: 0.63s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(23) { opacity: 0.76; animation-duration: 0.65s; animation-delay: 0.66s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(24) { opacity: 0.84; animation-duration: 0.75s; animation-delay: 0.69s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(25) { opacity: 0.92; animation-duration: 0.45s; animation-delay: 0.72s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(26) { opacity: 0.60; animation-duration: 0.55s; animation-delay: 0.75s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(27) { opacity: 0.68; animation-duration: 0.65s; animation-delay: 0.78s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(28) { opacity: 0.76; animation-duration: 0.75s; animation-delay: 0.81s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(29) { opacity: 0.84; animation-duration: 0.45s; animation-delay: 0.84s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(30) { opacity: 0.92; animation-duration: 0.55s; animation-delay: 0.87s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(31) { opacity: 0.60; animation-duration: 0.65s; animation-delay: 0.90s; }
.app-screen[data-state="listening"] .voice-bar:nth-child(32) { opacity: 0.68; animation-duration: 0.75s; animation-delay: 0.93s; }

/* Review screen — R5_Review in the actual app */
.app-screen .review-header {
  padding: 14px 20px 8px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 4;
}
.app-screen .review-header__back,
.app-screen .review-header__edit {
  background: transparent; border: none;
  font-family: var(--sans); font-size: 14px; cursor: default;
}
.app-screen .review-header__back  { color: var(--ink-dim); }
.app-screen .review-header__edit  { color: #e8b86b; }
.app-screen .review-header__title {
  font-family: var(--sans); font-size: 14.5px; font-weight: 500;
  color: var(--ink);
}
.app-screen .review-body {
  flex: 1; min-height: 0;
  padding: 20px 20px 0;
  position: relative; z-index: 4;
  overflow: hidden;
}
.app-screen .review-label {
  font-family: var(--sans); font-size: 12px;
  color: var(--ink-dim);
  margin-bottom: 10px;
}
.app-screen .review-voicelog {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 240, 220, 0.04);
  border: 1px solid rgba(255, 220, 180, 0.08);
  margin-bottom: 28px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.app-screen .review-voicelog__text {
  font-family: var(--serif); font-size: 18px; line-height: 1.3;
  color: var(--ink); letter-spacing: -0.005em;
}
.app-screen .review-voicelog__play {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(232, 184, 107, 0.10);
  border: 1px solid rgba(232, 184, 107, 0.28);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.app-screen .review-row {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
}
.app-screen .review-row__title {
  font-family: var(--sans); font-size: 14.5px; font-weight: 500;
  color: var(--ink);
}
.app-screen .review-row__meta {
  font-family: var(--sans); font-size: 12px;
  color: var(--ink-dim);
}
.app-screen .severity-pips {
  display: flex; gap: 4px; margin-bottom: 28px;
}
.app-screen .severity-pip {
  flex: 1; aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 11px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-faint);
}
.app-screen .severity-pip--filled {
  border-color: rgba(232, 184, 107, 0.5);
  background: radial-gradient(circle at 35% 30%, rgba(232, 184, 107, 0.55), rgba(232, 184, 107, 0.25));
  color: var(--ink);
}
.app-screen .severity-pip--active {
  border: 1.5px solid rgba(255, 140, 74, 1);
  background: radial-gradient(circle at 35% 30%, rgba(255, 140, 74, 0.55), rgba(255, 140, 74, 0.25));
  color: var(--ink);
  box-shadow: 0 0 14px rgba(255, 140, 74, 0.55);
}
.app-screen .symptom-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.app-screen .symptom-chip {
  padding: 7px 12px;
  border-radius: 999px;
  font-family: var(--sans); font-size: 12.5px;
  background: rgba(255, 240, 220, 0.04);
  border: 1px solid rgba(255, 220, 180, 0.08);
  color: var(--ink-dim);
  display: inline-flex; align-items: center; gap: 5px;
}
.app-screen .symptom-chip--on {
  background: rgba(232, 184, 107, 0.12);
  border: 1px solid rgba(232, 184, 107, 0.40);
  color: var(--ink);
}
.app-screen .symptom-chip--on::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #e8b86b;
}

/* App-screen keyframes */
@keyframes ti-fade {
  from { opacity: 0; filter: blur(4px); transform: translateY(2px); }
  to   { opacity: 1; filter: blur(0);   transform: translateY(0); }
}
@keyframes ti-blink { 50% { opacity: 0; } }
@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes so-orb-breathe-listen {
  0%, 100% { transform: scale(1);     filter: brightness(1.05); }
  50%      { transform: scale(1.045); filter: brightness(1.18); }
}
@keyframes so-orb-breathe-ask {
  0%, 100% { transform: scale(1);     filter: brightness(0.95); }
  50%      { transform: scale(1.015); filter: brightness(1.02); }
}
@keyframes so-bar {
  0%, 100% { transform: scaleY(0.35); }
  50%      { transform: scaleY(1);    }
}
@keyframes avatar-ring {
  0%   { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.7); opacity: 0;   }
}
@keyframes speaking-dot {
  0%, 100% { transform: translateY(0);    opacity: 0.45; }
  50%      { transform: translateY(-2px); opacity: 1;    }
}

/* =====================================================================
   SUBPAGES (contact, legal/*) — built on the home page's existing
   .sec-head + .faq components, with section rhythm matching .hero /
   regular <section> on the home page.
   ===================================================================== */

.is-subpage { background: var(--bg); }

/* matches home <section> padding rhythm (120px) plus extra top space
   for the fixed nav and a generous breath above the eyebrow. */
.subpage {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
}
.subpage::before {
  /* same horizon glow as the home hero, dialled back */
  content: "";
  position: absolute;
  left: -10%; right: -10%;
  top: -25%;
  height: 80%;
  background:
    radial-gradient(ellipse 55% 50% at 50% 65%, rgba(232, 184, 107, 0.16), transparent 55%),
    radial-gradient(ellipse 30% 22% at 50% 70%, rgba(244, 208, 147, 0.08), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}
.subpage > .wrap { position: relative; z-index: 2; }
.subpage > .stars { z-index: 1; }

/* The page's H1 IS the sec-head's main heading, sized like a home h2
   (the page itself is one section of the site). */
.subpage .sec-head h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

/* FAQ section on subpages — uses its own <section> so it inherits
   the home page's section padding rhythm exactly. */
.subpage-faq {
  position: relative;
  padding: 80px 0 140px;
}

/* ---------- contact ---------- */
.contact-card {
  margin: 72px 0 0;
  max-width: 720px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 184, 107, 0.14), transparent 55%),
    var(--surface);
  border: 1px solid rgba(232, 184, 107, 0.30);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  display: flex; flex-direction: column; gap: 22px;
  position: relative;
  overflow: hidden;
}
.contact-card .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0;
  align-self: flex-start;
}
.contact-card .label::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.contact-card .email {
  font-family: var(--serif);
  font-size: clamp(28px, 4.2vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--accent);
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s;
  align-self: flex-start;
}
.contact-card .email:hover { color: var(--accent-glow); }
.contact-card__meta {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin: 0;
  max-width: 52ch;
}

/* ---------- long-form (legal pages) ---------- */
.long-form {
  max-width: 720px;
  margin: 64px 0 0;
  position: relative;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-2);
}

.long-form .last-updated {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 56px;
}
.long-form .last-updated::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.long-form h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 500;
  margin: 88px 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
.long-form h2:first-of-type,
.long-form > .last-updated + h2 { margin-top: 0; }

.long-form h3 {
  font-family: var(--serif);
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 44px 0 14px;
  color: var(--ink);
}

.long-form p {
  margin: 0 0 22px;
  color: var(--ink-2);
  text-wrap: pretty;
}
.long-form p:last-child { margin-bottom: 0; }

.long-form ul,
.long-form ol {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.long-form li {
  position: relative;
  margin-bottom: 12px;
  color: var(--ink-2);
  line-height: 1.55;
}
.long-form li:last-child { margin-bottom: 0; }

.long-form ul > li {
  padding-left: 26px;
}
.long-form ul > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.7em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 5px rgba(232, 184, 107, 0.4);
}

.long-form ol { counter-reset: lf-ol; }
.long-form ol > li {
  counter-increment: lf-ol;
  padding-left: 36px;
}
.long-form ol > li::before {
  content: counter(lf-ol) ".";
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1.7;
}

.long-form a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(232, 184, 107, 0.35);
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.long-form a:hover {
  color: var(--accent-glow);
  text-decoration-color: var(--accent-glow);
}

.long-form strong { color: var(--ink); font-weight: 500; }
.long-form em { font-style: italic; color: var(--ink-2); }

/* Summary callout — same family as .price.plus / .compare-col.good cards. */
.legal-summary {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(232, 184, 107, 0.14), transparent 55%),
    var(--surface);
  border: 1px solid rgba(232, 184, 107, 0.30);
  border-radius: var(--r-xl);
  padding: 36px 40px;
  margin: 0 0 16px;
  position: relative;
  overflow: hidden;
}
.legal-summary .summary-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 22px;
  display: inline-flex; align-items: center; gap: 10px;
  line-height: 1;
}
.legal-summary .summary-label::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.legal-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.legal-summary li {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 12px;
  padding-left: 26px;
  color: var(--ink-2);
  position: relative;
}
.legal-summary li:last-child { margin-bottom: 0; }
.legal-summary li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.65em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(232, 184, 107, 0.5);
}

/* Don't double-space when an h2 immediately follows the summary card. */
.long-form > .legal-summary + h2 { margin-top: 56px; }

.long-form__sign-off {
  margin: 88px 0 0;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  font-size: 16px;
  color: var(--ink-dim);
}
.long-form__sign-off em { color: var(--ink-dim); }

@media (max-width: 920px) {
  .subpage { padding: 150px 0 100px; }
  .subpage-faq { padding-bottom: 110px; }
  .contact-card { padding: 44px 36px; margin-top: 56px; }
  .long-form { margin-top: 56px; }
  .long-form h2 { margin-top: 72px; }
  .legal-summary { padding: 32px 30px; }
}

@media (max-width: 600px) {
  .subpage { padding: 120px 0 80px; }
  .subpage-faq { padding-bottom: 90px; }
  .contact-card {
    padding: 36px 24px;
    margin-top: 48px;
    border-radius: var(--r-lg);
    gap: 18px;
  }
  .contact-card .email { font-size: clamp(24px, 7vw, 32px); }
  .contact-card__meta { font-size: 15px; }
  .long-form { font-size: 16px; margin-top: 40px; }
  .long-form h2 { margin: 64px 0 18px; }
  .long-form h3 { margin: 36px 0 14px; }
  .long-form .last-updated { margin-bottom: 40px; }
  .long-form > .legal-summary + h2 { margin-top: 48px; }
  .legal-summary { padding: 28px 24px; border-radius: var(--r-lg); }
  .legal-summary li { font-size: 15px; }
  .long-form__sign-off { margin-top: 64px; padding-top: 32px; }
}
