/* Furnace landing page. Tokens from my-website/BRAND.md ("Studio after dark"). */

@font-face { font-family: "CE Display"; font-weight: 300 500; src: local("RAG-Sans-1.3 Regular"), local("RAG-Sans-1.3-Regular"); }
@font-face { font-family: "CE Display"; font-weight: 600 750; src: local("RAG-Sans-1.3 Bold"), local("RAG-Sans-1.3-Bold"); }
@font-face { font-family: "CE Display"; font-weight: 751 950; src: local("Rag Sans-1.4 Black"), local("RagSans-1.4-Black"); }
@font-face { font-family: "CE Body"; font-weight: 300 500; src: local("Narkiss Block Regular"), local("NarkissBlock-Regular"); }
@font-face { font-family: "CE Body"; font-weight: 501 900; src: local("Narkiss Block Semibold"), local("NarkissBlock-Semibold"); }

:root {
  --color-paper: #1C1D2E;
  --color-card: #25273A;
  --color-wash: #2C2E43;
  --color-ink: #FFFFFF;
  --color-muted: #B4B5C6;
  --color-soft: #8B8DA6;
  --color-line: #303247;
  --color-line-strong: #43465F;
  --color-accent: #FDD324;
  --color-on-accent: #2C2E43;
  --color-good: #63CC59;
  --color-bad-deep: #FF7A6E;
  --color-extra-2: #8667F2;

  --font-display: "CE Display", "Heebo", "Arial Hebrew", Arial, sans-serif;
  --font-sans: "CE Body", "Assistant", "Arial Hebrew", Arial, sans-serif;

  --radius: 24px;
  --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 20px 40px -24px rgba(0,0,0,0.5);
  --shadow-lift: 0 1px 0 rgba(255,255,255,0.06) inset, 0 30px 60px -24px rgba(0,0,0,0.6);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --masthead-h: 64px;
  /* spacing scale: every gap on the page is one of these */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 40px; --s5: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--color-paper);
  color: var(--color-muted);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex; flex-direction: column;
  overflow-x: hidden;
}
::selection { background: var(--color-accent); color: var(--color-on-accent); }
strong, b { color: var(--color-ink); font-weight: 600; }
a { color: inherit; }
img { max-width: 100%; display: block; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.tnum { font-variant-numeric: tabular-nums; }

/* the one glow, top of the first screen */
.glow {
  position: fixed; inset: 0 0 auto 0; height: 70vh; pointer-events: none; z-index: 0;
  background:
    radial-gradient(60% 55% at 70% 0%, rgba(253,211,36,0.14), transparent 70%),
    radial-gradient(35% 40% at 0% 10%, rgba(134,103,242,0.10), transparent 70%);
}

.container { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: 24px; position: relative; z-index: 1; }

/* ---------- masthead ---------- */
.masthead { height: var(--masthead-h); display: flex; align-items: center; border-bottom: 1px solid var(--color-line); position: relative; z-index: 1; }
.masthead .container { display: flex; align-items: center; justify-content: space-between; }
.masthead img { height: 30px; width: auto; }
.chip {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.85rem; border-radius: 999px;
  border: 1px solid var(--color-line-strong); background: rgba(37,39,58,0.6);
  font-size: 0.85rem; font-weight: 600; color: var(--color-muted);
}
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--color-accent); flex: none; }
.dot.good { background: var(--color-good); position: relative; }
.dot.good::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--color-good);
  animation: ping 2.4s var(--ease-out) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.6; } 80%, 100% { transform: scale(2.6); opacity: 0; } }

/* ---------- hero ---------- */
main { flex: 1; position: relative; z-index: 1; }
/* Two columns. Tops align (eyebrow = form card top), bottoms align (ledger = form card bottom). */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) 440px;
  grid-template-areas: "pitch form";
  column-gap: clamp(3rem, 6vw, 6.5rem); row-gap: var(--s3);
  padding-block: clamp(var(--s3), 4.5vh, var(--s5));
  min-height: calc(100svh - var(--masthead-h));
  align-content: center;
}
.pitch { grid-area: pitch; display: flex; flex-direction: column; }
/* form column: card stretches so its top meets the eyebrow and the proof line meets the ledger */
.form-col { grid-area: form; display: flex; flex-direction: column; gap: var(--s3); }
.form-card { flex: 1; }
.form-foot { display: flex; flex-direction: column; gap: var(--s1); }

