/* ============================================================
   Appi — visual system
   ============================================================ */

:root {
  --bg: #0a0a0c;
  --bg-2: #0f0f12;
  --bg-3: #14141a;
  --line: rgba(245, 244, 238, 0.08);
  --line-2: rgba(245, 244, 238, 0.16);
  --fg: #f5f4ee;
  --fg-dim: rgba(245, 244, 238, 0.62);
  --fg-mute: rgba(245, 244, 238, 0.38);
  --fg-faint: rgba(245, 244, 238, 0.18);

  --warm: oklch(0.82 0.10 65);   /* amber */
  --cool: oklch(0.78 0.08 240);  /* digital blue */
  --warm-dim: oklch(0.82 0.10 65 / 0.22);
  --cool-dim: oklch(0.78 0.08 240 / 0.22);

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', monospace;

  --section-pad-y: clamp(80px, 14vw, 200px);
  --max-w: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(1200px 800px at 70% -10%, rgba(255,200,140,0.05), transparent 60%),
    radial-gradient(1000px 700px at -10% 30%, rgba(140,180,255,0.04), transparent 60%),
    var(--bg);
}

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

/* ----------------------------- type ----------------------------- */

.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0.02em; text-transform: uppercase; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 14px var(--warm);
}

/* Editorial chapter marker — promoted from eyebrow.
   Used on each major section: big italic serif number,
   horizontal rule, then the topic title in small caps. */
.chapter-mark {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  margin-bottom: 28px;
}
.chapter-mark .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(64px, 8vw, 96px);
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: var(--warm);
  text-shadow: 0 0 32px oklch(0.82 0.10 65 / 0.35);
  flex: 0 0 auto;
}
.chapter-mark .meta {
  padding-bottom: 12px;
  flex: 1;
  min-width: 0;
}
.chapter-mark .meta .label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-mute);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.chapter-mark .meta .label::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 12px var(--warm);
}
.chapter-mark .meta .topic {
  display: block;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  margin-top: 10px;
}
.chapter-mark .meta .rule {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, var(--warm), transparent);
  margin-top: 14px;
}
@media (max-width: 720px) {
  .chapter-mark { gap: 16px; }
  .chapter-mark .num { font-size: 56px; }
}

h1, h2, h3 { margin: 0; font-weight: 400; }

h1.display {
  font-family: var(--serif);
  font-size: clamp(54px, 9.5vw, 144px);
  line-height: 0.95;
  letter-spacing: -0.025em;
}
h1.display em { font-style: italic; color: var(--fg-dim); }

h2.section-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  max-width: 18ch;
}
h2.section-title em { font-style: italic; color: var(--fg-dim); }

h3.sub {
  font-family: var(--serif);
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p.lede {
  font-size: clamp(17px, 1.3vw, 20px);
  line-height: 1.55;
  color: var(--fg-dim);
  max-width: 56ch;
}

p.body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-dim);
  max-width: 52ch;
}

/* ----------------------------- layout ----------------------------- */

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

section.section {
  padding: var(--section-pad-y) 0;
  position: relative;
  border-top: 1px solid var(--line);
}

