/* ============================================================
   INSERT SMILE — bone / carbon / lacquer editorial system
   ============================================================ */

:root {
  --bone: #F6F4EE;
  --plaster: #ECE9E0;
  --carbon: #131210;
  --soot: #1B1917;
  --putty: #857F72;          /* borders & decoration only */
  --putty-text: #6B655A;     /* putty-toned TEXT on light backgrounds (AA at small sizes) */
  --putty-text-inv: #9A948A; /* putty-toned TEXT on soot */
  --red: #A93222;
  --red-deep: #8E2A1C;
  --hairline: rgba(19, 18, 16, 0.14);
  --hairline-soft: rgba(19, 18, 16, 0.08);
  --hairline-inv: rgba(246, 244, 238, 0.16);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;

  --container: 1180px;
  --radius: 14px;
  --pad-x: 24px;

  --shadow-card: 0 1px 2px rgba(19,18,16,.04), 0 12px 32px -16px rgba(19,18,16,.18);
  --shadow-lift: 0 2px 4px rgba(19,18,16,.05), 0 24px 48px -20px rgba(19,18,16,.28);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--carbon);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

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

::selection { background: var(--red); color: var(--bone); }

/* ---------- Type ---------- */

h1, h2, h3 { font-family: var(--font-display); font-variation-settings: "opsz" 90; }

h1 {
  font-size: clamp(3rem, 7.2vw, 5.6rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.028em;
  max-width: 18ch;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.stop { color: var(--red); }
.q { color: var(--red); }

.eyebrow, .mono-tag, .sec-index, .card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--putty-text);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--carbon);
  color: var(--bone);
  padding: 12px 18px;
  border-radius: 0 0 8px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.sec-lead {
  font-size: 1.14rem;
  line-height: 1.72;
  color: rgba(19,18,16,.78);
  max-width: 56ch;
  margin-top: 22px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 18px 30px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--bone);
  box-shadow: 0 10px 24px -10px rgba(169,50,34,.55);
}
.btn-primary:hover { background: var(--red-deep); transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(169,50,34,.6); }
.btn-primary:active { transform: translateY(0); }

.btn-sm.btn-primary { box-shadow: 0 4px 12px -6px rgba(169,50,34,.4); }
.btn-sm.btn-primary:hover { box-shadow: 0 6px 16px -8px rgba(169,50,34,.45); }
.cta-short { display: none; }

.btn-ghost {
  background: transparent;
  color: var(--carbon);
  border-color: rgba(19,18,16,.28);
}
.btn-ghost:hover { border-color: var(--carbon); transform: translateY(-2px); }

.btn-sm { padding: 12px 20px; font-size: 0.92rem; white-space: nowrap; }
.btn-block { width: 100%; text-align: center; }

.text-link {
  font-weight: 600;
  color: var(--red);
  text-decoration: none;
  border-bottom: 1px solid rgba(169,50,34,.3);
  padding-bottom: 2px;
  transition: border-color .18s ease;
}
.text-link:hover { border-color: var(--red); }

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

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

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,244,238,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.nav.scrolled { border-bottom-color: var(--hairline); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 76px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-variation-settings: "opsz" 60;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: var(--carbon);
  text-decoration: none;
  line-height: 1;
}

.nav-links {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(19,18,16,.72);
  text-decoration: none;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--carbon); }

.nav-burger {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--carbon);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

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

.hero { padding: 84px 0 40px; position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero-sub {
  font-size: 1.2rem;
  line-height: 1.7;
  color: rgba(19,18,16,.78);
  max-width: 48ch;
  margin-top: 28px;
}

.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 38px; }

.hero-micro {
  margin-top: 26px;
  font-size: 0.88rem;
  color: var(--putty-text);
}

.hero-copy .eyebrow { margin-bottom: 26px; display: block; }

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

.hero-demo {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 8px 0 8px 8px;
}

.quiz-card, .payload-card {
  background: var(--plaster);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.quiz-card { padding: 22px 24px 18px; position: relative; z-index: 2; }

.quiz-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline-soft);
}

.quiz-dots { display: flex; gap: 6px; }
.quiz-dots i {
  width: 22px; height: 4px; border-radius: 2px;
  background: rgba(19,18,16,.12);
  transition: background .3s ease;
}
.quiz-dots i.on { background: var(--carbon); }

.quiz-q {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 18px 0 16px;
  min-height: 2.6em;
}

.quiz-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.quiz-opt {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  color: var(--carbon);
  background: var(--bone);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.quiz-opt:hover { border-color: var(--carbon); transform: translateY(-1px); }
.quiz-opt.picked { background: var(--carbon); color: var(--bone); border-color: var(--carbon); }

.quiz-foot {
  margin-top: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--putty-text);
}

