:root {
  --bg: #F2F3F1;
  --surface: #FFFFFF;
  --surface-alt: #E9EBE8;
  --border: #D8DBD7;
  --border-soft: #E4E6E3;
  --text: #141B1A;
  --text2: #56605E;
  --text3: #8A918F;
  --accent: #6E2A35;
  --accent-deep: #521F27;
  --accent-tint: #F5E9EA;
  --font-serif: "Newsreader", Georgia, "Iowan Old Style", serif;
  --font-sans: "Public Sans", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1140px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 32px; }

a { color: inherit; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; text-wrap: balance; letter-spacing: -0.01em; }

.eyebrow {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
}

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(242, 243, 241, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
header.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo {
  font-family: var(--font-serif);
  font-size: 23px;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}
nav.links { display: flex; align-items: center; gap: 32px; }
nav.links a {
  position: relative; font-size: 14px; color: var(--text2);
  text-decoration: none; padding-bottom: 3px;
}
nav.links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1px; background: var(--accent); transition: right 0.25s ease;
}
nav.links a:hover { color: var(--text); }
nav.links a:hover::after { right: 0; }

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1px solid var(--border); border-radius: 3px;
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; width: 18px; height: 1.5px; background: var(--text);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 14.5px/1 var(--font-sans);
  color: #FBF6F6; background: var(--accent);
  border: 1px solid var(--accent);
  padding: 14px 24px; border-radius: 3px;
  text-decoration: none; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: var(--accent-tint); transform: translateY(-1px); }
.btn.small { padding: 10px 18px; font-size: 13.5px; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- hero ---------- */
section.hero { padding: 96px 0 88px; position: relative; overflow: hidden; }
#radar {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, black, black 52%, transparent 94%);
  mask-image: linear-gradient(to bottom, black, black 52%, transparent 94%);
}
.hero .center { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.12; margin-bottom: 22px; }
.hero p.sub { font-size: 17.5px; line-height: 1.7; color: var(--text2); max-width: 50ch; margin: 0 auto 34px; }

/* hero entrance choreography */
.js-anim .hero-anim > * { opacity: 0; transform: translateY(16px); animation: heroIn 0.85s cubic-bezier(0.22, 0.8, 0.3, 1) forwards; }
.hero-anim > *:nth-child(1) { animation-delay: 0.08s; }
.hero-anim > *:nth-child(2) { animation-delay: 0.22s; }
.hero-anim > *:nth-child(3) { animation-delay: 0.36s; }
.hero-anim > *:nth-child(4) { animation-delay: 0.5s; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* ---------- engines strip ---------- */
.engines { border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); padding: 30px 0; background: var(--surface-alt); overflow: hidden; }
.engines p.lead { text-align: center; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text3); margin-bottom: 18px; }
.engine-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; }
.engine-list span {
  position: relative; font-family: var(--font-serif); font-size: 19px; color: var(--text3);
  transition: color 0.45s ease, transform 0.45s ease;
}
.engine-list span::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform 0.45s ease;
}
.engine-list span.lit { color: var(--accent); transform: translateY(-2px); }
.engine-list span.lit::after { transform: scaleX(1); }

/* ---------- section shell ---------- */
section { padding: 92px 0; scroll-margin-top: 86px; }
section.bordered { border-top: 1px solid var(--border); position: relative; }
.sec-mark {
  position: absolute; top: -15px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); color: var(--accent); font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.kicker { text-align: center; margin-bottom: 58px; }
.kicker h2 { font-size: clamp(27px, 3.4vw, 38px); line-height: 1.22; margin-bottom: 16px; }
.kicker p { color: var(--text2); max-width: 58ch; margin: 0 auto; font-size: 16px; }