section.section:first-of-type { border-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 60px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 96px);
}
.section-head .right { padding-top: 12px; }
@media (max-width: 860px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ----------------------------- nav ----------------------------- */

nav.top {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  background: linear-gradient(to bottom, rgba(10,10,12,0.7), rgba(10,10,12,0));
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
nav.top.scrolled {
  background: rgba(10,10,12,0.78);
  border-bottom-color: var(--line);
}
.brand {
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand .lume-mark {
  display: block;
  filter: drop-shadow(0 0 8px oklch(0.82 0.10 65 / 0.4));
}
.brand .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--warm);
  box-shadow: 0 0 10px var(--warm);
}
.nav-links {
  display: flex; gap: 28px;
  font-size: 13px;
  color: var(--fg-dim);
}
.nav-links a:hover { color: var(--fg); }
@media (max-width: 720px) { .nav-links { display: none; } }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: -0.005em;
  border: 1px solid var(--line-2);
  background: rgba(245,244,238,0.04);
  color: var(--fg);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { background: rgba(245,244,238,0.08); border-color: rgba(245,244,238,0.28); }
.btn.primary {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.btn.primary:hover { background: #fff; transform: translateY(-1px); }
.btn .arrow {
  display: inline-block;
  transition: transform 0.2s;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  padding: 140px 0 80px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-copy .eyebrow { margin-bottom: 28px; }
.hero-copy h1 { margin-bottom: 28px; }
.hero-copy p.lede { margin-bottom: 36px; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-mute);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before {
  content: "";
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--fg-mute);
}

/* hero stage with Lume — the official Appi character */
.hero-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
}

.hero-stage .lume-hero {
  position: absolute;
  inset: 18% 18% 18% 18%;
  display: grid;
  place-items: center;
}
.hero-stage .lume-hero svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* shared Lume animations (used here + chat avatar) */
@keyframes lume-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes lume-blink   { 0%, 92%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.08); } }
@keyframes lume-pulse   { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

.lume-breathe { animation: lume-breathe 5s ease-in-out infinite; }
.lume-blink-l { animation: lume-blink   5.5s ease-in-out infinite; }
.lume-blink-r { animation: lume-blink   5.5s ease-in-out infinite; animation-delay: 0.08s; }
.lume-pulse   { animation: lume-pulse   4s ease-in-out infinite; }

.hero-stage svg.orbits {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  animation: orbit-rot 80s linear infinite;
}
@keyframes orbit-rot { to { transform: rotate(360deg); } }

.hero-stage .particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particles .p {
  position: absolute;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--fg);
  opacity: 0.4;
  animation: drift 14s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translate(0,0); opacity: 0.4; }
  50% { transform: translate(var(--dx, 10px), var(--dy, -16px)); opacity: 0.8; }
}

/* ============================================================
   SECTION: VOID OF MEANING
   ============================================================ */

.void-stage {
  position: relative;
  aspect-ratio: 1.2/1;
  max-width: 720px;
  margin: 0 auto;
}
.void-stage .void-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,20,26,0.95), rgba(10,10,12,1));
  border: 1px dashed rgba(245,244,238,0.18);
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic;
  font-size: 13px; color: var(--fg-mute);
}
.void-stage .void-rings {
  position: absolute; inset: 0;
}
.void-stage .ring {
  position: absolute;
  border: 1px dashed var(--line);
  border-radius: 50%;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  animation: ring-rot 60s linear infinite;
}
.void-stage .ring.r1 { width: 36%; height: 36%; }
.void-stage .ring.r2 { width: 60%; height: 60%; animation-duration: 90s; animation-direction: reverse; }
.void-stage .ring.r3 { width: 88%; height: 88%; animation-duration: 140s; }
@keyframes ring-rot { to { transform: translate(-50%,-50%) rotate(360deg); } }

.void-stage .icon-orbit {
  position: absolute;
  left: 50%; top: 50%;
  width: 1px; height: 1px;
  animation: ring-rot 90s linear infinite;
}
.void-stage .icon-orbit.fast { animation-duration: 55s; }
.void-stage .icon-orbit.slow { animation-duration: 140s; animation-direction: reverse; }

.orbit-chip {
  position: absolute;
  transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(20,20,26,0.85);
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  white-space: nowrap;
  /* counter-rotate to stay upright */
  animation: ring-rot 90s linear infinite reverse;
}
.icon-orbit.fast .orbit-chip { animation-duration: 55s; animation-direction: normal; }
.icon-orbit.slow .orbit-chip { animation-duration: 140s; animation-direction: normal; }
.orbit-chip .glyph {
  display: inline-grid; place-items: center;
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--fg);
  color: var(--bg);
  font-family: var(--serif);
  font-size: 11px;
  font-weight: 500;
}

/* graph */
.graph {
  margin-top: 80px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 36px 24px;
  position: relative;
  overflow: hidden;
}
.graph-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 24px; gap: 24px; flex-wrap: wrap;
}
.graph-head h4 { margin: 0; font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; }
.legend { display: flex; gap: 20px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-dim); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .sw { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legend .sw.cool { background: var(--cool); box-shadow: 0 0 10px var(--cool-dim); }
.legend .sw.warm { background: var(--warm); box-shadow: 0 0 10px var(--warm-dim); }
.graph svg { display: block; width: 100%; height: auto; }
.graph .x-axis {
  display: flex; justify-content: space-between; margin-top: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--fg-mute);
}