.quiz-card.done .quiz-foot { color: var(--carbon); }
.quiz-card.done .quiz-q { min-height: 0; margin: 18px 0 10px; }

.quiz-summary {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--putty-text);
  border-top: 1px solid var(--hairline-soft);
  padding-top: 12px;
}

/* payload */

.payload-card {
  padding: 20px 24px;
  position: relative;
  margin-left: 34px;
  z-index: 1;
}

.payload-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hairline-soft);
}
.payload-id { color: var(--carbon); }
.mono-tag.putty { color: var(--putty); letter-spacing: 0.08em; }

.payload-lines { padding: 14px 0 4px; min-height: 96px; }

.pl {
  font-size: 0.82rem;
  line-height: 2;
  color: var(--carbon);
  opacity: 0;
  transform: translateY(4px);
  animation: pl-in .4s ease forwards;
}
.pl .k { color: var(--putty); }
.pl.placeholder { color: var(--putty); font-style: italic; }

@keyframes pl-in {
  to { opacity: 1; transform: translateY(0); }
}

.stamp {
  position: absolute;
  top: 50%;
  right: 26px;
  transform: translateY(-50%) rotate(-8deg) scale(1.6);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  border: 2px solid var(--red);
  border-radius: 6px;
  padding: 7px 14px;
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: multiply;
}
.stamp.show {
  animation: stamp-in .45s cubic-bezier(.2, 1.4, .4, 1) forwards;
}
.stamp.nurture { color: var(--putty-text); border-color: var(--putty-text); }
@keyframes stamp-in {
  0% { opacity: 0; transform: translateY(-50%) rotate(-8deg) scale(1.7); }
  100% { opacity: 1; transform: translateY(-50%) rotate(-8deg) scale(1); }
}

.payload-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--hairline-soft);
  padding-top: 12px;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--putty-text);
  opacity: 0;
  transition: opacity .4s ease;
}
.payload-card.delivered .payload-foot { opacity: 1; }
.payload-card.delivered .payload-foot > .mono:first-child { color: var(--carbon); }
.payload-card.static .payload-foot { opacity: 1; }

.replay {
  background: none;
  border: none;
  color: var(--putty-text);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 4px 6px;
}
.replay:hover { color: var(--carbon); }

/* ---------- Rail ---------- */

.rail-wrap { margin-top: 72px; }

.rail {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 26px 0;
}

.rail-stage {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
}

.rail-num {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 500;
  color: var(--carbon);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rail-num.red { color: var(--red); }

.rail-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--putty-text);
}

.rail-gate {
  flex: 1;
  position: relative;
  height: 1px;
  background: var(--hairline);
  margin: 0 22px;
}
.rail-gate span {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bone);
  padding: 0 12px;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--putty-text);
  white-space: nowrap;
}

.rail-note {
  margin-top: 14px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--putty-text);
}

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

.section { padding: 128px 0; }
.section.alt { background: var(--plaster); }

.sec-head { margin-bottom: 64px; }
.sec-index {
  display: block;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

/* cards */

.card {
  background: var(--bone);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card .card-tag { display: block; margin-bottom: 16px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.98rem; color: rgba(19,18,16,.75); }

#problem .card { background: var(--plaster); }

.pull {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.015em;
  line-height: 1.3;
  max-width: 26ch;
  margin-top: 72px;
}

/* funnel formats */

.funnel-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.funnel-card {
  background: var(--bone);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.funnel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.funnel-card .mono-tag { display: block; margin-bottom: 18px; }
.funnel-card h3 { margin-bottom: 10px; }
.funnel-card p { font-size: 0.98rem; color: rgba(19,18,16,.75); }

.funnel-card.cta-card {
  background: var(--carbon);
  border-color: var(--carbon);
  color: var(--bone);
}
.cta-card .mono-tag { color: rgba(246,244,238,.55); }
.cta-card h3 { color: var(--bone); }
.cta-card p { color: rgba(246,244,238,.72); margin-bottom: 18px; }
.cta-card .text-link { color: #E8A79B; border-color: rgba(232,167,155,.35); }
.cta-card .text-link:hover { border-color: #E8A79B; }

/* steps */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--hairline);
}

.step {
  display: flex;
  gap: 26px;
  padding: 44px 36px 44px 0;
  border-bottom: 1px solid var(--hairline);
}
.step:nth-child(odd) { border-right: 1px solid var(--hairline); }
.step:nth-child(even) { padding-left: 36px; padding-right: 0; }

.step-num {
  font-size: 0.85rem;
  color: var(--red);
  padding-top: 6px;
  flex-shrink: 0;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.98rem; color: rgba(19,18,16,.75); max-width: 44ch; }

/* ---------- Dark payload section ---------- */

.section.dark {
  background: var(--soot);
  color: var(--bone);
}
.section.dark h2 { color: var(--bone); }
.section.dark .sec-lead { color: rgba(246,244,238,.72); }
.section.dark .sec-index { color: var(--putty-text-inv); border-bottom-color: var(--hairline-inv); }
.section.dark .mono-tag { color: var(--putty-text-inv); }

.payload-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: start;
}

.field-table { margin-top: 44px; border-top: 1px solid var(--hairline-inv); }

.ft-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--hairline-inv);
  font-size: 0.85rem;
}
.ft-row span { color: var(--bone); font-weight: 500; }
.ft-row em {
  font-style: normal;
  font-family: var(--font-body);
  color: rgba(246,244,238,.55);
  font-size: 0.85rem;
  text-align: right;
}