/* ---------- problem section ---------- */
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: 980px; margin: 0 auto; }
.problem h2 { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.24; margin-bottom: 20px; }
.problem p { color: var(--text2); font-size: 16px; margin-bottom: 16px; }
.problem p:last-child { margin-bottom: 0; }
.answer-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 5px;
  padding: 26px 28px;
}
.answer-card .q {
  position: relative;
  font-size: 13.5px; color: var(--text3); font-style: italic;
  border-bottom: 1px solid var(--border-soft); padding-bottom: 14px; margin-bottom: 16px;
  white-space: nowrap; overflow: hidden;
}
.answer-card ol { list-style: none; counter-reset: rank; }
.answer-card li {
  counter-increment: rank; display: flex; gap: 14px; align-items: baseline;
  padding: 9px 0; font-size: 14.5px;
}
.answer-card li::before {
  content: counter(rank); font-family: var(--font-serif); font-size: 14px;
  color: var(--text3); min-width: 14px;
}
.answer-card li.you {
  margin-top: 8px; padding: 12px 14px; background: var(--accent-tint);
  border-radius: 3px; color: var(--accent); font-weight: 500;
}
.answer-card li.you::before { content: "—"; color: var(--accent); }

/* answer-card: typewriter question + staged answer rows */
.js-anim .answer-card.staged .q { clip-path: inset(0 100% 0 0); }
.answer-card.staged .q::after {
  content: ""; position: absolute; top: 2px; bottom: 16px; width: 1px;
  background: var(--accent); opacity: 0;
}
.answer-card.staged.playing .q { animation: typeIn 1.05s steps(38, end) forwards; }
.answer-card.staged.playing .q::after { animation: caret 0.7s steps(1) 6, caretOut 0.1s 4.2s forwards; }
@keyframes typeIn { to { clip-path: inset(0 0 0 0); } }
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes caretOut { to { opacity: 0; } }

.js-anim .answer-card.staged li { opacity: 0; transform: translateY(6px); }
.answer-card.staged.playing li { animation: rowIn 0.5s cubic-bezier(0.22, 0.8, 0.3, 1) forwards; }
.answer-card.staged.playing li:nth-child(1) { animation-delay: 1.2s; }
.answer-card.staged.playing li:nth-child(2) { animation-delay: 1.55s; }
.answer-card.staged.playing li:nth-child(3) { animation-delay: 1.9s; }
.answer-card.staged.playing li.you { animation: rowIn 0.5s cubic-bezier(0.22, 0.8, 0.3, 1) 2.45s forwards, youPulse 1.1s ease-out 2.75s; }
@keyframes rowIn { to { opacity: 1; transform: translateY(0); } }
@keyframes youPulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 42, 53, 0.28); }
  100% { box-shadow: 0 0 0 14px rgba(110, 42, 53, 0); }
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1000px; margin: 0 auto; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-top: 2px solid var(--border);
  border-radius: 5px; padding: 34px 30px;
  transition: border-top-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.step:hover {
  border-top-color: var(--accent); transform: translateY(-3px);
  box-shadow: 0 12px 28px -18px rgba(20, 27, 26, 0.3);
}
.step .idx { font-family: var(--font-serif); font-size: 27px; color: var(--accent); margin-bottom: 16px; }
.step h3 { font-size: 21px; margin-bottom: 11px; }
.step p { font-size: 15px; color: var(--text2); line-height: 1.65; }

/* ---------- scorecard ---------- */
.scorecard-intro { margin-top: 66px; text-align: center; }
.scorecard-lead { font-size: 14.5px; color: var(--text2); margin-bottom: 22px; }
.scorecard {
  margin: 0 auto; max-width: 580px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 5px;
  padding: 28px 32px 24px; text-align: left;
}
.scorecard .head {
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border); padding-bottom: 18px; margin-bottom: 18px;
}
.scorecard .head .t { font-size: 12px; color: var(--text2); letter-spacing: 0.08em; text-transform: uppercase; max-width: 22ch; line-height: 1.5; }
.scorecard .foot { font-size: 12px; color: var(--text3); margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--border-soft); }