/* annotation overlay */
.graph-callout {
  position: absolute;
  padding: 8px 12px;
  background: rgba(20,20,26,0.92);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-dim);
}

/* ----- daily loop treadmill ----- */

.day-loop {
  margin-top: 80px;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px 32px 28px;
  position: relative;
}
.day-loop-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 28px; gap: 24px; flex-wrap: wrap;
}
.day-loop-head h4 { margin: 0; font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; }
.day-loop-head .meta { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute); }

.track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  padding: 24px 0 40px;
}
.track::before {
  content: "";
  position: absolute;
  left: 8.33%; right: 8.33%;
  top: 50%;
  height: 1px;
  background: var(--line-2);
  transform: translateY(-50%);
}
.station {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
}
.station .node {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic;
  font-size: 16px; color: var(--fg-mute);
  position: relative;
  z-index: 2;
  transition: all 0.5s;
}
.station.active .node {
  background: var(--warm);
  border-color: var(--warm);
  color: var(--bg);
  font-style: normal;
  box-shadow: 0 0 24px var(--warm), 0 0 4px var(--warm);
}
.station .when {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-mute);
}
.station .what {
  font-family: var(--serif); font-size: 17px;
  letter-spacing: -0.005em; color: var(--fg);
}
.station.active .what { color: var(--fg); }
.station.active .when { color: var(--warm); }

.track-loop {
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 24px;
  pointer-events: none;
}
.track-loop svg { width: 100%; height: 100%; display: block; overflow: visible; }
.track-loop .label {
  position: absolute;
  left: 50%; bottom: -22px;
  transform: translateX(-50%);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-mute);
  background: var(--bg-2);
  padding: 0 12px;
}

/* ============================================================
   RADICAL FREEDOM
   ============================================================ */

.freedom-stage {
  position: relative;
  aspect-ratio: 1.2/1;
  width: 100%;
  margin-top: 24px;
}
.freedom-stage svg { width: 100%; height: 100%; display: block; }

.freedom-stage .anchor {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 14px; height: 14px;
  background: var(--fg);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(245,244,238,0.5);
  z-index: 2;
}
.freedom-stage .anchor::after {
  content: "you are here";
  position: absolute; left: 22px; top: -2px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-dim); white-space: nowrap;
}

.choice-chip {
  position: absolute;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 6px 10px;
  background: rgba(20,20,26,0.85);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  animation: chip-float 6s ease-in-out infinite;
}
@keyframes chip-float {
  0%, 100% { transform: translate(-50%, -50%); opacity: 0.6; }
  50% { transform: translate(-50%, calc(-50% - 4px)); opacity: 1; }
}

/* comparison bars */
.then-now {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 60px;
}
@media (max-width: 720px) { .then-now { grid-template-columns: 1fr; } }
.tn-card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  min-height: 200px;
  position: relative;
}
.tn-card .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute); }
.tn-card h4 { margin: 8px 0 18px; font-family: var(--serif); font-size: 26px; letter-spacing: -0.01em; }
.tn-bars { display: flex; gap: 6px; align-items: flex-end; height: 80px; margin: 24px 0; }
.tn-bars i {
  flex: 1;
  background: linear-gradient(to top, var(--fg-faint), var(--fg-mute));
  border-radius: 3px 3px 0 0;
  transition: height 1.4s cubic-bezier(.2,.7,.2,1);
}
.tn-card.now .tn-bars i { background: linear-gradient(to top, var(--warm-dim), var(--warm)); }
.tn-card .legend-mini { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute); }

/* ============================================================
   COMPULSIVE DESIRES — cycle
   ============================================================ */

.cycle-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 860px) { .cycle-wrap { grid-template-columns: 1fr; } }

.cycle-stage {
  position: relative;
  aspect-ratio: 1/1;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}
.cycle-stage svg.cycle-track { position: absolute; inset: 0; width: 100%; height: 100%; }