.payload-example .payload-card { margin-left: 0; }
.payload-example .payload-card.static {
  background: #232019;
  border-color: var(--hairline-inv);
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.6);
}
.payload-example .pl { color: rgba(246,244,238,.9); opacity: 1; transform: none; animation: none; }
.payload-example .pl .k { color: var(--putty-text-inv); }
.payload-example .payload-id { color: var(--bone); }
.payload-example .payload-head,
.payload-example .payload-foot { border-color: var(--hairline-inv); }
.payload-example .payload-foot .mono { color: rgba(246,244,238,.6); }
.payload-example .stamp { position: static; transform: rotate(-6deg); display: inline-block; margin: 14px 0 6px; opacity: 1; animation: none; mix-blend-mode: normal; }

/* ---------- Services ---------- */

.services { grid-template-columns: repeat(4, 1fr); }

.svc {
  border-top: 1px solid var(--hairline);
  padding: 26px 18px 10px 2px;
}
.svc-num { display: block; font-size: 0.75rem; color: var(--red); margin-bottom: 16px; }
.svc h3 { font-size: 1.12rem; margin-bottom: 8px; }
.svc p { font-size: 0.92rem; color: rgba(19,18,16,.72); }

.svc-cta { display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding-bottom: 26px; }
.svc-cta h3 { font-size: 1.3rem; }
.svc-cta .text-link { align-self: flex-start; white-space: nowrap; font-size: 0.95rem; }

/* ---------- Use cases ---------- */

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case {
  background: var(--bone);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.case h3 { margin-bottom: 14px; }
.case-q {
  font-size: 0.8rem;
  color: var(--red);
  border-left: 2px solid var(--red);
  padding-left: 12px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.case p:not(.case-q) { font-size: 0.95rem; color: rgba(19,18,16,.75); }

.case-cta { display: flex; flex-direction: column; align-items: flex-start; }
.case-cta p { margin-bottom: 16px; }
.case-cta .text-link { margin-top: auto; white-space: nowrap; }

/* ---------- Why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}
.why-grid .sec-head { margin-bottom: 0; position: sticky; top: 120px; }

.why-list { list-style: none; border-top: 1px solid var(--hairline); }
.why-list li {
  display: flex;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--hairline);
}
.why-num { color: var(--red); font-size: 0.9rem; padding-top: 4px; }
.why-list h3 { font-size: 1.18rem; margin-bottom: 6px; }
.why-list p { font-size: 0.96rem; color: rgba(19,18,16,.75); max-width: 52ch; }

/* ---------- Trust ---------- */

.trust {
  background: var(--bone);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow-card);
}
.trust h3 { margin-bottom: 12px; }
.trust p { font-size: 0.97rem; color: rgba(19,18,16,.75); }

/* ---------- Book ---------- */

.section.book { padding-bottom: 140px; }

.book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 72px;
  align-items: start;
}
.book-grid .sec-head { margin-bottom: 0; }

.book-proof {
  margin-top: 22px;
  font-size: 0.97rem;
  line-height: 1.65;
  color: rgba(19,18,16,.65);
  max-width: 52ch;
  border-left: 2px solid var(--red);
  padding-left: 16px;
}

.book-points {
  list-style: none;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--carbon);
}

.book-who {
  margin-top: 26px;
  color: rgba(19,18,16,.7);
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.05rem;
  letter-spacing: -0.005em;
  max-width: 40ch;
}

.book-form {
  background: var(--plaster);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 36px 34px;
  box-shadow: var(--shadow-lift);
  position: relative;
}

.hp { position: absolute; left: -9999px; opacity: 0; }

.ff { margin-bottom: 18px; }
.ff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.ff label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 7px;
  letter-spacing: 0.01em;
}
.ff .opt { color: var(--putty); font-weight: 400; }

