/* ============================================================
   Florin landing page
   Ink and gold. The app's own palette, verbatim from Theme.swift:
   ink #0B0E12, card #14181E, elevated #1B2027, gold #E4B95B,
   mint #4DE38A, red #FF5C5C.
   ============================================================ */

:root {
  --ink: #0B0E12;
  --ink-2: #0E1217;
  --card: #14181E;
  --elev: #1B2027;
  --gold: #E4B95B;
  --gold-hi: #F0CE7A;
  --gold-low: #C9962F;
  --gold-deep: #A87A1F;
  --mint: #4DE38A;
  --red: #FF5C5C;
  --text: #F2F5F8;
  --text-2: #9AA3AD;
  --text-3: #5E6670;
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-gold: rgba(228, 185, 91, 0.28);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, "Helvetica Neue", sans-serif;
  --mono: "Spline Sans Mono", "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain over everything, very faint */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(228, 185, 91, 0.3); color: var(--text); }

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

h1, h2 {
  font-family: var(--serif);
  font-weight: 380;
  letter-spacing: -0.015em;
  line-height: 1.06;
  text-wrap: balance;
}
h1 em, h2 em {
  font-style: italic;
  font-weight: 340;
  color: var(--gold);
}

.kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.kicker-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); opacity: 0.6; display: inline-block;
}

.body {
  color: var(--text-2);
  font-size: 18px;
  max-width: 56ch;
}

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: background 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 14, 18, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--stroke);
  padding: 10px 0;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  text-decoration: none;
}
.brand-coin {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: block;
  box-shadow: 0 0 0 1px var(--stroke-gold);
}
.brand-word {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex; gap: 30px;
  font-size: 14.5px; font-weight: 500;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta {
  font-size: 13.5px; font-weight: 600;
  text-decoration: none;
  color: var(--gold);
  border: 1px solid var(--stroke-gold);
  border-radius: 100px;
  padding: 8px 18px;
  transition: background 0.25s, color 0.25s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold); color: var(--ink); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 130px 0 36px;
  overflow: clip;
}
.hero-ring {
  position: absolute;
  width: 780px; height: 780px;
  right: -180px; top: -120px;
  border-radius: 50%;
  border: 1px solid rgba(228, 185, 91, 0.12);
  pointer-events: none;
  animation: ringDrift 14s ease-in-out infinite alternate;
}
.hero-ring::after {
  content: "";
  position: absolute; inset: 70px;
  border-radius: 50%;
  border: 1px solid rgba(228, 185, 91, 0.06);
}
@keyframes ringDrift {
  from { transform: rotate(0deg) scale(1); }
  to { transform: rotate(6deg) scale(1.03); }
}

.hero-inner {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(42px, 5.4vw, 72px);
  margin-bottom: 22px;
}
.lede {
  color: var(--text-2);
  font-size: 18.5px;
  max-width: 50ch;
  margin-bottom: 32px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.cta-row.center { justify-content: center; }
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: #12100A;
  font-weight: 650;
  font-size: 15.5px;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 100px;
  transition: transform 0.25s var(--ease-out), background 0.25s;
}
.btn-gold:hover {
  transform: translateY(-2px);
  background: var(--gold-hi);
}
.btn-gold.is-static { cursor: default; }
.btn-ghost {
  font-size: 15px;
  font-weight: 550;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--gold); border-color: var(--stroke-gold); }

.trust-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}
.trust-row i {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--gold-deep);
}

/* Phone */