.cycle-node {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center;
}
.cycle-node .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-2);
  border: 1.5px solid var(--line-2);
  transition: all 0.4s;
}
.cycle-node .dot.active {
  background: var(--warm);
  border-color: var(--warm);
  box-shadow: 0 0 16px var(--warm), 0 0 4px var(--warm);
}
.cycle-node .lbl {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-dim);
}
.cycle-node.active .lbl { color: var(--fg); }

.cycle-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--fg-mute);
  max-width: 130px;
  line-height: 1.4;
}

.loop-examples { display: flex; flex-direction: column; gap: 14px; }
.loop-examples .loop-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(20,20,26,0.5), transparent);
  font-size: 14px; color: var(--fg-dim);
  transition: border-color 0.4s, background 0.4s;
}
.loop-examples .loop-row .idx { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--fg-mute); width: 30px; }
.loop-examples .loop-row .name { color: var(--fg); flex: 1; }
.loop-examples .loop-row .trail { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--fg-mute); text-transform: uppercase; }

/* ============================================================
   ACT EXPLAINED
   ============================================================ */

.act-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-2);
}
@media (max-width: 860px) { .act-split { grid-template-columns: 1fr; } }
.act-panel {
  padding: 36px 32px 32px;
  position: relative;
  min-height: 480px;
  display: flex; flex-direction: column;
}
.act-panel.left { border-right: 1px solid var(--line); }
@media (max-width: 860px) {
  .act-panel.left { border-right: 0; border-bottom: 1px solid var(--line); }
}
.act-panel .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-mute); }
.act-panel h4 { margin: 10px 0 4px; font-family: var(--serif); font-size: 30px; letter-spacing: -0.012em; }
.act-panel p { font-size: 14px; line-height: 1.55; color: var(--fg-dim); max-width: 40ch; margin: 4px 0 0; }

.act-scene {
  position: relative;
  flex: 1;
  margin-top: 28px;
  min-height: 260px;
}
.act-scene svg { width: 100%; height: 100%; display: block; }
.act-scene .scene-label {
  position: absolute;
  bottom: 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--fg-mute);
}

/* framework diagram */
.framework {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .framework { grid-template-columns: 1fr; } }

.fw-diagram {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.fw-diagram svg { width: 100%; height: 100%; }
.fw-node {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 12px 18px;
  background: rgba(20,20,26,0.95);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--serif); font-size: 18px; letter-spacing: -0.005em;
  white-space: nowrap;
}
.fw-node.values { border-color: oklch(0.82 0.10 65 / 0.6); color: var(--warm); }

.fw-example {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
}
.fw-example .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg-mute); }
.fw-example .thought { font-family: var(--serif); font-style: italic; font-size: 24px; letter-spacing: -0.01em; margin: 14px 0 24px; line-height: 1.3; }
.fw-example .responses { display: grid; gap: 14px; }
.fw-example .resp {
  padding: 14px 16px;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.fw-example .resp .kind { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute); }
.fw-example .resp.old .body { font-size: 14px; color: var(--fg-dim); margin-top: 6px; line-height: 1.5; }
.fw-example .resp.act { border-color: oklch(0.82 0.10 65 / 0.4); background: linear-gradient(180deg, oklch(0.82 0.10 65 / 0.08), var(--bg-3)); }
.fw-example .resp.act .body { font-size: 15px; color: var(--fg); margin-top: 6px; line-height: 1.5; font-family: var(--serif); font-style: italic; letter-spacing: -0.005em; }

/* ============================================================
   APPI IN PRACTICE — animated chat UI
   ============================================================ */

.appi-mock {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 980px) { .appi-mock { grid-template-columns: 1fr; gap: 48px; } }

.mock-copy h3 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
}
.mock-copy h3 em { font-style: italic; color: var(--fg-dim); }
.mock-copy p.lede { margin-bottom: 24px; }
.mock-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 28px;
}
.mock-tags span {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-dim);
  padding: 6px 12px;
  background: rgba(245,244,238,0.04);
  border: 1px solid var(--line-2);
  border-radius: 999px;
}