.rule { height: 1px; width: 64px; background: var(--color-accent); transform-origin: right center; animation: draw 800ms var(--ease-out) both; margin-bottom: var(--s2); }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.eyebrow { font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; color: var(--color-accent); margin: 0 0 var(--s3); }
.eb-short { display: none; }

/* phone hangs off the inline-end of the headline block, top = headline, bottom = author row */
.headline-block { position: relative; }
/* the phone hangs off the inline-end of this block, beside the author row and the pitch */
.story { position: relative; padding-inline-end: 210px; min-height: 372px; } /* phone height + its shadow, so the ledger starts below it */
.h-hero {
  font-family: var(--font-display); font-weight: 900; color: var(--color-ink);
  font-size: clamp(2.6rem, 5.8vw, 5.2rem); line-height: 1; letter-spacing: -0.01em;
  margin: 0 0 var(--s4);
}
.h-hero .line { display: block; white-space: nowrap; animation: rise 750ms var(--ease-out) both; }
.h-hero .line:nth-child(2) { animation-delay: 90ms; }
.marker { color: var(--color-ink); white-space: nowrap; animation: lamp 600ms var(--ease-out) 700ms forwards; }
@keyframes lamp { to { color: var(--color-accent); } }
@keyframes rise { from { opacity: 0; transform: translateY(28px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

.author { display: flex; align-items: center; gap: var(--s2); }
.avatar {
  width: 72px; height: 72px; object-fit: cover; object-position: 50% 30%; border-radius: 999px; flex: none;
  background: var(--color-wash);
  box-shadow: 0 0 0 3px var(--color-paper), 0 0 0 4.5px var(--color-accent);
}
.author-name { color: var(--color-ink); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.author-role { font-size: 0.95rem; color: var(--color-soft); margin-top: 2px; }
.nowrap { white-space: nowrap; }

/* ---------- phone mockup ----------
   A 3D iPhone. The screen (.ui) is laid out at 390 x 844 like a real iPhone and scaled by --k (set in JS).
   Depth: perspective tilt + a stacked side edge + a floor shadow. Hangs off the inline-end of the headline. */
.phone {
  --pw: 172px; --tx: 0deg; --ty: 0deg;
  position: absolute; top: -6px; inset-inline-end: -24px; width: var(--pw);
  perspective: 1400px; z-index: 0;
  animation: phone-in 1100ms var(--ease-out) 250ms both;
}
@keyframes phone-in { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
.phone-body {
  position: relative; width: var(--pw); height: calc(var(--pw) * 2.0615); border-radius: 18% / 8.6%;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0) 18%, rgba(255,255,255,0) 82%, rgba(255,255,255,0.18)),
    linear-gradient(160deg, #6a6c80, #34354a 30%, #1e1f2c 60%, #4c4e62);
  transform: rotateY(calc(-24deg + var(--tx))) rotateX(calc(8deg + var(--ty))) rotateZ(-4deg);
  transform-style: preserve-3d;
  transition: transform 600ms var(--ease-out);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.28),
    inset 0 0 0 3px #0b0b12,
    /* the side edge: stacked layers read as titanium thickness */
    1px 1px 0 #3c3e52, 2px 2px 0 #34364a, 3px 3px 0 #2d2f42, 4px 4px 0 #27283a,
    5px 5px 0 #222334, 6px 6px 0 #1d1e2d, 7px 7px 0 #191a27,
    /* lift */
    30px 40px 60px -20px rgba(0,0,0,0.65),
    0 0 110px -10px rgba(253,211,36,0.22);
}
/* floor shadow */
.phone::after {
  content: ""; position: absolute; inset-inline: 8% 4%; bottom: -26px; height: 34px; z-index: -1;
  background: radial-gradient(closest-side, rgba(0,0,0,0.55), transparent); filter: blur(6px);
}
.pbtn { position: absolute; width: 3px; border-radius: 3px; background: linear-gradient(90deg, #2a2b3a, #5c5e72); }
.pbtn.action   { left: -2px; top: 17%; height: 4.5%; }
.pbtn.vol-up   { left: -2px; top: 24.5%; height: 8%; }
.pbtn.vol-down { left: -2px; top: 34%; height: 8%; }
.pbtn.power    { right: -2px; top: 27%; height: 12%; }

.phone-screen {
  --k: 0.5;
  position: absolute; inset: calc(var(--pw) * 0.042); overflow: hidden; border-radius: 14.5% / 6.8%;
  background: #fff; isolation: isolate;
}
.ui {
  position: absolute; top: 0; right: 0; width: 390px; height: calc(100% / var(--k));
  transform: scale(var(--k)); transform-origin: top right;
  direction: rtl; color: #1c1c1e; background: #fff;
  font-family: -apple-system, "SF Pro Text", "Assistant", "Arial Hebrew", sans-serif;
  font-size: 17px; line-height: 1.42; -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
}
.glare {
  position: absolute; inset: 0; pointer-events: none; z-index: 5;
  background:
    linear-gradient(118deg, rgba(255,255,255,0.38) 0%, rgba(255,255,255,0.08) 26%, rgba(255,255,255,0) 40%),
    linear-gradient(to top, rgba(0,0,0,0.06), transparent 30%);
}
.island { position: absolute; top: 11px; left: 50%; translate: -50% 0; width: 126px; height: 37px; border-radius: 999px; background: #000; z-index: 3; }
.sb { height: 54px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 6px 32px 0; direction: ltr; }
.sb-time { font-size: 17px; font-weight: 600; letter-spacing: -0.2px; }
.sb-icons { display: flex; gap: 6px; align-items: center; fill: #1c1c1e; color: #1c1c1e; }
.nav { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 6px 16px 10px; color: #0a84ff; font-size: 17px; }
.nav-back { display: flex; align-items: center; gap: 6px; }
.nav-arrows { display: flex; gap: 22px; }
.msg { flex: 1; overflow: hidden; padding: 6px 20px 0; position: relative; }
.msg::after { content: ""; position: absolute; inset: auto 0 0 0; height: 80px; background: linear-gradient(to top, #fff, rgba(255,255,255,0)); }
.msg-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 0.5px solid #d8d8dc; }
.msg-head img { width: 44px; height: 44px; border-radius: 999px; object-fit: cover; object-position: 50% 30%; flex: none; }
.msg-meta { flex: 1; min-width: 0; }
.msg-from { display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; }
.msg-from span { font-size: 15px; color: #8e8e93; }
.msg-to { font-size: 15px; color: #8e8e93; }
.msg-subject { font-size: 23px; font-weight: 700; line-height: 1.2; letter-spacing: -0.2px; margin: 16px 0 10px; }
.msg-chip { display: inline-block; font-size: 13px; font-weight: 700; color: #2C2E43; background: #FDD324; border-radius: 999px; padding: 4px 12px; margin-bottom: 16px; }
.msg-body p { margin: 0 0 14px; color: #2c2c2e; }
.msg-body b { font-weight: 700; color: #1c1c1e; }
.msg-quote { padding-inline-start: 14px; border-inline-start: 3px solid #FDD324; font-weight: 700; color: #1c1c1e !important; font-size: 18px; line-height: 1.35; }
.msg-video { position: relative; border-radius: 14px; overflow: hidden; margin: 4px 0 16px; aspect-ratio: 16 / 10; background: #2C2E43; }
.msg-video img { width: 100%; height: 100%; object-fit: cover; }
.msg-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(28,29,46,0.75), rgba(28,29,46,0) 55%); }
.msg-play { position: absolute; top: 44%; left: 50%; translate: -50% -50%; width: 62px; height: 62px; border-radius: 999px; background: #FDD324; display: grid; place-items: center; z-index: 1; box-shadow: 0 8px 24px rgba(0,0,0,0.35); fill: #2C2E43; }
.msg-play svg { margin-left: 4px; }
.msg-video-label { position: absolute; bottom: 12px; right: 14px; z-index: 1; color: #fff; font-size: 15px; font-weight: 700; }
.msg-sign { font-weight: 700; }
.toolbar { flex: none; display: flex; justify-content: space-between; padding: 12px 34px 30px; color: #0a84ff; border-top: 0.5px solid #d8d8dc; background: rgba(249,249,249,0.94); }
.home-ind { position: absolute; bottom: 8px; left: 50%; translate: -50% 0; width: 134px; height: 5px; border-radius: 999px; background: #1c1c1e; z-index: 3; }

.lead { font-size: clamp(1.05rem, 1.35vw, 1.18rem); line-height: 1.6; max-width: 56ch; margin: var(--s4) 0 var(--s3); }

.who { max-width: 62ch; margin: 0; padding-inline-start: var(--s2); border-inline-start: 2px solid var(--color-accent); line-height: 1.6; font-size: 1rem; }
.who-label { font-weight: 700; color: var(--color-ink); margin-inline-end: 0.35rem; }

/* ledger: the format as three numbers on one calm plate */
.ledger {
  margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0) 60%), var(--color-card);
  border: 1px solid var(--color-line); border-radius: 20px; box-shadow: var(--shadow-card);
  padding-block: 20px;
}
.stat { display: flex; align-items: center; justify-content: center; gap: 14px; padding-inline: var(--s2); }
.stat + .stat { border-inline-start: 1px solid var(--color-line); }
/* number and label side by side; the label wraps to two lines when it needs to */
.stat-txt { display: flex; align-items: center; gap: 10px; }
.stat .num {
  font-family: var(--font-display); font-weight: 900; color: var(--color-ink);
  font-size: clamp(2.6rem, 3.6vw, 3.2rem); line-height: 1; font-variant-numeric: tabular-nums;
}
.stat .lbl { font-size: 0.92rem; font-weight: 600; color: var(--color-muted); line-height: 1.25; max-width: 7.5em; text-wrap: balance; }

/* when the plate itself gets narrow (laptops ~1100px, phones): icon on top, number + label side by side below it */
.ledger { container-type: inline-size; }
@container (max-width: 640px) {
  .stat { flex-direction: column; gap: 10px; padding-inline: var(--s1); }
}

/* ---------- animated ledger icons ----------
   Each one acts for ~1.5s of a 6s cycle, staggered so they take turns. Off for reduced motion. */
.stat-ico {
  flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(253,211,36,0.07); border: 1px solid rgba(253,211,36,0.22); color: var(--color-accent);
}
.ico { width: 32px; height: 32px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* envelope */
.mail-paper { fill: var(--color-card); stroke: var(--color-ink); stroke-width: 1.6; }
.mail-lines { stroke: var(--color-ink); stroke-width: 1.4; opacity: .7; }
.mail-paper, .mail-lines { transform: translateY(5px); animation: mail-paper 6s var(--ease-out) infinite; }
.mail-env { fill: var(--color-card); }
.mail-flap { transform-box: view-box; transform-origin: 16px 12.6px; animation: mail-flap 6s var(--ease-out) infinite; fill: var(--color-card); }
@keyframes mail-flap { 0%, 8% { transform: scaleY(1); } 16%, 34% { transform: scaleY(-1); } 42%, 100% { transform: scaleY(1); } }
@keyframes mail-paper { 0%, 12% { transform: translateY(5px); } 20%, 30% { transform: translateY(-3px); } 38%, 100% { transform: translateY(5px); } }

/* stopwatch */
.timer-fill { stroke-width: 12; stroke: rgba(253,211,36,0.28); stroke-dasharray: 0 100; transform: rotate(-90deg); transform-origin: 16px 18px; animation: timer-fill 6s linear 2s infinite; }
.timer-hand { stroke: var(--color-ink); transform-origin: 16px 18px; animation: timer-hand 6s var(--ease-out) 2s infinite; }
.timer-pin { fill: var(--color-ink); stroke: none; }
@keyframes timer-hand { 0% { transform: rotate(0); } 28%, 100% { transform: rotate(360deg); } }
@keyframes timer-fill { 0% { stroke-dasharray: 0 100; opacity: 1; } 28% { stroke-dasharray: 100 0; opacity: 1; } 40%, 100% { stroke-dasharray: 100 0; opacity: 0; } }

/* shovel + "no" sign */
.shovel { transform-origin: 24px 7px; animation: dig 6s var(--ease-out) 4s infinite; }
.shovel-blade { fill: rgba(253,211,36,0.15); }
.dirt { fill: var(--color-soft); stroke: none; opacity: 0; animation: dirt 6s var(--ease-out) 4s infinite; }
.nope circle, .nope path { stroke: var(--color-bad-deep); stroke-width: 2.2; stroke-dasharray: 100 100; stroke-dashoffset: 0; animation: nope 6s var(--ease-out) 4s infinite; }
.nope path { animation-name: nope-slash; }
@keyframes dig { 0% { transform: rotate(0); } 6% { transform: rotate(-16deg); } 12% { transform: rotate(4deg); } 18% { transform: rotate(-16deg); } 24%, 100% { transform: rotate(0); } }
@keyframes dirt { 0%, 5% { opacity: 0; transform: none; } 9% { opacity: 1; transform: translate(-1px, -3px); } 16% { opacity: 1; transform: translate(-2px, -5px); } 22%, 100% { opacity: 0; transform: translate(-3px, -1px); } }
@keyframes nope { 0%, 22% { stroke-dashoffset: 100; } 32%, 80% { stroke-dashoffset: 0; } 90%, 100% { stroke-dashoffset: 100; } }
@keyframes nope-slash { 0%, 28% { stroke-dashoffset: 100; } 36%, 80% { stroke-dashoffset: 0; } 90%, 100% { stroke-dashoffset: 100; } }

@media (prefers-reduced-motion: reduce) {
  .mail-paper, .mail-lines, .mail-flap, .timer-fill, .timer-hand, .shovel, .dirt, .nope circle, .nope path { animation: none !important; }
  .nope circle, .nope path { stroke-dashoffset: 0; }
}

/* ---------- form card ---------- */
.card { background: var(--color-card); border: 1px solid var(--color-line); border-radius: var(--radius); box-shadow: var(--shadow-card); }
.form-card { padding: var(--s4) clamp(var(--s3), 3vw, var(--s4)); display: flex; flex-direction: column; justify-content: center; }
.form-title { font-family: var(--font-display); font-weight: 700; color: var(--color-ink); font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.1; margin: 0 0 var(--s3); text-wrap: balance; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--s2); }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--color-ink); }
.field .opt { color: var(--color-soft); font-weight: 400; }
.field .hint { font-size: 0.8rem; color: var(--color-soft); }
.field input, .field select {
  font: inherit; color: var(--color-ink); background: var(--color-paper);
  border: 1px solid var(--color-line-strong); border-radius: 14px;
  padding: 0.8rem 1rem; width: 100%; min-height: 50px;
  transition: border-color 220ms var(--ease-out);
}
.field input::placeholder { color: var(--color-soft); }
.field input:focus, .field select:focus { outline: none; border-color: var(--color-accent); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--color-muted) 50%), linear-gradient(135deg, var(--color-muted) 50%, transparent 50%); background-position: 18px 55%, 13px 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-start: 2.2rem; }
.field input.ltr { text-align: right; }
.field .err { font-size: 0.8rem; color: var(--color-bad-deep); min-height: 0; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  padding: 0.95rem 1.4rem; border-radius: 14px; border: 0; cursor: pointer; text-decoration: none;
  transition: background 220ms var(--ease-out), color 220ms var(--ease-out), transform 120ms var(--ease-out);
}
.btn-primary { background: var(--color-accent); color: var(--color-on-accent); box-shadow: 0 12px 30px -12px rgba(253,211,36,0.45); }
.btn-primary:hover { background: var(--color-ink); }
.btn-primary:disabled { opacity: 0.7; cursor: wait; }
.btn:active { transform: translateY(1px); }
.btn-arrow { flex: none; color: var(--color-on-accent); transition: transform 220ms var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(-4px); }
.btn-chip { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; margin-block: -0.55rem; margin-inline-end: -1rem; border-radius: 999px; background: var(--color-on-accent); color: var(--color-accent); font-size: 1.1rem; }
.btn-ghost { background: transparent; color: var(--color-ink); border: 1px solid var(--color-line-strong); }
.btn-ghost:hover { background: var(--color-ink); color: var(--color-on-accent); }
.btn.block { width: 100%; margin-top: var(--s1); padding-block: 1.05rem; }

.privacy { font-size: 0.8rem; color: var(--color-soft); text-align: center; margin: var(--s2) 0 0; }
.proof { display: flex; align-items: center; gap: 0.7rem; font-size: 1.1rem; color: var(--color-muted); padding-inline: var(--s1); }
.proof .dot { width: 10px; height: 10px; }
.proof-num { color: var(--color-accent); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.disclaimer { font-size: 0.75rem; color: var(--color-soft); padding-inline: var(--s1); margin: 0; }

/* sticky CTA, phones only */
.sticky-cta { display: none; }

/* the first screen waits for the fonts, then enters in one move (no half-loaded flash) */
.js:not(.ready) .masthead, .js:not(.ready) main { opacity: 0; }
.js:not(.ready) * { animation-play-state: paused !important; }
.masthead, main { transition: opacity 300ms var(--ease-out); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--color-line); padding-block: 1.1rem; font-size: 0.8rem; color: var(--color-soft); position: relative; z-index: 1; }
.footer .container { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }
.footer nav { display: flex; gap: 1rem; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--color-ink); }

/* ---------- placeholders (remove once Nave fills them) ---------- */
.ph { outline: 1.5px dashed rgba(253,211,36,0.7); outline-offset: 3px; border-radius: 6px; }
.ph-tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.02em;
  background: rgba(253,211,36,0.14); color: var(--color-accent);
  border: 1px dashed rgba(253,211,36,0.6); border-radius: 999px; padding: 0.05rem 0.5rem; vertical-align: middle;
}
.preview-bar {
  position: relative; z-index: 1;
  background: var(--color-paper);
  border-top: 1px dashed rgba(253,211,36,0.5);
  font-size: 0.78rem; color: var(--color-muted); text-align: center; padding: 0.45rem 1rem;
}
.preview-bar a { color: var(--color-accent); margin-inline: 0.4rem; }

/* ---------- thank-you pages ---------- */
.ty { max-width: 760px; margin-inline: auto; padding-block: clamp(3rem, 9vh, 6rem) 5rem; }
.ty .h-hero { font-size: clamp(2.8rem, 7vw, 5rem); }
.ty .lead { margin-top: 0; }
.stack { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.offer {
  position: relative; background: var(--color-wash); padding: clamp(1.5rem, 4vw, 2.4rem);
}
.offer .eyebrow { margin-bottom: 0.4rem; }
.h-card { font-family: var(--font-display); font-weight: 700; color: var(--color-ink); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.1; margin: 0 0 0.6rem; }
.offer p { margin: 0 0 1.3rem; max-width: 52ch; }
.offer .note { font-size: 0.85rem; color: var(--color-soft); margin: 0.9rem 0 0; }
.subs { padding: clamp(1.4rem, 3vw, 2rem); }
.subs-head { font-size: 0.95rem; color: var(--color-soft); margin: 0; }
.subs .h-card { margin-bottom: 1.1rem; }
.sub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.sub-item {
  display: flex; align-items: center; gap: 0.8rem; padding: 0.9rem 1rem;
  border: 1px solid var(--color-line-strong); border-radius: 18px; text-decoration: none;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
.sub-item:hover { transform: translateY(-2px); border-color: var(--color-accent); }
.sub-ico { width: 38px; height: 38px; border-radius: 12px; background: var(--color-paper); display: grid; place-items: center; color: var(--color-accent); flex: none; }
.sub-name { color: var(--color-ink); font-weight: 600; line-height: 1.2; }
.sub-meta { font-size: 0.8rem; color: var(--color-soft); white-space: nowrap; }

/* ---------- code word (thank-you pages) ---------- */
.codeword { margin: 0; font-size: 1.05rem; }
.code { display: inline-block; margin-inline-start: 0.3rem; padding: 0.1rem 0.75rem; border-radius: 999px; background: rgba(253,211,36,0.12); border: 1px solid rgba(253,211,36,0.45); color: var(--color-accent); font-weight: 700; }

/* consent line under the button */
.privacy a { color: var(--color-muted); text-decoration: underline; text-underline-offset: 2px; }
.privacy a:hover { color: var(--color-ink); }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; margin-inline: auto; padding-block: var(--s5) 5rem; }
.h-section { font-family: var(--font-display); font-weight: 900; color: var(--color-ink); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; margin: 0 0 var(--s3); }
.h-section .line { display: block; }
.legal .lead { margin: 0 0 var(--s4); max-width: none; }
.legal h2 { font-family: var(--font-display); font-weight: 700; color: var(--color-ink); font-size: 1.3rem; margin: var(--s4) 0 var(--s2); padding-top: var(--s3); border-top: 1px solid var(--color-line); }
.legal p, .legal li { line-height: 1.7; }
.legal ul { padding-inline-start: 1.2rem; margin: 0 0 var(--s2); }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--color-accent); }
.legal a { color: var(--color-ink); text-underline-offset: 3px; }
.legal .ph { padding: 0 4px; }
.draft-banner { display: inline-block; margin: 0 0 var(--s3); padding: 0.35rem 0.9rem; border-radius: 999px; font-size: 0.85rem; font-weight: 700; color: var(--color-accent); background: rgba(253,211,36,0.1); border: 1px dashed rgba(253,211,36,0.6); }
.back { margin-top: var(--s5); }
.back a { color: var(--color-accent); font-weight: 600; }

/* ---------- tablets and phones ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: minmax(0, 1fr) 380px; column-gap: var(--s4); }
  .story { padding-inline-end: 170px; min-height: 340px; }
  .stat { gap: 10px; padding-inline: var(--s1); }
  .stat-ico { width: 44px; height: 44px; }
  .stat .lbl { font-size: 0.85rem; }
  .phone { --pw: 156px; inset-inline-end: -16px; }
}
@media (max-width: 900px) {
  .sub-grid { grid-template-columns: 1fr; }
  .hero {
    grid-template-columns: 1fr; grid-template-areas: "pitch" "form";
    min-height: 0; padding-block: var(--s4); row-gap: var(--s3);
  }
  .form-col { margin-top: var(--s2); }
  .story { padding-inline-end: 0; min-height: 0; }
  .h-hero .line { white-space: normal; }
  .h-hero { margin-bottom: var(--s3); }
  .h-hero { font-size: clamp(2.5rem, 11vw, 3.6rem); }
  .ledger { margin-top: var(--s4); }
  /* phone moves into the author row and peeks from the corner */
  .author { position: relative; padding-inline-end: 104px; min-height: 96px; }
  .phone { --pw: 92px; top: auto; bottom: -40px; inset-inline-end: 4px; }
  .phone-body { transform: rotateY(-20deg) rotateX(6deg) rotateZ(-4deg); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28), inset 0 0 0 2px #0b0b12, 1px 1px 0 #34364a, 2px 2px 0 #27283a, 3px 3px 0 #1d1e2d, 14px 20px 30px -10px rgba(0,0,0,0.6), 0 0 60px -10px rgba(253,211,36,0.22); }
  .pbtn { width: 2px; }
  .lead { max-width: none; }
  .lead { margin-top: var(--s5); }
}
@media (max-width: 520px) {
  .eb-long { display: none; }
  .eb-short { display: inline; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .sub-grid { grid-template-columns: 1fr; }
  .ledger { padding-block: 16px; }
  .stat { flex-direction: column; gap: 10px; padding-inline: var(--s1); }
  .stat-txt { gap: 6px; }
  .stat-ico { width: 44px; height: 44px; border-radius: 13px; }
  .ico { width: 27px; height: 27px; }
  .stat .num { font-size: 2.5rem; }
  .stat .lbl { font-size: 0.78rem; max-width: 5.5em; }
  .masthead img { height: 24px; }
  .avatar { width: 60px; height: 60px; }
  .author-role { font-size: 0.88rem; }
  .sticky-cta {
    display: flex; position: fixed; z-index: 40; inset-inline: var(--s2); bottom: var(--s2);
    box-shadow: 0 16px 40px -10px rgba(0,0,0,0.7), 0 12px 30px -12px rgba(253,211,36,0.45);
    transform: translateY(140%); transition: transform 320ms var(--ease-out);
  }
  .sticky-cta.show { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .marker { color: var(--color-accent); }
}