/* circular gauge */
.gauge { position: relative; width: 78px; height: 78px; flex-shrink: 0; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge circle { fill: none; stroke-width: 5; }
.gauge .g-track { stroke: var(--accent-tint); }
.gauge .g-arc {
  stroke: var(--accent); stroke-linecap: round;
  stroke-dasharray: 169.6; stroke-dashoffset: 111.9;
  transition: stroke-dashoffset 1.4s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.js-anim .scorecard:not(.in-view) .gauge .g-arc { stroke-dashoffset: 169.6; }
.gauge .g-val {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px;
}
.gauge .g-num { font-family: var(--font-serif); font-size: 23px; line-height: 1; font-variant-numeric: tabular-nums; }
.gauge .g-max { font-size: 10px; color: var(--text3); letter-spacing: 0.04em; }

.pillar { display: grid; grid-template-columns: 185px 1fr 40px; align-items: center; gap: 12px; padding: 7px 0; }
.pillar .l { font-size: 13px; color: var(--text2); text-align: left; }
.pillar .track { display: block; height: 5px; background: var(--accent-tint); border-radius: 3px; overflow: hidden; }
.pillar .fill {
  display: block; height: 100%; background: var(--accent); border-radius: 3px;
  width: var(--target); transition: width 1.1s cubic-bezier(0.22, 0.8, 0.3, 1);
}
.js-anim .scorecard:not(.in-view) .pillar .fill { width: 0; }
.scorecard.in-view .pillar:nth-child(2) .fill { transition-delay: 0.1s; }
.scorecard.in-view .pillar:nth-child(3) .fill { transition-delay: 0.22s; }
.scorecard.in-view .pillar:nth-child(4) .fill { transition-delay: 0.34s; }
.scorecard.in-view .pillar:nth-child(5) .fill { transition-delay: 0.46s; }
.pillar .v { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--text2); text-align: right; }

/* ---------- deliverables ---------- */
.deliverables { position: relative; max-width: 800px; margin: 0 auto; border-top: 1px solid var(--border-soft); }
.deliverables::before {
  content: ""; position: absolute; left: 16px; top: 0; width: 2px; height: 100%;
  background: var(--border-soft);
}
.deliverables::after {
  content: ""; position: absolute; left: 16px; top: 0; width: 2px;
  height: var(--progress, 0%); background: var(--accent);
  transition: height 0.15s linear;
}
.deliverable {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 34px 1fr; gap: 20px; align-items: start;
  padding: 22px 4px; border-bottom: 1px solid var(--border-soft);
}
.deliverable .num {
  font-family: var(--font-serif); font-size: 15px; color: var(--accent);
  background: var(--bg); padding: 2px 0 4px; text-align: center;
}
.deliverable h3 { font-size: 17.5px; margin-bottom: 5px; }
.deliverable p { font-size: 14.5px; color: var(--text2); line-height: 1.6; }

/* ---------- stats ---------- */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; max-width: 900px; margin: 0 auto; }
.stat { text-align: center; }
.stat .n { font-family: var(--font-serif); font-size: 42px; color: var(--accent); line-height: 1.1; }
.stat .l { font-size: 13.5px; color: var(--text2); margin-top: 8px; max-width: 26ch; margin-left: auto; margin-right: auto; }
.stat-src { text-align: center; font-size: 12px; color: var(--text3); margin-top: 34px; }

/* ---------- pull quote ---------- */
.pullquote { border-top: 1px solid var(--border); padding: 80px 0; }
.pullquote blockquote {
  max-width: 740px; margin: 0 auto; text-align: center;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(22px, 3vw, 31px); line-height: 1.42; color: var(--text);
}
.pullquote cite {
  display: block; margin-top: 24px; font-style: normal; font-size: 12px;
  color: var(--text3); letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- difference ---------- */
.diffs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; max-width: 940px; margin: 0 auto; }
.diff { background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 28px 28px; }
.diff h3 { font-size: 18.5px; margin-bottom: 10px; }
.diff p { font-size: 14.5px; color: var(--text2); line-height: 1.65; }