.phone {
  position: relative;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  aspect-ratio: 9 / 18.5;
  background: linear-gradient(180deg, #1a1a1f, #0e0e12);
  border-radius: 44px;
  border: 1px solid rgba(245,244,238,0.10);
  padding: 14px;
  box-shadow:
    0 60px 120px -40px rgba(0,0,0,0.8),
    0 0 0 1px rgba(245,244,238,0.04),
    inset 0 1px 0 rgba(255,255,255,0.06);
}
.phone::before {
  content: "";
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 100px; height: 28px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}

.phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #0a0a0c 0%, #131316 100%);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

.phone-header {
  padding: 56px 20px 16px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--line);
}
.phone-header .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 14px var(--warm-dim);
  flex: 0 0 32px;
  display: grid;
  place-items: center;
}
.phone-header .avatar svg { width: 100%; height: 100%; display: block; }
.phone-header .who { line-height: 1.15; }
.phone-header .who .name { font-family: var(--serif); font-size: 17px; }
.phone-header .who .status { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: var(--warm); text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.phone-header .who .status::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--warm); box-shadow: 0 0 8px var(--warm);
  animation: pulse 1.8s ease-in-out infinite;
}

.phone-body {
  flex: 1;
  padding: 16px 16px 12px;
  display: flex; flex-direction: column;
  gap: 10px;
  overflow: hidden;
  position: relative;
}
.bubble {
  max-width: 82%;
  padding: 11px 14px;
  border-radius: 18px;
  font-size: 13.5px;
  line-height: 1.45;
  letter-spacing: -0.005em;
  opacity: 0;
  transform: translateY(6px);
  animation: bubble-in 0.6s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes bubble-in {
  to { opacity: 1; transform: none; }
}
.bubble.user {
  background: rgba(245,244,238,0.08);
  color: var(--fg);
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}
.bubble.appi {
  background: oklch(0.82 0.10 65 / 0.16);
  border: 1px solid oklch(0.82 0.10 65 / 0.28);
  color: var(--fg);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}
.bubble.appi.serif { font-family: var(--serif); font-style: italic; font-size: 15.5px; letter-spacing: -0.005em; }
.bubble.appi .label-tag {
  display: block;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm);
  margin-bottom: 4px;
}
.bubble.typing {
  display: inline-flex; align-items: center; gap: 4px;
  align-self: flex-start;
  background: oklch(0.82 0.10 65 / 0.10);
  border: 1px solid oklch(0.82 0.10 65 / 0.22);
  padding: 13px 14px;
}
.bubble.typing i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--warm);
  animation: typing 1.2s ease-in-out infinite;
}
.bubble.typing i:nth-child(2) { animation-delay: 0.15s; }
.bubble.typing i:nth-child(3) { animation-delay: 0.30s; }
@keyframes typing {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.phone-footer {
  padding: 10px 14px 24px;
  border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.phone-footer .input {
  flex: 1;
  height: 36px;
  border-radius: 999px;
  background: rgba(245,244,238,0.04);
  border: 1px solid var(--line-2);
  display: flex; align-items: center;
  padding: 0 14px;
  font-size: 12.5px;
  color: var(--fg-mute);
  font-style: italic;
}
.phone-footer .send {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--warm);
  display: grid; place-items: center;
  color: var(--bg);
  font-size: 14px;
}

/* ============================================================
   WHY ACT FITS AI
   ============================================================ */

.tline-wrap {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 32px 32px;
}
.tline-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.tline-row:first-of-type { border-top: 0; padding-top: 8px; }
.tline-row .meta { }
.tline-row .meta .ttl { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; }
.tline-row .meta .sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute); margin-top: 4px; }
@media (max-width: 720px) { .tline-row { grid-template-columns: 1fr; } }

.tline { position: relative; height: 64px; }
.tline .axis { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.tline .day-mark {
  position: absolute;
  top: 50%;
  width: 1px; height: 8px;
  background: var(--line-2);
  transform: translateY(-50%);
}
.tline .day-label {
  position: absolute;
  bottom: -6px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: var(--fg-mute);
  transform: translateX(-50%);
}

.tline .therapy-dot {
  position: absolute;
  top: 50%;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cool);
  box-shadow: 0 0 20px var(--cool);
  transform: translate(-50%, -50%);
}
.tline .gap-label {
  position: absolute;
  top: 4px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-mute);
  transform: translateX(-50%);
  white-space: nowrap;
}