.hero-phone {
  position: relative;
  justify-self: center;
}
.phone {
  position: relative;
  width: min(340px, 78vw, calc(42vh - 70px));
  border-radius: 54px;
  padding: 11px;
  background: #1A1E25;
  box-shadow:
    0 0 0 1px rgba(240, 206, 122, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 40px 90px -20px rgba(0, 0, 0, 0.8);
  transform: rotate(1.6deg);
}
.phone img {
  border-radius: 43px;
  width: 100%;
  height: auto;
}
/* ---------- Marquee ---------- */

.marquee {
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
  padding: 15px 0;
  overflow: hidden;
  margin-top: 44px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.marquee-track b {
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  margin: 0 26px;
  text-transform: none;
  letter-spacing: 0;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

.section { padding: clamp(56px, 8vh, 96px) 0; position: relative; }
.section-dark {
  background: var(--ink-2);
  border-top: 1px solid var(--stroke);
  border-bottom: 1px solid var(--stroke);
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-inner.narrow { max-width: 860px; }
.section-inner.center { text-align: center; }
.section h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  margin-bottom: 18px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

/* ---------- Capture demo ---------- */

.capture-demo {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 28px;
  padding: 28px 28px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
}
.demo-stage { min-height: 320px; display: flex; flex-direction: column; gap: 18px; }

.sms-msg {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.sms-from {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin: 0 0 7px 4px;
  text-transform: uppercase;
}
.sms-bubble {
  background: #262B33;
  border-radius: 20px 20px 20px 6px;
  padding: 13px 17px;
  font-size: 14.5px;
  line-height: 1.5;
  color: #D5DAE0;
  max-width: 46ch;
  font-family: var(--mono);
  font-size: 13.5px;
}

.parse-line {
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.5s;
  padding-left: 4px;
}
.parse-beam {
  width: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  position: relative;
  overflow: visible;
}
.parse-beam::after {
  content: "";
  position: absolute;
  right: 0; top: -2px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 2px rgba(228, 185, 91, 0.6);
}
.parse-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.draft-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 20px;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), border-color 0.5s, box-shadow 0.5s;
}
.draft-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.draft-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(176, 124, 232, 0.16);
  color: #B07CE8;
  flex-shrink: 0;
}
.draft-payee {
  font-weight: 650;
  font-size: 16px;
  letter-spacing: 0.02em;
  flex: 1;
}
.draft-amt {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 19px;
  color: var(--red);
}
.draft-amt small {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.06em;
}
.draft-meta { display: flex; gap: 8px; margin-bottom: 16px; }
.draft-chip {
  font-size: 12.5px;
  font-weight: 550;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--stroke);
  color: var(--text-2);
}
.draft-chip.gold { color: var(--gold); border-color: var(--stroke-gold); background: rgba(228, 185, 91, 0.07); }
.draft-confirm {
  position: relative;
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 13px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 650;
  background: var(--gold);
  color: #12100A;
  cursor: default;
  overflow: hidden;
  transition: background 0.4s;
}
.confirm-label, .logged-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}
.logged-label {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
}

/* Demo stages */
[data-stage="1"] .sms-msg,
[data-stage="2"] .sms-msg,
[data-stage="3"] .sms-msg { opacity: 1; transform: none; }
[data-stage="2"] .parse-line { opacity: 1; }
[data-stage="3"] .parse-line { opacity: 0.35; }
[data-stage="2"] .parse-beam::after { animation: beamPulse 0.9s ease-in-out infinite; }
@keyframes beamPulse {
  0%, 100% { box-shadow: 0 0 8px 1px rgba(228, 185, 91, 0.5); }
  50% { box-shadow: 0 0 16px 4px rgba(228, 185, 91, 0.85); }
}
[data-stage="3"] .draft-card { opacity: 1; transform: none; }
[data-stage="3"].confirmed .draft-card {
  border-color: rgba(77, 227, 138, 0.35);
  box-shadow: 0 0 0 1px rgba(77, 227, 138, 0.12), 0 12px 40px -12px rgba(77, 227, 138, 0.15);
}
[data-stage="3"].confirmed .draft-confirm {
  background: var(--mint);
}
[data-stage="3"].confirmed .confirm-label { opacity: 0; transform: translateY(-8px); }
[data-stage="3"].confirmed .logged-label { opacity: 1; transform: none; }