/* ---------- pricing ---------- */
.pricing-note { text-align: center; font-size: 13.5px; color: var(--text2); margin: -34px auto 50px; max-width: 54ch; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 1140px; margin: 0 auto; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: 5px;
  padding: 28px 22px; display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: 0 12px 28px -18px rgba(20, 27, 26, 0.3); }
.plan.feat { border: 1.5px solid var(--accent); box-shadow: 0 6px 22px -16px rgba(110, 42, 53, 0.4); }
.plan.feat:hover { box-shadow: 0 16px 30px -16px rgba(110, 42, 53, 0.45); }
.plan .badge {
  align-self: flex-start; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--accent-tint); color: var(--accent); padding: 5px 11px; border-radius: 2px; margin-bottom: 16px;
  font-weight: 600;
}
.plan h3 { font-size: 20px; margin-bottom: 10px; }
.plan .from { font-size: 11.5px; color: var(--text3); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 3px; }
.plan .price { font-family: var(--font-serif); font-size: 27px; margin-bottom: 5px; color: var(--accent); line-height: 1.1; }
.plan .price small { font-family: var(--font-sans); font-size: 12.5px; color: var(--text3); }
.plan .ast {
  color: var(--accent); text-decoration: none; font-size: 13px;
  padding-left: 1px; vertical-align: super; line-height: 0;
}
.plan .ast:hover { text-decoration: underline; }
.plan .ast:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.tarifs-note {
  display: grid; grid-template-columns: 16px 1fr; gap: 8px;
  max-width: 76ch; margin: 40px auto 0;
  font-size: 13px; color: var(--text2); line-height: 1.7;
  padding-top: 22px; border-top: 1px solid var(--border-soft);
  scroll-margin-top: 100px;
}
.tarifs-note .ast-mark { color: var(--accent); font-size: 15px; line-height: 1.5; }
.tarifs-note:target { background: var(--accent-tint); border-radius: 4px; padding: 22px 18px; }
.plan .when { font-size: 12.5px; color: var(--text3); line-height: 1.45; margin-bottom: 12px; }
.plan .then {
  font-size: 13px; color: var(--text2); line-height: 1.45;
  padding: 9px 11px; background: var(--surface-alt); border-radius: 3px; margin-bottom: 18px;
}
.plan .then strong { color: var(--accent); font-weight: 500; }
.plan ul { list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--text2); }
.plan li { padding: 9px 0; border-top: 1px solid var(--border-soft); line-height: 1.5; }
.plan li:first-child { border-top: none; }
.plan .plan-total {
  font-size: 12.5px; color: var(--text3); line-height: 1.5;
  padding-top: 12px; border-top: 1px solid var(--border-soft); margin-bottom: 18px;
}
.plan .plan-total strong { color: var(--text2); font-weight: 500; }
.plan .btn { margin-top: auto; }