.tline .appi-bar {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  height: 3px;
  transform: translateY(-50%);
  background: linear-gradient(90deg,
    var(--warm-dim) 0%,
    var(--warm) 50%,
    var(--warm-dim) 100%);
  border-radius: 2px;
  filter: drop-shadow(0 0 8px var(--warm-dim));
}
.tline .appi-pulse {
  position: absolute;
  top: 50%;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--warm);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 8px var(--warm);
}

/* compare grid */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 60px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
@media (max-width: 720px) { .compare-grid { grid-template-columns: 1fr; } }
.compare-grid .col {
  padding: 28px 28px 8px;
}
.compare-grid .col.left { background: var(--bg-2); border-right: 1px solid var(--line); }
.compare-grid .col.right { background: linear-gradient(180deg, oklch(0.82 0.10 65 / 0.04), var(--bg-2)); }
@media (max-width: 720px) {
  .compare-grid .col.left { border-right: 0; border-bottom: 1px solid var(--line); }
}
.compare-grid .col h5 { font-family: var(--serif); font-size: 22px; margin: 0 0 4px; letter-spacing: -0.01em; font-weight: 400; }
.compare-grid .col .col-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute); margin-bottom: 18px; }
.compare-grid .col ul { list-style: none; margin: 0; padding: 0; }
.compare-grid .col li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--fg-dim);
}
.compare-grid .col li:first-child { border-top: 0; }
.compare-grid .col li .tic {
  flex: 0 0 14px; height: 14px; margin-top: 4px;
  display: inline-block;
  border: 1px solid var(--line-2);
  border-radius: 3px;
}
.compare-grid .col.right li .tic {
  border-color: var(--warm);
  background: var(--warm);
  box-shadow: 0 0 10px var(--warm-dim);
}

/* moments-row */
.moments {
  margin-top: 80px;
}
.moments h4 { font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); letter-spacing: -0.01em; margin: 0 0 22px; }
.moments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 720px) { .moments-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .moments-grid { grid-template-columns: 1fr; } }
.mcard {
  padding: 22px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 130px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.mcard .when { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--fg-mute); }
.mcard .what { font-family: var(--serif); font-size: 20px; line-height: 1.2; letter-spacing: -0.005em; }
.mcard .ai-pulse {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--warm);
  margin-top: 12px;
}
.mcard .ai-pulse::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--warm); box-shadow: 0 0 10px var(--warm);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ============================================================
   CTA + footer
   ============================================================ */

.cta {
  padding: clamp(100px, 18vw, 200px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta .quote {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  max-width: 22ch;
  margin: 0 auto 36px;
}
.cta .quote em { font-style: italic; color: var(--fg-dim); }
.cta .form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 18px;
  background: rgba(245,244,238,0.04);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  margin-top: 8px;
}
.cta .form input {
  background: none; border: 0; color: var(--fg);
  font: inherit; font-size: 14px; outline: none;
  padding: 8px 4px; min-width: 240px;
}
.cta .form input::placeholder { color: var(--fg-mute); }

.cta-meta {
  margin-top: 36px;
  display: inline-flex;
  gap: 28px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--fg-mute);
}

footer {
  padding: 32px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  color: var(--fg-mute);
  flex-wrap: wrap; gap: 16px;
}

/* ----------------------------- reveal ----------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1.1s cubic-bezier(.2,.7,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* svg utilities */
.stroke-faint { stroke: var(--line-2); }
.stroke-fg { stroke: var(--fg); }
.stroke-warm { stroke: var(--warm); }
.stroke-cool { stroke: var(--cool); }

/* ============================================================
   TWEAKS PANEL (built-in, simple)
   ============================================================ */