.ff input, .ff select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--carbon);
  background: var(--bone);
  border: 1px solid var(--hairline);
  border-radius: 9px;
  padding: 13px 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
  appearance: none;
}
.ff select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23131210' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.ff input::placeholder { color: rgba(19,18,16,.35); }
.ff input:focus, .ff select:focus {
  outline: none;
  border-color: var(--carbon);
  box-shadow: 0 0 0 3px rgba(19,18,16,.08);
}

.book-form .btn { margin-top: 8px; }

.form-note {
  margin-top: 16px;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--putty-text);
}
.form-note a { color: inherit; }

.book-form.sent .ff, .book-form.sent .ff-row, .book-form.sent .hp,
.book-form.sent .btn, .book-form.sent .form-note { display: none; }
.book-form.sent .form-done { position: static; padding: 56px 24px; }

.form-done[hidden] { display: none; }

.form-done {
  position: absolute;
  inset: 0;
  background: var(--plaster);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  padding: 40px;
}
.form-done .mono { color: var(--red); font-size: 1.1rem; }
.form-done p:not(.mono) { color: rgba(19,18,16,.75); max-width: 32ch; }

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

.footer {
  background: var(--soot);
  color: var(--bone);
  padding: 72px 0 36px;
}

.footer .wordmark { color: var(--bone); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 48px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--hairline-inv);
}

.footer-line {
  margin-top: 14px;
  font-size: 0.92rem;
  color: rgba(246,244,238,.6);
  max-width: 34ch;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}
.footer-links a {
  color: rgba(246,244,238,.7);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color .15s ease;
}
.footer-links a:hover { color: var(--bone); }

.footer-contact a { color: var(--bone); text-decoration: none; font-size: 0.88rem; border-bottom: 1px solid var(--hairline-inv); padding-bottom: 2px; }
.footer-contact a:hover { border-color: var(--bone); }

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 28px;
}
.footer-base .mono { font-size: 0.7rem; letter-spacing: 0.06em; color: rgba(246,244,238,.62); }

/* ---------- Reveal motion ---------- */

/* hidden state only applies once JS has confirmed it's running (html.js) —
   without JS the page renders fully visible */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2,.65,.25,1), transform .8s cubic-bezier(.2,.65,.25,1);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal { opacity: 1; transform: none; transition: none; }
  .pl { animation-duration: 0s; }
  .stamp.show { animation-duration: 0s; opacity: 1; }
  .card, .funnel-card, .case, .btn { transition: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero-grid { gap: 40px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .funnel-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .payload-grid, .book-grid { gap: 48px; }
}

@media (max-width: 880px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--bone);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 12px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px var(--pad-x); font-size: 1.05rem; }
  .nav-burger { display: flex; }
  .nav-cta { margin-left: auto; }
  .nav-burger { margin-left: 0; }

  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-demo { padding-left: 0; max-width: 560px; }

  .section { padding: 96px 0; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 36px 0 !important; border-right: none !important; }
  .payload-grid, .why-grid, .book-grid { grid-template-columns: 1fr; }
  .why-grid .sec-head { position: static; }
  .sec-head { margin-bottom: 48px; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .nav-inner { gap: 12px; }
  .wordmark { font-size: 1.45rem; }
  .nav-cta .btn { padding: 11px 16px; font-size: 0.88rem; }
  .nav-cta .cta-long { display: none; }
  .nav-cta .cta-short { display: inline; }
  .section { padding: 76px 0; }
  .funnel-grid, .case-grid, .services { grid-template-columns: 1fr; }
  .quiz-opts { grid-template-columns: 1fr; }
  .payload-card { margin-left: 0; }
  .hero-ctas .btn { width: 100%; text-align: center; }

  .rail { flex-direction: column; align-items: flex-start; gap: 18px; padding: 22px 0; }
  .rail-gate { width: 1px; height: 34px; margin: 0 0 0 60px; flex: none; background: var(--hairline); }
  .rail-gate span { top: 50%; left: 18px; transform: translateY(-50%); background: none; padding: 0; }
  .rail-stage { flex-direction: row; align-items: baseline; gap: 14px; }

  .ff-row { grid-template-columns: 1fr; gap: 0; }
  .book-form { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-base { flex-direction: column; gap: 8px; }
}

/* Insert Smile wordmark is wider than the old one — tighten nav before the burger breakpoint */
@media (max-width: 1140px) and (min-width: 881px) {
  .wordmark { font-size: 1.4rem; }
  .nav-links { gap: 20px; }
  .nav-inner { gap: 22px; }
  .nav-links a { font-size: 0.9rem; }
}