/* ---------- lead form ---------- */
.lead-form { max-width: 660px; margin: 0 auto; }
.lead-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-size: 13px; color: var(--text2); margin-bottom: 7px; font-weight: 500; }
.field label .opt { color: var(--text3); font-weight: 400; }
.field input {
  font-family: var(--font-sans); font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 3px;
  padding: 12px 14px; width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field select, .field textarea {
  font-family: var(--font-sans); font-size: 15px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 3px;
  padding: 12px 14px; width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.field select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2356605E' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 11px;
  padding-right: 38px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text3); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C0C5C1; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.field select.prefilled { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B03A3A; }
.field.invalid input:focus, .field.invalid select:focus { box-shadow: 0 0 0 3px rgba(176, 58, 58, 0.14); }
.field .err { display: none; font-size: 12.5px; color: #B03A3A; margin-top: 6px; }
.field.invalid .err { display: block; }

.lead-form button[type="submit"] { width: 100%; margin-top: 6px; padding: 15px 24px; }
.form-note { font-size: 12.5px; color: var(--text3); line-height: 1.6; margin-top: 16px; text-align: center; }
.contact-form { margin-top: 44px; }

/* ---------- legal pages ---------- */
.legal { padding: 72px 0 88px; }
.legal .legal-head { margin-bottom: 44px; padding-bottom: 30px; border-bottom: 1px solid var(--border); }
.legal h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.16; margin-bottom: 12px; }
.legal .updated { font-size: 13px; color: var(--text3); }
.legal h2 {
  font-size: clamp(21px, 2.6vw, 26px); line-height: 1.3;
  margin: 44px 0 16px; padding-top: 30px; border-top: 1px solid var(--border-soft);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal h3 { font-size: 17.5px; margin: 28px 0 10px; }
.legal p { font-size: 15.5px; color: var(--text2); line-height: 1.75; margin-bottom: 14px; }
.legal ul, .legal ol { margin: 0 0 16px 0; padding-left: 22px; }
.legal li { font-size: 15.5px; color: var(--text2); line-height: 1.7; padding: 4px 0; }
.legal strong { color: var(--text); font-weight: 500; }
.legal a { color: var(--accent); }
.legal table { width: 100%; border-collapse: collapse; margin: 6px 0 20px; font-size: 14.5px; }
.legal th, .legal td {
  text-align: left; padding: 11px 14px; border: 1px solid var(--border-soft);
  color: var(--text2); line-height: 1.6; vertical-align: top;
}
.legal th { background: var(--surface-alt); color: var(--text); font-weight: 500; }
.legal .todo {
  display: block; background: var(--accent-tint); border-left: 3px solid var(--accent);
  padding: 16px 18px; margin: 20px 0; font-size: 14px; color: var(--text2); line-height: 1.65;
  border-radius: 0 3px 3px 0;
}
.legal .todo strong { color: var(--accent); }
.legal-nav { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--border); font-size: 14px; }
.legal-nav a { color: var(--text2); text-decoration: none; }
.legal-nav a:hover { color: var(--accent); }
.legal-nav a[aria-current] { color: var(--accent); font-weight: 500; }

/* ---------- merci page ---------- */
.thanks { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 80px 0; }
.thanks h1 { font-size: clamp(30px, 4vw, 42px); line-height: 1.18; margin-bottom: 18px; }
.thanks p { font-size: 16.5px; color: var(--text2); max-width: 48ch; margin: 0 auto 30px; }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px; max-width: 740px; margin: 0 auto; }
.person { text-align: center; }
.avatar {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--accent-tint); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 27px; margin: 0 auto 18px;
}
.person h3 { font-size: 19px; margin-bottom: 5px; }
.person .role { font-size: 12.5px; color: var(--accent); letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.person p.bio { font-size: 14.5px; color: var(--text2); line-height: 1.65; }

/* ---------- faq ---------- */
.faq { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border-soft); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--font-serif); font-size: 18.5px; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-sans); font-size: 20px; color: var(--accent); line-height: 1;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--accent); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.faq .answer { padding: 0 40px 24px 0; font-size: 15px; color: var(--text2); line-height: 1.7; }
.faq .answer p + p { margin-top: 12px; }

/* ---------- contact ---------- */
.contact-inner { max-width: 620px; margin: 0 auto; text-align: center; }
.contact-inner h2 { font-size: clamp(27px, 3.4vw, 38px); line-height: 1.2; margin-bottom: 16px; }
.contact-inner p { font-size: 16.5px; color: var(--text2); margin-bottom: 32px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 48px 0 40px; background: var(--surface-alt); }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 34px; margin-bottom: 36px; }
footer .f-logo { font-family: var(--font-serif); font-size: 21px; margin-bottom: 4px; }
footer .f-baseline { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
footer .f-tag { font-size: 13.5px; color: var(--text2); max-width: 32ch; line-height: 1.6; }
footer h4 { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text3); font-weight: 600; margin-bottom: 14px; }
footer ul { list-style: none; }
footer li { padding: 5px 0; font-size: 14px; }
footer li a { color: var(--text2); text-decoration: none; }
footer li a:hover { color: var(--accent); }
footer .f-bottom {
  border-top: 1px solid var(--border); padding-top: 22px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  font-size: 13px; color: var(--text3); flex-wrap: wrap;
}