.tweaks {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  background: rgba(15,15,18,0.92);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 16px 18px;
  width: 240px;
  display: none;
  font-size: 12px;
  color: var(--fg-dim);
}
.tweaks.open { display: block; }
.tweaks header { display:flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tweaks header h6 { margin: 0; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--fg); }
.tweaks header button { color: var(--fg-mute); font-size: 16px; line-height: 1; }
.tweaks .tw-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.tweaks .tw-row label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-mute); }
.tweaks .swatches { display: flex; gap: 8px; }
.tweaks .sw {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--line-2); cursor: pointer;
}
.tweaks .sw.active { border-color: var(--fg); box-shadow: 0 0 0 2px rgba(245,244,238,0.15); }

/* ============================================================
   MOBILE PASS
   Targeted polish for narrow viewports. Builds on the existing
   component breakpoints (860 / 720 / 480 px) above.
   ============================================================ */

/* ----- nav: shrink primary button + handle wordmark ----- */
@media (max-width: 640px) {
  nav.top {
    padding: 14px 16px;
    gap: 8px;
  }
  .brand { font-size: 20px; gap: 8px; }
  .brand .lume-mark { width: 24px; height: 24px; }
  nav.top .btn.primary {
    padding: 9px 14px;
    font-size: 12px;
  }
  nav.top .btn.primary .arrow { display: none; }
}
@media (max-width: 380px) {
  /* on the smallest screens, swap the long CTA for short "Join" */
  nav.top .btn.primary { font-size: 0; padding: 9px 14px; }
  nav.top .btn.primary::after {
    content: "Join";
    font-size: 12px;
    letter-spacing: -0.005em;
  }
}

/* ----- hero: smaller display, stage shrunk, meta wraps ----- */
@media (max-width: 640px) {
  .hero { min-height: auto; padding: 120px 0 64px; }
  h1.display { font-size: clamp(40px, 12vw, 64px); }
  .hero-copy p.lede { font-size: 16px; }
  .hero-cta .btn { padding: 11px 16px; font-size: 13px; }
  .hero-stage { max-width: 360px; margin: 16px auto 0; }
  .hero-meta {
    gap: 14px 20px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 22px;
    font-size: 10px;
  }
}

/* ----- chapter marks: tighten number, allow wrap ----- */
@media (max-width: 640px) {
  .chapter-mark { gap: 14px; align-items: flex-start; }
  .chapter-mark .num { font-size: 52px; line-height: 0.85; }
  .chapter-mark .meta { padding-bottom: 4px; }
  .chapter-mark .meta .label { font-size: 10px; letter-spacing: 0.18em; }
  .chapter-mark .meta .topic { font-size: 12px; letter-spacing: 0.12em; line-height: 1.3; }
}

/* ----- section titles smaller, sub-title smaller ----- */
@media (max-width: 640px) {
  h2.section-title { font-size: clamp(32px, 8vw, 56px); }
  h3.sub { font-size: 22px; }
  .section-head { margin-bottom: 36px; }
  section.section { padding: 80px 0; }
}

/* ----- Void: shrink orbit, smaller chips, keep all readable ----- */
@media (max-width: 640px) {
  .void-stage { max-width: 100%; aspect-ratio: 1/1; }
  .orbit-chip {
    font-size: 9px;
    padding: 5px 9px;
    letter-spacing: 0.10em;
  }
  .orbit-chip .glyph { width: 14px; height: 14px; font-size: 10px; }
  .void-stage .void-center { width: 64px; height: 64px; font-size: 11px; }
}
@media (max-width: 420px) {
  /* drop the longest labels on the smallest screens to avoid orbit collisions */
  .void-stage .icon-orbit.slow .orbit-chip { display: none; }
}

/* ----- Graph card: tighten padding & legend wrap ----- */
@media (max-width: 640px) {
  .graph { padding: 24px 18px 18px; border-radius: 14px; }
  .graph-head h4 { font-size: 18px; }
  .legend { gap: 14px; font-size: 9px; }
  .graph-callout { font-size: 9px; padding: 6px 10px; }
}

