/* ============================================================
   SAASUP v2 — styles
   Type: Instrument Serif (headlines) + Figtree (everything else)
   7 sizes, 2 families, 1 accent.
   ============================================================ */

:root {
  --paper: #f5f2eb;
  --paper-2: #ebe6da;
  --paper-3: #e1dbcc;
  --ink: #161512;
  --ink-2: #3f3c36;
  --muted: #6b665d;
  --line: #d6cfc0;
  --accent: #2f5d50;
  --accent-ink: #f5f2eb;
  --accent-soft: #dfe9e3;
  --white: #fffdf8;

  --font-head: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-md: 1.0625rem;
  --fs-lg: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem);
  --fs-h3: clamp(1.5rem, 1.3rem + .8vw, 1.95rem);
  --fs-h2: clamp(2.3rem, 1.5rem + 3.4vw, 4.2rem);
  --fs-h1: clamp(3.2rem, 1.6rem + 6.4vw, 7rem);

  --radius: 6px;
  --wrap: 1120px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: var(--fs-md); line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 400; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: .96; margin-bottom: 1.4rem; }
h2 { font-size: var(--fs-h2); line-height: 1.02; margin-bottom: 1.1rem; }
h3 { font-size: var(--fs-h3); line-height: 1.12; margin-bottom: .5rem; }
h1 em, h2 em { font-style: italic; }
p { max-width: 62ch; text-wrap: pretty; }
a { color: inherit; }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
.center { text-align: center; }
.center p { margin-inline: auto; }
.eyebrow { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }
.lead { font-size: var(--fs-lg); line-height: 1.45; color: var(--ink-2); }
.helper { font-size: var(--fs-sm); color: var(--muted); margin-top: 1rem; max-width: 80ch; }
br.d { display: inline; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: var(--radius); padding: .95rem 1.35rem; font-weight: 600; font-size: var(--fs-md); line-height: 1.2; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease; }
.btn:active { transform: translateY(0) scale(.98); }
.btn-solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.btn-light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-text { background: none; padding-inline: 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.btn-text:hover { color: var(--accent); }
.btn-sm { padding: .6rem .95rem; font-size: var(--fs-sm); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.1rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--nav-h); gap: 1rem; }
.brand { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.brand img { height: 40px; width: auto; }
.footer-brand .brand img { height: 72px; }
.navlinks { display: flex; align-items: center; gap: 1.5rem; font-size: var(--fs-sm); font-weight: 500; }
.navlinks a:not(.btn) { text-decoration: none; }
.navlinks a:not(.btn):hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; padding-bottom: clamp(3rem, 6vw, 4.5rem); }
.hero-copy .lead { max-width: 30ch; margin-bottom: 1.8rem; }
.hero-copy { container-type: inline-size; }
.hero h1 { font-size: min(var(--fs-h1), 15.2cqi); }
.vsl { position: relative; }
/* The frame keeps one size: poster and video sit inside it, so pressing play never moves the page. */
.vsl-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #0d0c0a; box-shadow: 0 30px 60px -30px rgba(22, 21, 18, .45); }
.vsl-frame > .vsl-poster, .vsl-frame > video { position: absolute; inset: 0; width: 100%; height: 100%; }
.vsl-frame > video { object-fit: contain; background: #0d0c0a; }
.transcript-open { display: inline-flex; align-items: center; gap: .45rem; margin-top: .9rem; padding: .35rem 0; background: none; border: 0; font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.transcript-open:hover { color: var(--accent); text-decoration-color: currentColor; }

/* Modals (transcript, review form, call calendar) */
.modal { width: min(640px, calc(100% - 32px)); max-height: min(86vh, 820px); padding: 0; border: 0; border-radius: 16px; background: var(--white); color: var(--ink); box-shadow: 0 40px 80px -20px rgba(22, 21, 18, .45); }
.modal-wide { width: min(1000px, calc(100% - 32px)); }
.modal::backdrop { background: rgba(22, 21, 18, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal[open] { display: flex; animation: modal-in .32s cubic-bezier(.2, .8, .2, 1); }
.modal[open]::backdrop { animation: backdrop-in .32s ease-out; }
.modal.closing { animation: modal-out .2s cubic-bezier(.4, 0, 1, 1) forwards; }
.modal.closing::backdrop { animation: backdrop-out .2s ease-in forwards; }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes modal-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(10px) scale(.985); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-out { from { opacity: 1; } to { opacity: 0; } }
.modal-sub { color: var(--ink-2); margin: -.6rem 0 1.2rem; }
/* The review popup scrolls as a whole, so inputs and focus rings are never clipped at the edges */
#review-modal .modal-inner { overflow-y: auto; overscroll-behavior: contain; }
#review-modal .modal-form { overflow: visible; flex: none; min-height: auto; padding-top: 1.25rem; margin-bottom: 0; }
.modal-form .review-form .fields { margin-bottom: 1.2rem; }
.modal-form .form-state { margin-top: 0; }
.modal-cal { padding-top: .5rem; }
.cal-modal-embed { position: relative; min-height: 520px; }
.cal-modal-embed.loaded .cal-loading { display: none; }
.modal-cal:has(.cal-modal-embed.loaded) .cal-modal-fallback { display: none; }
.cal-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem; color: var(--muted); font-size: var(--fs-sm); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.cal-modal-fallback { text-align: center; margin: .5rem auto 0; }
.modal-inner { display: flex; flex-direction: column; width: 100%; max-height: inherit; padding: clamp(1.4rem, 4vw, 2.2rem); }
.modal-inner > .btn { align-self: flex-start; flex: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.modal-head .eyebrow { margin: 0; }
.modal-close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; cursor: pointer; flex: none; transition: background .18s, color .18s, border-color .18s, transform .25s ease; }
.modal-close:hover { transform: rotate(90deg); }
.modal-close:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.vsl-frame > video:not([hidden]) { animation: backdrop-in .35s ease-out; }
.modal h3 { margin-bottom: 1.2rem; flex: none; }
.modal-body { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-bottom: 1.25rem; overflow-y: auto; min-height: 0; flex: 1; }
.modal-body p { color: var(--ink-2); margin-bottom: .9rem; }
/* Lock scroll behind a modal without the page shifting sideways: the scrollbar space stays reserved. */
html { scrollbar-gutter: stable; }
body.modal-open { overflow: hidden; }
.vsl-poster { display: block; padding: 0; border: 0; overflow: hidden; background: var(--paper-3); cursor: pointer; }
.vsl-poster img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.vsl-poster:hover img { transform: scale(1.03); }
.vsl-play-badge { position: absolute; inset: 0; margin: auto; width: 74px; height: 74px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .2s; }
.vsl-play-badge svg { margin-left: 3px; }
.vsl-poster:hover .vsl-play-badge { transform: scale(1.06); }
.vsl-label { position: absolute; left: 14px; top: 12px; background: rgba(22,21,18,.72); color: var(--paper); font-size: var(--fs-xs); font-weight: 500; padding: .35rem .6rem; border-radius: 4px; }

.offerstrip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.offerstrip > div { padding: 1.25rem 1.5rem 1.25rem 0; }
.offerstrip > div + div { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.offerstrip strong { display: block; font-family: var(--font-head); font-weight: 400; font-size: 1.5rem; line-height: 1.1; margin-bottom: .25rem; }
.offerstrip span { display: block; font-size: var(--fs-sm); color: var(--ink-2); text-wrap: balance; }
.stripnote { font-size: var(--fs-sm); color: var(--muted); padding-top: .9rem; }
.offer-band { padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.offer-band .offerstrip { border: 0; gap: 1rem; }
.offer-band .offerstrip > div, .offer-band .offerstrip > div + div { padding: 1.4rem 1.5rem 1.5rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.offer-num { display: block !important; font-size: var(--fs-xs) !important; font-weight: 600; letter-spacing: .1em; color: var(--accent) !important; margin-bottom: .8rem; }

/* Brands */
.brands { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.4rem 0; }
.brands-inner { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; }
.brands-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 55s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 22px; width: auto; margin: 0 26px; object-fit: contain; filter: grayscale(1); opacity: .65; transition: opacity .2s; }
.marquee-track img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* AI banner */

/* ---------- AI fit band ---------- */
.aifit-band { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(3.5rem, 8vw, 6rem); background: var(--paper); }
.aifit-card { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; background: var(--accent); color: var(--paper); border-radius: 20px; padding: clamp(2rem, 5vw, 3.75rem); }
.aifit-card::before { content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 242, 235, .16), transparent 65%); pointer-events: none; }
.aifit-card .eyebrow { color: #bcd3c8; }
.aifit-card h2 { color: var(--paper); margin-bottom: .9rem; }
.aifit-card .lead { color: #dfe9e3; margin-bottom: 1.6rem; max-width: 40ch; }
.ai-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.btn-outline-light { background: transparent; color: var(--paper); border-color: rgba(245, 242, 235, .6); }
.btn-outline-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.aifit-card .btn-light:hover { transform: translateY(-1px); }
.aifit-chat { position: relative; }
.chat-window { background: var(--white); color: var(--ink); border-radius: 14px; padding: 1rem; box-shadow: 0 30px 60px -25px rgba(0, 0, 0, .45); transform: rotate(1.5deg); display: flex; flex-direction: column; gap: .7rem; font-size: var(--fs-sm); }
.chat-top { display: flex; gap: 5px; padding-bottom: .4rem; border-bottom: 1px solid var(--paper-2); }
.chat-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--paper-3); }
.chat-q { align-self: flex-end; max-width: 88%; background: var(--ink); color: var(--paper); border-radius: 14px 14px 4px 14px; padding: .65rem .85rem; line-height: 1.4; }
.chat-a { align-self: flex-start; max-width: 88%; background: var(--paper); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: .65rem .85rem; line-height: 1.4; }
.chat-input { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 99px; padding: .45rem .5rem .45rem .9rem; color: var(--muted); }
.chat-input b { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--paper); display: grid; place-items: center; font-weight: 600; }

/* ---------- Work ---------- */
.work { background: var(--paper-2); }
.work .lead { margin-bottom: 2rem; }
/* Sample website showcase */
.work-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: 2.2rem; }
.work-tabs button { text-align: left; padding: .9rem 1.1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--white); cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .15s; }
.work-tabs button:hover { border-color: var(--ink); transform: translateY(-1px); }
.work-tabs button span { display: block; font-weight: 600; }
.work-tabs button small { display: block; font-size: var(--fs-xs); color: var(--muted); margin-top: .1rem; }
.work-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.work-tabs button[aria-selected="true"] small { color: #b9b4a8; }
.showcase { transition: opacity .22s ease, transform .22s ease; }
.showcase.swapping { opacity: 0; transform: translateY(8px); }
.showcase { display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: 2rem; }
.show-visual { position: relative; padding: 0 5% 8% 0; }
.browser { display: block; border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 50px 90px -50px rgba(22, 21, 18, .55); text-decoration: none; position: relative; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: #efeae0; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9d1c2; }
.browser-bar i:first-child { background: #e8837a; } .browser-bar i:nth-child(2) { background: #e9bf5c; } .browser-bar i:nth-child(3) { background: #7fbf7a; }
.browser-url { margin-left: 12px; flex: 1; max-width: 340px; background: var(--white); border-radius: 999px; padding: 4px 12px; font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-view { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0f1a17; }
.browser-page { width: 100%; height: auto; transform: translateY(0); transition: transform 1.1s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.browser.scrolling .browser-page { transform: translateY(var(--shift, 0)); transition: transform var(--dur, 12s) cubic-bezier(.45, 0, .55, 1); }
.browser-hint { position: absolute; left: 16px; bottom: 16px; background: rgba(22, 21, 18, .78); color: var(--paper); font-size: var(--fs-xs); font-weight: 500; padding: .4rem .7rem; border-radius: 999px; backdrop-filter: blur(6px); transition: opacity .3s; }
.browser.scrolling .browser-hint { opacity: 0; }
.phone { position: absolute; right: 0; bottom: 0; width: 24%; min-width: 120px; border-radius: 26px; padding: 7px; background: #161512; box-shadow: 0 40px 70px -30px rgba(22, 21, 18, .6); }
.phone img { width: 100%; border-radius: 20px; display: block; }
.show-copy .eyebrow { color: var(--muted); margin-bottom: .7rem; }
.show-copy h3 { font-size: clamp(2rem, 1.4rem + 1.6vw, 2.75rem); line-height: 1.05; margin-bottom: .8rem; }
.show-summary { color: var(--ink-2); margin-bottom: 1.4rem; }
.show-notes { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .95rem; }
.show-notes li { position: relative; padding-left: 1.9rem; }
.show-notes li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23f5f2eb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / .7rem no-repeat; }
.show-notes strong { display: block; font-weight: 600; }
.show-notes span { font-size: var(--fs-sm); color: var(--ink-2); }
.quote { border-left: 3px solid var(--accent); padding-left: 1rem; font-size: var(--fs-sm); color: var(--ink-2); margin-bottom: 1rem; }

/* ---------- Method: one still picture, customers left, your website centre, Google and AI right ---------- */
.cm { margin-top: 2.5rem; }
.cm-stage { position: relative; display: grid; grid-template-columns: 1fr 300px 1fr; gap: 1.5rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.25rem, 3vw, 2.25rem); overflow: hidden; isolation: isolate; }
/* Catchment rings behind the phone (pure CSS, no image) */
.cm-rings { position: absolute; left: 50%; top: 50%; width: 760px; height: 760px; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; z-index: -1; opacity: .8; background: radial-gradient(circle, transparent 118px, var(--line) 119px, transparent 120px, transparent 208px, var(--line) 209px, transparent 210px, transparent 298px, var(--line) 299px, transparent 300px, transparent 378px, var(--line) 379px, transparent 380px); }
.cm-col { position: relative; z-index: 1; display: grid; gap: .75rem; align-content: start; }
.cm-col-right { justify-items: end; }
.cm-aud { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 .25rem; line-height: 1.3; }
.cm-aud span { display: block; font-family: var(--font-head); font-size: var(--fs-h3); color: var(--ink); line-height: 1.05; margin-bottom: .2rem; }
.cm-col-right .cm-aud { text-align: right; }
.cm-signals { display: grid; gap: .5rem; width: 100%; }
.cm-signal { display: grid; grid-template-columns: 2rem 1fr; align-items: center; text-align: left; padding: .8rem .9rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-weight: 600; font-size: var(--fs-sm); transition: background .15s, border-color .15s, color .15s; }
.cm-signal b { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); }
.cm-signal:hover { border-color: var(--ink); }
.cm-signal[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cm-signal[aria-pressed="true"] b { color: var(--paper-3); }

.cm-phone { position: relative; z-index: 2; display: grid; justify-items: center; gap: .9rem; }
.cm-device { position: relative; width: 268px; border: 4px solid var(--ink); border-radius: 30px; background: var(--ink); padding: 8px; box-shadow: 0 30px 60px -30px rgba(22,21,18,.45); transition: opacity .4s; }
.cm-screen { position: relative; width: 100%; aspect-ratio: 252 / 520; overflow: hidden; border-radius: 20px; background: #0f1a17; }
.cm-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Static highlight around the part of the page that does each job. Fades only; nothing moves. */
.cm-mark { position: absolute; left: 3%; width: 94%; border: 2px solid var(--white); border-radius: 10px; box-shadow: 0 0 0 4px rgba(47,93,80,.6); opacity: 0; transition: opacity .3s; pointer-events: none; }
.cm-mark[data-mark="1"] { top: 19%; height: 32%; }
.cm-mark[data-mark="2"] { top: 72.5%; height: 15.5%; }
.cm-mark[data-mark="3"] { top: 52.5%; height: 18.5%; }
.cm[data-zone="1"] [data-mark="1"], .cm[data-zone="2"] [data-mark="2"], .cm[data-zone="3"] [data-mark="3"] { opacity: 1; }
.cm-pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--white); background: var(--ink); color: var(--paper); font-weight: 600; font-size: 13px; display: grid; place-items: center; cursor: pointer; z-index: 3; box-shadow: 0 2px 10px rgba(22,21,18,.35); transition: background .2s, box-shadow .2s; }
.cm-pin:hover, .cm-pin[aria-current="true"] { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 2px 10px rgba(22,21,18,.35); }
.cm-pin-4 { left: auto; right: -13px; top: -13px; transform: none; }
/* The note under the phone keeps one height, so switching signals never moves the page. */
.cm-detail { width: 100%; max-width: 300px; min-height: 4.4rem; text-align: center; }
.cm-label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 auto .3rem; }
.cm-say { font-size: var(--fs-sm); line-height: 1.4; color: var(--ink-2); margin-inline: auto; }
.cm:not([data-zone="0"]) .cm-say { color: var(--ink); font-weight: 500; }

.cm-machine { position: relative; width: 100%; max-width: 330px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: .9rem; display: grid; gap: .6rem; font-size: 12px; line-height: 1.4; color: var(--ink-2); transition: opacity .4s, border-color .3s, box-shadow .3s, background .3s; }
.cm-serp { background: var(--white); border-radius: 6px; padding: .55rem .65rem; }
.cm-serp-t { color: #1a4fbf; font-weight: 600; }
.cm-serp-u { color: #2b7a3d; font-size: 11px; }
.cm-ai { display: grid; gap: 4px; }
.cm-ai-q { justify-self: end; background: var(--ink); color: var(--paper); border-radius: 10px 10px 2px 10px; padding: 5px 8px; max-width: 88%; }
.cm-ai-a { justify-self: start; background: var(--white); border: 1px solid var(--line); border-radius: 10px 10px 10px 2px; padding: 5px 8px; max-width: 94%; }
.cm-read { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.cm-read li { display: grid; grid-template-columns: 4.2rem 1fr; gap: .4rem; padding: .3rem 0; border-top: 1px solid var(--line); }
.cm-read b { color: var(--ink); font-weight: 600; }
.cm[data-zone="4"] .cm-machine { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--white); }
.cm[data-zone="4"] .cm-device { opacity: .6; }
.cm[data-zone="1"] .cm-machine, .cm[data-zone="2"] .cm-machine, .cm[data-zone="3"] .cm-machine { opacity: .55; }

/* ---------- How: a pinned stage; the section title leads, steps are a deck of cards ---------- */
.how { background: var(--paper-2); }
.hw-pin { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "head stage" "note stage"; gap: 2rem clamp(2rem, 6vw, 5rem); align-items: start; }
.hw-head { grid-area: head; }
.hw-head h2 { margin-bottom: 0; }
.hw-stage { grid-area: stage; }
.hw-note { grid-area: note; }
.hw-late { background: var(--white); border: 2px solid var(--ink); border-radius: 10px; padding: 1.1rem 1.25rem; max-width: 30rem; }
.hw-late h3 { margin-bottom: .2rem; }
.hw-late p { color: var(--ink-2); }
.hw-terms { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; color: var(--ink-2); font-size: var(--fs-sm); max-width: 30rem; }
.hw-terms svg { flex: none; margin-top: .2rem; color: var(--muted); }

/* Step card: same weight as the rest of the page's cards, smaller than the section title. */
.hw-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.hw-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.25rem, 2.5vw, 1.75rem); height: 100%; }
.hw-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: 1.1rem; }
.hw-card h3 { font-size: clamp(1.75rem, 1.4rem + 1.1vw, 2.4rem); margin-bottom: .35rem; }
.hw-card p { color: var(--ink-2); max-width: 34ch; }

/* Pinned: the stage sticks under the nav. The current card sits on top; the next two peek out below it.
   Scrolling lifts the top card away and the next one rises into its place (transform and opacity only). */
.hw.is-pinned { height: calc(var(--pin-h, 100vh) + var(--run, 180vh)); }
.hw.is-pinned .hw-pin { position: sticky; top: var(--pin-top, var(--nav-h)); height: var(--pin-h, 100vh); align-content: center; }
.hw.is-pinned .hw-stage { align-self: center; max-width: 32rem; }
.hw.is-pinned .hw-steps { gap: 0; padding-bottom: 36px; }
.hw.is-pinned .hw-steps li { grid-area: 1 / 1; transform-origin: 50% 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .45s ease; }
.hw.is-pinned .hw-steps li.is-now { transform: none; opacity: 1; }
.hw.is-pinned .hw-steps li.is-before { transform: translateY(-36px) scale(.98); opacity: 0; pointer-events: none; }
.hw.is-pinned .hw-steps li.is-after { transform: translateY(calc(var(--k) * 18px)) scale(calc(1 - var(--k) * .05)); opacity: calc(1.5 - var(--k) * .5); pointer-events: none; }
.hw.is-pinned .hw-steps li.is-after .hw-card { background: var(--paper); border-color: #cfc7b6; box-shadow: 0 10px 24px -20px rgba(22,21,18,.45); }
.hw.is-pinned .hw-card { box-shadow: 0 24px 50px -38px rgba(22,21,18,.5); transition: background .45s; }
.hw.is-pinned .hw-card > * { transition: opacity .3s ease .12s; }
.hw.is-pinned .hw-steps li:not(.is-now) .hw-card > * { opacity: 0; transition-delay: 0s; }

.hw-progress { position: relative; display: flex; justify-content: space-between; max-width: 18rem; margin-bottom: 1.5rem; }
.hw-rail { position: absolute; left: 20px; right: 20px; top: 50%; height: 2px; margin-top: -1px; background: var(--line); }
.hw-fill { position: absolute; inset: 0; background: var(--accent); transform-origin: left; transform: scaleX(var(--fill, 0)); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hw-progress button { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper-2); color: var(--muted); font-weight: 600; font-size: var(--fs-sm); cursor: pointer; transition: background .35s, border-color .35s, color .35s; }
.hw-progress button:hover { border-color: var(--ink); color: var(--ink); }
.hw-progress button.is-done { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.hw-progress button[aria-current="step"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Price ---------- */
.price { background: var(--ink); color: var(--paper); }
.pricing-card { background: var(--white); color: var(--ink); border-radius: 12px; padding: clamp(1.75rem, 4.5vw, 3.5rem); max-width: 960px; margin-inline: auto; }
.pricing-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; }
.pricing-top h2 { margin-bottom: .6rem; }
.price-tag { font-family: var(--font-head); font-size: clamp(2.6rem, 2rem + 2.5vw, 4rem); line-height: 1; white-space: nowrap; text-align: right; }
.price-tag span { font-size: .45em; }
.price-tag small { display: block; font-family: var(--font-body); font-size: var(--fs-sm); color: var(--muted); margin-top: .5rem; }
.included { list-style: none; padding: 1.5rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 2rem; }
.included li { position: relative; padding-left: 1.6rem; }
.included li::before { content: ""; position: absolute; left: 0; top: .45rem; width: .8rem; height: .45rem; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.included strong { display: block; font-weight: 600; }
.included span { font-size: var(--fs-sm); color: var(--ink-2); }
.notincluded { border-top: 1px solid var(--line); padding-top: 1.1rem; font-size: var(--fs-sm); color: var(--ink-2); max-width: none; margin-bottom: 1.5rem; }

/* ---------- Call ---------- */
.call .lead { margin-bottom: 2rem; }
.cal-embed { max-width: 900px; margin: 0 auto; min-height: 120px; }
.cal-embed.loaded { min-height: 600px; }
#cal-fallback { margin-bottom: 1rem; }

/* ---------- Team: copy on the left, the three crafts shown on the right ---------- */
.team { background: var(--paper-2); }
.tm { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.tm-facts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: .7rem; }
.tm-facts li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-2); }
.tm-facts svg { flex: none; margin-top: .2rem; color: var(--accent); }
.tm-facts strong { color: var(--ink); font-weight: 600; }

.tm-crafts { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; gap: 1rem; }
.tm-craft { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem; display: grid; grid-template-rows: 1fr auto; gap: 1rem; box-shadow: 0 24px 50px -40px rgba(22,21,18,.45); }
.tm-craft figcaption { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-top: .8rem; border-top: 1px solid var(--line); }
.tm-art { display: grid; align-content: center; min-height: 9rem; }

.tm-type { grid-row: span 2; }
.tm-type .tm-art { justify-items: start; gap: 1.5rem; }
.tm-aa { font-family: var(--font-head); font-size: clamp(6rem, 4rem + 6vw, 9.5rem); line-height: .8; color: var(--ink); letter-spacing: -.03em; }
.tm-swatches { display: flex; gap: .5rem; }
.tm-swatches i { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--c); border: 1px solid rgba(22,21,18,.12); }

.tm-words .tm-art { gap: .6rem; }
.tm-old { font-size: var(--fs-sm); color: var(--muted); text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.tm-new { font-family: var(--font-head); font-style: italic; font-size: clamp(1.9rem, 1.5rem + 1vw, 2.4rem); line-height: 1; color: var(--ink); }

.tm-story .tm-art { grid-template-columns: auto 1fr auto; align-items: center; gap: .4rem; }
.tm-in { display: grid; gap: .55rem; }
.tm-in i, .tm-out { font-style: normal; font-size: var(--fs-xs); font-weight: 600; padding: .3rem .6rem; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); text-align: center; }
.tm-join { width: 100%; height: 6.2rem; color: var(--accent); }
.tm-out { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ---------- Client voices ---------- */
.voices { background: var(--paper); padding-bottom: clamp(2rem, 4.5vw, 3.75rem); }
.faq { padding-top: clamp(2rem, 4.5vw, 3.75rem); }
.voices-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: 2rem; }
.voices-head h2 { margin-bottom: 0; }
.voices-controls { display: flex; align-items: center; gap: .6rem; flex: none; }
.voices-count { font-size: var(--fs-sm); color: var(--muted); margin-right: .4rem; font-variant-numeric: tabular-nums; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.round-btn:hover { background: var(--ink); color: var(--paper); }
.voices-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 16px; }
.voices-track::-webkit-scrollbar { display: none; }
.voices-track:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.voice { flex: 0 0 100%; scroll-snap-align: start; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.75rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr 200px; grid-template-areas: "quote who"; gap: 2rem 4rem; align-items: center; }
.voice blockquote { grid-area: quote; margin: 0; font-family: var(--font-head); font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.voice-who { grid-area: who; display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; padding-left: 2rem; border-left: 1px solid var(--line); }
.voice-who .avatar { width: 120px; height: 120px; border-radius: 14px; }
.voice-who .avatar span { font-size: 1.6rem; }
.voice-who strong { display: block; }
.voice-who span { display: block; font-size: var(--fs-sm); color: var(--muted); }
.avatar { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; overflow: hidden; flex: none; }
.voice-who .avatar span { color: #fff; font-weight: 600; font-size: .85rem; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.voices-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
.voices-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: var(--line); cursor: pointer; transition: width .2s, background .2s; }
.voices-dots button[aria-selected="true"] { width: 26px; background: var(--ink); }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1.35rem 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq-q { font-family: var(--font-head); font-size: clamp(1.3rem, 1.15rem + .5vw, 1.6rem); line-height: 1.2; letter-spacing: -.01em; transition: color .2s; }
.faq summary:hover .faq-q { color: var(--accent); }
.faq-icon { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); flex: none; transition: transform .32s cubic-bezier(.2,.7,.2,1), background .2s, border-color .2s; }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details.is-open .faq-icon { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: var(--paper); }
.faq-a { overflow: hidden; }
.faq-a p { color: var(--muted); max-width: 62ch; padding: 0 3.5rem 1.4rem 0; }
.faq-a p strong { color: var(--ink-2); font-weight: 600; }
.aifit { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

/* ---------- Review form ---------- */
.review { background: var(--white); }
.review-intro { max-width: 760px; margin-inline: auto; }
.formbox { position: relative; max-width: 680px; margin: 2.5rem auto 0; padding: clamp(1.5rem, 4vw, 2.75rem); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.hp { position: absolute; left: -9999px; top: -9999px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.4rem; }
.field.wide { grid-column: 1 / -1; }
label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: .35rem; }
input { width: 100%; padding: .85rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font: inherit; font-size: var(--fs-md); color: var(--ink); }
input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input.invalid { border-color: #b3261e; }
.field-error { display: block; color: #b3261e; font-size: var(--fs-xs); margin-top: .35rem; }
.review-form .helper { margin-top: 1rem; }
.form-state h3 { font-size: 1.6rem; }
.form-state { margin-top: 1.25rem; padding: 1.25rem; border-radius: var(--radius); background: var(--accent-soft); }
.form-state h3 { margin-bottom: .25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer a { text-decoration: none; }
.site-footer a:hover:not(.btn) { text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.1fr 1.6fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid #33312c; }
.footer-brand .brand { display: inline-block; margin-bottom: 1.5rem; }
.footer-brand p { color: #b9b4a8; margin-bottom: 1.3rem; }
.footer-brand .btn-text { display: inline-flex; margin-top: .9rem; color: var(--paper); }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-cols .footer-h { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #8f8a7e; margin-bottom: .9rem; }
.footer-cols ul { list-style: none; padding: 0; display: grid; gap: .55rem; font-size: var(--fs-sm); }
.footer-cols .soon { color: #8f8a7e; }
.footer-word::before { content: attr(data-word); }
.footer-word { font-family: var(--font-head); font-size: clamp(4.5rem, 2rem + 15vw, 14rem); line-height: .8; color: #26241f; padding-top: 2.5rem; white-space: nowrap; overflow: hidden; max-width: none; letter-spacing: -.03em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; padding: 1.2rem 0 5.5rem; font-size: var(--fs-xs); color: #8f8a7e; border-top: 1px solid #33312c; }

/* Sticky mobile CTA */
.sticky { display: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .showcase, .footer-top { grid-template-columns: 1fr; }
  .work-tabs { grid-template-columns: 1fr 1fr; }
  .browser-hint { display: none; }
  .aifit-card { grid-template-columns: 1fr; }
  .chat-window { transform: none; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .brands-inner { grid-template-columns: 1fr; gap: .6rem; }
  .cm-stage { grid-template-columns: 1fr 1fr; grid-template-areas: "phone phone" "left right"; gap: 1.25rem; }
  .cm-phone { grid-area: phone; } .cm-col-left { grid-area: left; } .cm-col-right { grid-area: right; }
  .cm-rings { top: 30%; width: 560px; height: 560px; }
  .tm { grid-template-columns: 1fr; }
  .hw-pin { grid-template-columns: 1fr; grid-template-areas: "head" "stage" "note"; gap: 1.75rem; }
  .hw.is-pinned .hw-pin { gap: 1.5rem; }
}
@media (max-width: 640px) {
  br.d { display: none; }
  .navlinks a:not(.btn) { display: none; }
  .hero h1 { max-width: none; }
  .offerstrip { grid-template-columns: 1fr; }
  .offerstrip > div, .offerstrip > div + div { padding: .9rem 0; border-left: 0; }
  .offerstrip > div + div { border-top: 1px solid var(--line); }
  .offer-band .offerstrip > div, .offer-band .offerstrip > div + div { padding: 1.1rem 1.2rem; border: 1px solid var(--line); }
  .cal-modal-embed { min-height: 460px; }
  .reviews, .fields, .included { grid-template-columns: 1fr; }
  .cm-stage { grid-template-columns: 1fr; grid-template-areas: "phone" "left" "right"; padding: 1.1rem; }
  .cm-col-right { justify-items: stretch; }
  .cm-col-right .cm-aud { text-align: left; }
  .cm-machine { max-width: none; }
  .cm-device { width: 236px; }
  .cm-rings { top: 22%; width: 480px; height: 480px; }
  .hw.is-pinned .hw-pin { gap: 1.1rem; }
  .hw.is-pinned .hw-stage { max-width: none; }
  .hw-progress { max-width: none; margin-bottom: 1rem; }
  .hw-icon { width: 38px; height: 38px; margin-bottom: .7rem; }
  .hw-card h3 { font-size: 1.6rem; }
  .hw-late { padding: .8rem 1rem; }
  .hw-late h3 { font-size: 1.5rem; }
  .hw-terms { margin-top: .7rem; font-size: var(--fs-xs); }
  .tm-crafts { grid-template-columns: 1fr; }
  .tm-type { grid-row: auto; }
  .tm-art { min-height: 6.5rem; }
  .tm-type .tm-art { grid-template-columns: auto 1fr; align-items: end; gap: 1.25rem; }
  .tm-aa { font-size: 5.5rem; }
  .tm-swatches i { width: 1.9rem; height: 1.9rem; }
  .field.wide { grid-column: auto; }
  .pricing-top { display: block; }
  .price-tag { text-align: left; margin-top: 1rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { padding-bottom: 6rem; }
  .voices-head { flex-direction: column; align-items: flex-start; }
  .voice { grid-template-columns: 1fr; grid-template-areas: "quote" "who"; }
  .voice-who { flex-direction: row; align-items: center; padding-left: 0; border-left: 0; }
  .voice-who .avatar { width: 56px; height: 56px; border-radius: 50%; }
  .voice-who .avatar span { font-size: .9rem; }
  .faq-a p { padding-right: 0; }
  .brand img { height: 34px; }
  .sticky { display: flex; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .sticky .btn { flex: 1; padding: .8rem .5rem; font-size: var(--fs-sm); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .vsl-poster img, .cm-mark, .cm-pin, .cm-device, .cm-machine, .cm-signal, .hw-progress button, .hw-fill, .hw-steps li, .hw-card, .hw-card > * { transition: none; }
  .marquee-track { animation: none; }
}

/* Gentle reveal on scroll (added by main.js; skipped for reduced motion) */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .4s ease, transform .4s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* Review modal: title shares the row with the close button */
.modal-head-title { align-items: flex-start; margin-bottom: .9rem; }
.modal-head-title h3 { margin: .2rem 0 0; }
.modal-head-title + .modal-sub { margin-top: 0; }