/* ---------- scroll reveal ---------- */
.js-anim .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.65s cubic-bezier(0.22, 0.8, 0.3, 1), transform 0.65s cubic-bezier(0.22, 0.8, 0.3, 1); }
.js-anim .reveal.in-view { opacity: 1; transform: translateY(0); }

/* staggered groups */
.steps .reveal:nth-child(2), .diffs .reveal:nth-child(2), .plans .reveal:nth-child(2) { transition-delay: 0.12s; }
.steps .reveal:nth-child(3), .diffs .reveal:nth-child(3), .plans .reveal:nth-child(3) { transition-delay: 0.24s; }
.diffs .reveal:nth-child(4) { transition-delay: 0.36s; }
.deliverable.reveal:nth-child(2) { transition-delay: 0.08s; }
.deliverable.reveal:nth-child(3) { transition-delay: 0.16s; }
.deliverable.reveal:nth-child(4) { transition-delay: 0.24s; }
.deliverable.reveal:nth-child(5) { transition-delay: 0.32s; }
.team .reveal:nth-child(2) { transition-delay: 0.14s; }

/* section marker draw-in */
.js-anim .sec-mark { opacity: 0; transform: translateX(-50%) scale(0.7); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 0.8, 0.3, 1); }
.js-anim .sec-mark.in-view { opacity: 1; transform: translateX(-50%) scale(1); }

/* Reduced motion: selectors are .js-anim-scoped so they outrank the
   animation start-states above, which would otherwise leave content hidden. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim .reveal,
  .js-anim .reveal.in-view { opacity: 1; transform: none; transition: none; }
  .js-anim .sec-mark,
  .js-anim .sec-mark.in-view { opacity: 1; transform: translateX(-50%); transition: none; }
  .js-anim .hero-anim > * { opacity: 1; transform: none; animation: none; }
  .js-anim .answer-card.staged .q { clip-path: none; }
  .js-anim .answer-card.staged li { opacity: 1; transform: none; }
  .answer-card.staged .q::after { display: none; }
  .answer-card.staged.playing .q,
  .answer-card.staged.playing li,
  .answer-card.staged.playing li.you { animation: none; }
  .js-anim .scorecard:not(.in-view) .gauge .g-arc { stroke-dashoffset: 111.9; }
  .js-anim .scorecard:not(.in-view) .pillar .fill { width: var(--target); }
  .gauge .g-arc, .pillar .fill, .deliverables::after, .engine-list span { transition: none; }
  .step:hover, .plan:hover, .btn:hover { transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .plans { grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: 720px; }
}
@media (max-width: 860px) {
  .problem { grid-template-columns: 1fr; gap: 36px; }
  .diffs { grid-template-columns: 1fr; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  nav.links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px -18px rgba(20, 27, 26, 0.4);
    padding: 8px 0; display: none;
  }
  nav.links.open { display: flex; }
  nav.links a { padding: 14px 32px; font-size: 15px; color: var(--text); }
  nav.links a::after { display: none; }
  nav.links a:hover { background: var(--surface-alt); }
  header.nav .wrap { position: relative; }
}

@media (max-width: 700px) {
  .wrap, .wrap-narrow { padding: 0 22px; }
  nav.links a { padding: 14px 22px; }
  .nav-right .btn.small { padding: 9px 13px; font-size: 12.5px; }
  section { padding: 68px 0; }
  section.hero { padding: 70px 0 64px; }
  .steps, .plans, .stat-row, .team, .field-row { grid-template-columns: 1fr; }
  .plans { max-width: 100%; }
  .pillar { grid-template-columns: 150px 1fr 38px; }
  .scorecard { padding: 24px 22px 20px; }
  footer .cols { grid-template-columns: 1fr; gap: 30px; }
  footer .f-bottom { flex-direction: column; text-align: center; }
}