/* ----- Daily loop: 6 stations → 3×2 grid on mobile ----- */
@media (max-width: 720px) {
  .day-loop { padding: 22px 18px; border-radius: 14px; }
  .day-loop-head h4 { font-size: 18px; }
  .day-loop-head .meta { display: none; }
  .track {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 8px;
    padding: 16px 0 44px;
  }
  .track::before { display: none; } /* line doesn't make sense in grid layout */
  .station .node { width: 32px; height: 32px; font-size: 14px; }
  .station .when { font-size: 9px; }
  .station .what { font-size: 14px; }
  .track-loop { bottom: 4px; height: 18px; }
  .track-loop .label { font-size: 9px; }
}

/* ----- Freedom: smaller chips, allow overflow trim ----- */
@media (max-width: 640px) {
  .freedom-stage { aspect-ratio: 1/1.05; }
  .choice-chip {
    font-size: 9px;
    padding: 5px 8px;
    letter-spacing: 0.10em;
  }
  .freedom-stage .anchor::after { font-size: 9px; }
}
@media (max-width: 420px) {
  /* drop a couple of chips that collide at the smallest sizes */
  .choice-chip:nth-of-type(5),
  .choice-chip:nth-of-type(6) { display: none; }
}

/* ----- Then-now bar cards: tighter ----- */
@media (max-width: 640px) {
  .tn-card { padding: 22px; min-height: auto; }
  .tn-card h4 { font-size: 22px; }
  .tn-bars { height: 64px; }
}

/* ----- Compulsion cycle ----- */
@media (max-width: 640px) {
  .cycle-stage { max-width: 100%; }
  .cycle-node .lbl { font-size: 9px; }
  .cycle-center { font-size: 12px; max-width: 100px; }
  .loop-examples .loop-row {
    padding: 12px 14px;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .loop-examples .loop-row .trail {
    flex-basis: 100%;
    margin-left: 38px;
  }
}

/* ----- ACT split panels ----- */
@media (max-width: 640px) {
  .act-panel { padding: 24px 22px; min-height: 360px; }
  .act-panel h4 { font-size: 24px; }
  .act-panel p { font-size: 13px; }
}

/* ----- Framework diagram nodes ----- */
@media (max-width: 640px) {
  .fw-diagram { max-width: 360px; }
  .fw-node { font-size: 15px; padding: 8px 14px; }
  .fw-example { padding: 22px; }
  .fw-example .thought { font-size: 20px; }
}

/* ----- Practice / phone mockup ----- */
@media (max-width: 640px) {
  .mock-copy h3 { font-size: clamp(28px, 7vw, 40px); }
  .mock-copy p.lede { font-size: 15px; }
  .phone { max-width: 300px; }
}

/* ----- Timeline rows ----- */
@media (max-width: 640px) {
  .tline-wrap { padding: 24px 20px 20px; }
  .tline-row { padding: 22px 0; gap: 14px; }
  .tline-row .meta .ttl { font-size: 18px; }
  .tline .day-label { font-size: 8px; }
  .tline .gap-label { font-size: 9px; }
}

/* ----- Compare grid ----- */
@media (max-width: 640px) {
  .compare-grid .col { padding: 22px 20px; }
  .compare-grid .col h5 { font-size: 18px; }
  .compare-grid .col li { font-size: 13px; }
}

/* ----- Moments cards ----- */
@media (max-width: 640px) {
  .mcard { padding: 18px 16px; min-height: 110px; }
  .mcard .what { font-size: 16px; }
}

/* ----- CTA: form stacks below tiny screen widths ----- */
@media (max-width: 560px) {
  .cta .quote { font-size: clamp(32px, 9vw, 56px); }
  .cta .form {
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
    width: 100%;
    max-width: 360px;
  }
  .cta .form input {
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    text-align: center;
  }
  .cta .form .btn.primary {
    width: 100%;
    justify-content: center;
    padding: 13px 16px;
  }
  .cta-meta {
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ----- Footer ----- */
@media (max-width: 640px) {
  footer { padding: 24px 20px; gap: 10px; font-size: 10px; text-align: left; }
}

/* ----- Tweaks panel: wider when room is tight ----- */
@media (max-width: 480px) {
  .tweaks {
    right: 12px; bottom: 12px; left: 12px;
    width: auto;
  }
}

/* ----- Touch-safe hit targets on mobile ----- */
@media (hover: none) and (pointer: coarse) {
  .btn, .nav-links a { min-height: 40px; }
}