.demo-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 22px;
  position: relative;
}
.demo-dots i {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.4s, transform 0.4s;
}
[data-stage="1"] .demo-dots i:nth-child(1),
[data-stage="2"] .demo-dots i:nth-child(2),
[data-stage="3"] .demo-dots i:nth-child(3) {
  background: var(--gold);
  transform: scale(1.25);
}

/* Channels list */

.channels {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
}
.channels li {
  display: flex;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--stroke);
}
.ch-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--gold);
  opacity: 0.85;
  line-height: 1.45;
  flex-shrink: 0;
}
.channels h3 {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 5px;
  letter-spacing: -0.01em;
}
.channels p { color: var(--text-2); font-size: 15px; }

/* ---------- MCP section ---------- */

.tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.tool {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--gold);
  background: rgba(228, 185, 91, 0.06);
  border: 1px solid var(--stroke-gold);
  border-radius: 8px;
  padding: 7px 13px;
  transition: background 0.25s, transform 0.25s var(--ease-out);
}
.tool:hover { background: rgba(228, 185, 91, 0.14); transform: translateY(-2px); }

.safety-note {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-left: 2px solid var(--gold);
  border-radius: 16px;
  padding: 18px 20px;
}
.safety-icon { color: var(--gold); flex-shrink: 0; padding-top: 2px; }
.safety-note h3 { font-size: 16px; font-weight: 650; margin-bottom: 6px; }
.safety-note p { font-size: 14.5px; color: var(--text-2); }

.terminal {
  background: #0A0C10;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 70px -24px rgba(0, 0, 0, 0.8);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--stroke);
}
.term-bar i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.term-bar i:first-child { background: rgba(255, 92, 92, 0.55); }
.term-bar i:nth-child(2) { background: rgba(228, 185, 91, 0.55); }
.term-bar i:nth-child(3) { background: rgba(77, 227, 138, 0.5); }
.term-bar span {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-3);
}
.term-body {
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: #C9D1D9;
  overflow-x: auto;
}
.t-dim { color: var(--text-3); }
.t-str { color: #9ECE8C; }
.t-ok { color: var(--mint); }
.t-gold { color: var(--gold); }

.chat {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-user {
  align-self: flex-end;
  background: var(--gold);
  color: #12100A;
  font-weight: 550;
  font-size: 14.5px;
  padding: 11px 17px;
  border-radius: 18px 18px 6px 18px;
  max-width: 75%;
}
.chat-tool {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-2);
  padding-left: 4px;
}
.tool-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(228, 185, 91, 0.7);
  animation: toolBlink 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes toolBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.chat-agent {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 6px 18px 18px 18px;
  padding: 14px 16px;
  font-size: 14.5px;
  color: var(--text-2);
  max-width: 92%;
}
.chat-agent b { color: var(--text); font-weight: 650; }
.chat-bars {
  list-style: none;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.chat-bars li {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.chat-bars span { color: var(--text-2); }
.chat-bars b {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--text);
  font-size: 12.5px;
}
.chat-bars i {
  height: 6px;
  border-radius: 3px;
  background: var(--gold);
  width: var(--w);
  transform-origin: left;
  animation: barGrow 1s var(--ease-out) both;
}
.chat-bars li:nth-child(2) i { animation-delay: 0.15s; opacity: 0.75; }
.chat-bars li:nth-child(3) i { animation-delay: 0.3s; opacity: 0.55; }
@keyframes barGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.chat-note { font-size: 13.5px; color: var(--text-3); }

.demo-foot {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-3);
  padding-left: 4px;
  max-width: 52ch;
}

/* ---------- Showcase ---------- */

.showcase-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 18px;
}
.sc-label {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: 100px;
  padding: 9px 20px;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.sc-label:hover { color: var(--text); border-color: var(--stroke-gold); }
.sc-label.active {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}
.showcase-phone {
  width: min(320px, 78vw, calc(42vh - 70px));
  margin: 0 auto;
  border-radius: 52px;
  padding: 11px;
  background: #1A1E25;
  box-shadow:
    0 0 0 1px rgba(240, 206, 122, 0.2),
    0 2px 6px rgba(0, 0, 0, 0.5),
    0 40px 90px -20px rgba(0, 0, 0, 0.8);
}
.sc-screens {
  position: relative;
  aspect-ratio: 760 / 1652;
  border-radius: 41px;
  overflow: hidden;
  background: var(--ink);
}
.sc-screens img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  pointer-events: none;
}
.sc-screens img.active { opacity: 1; transform: none; }
.sc-screens img.leaving { opacity: 0; transform: translateX(-32px); }
.sc-caption {
  max-width: 44ch;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  color: var(--text-3);
  min-height: 2.6em;
}

