/* Fluxcast funnel — design system (2026-10-14)
   Mono brand (client-work/fluxcast/brand/BRAND.md) + ONE action colour: blue means "click this", nothing else is blue. */
:root {
  --ink: #111113;
  --ink-2: #3A3A42;
  --muted: #6E6E77;
  --line: #E4E2DD;
  --line-2: #D3D1CB;
  --bg: #F6F5F2;
  --card: #FFFFFF;
  --soft: #EFEDE8;
  --dark: #0A0A0C;
  --dark-2: #121216;
  --dark-line: #232329;
  --on-dark: #F4F4F5;
  --on-dark-2: #B3B3BB;
  --on-dark-3: #7D7D87;
  --accent: #2D5BFF;
  --accent-hover: #1E47E6;
  --ph-bg: #FCE4EC;
  --ph-ink: #9C1B4A;
  --r: 16px;
  --read: 680px;
  --wide: 1040px;
  --display: "Inter Tight", Inter, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--read); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.wrap.wide { max-width: var(--wide); }

/* ---------- Header + footer ---------- */
.site-header { background: rgba(246,245,242,.92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { max-width: var(--wide); display: flex; align-items: center; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.logo .wm { font-size: 21px; font-weight: 640; letter-spacing: -0.03em; color: #111114; }
.logo .wm span { font-weight: 340; color: #8A8A92; }
.site-header.dark { background: rgba(10,10,12,.92); border-bottom-color: rgba(255,255,255,.07); }
.site-header.dark .wm { color: var(--on-dark); }
.site-header.dark .wm span { color: #8A8A92; }
.site-header.dark svg path[fill] { fill: var(--on-dark); }
.site-header.dark svg path[stroke] { stroke: var(--on-dark); }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 44px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { max-width: var(--wide); }
.site-footer a { color: var(--muted); }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); }
h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.08; letter-spacing: -0.024em; font-weight: 700; margin: 0 0 20px; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.14; letter-spacing: -0.022em; font-weight: 700; margin: 0 0 16px; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 650; margin: 0 0 8px; }
p { margin: 0 0 18px; }
.sub { font-size: clamp(17px, 1.9vw, 20px); line-height: 1.6; }
.small { font-size: 14px; color: var(--muted); }
.center { text-align: center; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.kicker { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 650; margin: 0 0 14px; }

/* ---------- Buttons: the only blue on the page ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-width: 320px; max-width: 100%; padding: 19px 30px; border: 0; border-radius: 12px;
  background: var(--accent); color: #fff; font: inherit; font-family: var(--display); font-weight: 650; font-size: 18px; letter-spacing: -0.01em; line-height: 1.25;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 10px 26px -12px rgba(45,91,255,.75);
  transition: transform .14s ease, background .14s ease, box-shadow .14s ease;
}
.btn::after { content: "→"; font-weight: 400; transition: transform .14s ease; }
.btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 14px 30px -12px rgba(45,91,255,.8); }
.btn:hover::after { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(45,91,255,.45); outline-offset: 3px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; }
.btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.btn.secondary::after { content: none; }
.btn.secondary:hover { background: var(--soft); }

/* ---------- Hero (dark) ---------- */
.hero-band { position: relative; background: var(--dark); color: var(--on-dark); padding-bottom: 72px; isolation: isolate; }
.hero { max-width: var(--wide); margin: 0 auto; padding: 76px 20px 0; text-align: center; }
.hero h1 { color: #fff; max-width: 920px; margin-left: auto; margin-right: auto; }
.hero h1 .serif { font-size: 1.12em; line-height: .9; }
.hero .sub { color: var(--on-dark-2); max-width: 700px; margin: 0 auto 40px; }

/* Video */
.video {
  position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, #1A1A20 0%, #111115 100%);
  border: 1px solid #2A2A31; box-shadow: 0 0 0 6px rgba(255,255,255,.025), 0 40px 80px -40px rgba(0,0,0,.95);
  display: flex; align-items: center; justify-content: center; color: #8E8E97; font-size: 15px; text-align: center;
}
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .play { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); }
.video .play::after { content: ""; border-left: 22px solid var(--dark); border-top: 13px solid transparent; border-bottom: 13px solid transparent; margin-left: 6px; }
.video-note { margin: 16px auto 0; max-width: 620px; font-size: 14px; color: var(--on-dark-3); }

.cta-block { text-align: center; margin: 40px auto 0; max-width: 640px; }
.cta-block > p:first-child { color: #C9C9D0; margin-bottom: 20px; }
.trust { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.hero-band .trust { color: var(--on-dark-3); }
.hero-band .ph { background: rgba(236,120,160,.16); color: #F7A8C4; }

/* ---------- Reading section (light) ---------- */
.summary { padding-top: 88px; }
.summary > h2 { text-align: center; margin-bottom: 32px; }
.summary > p { font-size: 18px; line-height: 1.72; color: var(--ink-2); }
.summary > h2 + p { font-size: 20px; color: var(--ink); }
.summary h3.steps-title { margin: 48px 0 20px; font-size: 24px; letter-spacing: -0.025em; }

/* How it works: a timeline */
ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 28px; position: relative; }
ol.steps::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 30px; width: 1px; background: var(--line-2); }
ol.steps li { counter-increment: s; position: relative; padding: 4px 0 22px 58px; color: var(--ink-2); font-size: 17px; }
ol.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 35px; height: 35px; border-radius: 50%;
  background: var(--bg); border: 1.5px solid var(--ink); color: var(--ink);
  font-family: var(--display); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center;
}

/* ---------- Results (dark) ---------- */
.results-band { position: relative; background: var(--dark); color: var(--on-dark); padding: 96px 0 84px; margin-top: 88px; isolation: isolate; }
.results-band .kicker { text-align: center; color: var(--on-dark-3); }
.results-band h2 { color: #fff; text-align: center; margin-bottom: 14px; }
.results-intro { text-align: center; color: var(--on-dark-2); max-width: 560px; margin: 0 auto 48px; font-size: 18px; }
.results { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 860px; margin: 0 auto; }
.results:has(> .result:only-child) { grid-template-columns: 1fr; max-width: 560px; }
.result { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--r); padding: 26px 24px 22px; display: flex; flex-direction: column; }
.r-num { font-family: var(--display); font-size: clamp(34px, 3.8vw, 46px); font-weight: 700; letter-spacing: -0.028em; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.r-what { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 650; color: var(--on-dark-3); margin: 10px 0 18px; }
.result p { font-size: 15px; line-height: 1.55; color: var(--on-dark-2); margin: 0; }
.results-foot { text-align: center; color: var(--on-dark-3); font-size: 14px; max-width: 560px; margin: 36px auto 0; }

/* Comparison bars (lower cost = shorter bar) */
.bars { display: grid; gap: 8px; margin-top: auto; }
.bar { position: relative; height: 34px; border-radius: 8px; background: rgba(255,255,255,.04); overflow: hidden; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; font-size: 13px; }
.bar::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: 8px; transform-origin: left; transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.bar.us::before { background: #F1F1F3; }
.bar.them::before { background: #2C2C33; }
.bar span, .bar b { position: relative; z-index: 1; }
.bar.us span, .bar.us b { color: #111113; }
.bar.them span { color: var(--on-dark-2); }
.bar.them b { color: #fff; }
.bar b { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.bar.us { justify-content: flex-start; }
.bar.us b { position: absolute; left: calc(var(--w) + 10px); color: #fff; }
.bar.us span { white-space: nowrap; }
.js .bar::before { transform: scaleX(0); }
.js .reveal.in .bar::before { transform: scaleX(1); }

/* ---------- Who it's for + final CTA ---------- */
.not-for { margin: 72px 0 0; padding: 22px 24px; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--ink-2); font-size: 16px; background: var(--card); }
.cta-final { background: var(--dark); color: var(--on-dark); border-radius: 24px; padding: 48px 28px; text-align: center; margin: 28px 0 88px; position: relative; overflow: hidden; isolation: isolate; }
.cta-final p { color: #D6D6DC; font-family: var(--display); font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; letter-spacing: -0.015em; max-width: 560px; margin: 0 auto 26px; }
.cta-final .trust { font-family: inherit; font-size: 14px; color: var(--on-dark-3); margin-top: 16px; letter-spacing: 0; }

/* ---------- Sticky CTA (phones, after the hero) ---------- */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(246,245,242,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform .25s ease; }
  .sticky-cta.show { transform: translateY(0); }
  .sticky-cta .btn { width: 100%; min-width: 0; padding: 15px 18px; font-size: 16px; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .bar::before { transform: none; transition: none; }
}

/* Yellow highlights — few, short, on ideas (never numbers or claims). Blue stays for clicks only. */
mark { background: linear-gradient(transparent 52%, #FFE566 52%, #FFE566 92%, transparent 92%); color: inherit; padding: 0 .12em; margin: 0 -.06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hl-text { color: #FFD84D; }
.ul-y { background: linear-gradient(transparent 88%, rgba(255,216,77,.9) 88%); -webkit-box-decoration-break: clone; box-decoration-break: clone; padding-bottom: .04em; }

/* ---------- Placeholders ---------- */
.ph { background: var(--ph-bg); color: var(--ph-ink); padding: 0 5px; border-radius: 4px; font-weight: 600; }
.ph-box { border: 2px dashed #D9789C; background: var(--ph-bg); color: var(--ph-ink); border-radius: var(--r); padding: 28px 20px; text-align: center; font-weight: 600; margin: 20px 0; }

/* ---------- Application / booking / confirmation ---------- */
.page-top { padding-top: 52px; padding-bottom: 40px; }
.page-top h1 { font-size: clamp(28px, 3.8vw, 40px); }
.page-top .intro { color: var(--ink-2); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; margin: 28px 0; box-shadow: 0 1px 2px rgba(17,17,19,.04), 0 18px 40px -28px rgba(17,17,19,.25); }
.progress { display: flex; gap: 6px; margin: 0 0 20px; }
.progress span { flex: 1; height: 5px; background: var(--soft); border-radius: 4px; }
.progress span.on { background: var(--ink); }
.step-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 650; margin-bottom: 4px; }
.step { display: none; }
.step.active { display: block; animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
label.field { display: block; font-weight: 650; margin: 22px 0 6px; }
.helper { font-size: 14px; color: var(--muted); margin: -2px 0 8px; }
input[type=text], input[type=email], input[type=tel], input[type=url], select {
  width: 100%; height: 52px; padding: 0 15px; font: inherit; font-size: 16px; color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 12px; background: #fff; transition: border-color .12s ease, box-shadow .12s ease;
}
input:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,19,.08); }
fieldset { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
legend { font-family: var(--display); font-weight: 650; font-size: 18px; line-height: 1.35; letter-spacing: -0.01em; margin-bottom: 4px; padding: 0; }
.why { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.option { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; margin: 8px 0; cursor: pointer; background: #fff; transition: border-color .12s ease, background .12s ease; }
.option:hover { border-color: #A8A6A0; }
.option input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1.5px solid #9A9AA2; border-radius: 50%; margin: 0; flex: none; display: grid; place-content: center; }
.option input::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .1s ease; }
.option:has(input:checked) { border-color: var(--ink); background: #FAFAF8; box-shadow: 0 0 0 1px var(--ink) inset; }
.option input:checked { background: var(--ink); border-color: var(--ink); }
.option input:checked::before { transform: scale(1); }
.big-q { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 30px; }
.big-q legend { font-size: 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.check.sms { border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; background: #FCFCFA; }
.check.sms strong { color: var(--ink); font-size: 15px; }
.form-nav { display: flex; gap: 10px; margin-top: 28px; }
.form-nav .btn { flex: 1; min-width: 0; }
.form-nav #back { flex: 0 0 auto; }
.error { color: #B3261E; font-size: 14px; margin-top: 12px; min-height: 1em; }

/* Opt-in popup */
.modal { position: fixed; inset: 0; background: rgba(10,10,12,.6); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 60; animation: fadein .15s ease; }
.modal-card { position: relative; background: var(--card); border-radius: 22px; padding: 34px 28px 26px; width: 100%; max-width: 460px; box-shadow: 0 40px 100px -30px rgba(0,0,0,.55); }
.modal-card h2 { margin: 0 36px 8px 0; font-size: 26px; }
.modal-card .btn { width: 100%; min-width: 0; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; }

/* Booking */
/* Wider than the reading column so the times sit beside the dates on desktop; height comes from the widget (book.html). */
.calendar { display: block; width: min(960px, calc(100vw - 32px)); height: 760px; position: relative; left: 50%; transform: translateX(-50%); margin-top: 8px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }

/* Confirmation */
.booked-hero { text-align: center; margin-bottom: 32px; }
.booked-hero h1 { margin-top: 10px; }
.booked-check { width: 88px; height: 88px; margin: 0 auto 22px; border-radius: 50%; background: #16A34A; box-shadow: 0 0 0 10px rgba(22,163,74,.12), 0 18px 40px -16px rgba(22,163,74,.7); animation: booked-pop .5s cubic-bezier(.2,1.4,.4,1); }
.booked-check svg { width: 100%; height: 100%; }
.booked-check .ring { fill: none; stroke: none; }
.booked-check .tick { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 34; stroke-dashoffset: 0; animation: booked-tick .7s ease-out; }
.booked-eyebrow { margin: 0; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .22em; color: #16A34A; }
@keyframes booked-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
/* The tick is visible by default; the animation only draws it in, so it never ends up missing. */
@keyframes booked-tick { 0%, 45% { stroke-dashoffset: 34; } 100% { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .booked-check { animation: none; } .booked-check .tick { animation: none; } }
.recap { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 28px; }
.recap p { margin: 0; }
.recap p + p { margin-top: 6px; }
.confirm .video { margin-bottom: 8px; }
.confirm h2 { margin-top: 44px; font-size: 24px; }
.confirm ol { padding-left: 22px; color: var(--ink-2); }
.confirm ol li { margin-bottom: 8px; }

.cal-add { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cal-add .btn { min-width: 0; flex: 1 1 auto; padding: 11px 14px; font-size: 14px; }

/* Legal pages */
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; }
.legal ul { padding-left: 22px; margin: 0 0 18px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--ink); }

/* Dev bar (local preview only) */
.dev-bar { background: #000; color: #E8E8EA; font-size: 12px; padding: 7px 16px; text-align: center; }
.dev-bar a { color: #E8E8EA; margin: 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 44px; }
  .hero-band { padding-bottom: 56px; }
  .btn { width: 100%; min-width: 0; font-size: 17px; padding: 17px 20px; }
  .video { border-radius: 12px; }
  .results { grid-template-columns: 1fr; }
  .results-band { padding: 68px 0 60px; margin-top: 64px; }
  .summary { padding-top: 64px; }
  .card { padding: 22px 16px; }
  .cta-final { padding: 36px 20px; border-radius: 18px; margin-bottom: 96px; }
}

/* Play-only VSL: no controls/timeline, big play button while paused, end screen with the apply button. */
.video.locked video { cursor: pointer; }
.video .vplay { position: absolute; inset: 0; border: 0; background: rgba(0,0,0,.18); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: opacity .2s; }
.video .vplay .play { margin: 0; }
.video.playing .vplay { opacity: 0; pointer-events: none; }
.video.ended .vplay { display: none; }
.video .vend { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(8,8,10,.72); animation: vend-in .4s ease both; }
.video .vend .btn { max-width: 420px; }
@keyframes vend-in { from { opacity: 0; } to { opacity: 1; } }
.video .vbar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.18); pointer-events: none; }
.video .vbar span { display: block; height: 100%; width: 0; background: #fff; }
.video.ended .vbar { display: none; }
