/* giggli.ca: scroll-scrubbed journey, then four short sections.
   Section patterns follow 21st.dev components (animated tabs, sun/moon toggle, how-it-works
   timeline, split booking form), built in plain HTML/CSS. Light/dark restyles the page, never
   the footage. */
@font-face { font-family: 'Sora'; font-style: normal; font-weight: 100 800; font-display: swap; src: url(assets/fonts/sora-latin-var.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url(assets/fonts/dm-mono-latin-400.woff2) format('woff2'); }
@font-face { font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url(assets/fonts/dm-mono-latin-500.woff2) format('woff2'); }

:root {
  --bg: #F2F0EC; --bg-2: #E9E6E0; --fg: #17171A; --muted: rgba(23,23,26,.7); --faint: rgba(23,23,26,.62);
  --line: rgba(23,23,26,.12); --field: #FBFAF8;
  --accent: #D9761A; --accent-ink: #A9550C; --pill: rgba(250,249,247,.84); --pill-line: rgba(0,0,0,.08);
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #121214; --bg-2: #1A1A1D; --fg: #EEECE8; --muted: rgba(238,236,232,.7); --faint: rgba(238,236,232,.55);
  --line: rgba(238,236,232,.12); --field: #1C1C20;
  --accent: #F5922A; --accent-ink: #F5922A; --pill: rgba(28,28,31,.82); --pill-line: rgba(255,255,255,.09); color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-display); font-size: 16px; line-height: 1.5; transition: background .35s, color .35s; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: inherit; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 40; background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 16px; }

/* ---------- pill nav + sun/moon toggle ---------- */
.pill {
  position: fixed; z-index: 30; left: 50%; transform: translateX(-50%);
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 18px;
  background: var(--pill); border: 1px solid var(--pill-line); border-radius: 999px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); max-width: calc(100% - 32px);
}
/* the Giggli Labs mark: a beaver tail (assets/giggli-tail.svg) in the accent colour, with the name set in Sora */
.mark { display: flex; align-items: center; gap: 8px; margin-right: 8px; color: var(--fg); text-decoration: none;
  font-weight: 600; font-size: 1rem; letter-spacing: -.02em; white-space: nowrap; }
.logo-mark { display: block; height: 24px; width: auto; flex: none; fill: var(--accent); }
.pill a.nav { color: var(--muted); text-decoration: none; font-size: .85rem; padding: 8px 11px; border-radius: 999px; white-space: nowrap; }
.pill a.nav:hover, .pill a.nav:focus-visible, .pill a.nav[aria-current="true"] { color: var(--fg); }
.pill a.nav[aria-current="true"] { background: color-mix(in srgb, var(--fg) 7%, transparent); }
.pill a.go { transition: transform .2s, background .2s; }
.pill a.go:hover { transform: translateY(-1px); }
.pill a.go { background: var(--fg); color: var(--bg); text-decoration: none; font-size: .82rem; font-weight: 600; padding: 9px 14px; border-radius: 999px; white-space: nowrap; margin-left: 4px; }
.theme { position: relative; width: 38px; height: 38px; flex: none; border-radius: 50%; border: 1px solid var(--pill-line); background: transparent; color: var(--fg); cursor: pointer; margin-left: 4px; overflow: hidden; }
.theme svg { position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.theme .sun { transform: rotate(0) scale(1); opacity: 1; }
.theme .moon { transform: rotate(-90deg) scale(.4); opacity: 0; }
.is-dark .theme .sun { transform: rotate(90deg) scale(.4); opacity: 0; }
.is-dark .theme .moon { transform: rotate(0) scale(1); opacity: 1; }

/* ---------- journey ---------- */
.journey { position: relative; height: 100vh; height: 100svh; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
canvas { position: absolute; display: block; }
/* the canvas and the first-frame poster share one CSS placement, so nothing shifts as frames load:
   cover and right-aligned on desktop, cover at 66% on phones, fit to height and pinned right on
   screens wider than 16:9. The poster covers the stage until the first sharp frame is drawn. */
.poster, #cv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; pointer-events: none; }
.poster { transition: opacity .4s; }
.poster.gone { opacity: 0; }
@media (max-width: 759px) { .poster, #cv { object-position: 66% 50%; } }
@media (min-width: 760px) and (min-aspect-ratio: 1849/1000) { .poster, #cv { object-fit: contain; } }
.layer { position: absolute; inset: 0; pointer-events: none; will-change: opacity; }
.feather { position: absolute; top: 0; bottom: 0; left: 0; pointer-events: none; display: none;
  background: linear-gradient(90deg, var(--bg) 0%, var(--bg) var(--solid, 0px), transparent 100%); }
.wide .feather { display: block; }
.scrim { opacity: 0; background: linear-gradient(90deg, rgba(12,12,14,.68) 0%, rgba(12,12,14,.42) 30%, rgba(12,12,14,0) 60%); }
.hero-scrim { background: linear-gradient(90deg, rgba(246,244,240,.74) 0%, rgba(246,244,240,.36) 34%, rgba(246,244,240,0) 58%); }
.wide .hero-scrim, .wide .scrim { display: none; }
.copy { position: absolute; inset: 0; display: grid; align-items: center; pointer-events: none; will-change: opacity, transform;
  padding-left: max(16px, env(safe-area-inset-left, 0px), 6vw); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
/* the hero sits on the bright footage itself, so it keeps dark text in both modes (except on wide screens) */
.hero { color: #17171A; }
.hero .eyebrow { color: #A9550C; }
.hero p { color: rgba(23,23,26,.76); }
.hero .hint { color: rgba(23,23,26,.52); }
.wide .hero { color: var(--fg); }
.wide .hero .eyebrow, .wide .hero h1 em { color: var(--accent); }
.wide .hero p { color: var(--muted); }
.wide .hero .hint { color: var(--faint); }
.hero-inner { max-width: min(40vw, 560px); }
.eyebrow { font: 500 .74rem var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
h1 { font-size: clamp(2.2rem, 4.4vw, 4rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; margin: 14px 0 0; text-wrap: balance; }
h1 em { font-style: normal; color: #B85E0F; }
.hero p { font-weight: 300; font-size: clamp(1.02rem, 1.3vw, 1.15rem); line-height: 1.6; max-width: 34ch; margin: 16px 0 0; }
.hint { font: 500 .72rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; margin-top: 26px; }
/* hero button: clickable while the hero shows (site.js makes the hero inert once it has faded) */
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 26px; }
.hero-actions .hint { margin-top: 0; }
.hero-cta { pointer-events: auto; display: inline-block; padding: 13px 22px; border-radius: 999px; background: #F5922A; color: #17171A;
  font-weight: 600; font-size: .98rem; text-decoration: none; transition: background .2s; }
.hero-cta:hover { background: #F8A54F; }
.stop { opacity: 0; color: #fff; }
.stop h2 { font-size: clamp(1.7rem, 3.3vw, 2.6rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; margin: 0; max-width: 17ch; text-wrap: balance; }
.stop p { color: rgba(255,255,255,.88); font-weight: 300; line-height: 1.6; max-width: 34ch; margin: 12px 0 0; }
.stop .cta { display: inline-block; margin-top: 22px; padding: 12px 20px; border-radius: 999px; background: #F5922A; color: #17171A; font-weight: 600; text-decoration: none; font-size: .95rem; }
.stop.live .cta { pointer-events: auto; }
.wide .stop { color: var(--fg); }
.wide .stop p { color: var(--muted); }
/* loading: a thin line along the bottom of the footage, gone once every frame has arrived */
.loader { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; font-size: 0; color: transparent; background: var(--accent); opacity: .7;
  transform-origin: left; transform: scaleX(0); transition: transform .3s linear, opacity .6s; pointer-events: none; }
.loader.done { opacity: 0; }

/* stop rail: click a stop to jump to it */
.rail { position: absolute; right: max(16px, env(safe-area-inset-right, 0px), 2.5vw); top: 50%; transform: translateY(-50%); opacity: 0; will-change: opacity; z-index: 3; }
.rail ol { list-style: none; margin: 0; padding: 8px 12px; display: grid; gap: 2px; border-radius: 14px; background: rgba(12,12,14,.32); }
.wide .rail ol { background: none; }
.rail button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 6px 2px;
  font: 500 .68rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.72); text-shadow: 0 1px 4px rgba(0,0,0,.35); transition: color .3s; }
.rail button::after { content: ""; width: 16px; height: 2px; border-radius: 2px; background: currentColor; transition: width .3s, background .3s; }
.rail button:hover, .rail button:focus-visible, .rail button[aria-current="step"] { color: #fff; }
.rail button[aria-current="step"]::after { width: 32px; background: #FFB46B; }
.rail button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wide .rail button { color: var(--faint); text-shadow: none; }
.wide .rail button:hover, .wide .rail button[aria-current="step"] { color: var(--fg); }
.wide .rail button[aria-current="step"]::after { background: var(--accent); }

/* skip past the journey */
.skip-journey { position: absolute; right: max(16px, env(safe-area-inset-right, 0px), 2.5vw); bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 3;
  font: 500 .72rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  color: #17171A; background: rgba(246,244,240,.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); padding: 9px 14px; border-radius: 999px; }
.skip-journey:hover { background: #fff; }

/* frames could not load: the journey collapses to the hero on the page background */
.no-journey .loader, .no-journey #stops, .no-journey canvas, .no-journey .rail, .no-journey .skip-journey { display: none; }

/* ---------- content sections ---------- */
.wrap { width: min(1180px, 100% - 2 * max(16px, 6vw)); margin-inline: auto; }
section.band { padding-block: clamp(72px, 10vw, 128px); border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.band h2 { font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.06; letter-spacing: -.035em; font-weight: 600; margin: 14px 0 0; max-width: 22ch; text-wrap: balance; }
.band .eyebrow + h2 { margin-top: 14px; }
.band > .wrap > .reveal > h2:first-child, .band > .wrap > h2:first-child { margin-top: 0; }
.lede { color: var(--muted); font-weight: 300; font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65; max-width: 56ch; margin: 18px 0 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* who we are: one statement */
#who h2 { max-width: 24ch; }

/* what we automate: animated tabs, names only */
.tabs { margin-top: clamp(28px, 4vw, 44px); }
.tablist { position: relative; display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tab { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: 500 .9rem var(--font-display); padding: 10px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; transition: color .25s; }
.tab[aria-selected="true"] { color: var(--bg); }
.tab:not([aria-selected="true"]):hover { color: var(--fg); }
.tab .ts { display: none; }
.tab-glide { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--fg); transition: transform .45s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1); }
.panels { position: relative; margin-top: 20px; transition: height .45s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.panel > ul { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(24px, 4vw, 64px); margin: 0; padding: 0; list-style: none; }
.panel[hidden] { display: none; }
.item { display: flex; align-items: baseline; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(8px); animation: rise .5s forwards cubic-bezier(.2,.8,.2,1); }
.item .n { font: 500 .78rem var(--font-mono); color: var(--accent-ink); min-width: 22px; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.item:hover .n { transform: translateX(3px); }
.item h3 { font-size: 1.08rem; font-weight: 500; letter-spacing: -.01em; margin: 0; }
.item p { color: var(--muted); font-weight: 300; line-height: 1.55; margin: 5px 0 0; max-width: 46ch; }
@keyframes rise { to { opacity: 1; transform: none; } }
.aside-note { margin-top: 24px; color: var(--muted); font-weight: 300; }
.aside-note a { color: var(--accent-ink); font-weight: 500; }

/* why automate now: three points, ruled, not boxed */
.points { list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.points li { border-top: 2px solid var(--line); padding-top: 20px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--accent); transition: width .9s cubic-bezier(.2,.8,.2,1) .25s; }
.points li.in::before { width: 48px; }
.points li:nth-child(2) { transition-delay: .08s; } .points li:nth-child(3) { transition-delay: .16s; }
.points h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.points p { color: var(--muted); font-weight: 300; line-height: 1.6; margin: 8px 0 0; }

/* lead offers named in body copy */
.hl { color: var(--accent-ink); font-weight: 500; }

/* before and after: two ruled columns, "before" muted with crosses, "after" with ticks
   (pattern: 21st.dev Comparison Section, rebuilt in plain HTML/CSS); phones switch between them */
.compare { margin-top: clamp(36px, 5vw, 56px); }
.compare h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 600; letter-spacing: -.02em; margin: 0; }
.ba-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 56px); margin-top: 18px; }
.ba h4 { font: 500 .72rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
  margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.ba.after h4 { color: var(--accent-ink); border-color: var(--accent); }
.ba ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ba li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; line-height: 1.55; }
.ba li::before { content: ""; width: 16px; height: 16px; margin-top: .22em; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.ba.before li { color: var(--muted); font-weight: 300; }
.ba.before li::before { background: var(--faint); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 4.5l7 7M11.5 4.5l-7 7' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.ba.after li::before { background: var(--accent); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ba-switch { display: none; gap: 2px; padding: 3px; margin-top: 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); }
.ba-switch button { border: 0; background: none; color: var(--muted); font: 500 .85rem var(--font-display); padding: 8px 16px; border-radius: 999px; cursor: pointer; min-height: 36px; }
.ba-switch button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

/* proof: one real figure from the owner, then the case as three ruled points */
.case-figure { margin: 20px 0 0; color: var(--muted); font-size: 1.05rem; }
.case-figure strong { display: block; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.04em; font-weight: 600; color: var(--accent-ink); margin-bottom: 6px; }

/* extra paths to the form */
.section-cta { margin: clamp(28px, 4vw, 40px) 0 0; }
.section-cta a { color: var(--accent-ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.stop .see-how { display: inline-block; margin-top: 14px; color: #FFB46B; font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.stop.live .see-how { pointer-events: auto; }
.wide .stop .see-how { color: var(--accent-ink); }

/* Why: a plain full-width dark band in both themes (dark-theme colours, so contrast stays above 4.5:1) */
#why { --bg: #121214; --bg-2: #1A1A1D; --fg: #EEECE8; --muted: rgba(238,236,232,.74); --faint: rgba(238,236,232,.58);
  --line: rgba(238,236,232,.14); --accent: #F5922A; --accent-ink: #F5922A; background: var(--bg); color: var(--fg); border-top-color: transparent; }

/* about: statement left, detail right */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.about .lede { margin-top: 0; }
.about .lede + .lede { margin-top: 16px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(16px, 3vw, 32px); margin: 32px 0 0; }
.facts div { border-top: 1px solid var(--line); padding: 14px 0; }
.facts dt { font: 500 .7rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 4px 0 0; font-weight: 500; }

/* how we work: vertical timeline with a line that fills as you scroll */
.steps { position: relative; list-style: none; margin: clamp(32px, 5vw, 56px) 0 0; display: grid; gap: clamp(24px, 3.5vw, 36px); max-width: 680px; padding: 0 0 0 64px; }
.steps::before, .steps .fill { content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.steps .fill { background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 0)); }
.step { position: relative; }
.step .dot { position: absolute; left: -64px; top: -2px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font: 500 .8rem var(--font-mono); background: var(--bg); border: 1.5px solid var(--line); color: var(--muted); transition: border-color .4s, color .4s, background .4s, transform .4s cubic-bezier(.2,.8,.2,1); }
.step.on .dot { border-color: var(--accent); background: var(--accent); color: #17171A; transform: scale(1.06); }
.step h3 { font-size: 1.25rem; font-weight: 600; margin: 4px 0 0; letter-spacing: -.02em; }
.step p { color: var(--muted); font-weight: 300; line-height: 1.6; margin: 6px 0 0; }

/* contact: split booking layout */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font: 500 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
input, textarea { font: 400 1rem var(--font-display); color: var(--fg); background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea { min-height: 110px; resize: vertical; }
input[aria-invalid="true"] { border-color: #C2410C; }
.opt { text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-weight: 300; color: var(--faint); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font: 500 .72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 9px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; text-transform: none; letter-spacing: 0; font: 400 .88rem var(--font-display); color: var(--fg); cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--field); transition: background .2s, border-color .2s, color .2s; }
.chip:hover span { border-color: color-mix(in srgb, var(--fg) 30%, transparent); }
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.assure { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.assure li { position: relative; padding-left: 30px; color: var(--muted); font-weight: 300; line-height: 1.55; }
.assure li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.assure li::after { content: ""; position: absolute; left: 6px; top: calc(.3em + 4px); width: 8px; height: 8px; background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1 4.2l2 2L7 1.8' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3E%3Cpath d='M1 4.2l2 2L7 1.8' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit { grid-column: 1 / -1; margin-top: 4px; }
.submit button { border: 0; cursor: pointer; background: var(--accent); color: #17171A; font: 600 1rem var(--font-display); padding: 14px 22px; border-radius: 999px; min-height: 48px;
  display: inline-flex; align-items: center; gap: 10px; transition: transform .2s, box-shadow .2s; }
.submit button:hover { transform: translateY(-1px); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.submit button[disabled] { cursor: progress; transform: none; box-shadow: none; }
.spin { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(23,23,26,.25); border-top-color: #17171A; animation: spin .8s linear infinite; }
.submit button[disabled] .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.sent { padding: clamp(28px, 4vw, 44px); border: 1px solid var(--line); border-radius: 22px; background: var(--bg-2); animation: rise .5s cubic-bezier(.2,.8,.2,1) both; }
.sent:focus { outline: none; }
.sent svg { width: 44px; height: 44px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sent path { stroke-dasharray: 20; stroke-dashoffset: 20; animation: draw .6s .2s forwards ease-out; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sent h3 { font-size: 1.5rem; letter-spacing: -.02em; margin: 14px 0 0; }
.sent p { color: var(--muted); font-weight: 300; margin: 8px 0 0; }
.status { grid-column: 1 / -1; display: none; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); }
.status.show { display: block; }
.status.err { border-color: #C2410C; }

footer { border-top: 1px solid var(--line); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.foot-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-nav a { text-decoration: none; color: var(--muted); }
.foot-nav a:hover { color: var(--fg); }

@media (max-width: 900px) {
  .panel > ul { grid-template-columns: 1fr; }
  .contact, .about { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr; }
}
/* phones: three short, equal tabs that always fit */
@media (max-width: 600px) {
  .tablist { display: flex; width: 100%; overflow: visible; }
  .tab { flex: 1 1 0; min-width: 0; padding: 10px 6px; font-size: .84rem; text-align: center; }
  .tab .tl { display: none; }
  .tab .ts { display: inline; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 374px) {
  .mark span { display: none; }   /* smallest phones: the mark alone, so the button and toggle fit */
}
@media (max-width: 760px) {
  .ba-cols { grid-template-columns: 1fr; }
  .compare[data-show] .ba-switch { display: inline-flex; }
  .compare[data-show="before"] .ba.after, .compare[data-show="after"] .ba.before { display: none; }
  .rail { display: none; }
  .pill a.nav { display: none; }
  .copy.hero { align-items: start; padding-top: calc(env(safe-area-inset-top, 0px) + 96px); }
  .hero-inner { max-width: 100%; }
  .hero-scrim { background: linear-gradient(180deg, rgba(246,244,240,.94) 0%, rgba(246,244,240,.82) 40%, rgba(246,244,240,.4) 56%, rgba(246,244,240,0) 70%); }
  .copy.stop { align-items: end; padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 56px); }
  .scrim { background: linear-gradient(0deg, rgba(12,12,14,.74) 0%, rgba(12,12,14,.36) 40%, rgba(12,12,14,0) 64%); }
  form { grid-template-columns: 1fr; }
  .steps { padding-left: 56px; }
  .step .dot { left: -56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* cookie consent banner (public/consent.js; only when Google Analytics is configured): one line, small, bottom */
.consent { position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); bottom: calc(env(safe-area-inset-bottom, 0px) + 14px);
  width: max-content; max-width: calc(100% - 24px); display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; justify-content: center;
  padding: 8px 8px 8px 16px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0,0,0,.12); font-size: .85rem; line-height: 1.4; }
.consent[hidden] { display: none; }
.consent p { margin: 0; color: var(--muted); }
.consent-actions { display: flex; gap: 6px; }
.consent button { border-radius: 999px; padding: 7px 14px; min-height: 34px; font: 600 .82rem var(--font-display); cursor: pointer; }
.consent-yes { border: 0; background: var(--fg); color: var(--bg); }
.consent-no { border: 1px solid var(--line); background: transparent; color: var(--fg); }
.consent button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 480px) { .consent { border-radius: 16px; padding: 10px 12px; } }

/* inner pages (pages/*.html): title band under the fixed nav, breadcrumb */
.subpage .page-head { border-top: 0; padding-top: calc(env(safe-area-inset-top, 0px) + clamp(120px, 14vw, 170px)); }
.subpage .page-head h1 { max-width: 20ch; }
.crumbs { font: 500 .78rem var(--font-mono); letter-spacing: .06em; color: var(--faint); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.subpage .panel { margin-top: 20px; }
.more-link { margin: 14px 0 0; }
.more-link a { color: var(--accent-ink); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