/* ---------- Privacy ---------- */

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  text-align: left;
}
.pcard {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 24px 24px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.pcard:hover { border-color: var(--stroke-gold); transform: translateY(-4px); }
.pcard-big {
  font-family: var(--serif);
  font-style: italic;
  font-size: 44px;
  font-weight: 340;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.pcard h3 {
  font-size: 16.5px;
  font-weight: 650;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.pcard p { font-size: 14.5px; color: var(--text-2); }

/* ---------- Features ---------- */

.feat-head { margin-bottom: 36px; max-width: 620px; }
.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.fcard {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 22px 20px;
  transition: border-color 0.3s, transform 0.3s var(--ease-out), background 0.3s;
}
.fcard:hover {
  border-color: var(--stroke-gold);
  transform: translateY(-4px);
  background: var(--elev);
}
.f-icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(228, 185, 91, 0.08);
  border: 1px solid var(--stroke-gold);
  color: var(--gold);
  margin-bottom: 14px;
}
.f-icon svg { width: 21px; height: 21px; }
.fcard h3 {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 7px;
  letter-spacing: -0.01em;
}
.fcard p { font-size: 14px; color: var(--text-2); line-height: 1.55; }

/* ---------- Story ---------- */

.coin {
  width: 88px; height: 88px;
  margin: 0 auto 28px;
  border-radius: 24px;
  display: block;
  box-shadow: 0 0 0 1px var(--stroke-gold), 0 16px 40px -12px rgba(0, 0, 0, 0.7);
}
#story .body { margin: 0 auto; }

/* ---------- Get ---------- */

.get {
  overflow: clip;
  padding-bottom: 120px;
}
.get .section-inner { position: relative; }
.get .body { margin: 0 auto 40px; }

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--stroke);
  padding: 48px 0 56px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-word {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
}
.footer-line { font-size: 13.5px; color: var(--text-3); }
.footer-fine { font-size: 13px; color: var(--text-3); }

/* ---------- Reveal on scroll ---------- */

.reveal, .reveal-phone {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal-phone { transform: translateY(34px) rotate(3.5deg); transition-duration: 1.15s; }
.reveal.in, .reveal-phone.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero { padding-top: 120px; }
  .hero-copy { text-align: center; }
  .lede, .body { margin-left: auto; margin-right: auto; }
  .cta-row, .trust-row, .kicker { justify-content: center; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  #ai .split { display: flex; flex-direction: column-reverse; }
  #ai .split > div { min-width: 0; width: 100%; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  /* Stacked layouts scroll; width matters more than viewport height here. */
  .phone, .showcase-phone { width: min(300px, 76vw); }
  .showcase-labels { justify-content: center; }
  .sc-caption { margin: 0 auto; text-align: center; }
  .channels { text-align: left; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .hero { padding-top: 108px; }
  .section-inner, .nav-inner, .footer-inner { padding-left: 20px; padding-right: 20px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .fcard { padding: 18px 15px; }
  .fcard h3 { font-size: 14.5px; }
  .fcard p { font-size: 13px; }
  .f-icon { width: 36px; height: 36px; margin-bottom: 12px; }
  .f-icon svg { width: 18px; height: 18px; }
  .hero h1 { font-size: clamp(38px, 11vw, 50px); }
  .lede { font-size: 17px; }
  .marquee { margin-top: 32px; }
  .demo-stage { min-height: 300px; }
  .capture-demo { padding: 22px 18px 16px; }
  .channels li { padding: 14px 0; gap: 16px; }
  .term-body { font-size: 11px; padding: 14px; }
  .chat-agent { max-width: 100%; }
  .chat-bars li { grid-template-columns: 78px 1fr auto; }
  .btn-gold { padding: 14px 20px; font-size: 14.5px; }
  .trust-row { flex-wrap: wrap; gap: 10px; }
  .phone, .showcase-phone { width: min(270px, 76vw); }
  .sc-label { padding: 8px 15px; font-size: 13px; }
  .pcard { padding: 20px 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
}

/* Short windows (small laptops, browser chrome eating height): tighten type so
   each section still lands within one viewport. */
@media (min-width: 1021px) and (max-height: 760px) {
  .body { font-size: 16px; }
  .lede { font-size: 17px; }
  .section h2 { font-size: clamp(26px, 3vw, 38px); }
  .hero h1 { font-size: clamp(38px, 4.6vw, 60px); }
  .demo-stage { min-height: 280px; }
  .channels li { padding: 11px 0; }
  .channels p { font-size: 14px; }
  .channels h3 { font-size: 16px; }
  .tool-grid { margin: 16px 0; }
  .safety-note p { font-size: 13.5px; }
  .term-body { font-size: 11.5px; line-height: 1.6; }
  .chat-agent { font-size: 13.5px; }
  .chat-user { font-size: 13.5px; }
  .feat-head { margin-bottom: 22px; }
  .fcard { padding: 18px 16px; }
  .fcard p { font-size: 13px; }
  .f-icon { width: 36px; height: 36px; margin-bottom: 12px; }
  .pcard p { font-size: 13.5px; }
  .pcard-big { font-size: 38px; }
  .privacy-grid { margin-top: 28px; }
  .demo-foot { display: none; }
  .safety-note { padding: 14px 16px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal-phone {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .marquee-track, .hero-ring, .tool-dot, .chat-bars i { animation: none; }
  .chat-bars i { transform: none; }
}

/* ============================================================
   Legal pages (privacy policy, terms). Readable long-form prose
   on the same ink-and-gold system, no reveal animation so the
   text is always present without JavaScript.
   ============================================================ */

.legal-page {
  padding: 132px 0 40px;
}
.legal-head {
  padding-bottom: 30px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--stroke);
}
.legal-head h1 {
  font-size: clamp(38px, 6vw, 62px);
  margin-top: 4px;
}
.legal-dates {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--text-3);
}

.legal {
  font-size: 17px;
  line-height: 1.72;
  color: var(--text-2);
}
.legal-lead {
  font-size: 19px;
  line-height: 1.62;
  color: var(--text);
}
.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 25px;
  color: var(--text);
  margin: 42px 0 12px;
}
.legal p { margin-bottom: 16px; max-width: 68ch; }
.legal ul {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  max-width: 68ch;
}
.legal li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}
.legal li::before {
  content: "ƒ";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--gold);
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  opacity: 0.8;
}
.legal strong { color: var(--text); font-weight: 600; }
.legal a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--stroke-gold);
  transition: border-color 0.2s ease;
}
.legal a:hover { border-bottom-color: var(--gold); }
.mono-inline {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--gold-hi);
  background: rgba(228, 185, 91, 0.08);
  padding: 1px 6px;
  border-radius: 5px;
}

/* Footer links column (shared by legal pages and home) */
.footer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.footer-links {
  display: flex;
  gap: 20px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--gold); }
.footer-links a[aria-current="page"] { color: var(--gold); }

@media (max-width: 720px) {
  .legal-page { padding-top: 112px; }
  .footer-side { align-items: flex-start; }
}
