/* Sherlock funnel pages (gethands.me/sherlock/<audience>), generated by scripts/sherlock-funnels/build.mjs.
   Hands house style from public/site/styles.css and public/site/home/home.css: mint paper, deep teal ink,
   Georgia italic accent, orange Caprasimo buttons, deep teal footer. Fonts and logos are the site's own files. */

@font-face {
  font-family: "Caprasimo";
  src: url("/fonts/caprasimo-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #dbe8e2;
  --section: #cddfe0;
  --surface: #e6ede8;
  --raised: #d6e3e1;
  --ink: #142f35;
  --muted: #3e5a5e;
  --soft: #506f75;
  --line: #9eb8bb;
  --line-soft: rgb(20 47 53 / 14%);
  --teal: #105f60;
  --teal-2: #18746e;
  --sea: #56998e;
  --mint: #d4e9dc;
  --mint-line: #83bcb3;
  --deep: #102e35;
  --deeper: #0b2328;
  --orange: #ff824a;
  --orange-hover: #f5743e;
  --orange-ink: #201e1d;
  --peach: #f4dfcf;
  --rust: #ae4c25;
  --night: #171613;
  --night-2: #211f1b;
  --night-3: #2c2924;
  --night-text: #f4eadc;
  --night-muted: #bdb1a0;
  --night-line: rgb(244 234 220 / 12%);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-sm: 0 1px 2px rgb(23 52 58 / 12%);
  --shadow-md: 0 3px 10px rgb(23 52 58 / 14%);
  --shadow-lg: 0 22px 56px rgb(23 52 58 / 22%);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --brand: "Caprasimo", Georgia, serif;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  --shell: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
section[id] { scroll-margin-top: 96px; }
.shell { width: min(var(--shell), calc(100% - 2.5rem)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 999px; text-decoration: none; }
.skip:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .78rem 1.4rem;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--brand); font-size: 1.02rem; line-height: 1.1; letter-spacing: .005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .16s, box-shadow .16s, transform .16s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--orange); color: var(--orange-ink); border-color: var(--orange);
  box-shadow: 0 1px 0 rgb(255 255 255 / 35%) inset, 0 8px 20px rgb(232 116 61 / 28%);
}
.btn-primary:hover { background: var(--orange-hover); }
.btn-secondary { background: rgb(230 237 232 / 72%); color: var(--ink); border-color: var(--soft); }
.btn-secondary:hover { background: var(--raised); }
.btn-ghost-light { background: rgb(255 255 255 / 10%); color: #fff; border-color: rgb(255 255 255 / 40%); }
.btn-ghost-light:hover { background: rgb(255 255 255 / 18%); }
.btn-sm { min-height: 40px; padding: .55rem 1.05rem; font-size: .94rem; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; z-index: 60; top: 12px; left: 50%; transform: translateX(-50%);
  width: min(1200px, calc(100% - 1.5rem));
  display: flex; align-items: center; gap: 1rem;
  padding: .5rem .55rem .5rem 1rem;
  border: 1px solid rgb(255 255 255 / 60%); border-radius: 999px;
  background: rgb(230 237 232 / 80%);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: var(--shadow-md);
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex: none; object-fit: contain; }
.brand-avatar { border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1; gap: .18rem; }
.brand-name { font-family: var(--brand); font-size: 1.28rem; letter-spacing: -.005em; }
.brand-by { display: flex; align-items: center; gap: .28rem; font-size: .7rem; font-weight: 650; color: var(--soft); letter-spacing: .01em; }
.nav-links { display: flex; gap: .15rem; margin-left: auto; }
.nav-links a { padding: .5rem .85rem; border-radius: 999px; text-decoration: none; font-weight: 560; font-size: .95rem; }
.nav-links a:hover { background: rgb(20 47 53 / 7%); }
.nav-actions { display: flex; align-items: center; gap: .35rem; }
.nav-login { padding: .5rem .9rem; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-login:hover { background: rgb(20 47 53 / 7%); }
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 520px) {
  .nav { padding-left: .7rem; }
  .nav-login { display: none; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-name { font-size: 1.12rem; }
  .nav .btn-sm { padding-inline: .85rem; font-size: .9rem; }
}

/* ---------- Shared headings ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font: 650 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--teal);
}
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--orange); }
.h2 {
  margin-top: .8rem;
  font-size: clamp(2.05rem, 4.2vw, 3.75rem); font-weight: 630; line-height: 1.04; letter-spacing: -.061em;
  text-wrap: balance;
}
.h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.05em; color: var(--teal); letter-spacing: -.035em; }
.lede { margin-top: 1rem; font-size: 1.1rem; color: var(--muted); text-wrap: pretty; }
.section-head { max-width: 780px; margin: 0 auto clamp(2rem, 4.5vw, 3.25rem); text-align: center; }

/* ---------- 1. Hero ---------- */
.hero {
  position: relative; overflow: hidden; text-align: center;
  padding: calc(84px + clamp(2.2rem, 6vw, 4.5rem)) 0 clamp(3rem, 6vw, 4.75rem);
  background:
    radial-gradient(55% 45% at 8% 6%, rgb(212 233 220 / 95%), transparent 70%),
    radial-gradient(45% 40% at 94% 8%, rgb(244 223 207 / 80%), transparent 70%),
    radial-gradient(60% 50% at 50% 100%, rgb(200 220 226 / 80%), transparent 75%),
    linear-gradient(180deg, #dbe8e2 0%, #d5e5e2 55%, #cddfe0 100%);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .28rem .85rem .28rem .32rem;
  border: 1px solid var(--mint-line); border-radius: 999px; background: var(--mint);
  font-size: .86rem; line-height: 1.3; font-weight: 650; color: #114f51;
}
.eyebrow .dot { width: 24px; height: 24px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.eyebrow .dot img { width: 16px; height: 16px; object-fit: contain; }
.hero-title {
  margin: 1.15rem auto 0; max-width: 15ch;
  font-size: clamp(2.65rem, 6.4vw, 5.9rem); font-weight: 640; line-height: .98; letter-spacing: -.07em;
  text-wrap: balance;
}
.hero-title .line { display: block; }
.hero-title em {
  display: block; margin-top: .06em;
  font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--teal); letter-spacing: -.045em;
}
.hero-sub { margin: 1.35rem auto 0; max-width: 640px; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); text-wrap: pretty; }
.hero-ctas { margin-top: 1.9rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; }
.hero-trial { margin-top: .8rem; font-size: .9rem; color: var(--soft); }
/* Three promises with an icon (a row on wide screens, three columns on phones) and one "works in" line. */
.promises {
  margin: 1.6rem auto 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem 1.9rem;
}
.promises li { display: inline-flex; align-items: center; gap: .55rem; font-size: .95rem; font-weight: 620; line-height: 1.3; color: var(--ink); }
.pr-ico {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--teal); box-shadow: var(--shadow-sm);
}
.pr-ico svg { width: 18px; height: 18px; }
.works-with { margin: 1.25rem auto 0; max-width: 36rem; font-size: .93rem; color: var(--soft); text-wrap: balance; }
.works-with .ww { white-space: nowrap; color: var(--ink); font-weight: 650; }
.works-with img { display: inline-block; width: 18px; height: 18px; margin-right: .3rem; vertical-align: -.24em; }
@media (max-width: 620px) {
  .promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; max-width: 26rem; margin-top: 1.5rem; }
  .promises li { flex-direction: column; justify-content: flex-start; gap: .5rem; text-align: center; font-size: .84rem; }
  .pr-ico { width: 40px; height: 40px; }
  .pr-ico svg { width: 20px; height: 20px; }
  .works-with { margin-top: 1.35rem; font-size: .9rem; }
}

/* Demo panel (postiz "Tell AI what you want" block, in Hands colours) */
.demo {
  position: relative; margin-top: clamp(2.6rem, 5vw, 3.6rem);
  padding: clamp(1.1rem, 3vw, 2.2rem);
  border-radius: var(--radius-xl); text-align: left; color: #fff;
  background:
    radial-gradient(60% 70% at 92% -5%, rgb(255 130 74 / 55%), transparent 62%),
    radial-gradient(55% 65% at -5% 105%, rgb(86 153 142 / 60%), transparent 62%),
    linear-gradient(150deg, #0f3a40 0%, #105f60 58%, #18746e 100%);
  box-shadow: var(--shadow-lg);
}
.demo-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: clamp(1rem, 2.4vw, 1.5rem); }
/* Sherlock leans over the top edge of the demo window, hands on the edge. sherlock.js adds .is-seen when
   the demo comes into view; he rises once and then leans in now and then. */
.peek {
  position: absolute; z-index: 2; right: 18px; bottom: calc(100% - 9px); width: 162px; height: auto;
  pointer-events: none; transform-origin: 50% 100%;
}
.js .peek { opacity: 0; transform: translateY(28px); transition: opacity .45s ease, transform .75s cubic-bezier(.3, 1.4, .5, 1); }
.js .demo.is-seen .peek { opacity: 1; transform: none; animation: peekLean 7s ease-in-out 1.4s infinite; }
@keyframes peekLean {
  0%, 34%, 100% { transform: none; }
  44%, 60% { transform: translateY(3px) rotate(-2.4deg); }
}
/* Wide screens: he stands right of the promises (kept to one centred row of at most 50rem), so the hero keeps
   its spacing. Narrower: the demo moves down until his hat clears the text above him. */
@media (min-width: 1180px) { .promises { max-width: 50rem; } }
@media (max-width: 1439px) { .peek { width: 146px; right: 16px; } }
@media (max-width: 1179px) {
  .peek { width: 148px; right: 4%; bottom: calc(100% - 8px); }
  .demo { margin-top: 8.4rem; }
}
@media (max-width: 899px) {
  .peek { width: 128px; right: 5%; }
  .demo { margin-top: 8.9rem; }
}
@media (max-width: 619px) {
  .peek { width: 112px; right: 6%; bottom: calc(100% - 6px); }
  .demo { margin-top: 7.9rem; }
}
.demo-title { font-size: clamp(1.45rem, 2.7vw, 2.25rem); font-weight: 640; letter-spacing: -.045em; line-height: 1.08; }
.demo-title em { font-family: var(--serif); font-style: italic; font-weight: 400; color: #ffd0ae; letter-spacing: -.02em; }
.scenario-tabs {
  display: flex; flex-wrap: wrap; gap: .3rem; padding: .3rem;
  border-radius: 999px; background: rgb(255 255 255 / 12%); border: 1px solid rgb(255 255 255 / 22%);
}
.scenario-tabs button {
  flex: none; white-space: nowrap;
  border: 0; background: transparent; color: #e6ede8; cursor: pointer;
  padding: .46rem .9rem; border-radius: 999px; font-weight: 650; font-size: .87rem;
}
.scenario-tabs button:hover { background: rgb(255 255 255 / 10%); }
.scenario-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.no-js .scenario-tabs { display: none; }
@media (max-width: 620px) {
  .scenario-tabs { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: 16px; }
  .scenario-tabs::-webkit-scrollbar { display: none; }
}

.window {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 440px;
  border-radius: 22px; overflow: hidden; background: var(--night);
  border: 1px solid rgb(255 255 255 / 14%); box-shadow: 0 30px 60px rgb(4 18 22 / 45%);
}
.win-side { background: var(--night-2); border-right: 1px solid var(--night-line); padding: 1rem .9rem; display: flex; flex-direction: column; gap: .9rem; color: var(--night-text); }
.win-dots { display: flex; gap: .35rem; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: #4a443b; }
.win-label { font: 650 .68rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--night-muted); }
.win-clients { display: flex; gap: .4rem; }
.win-clients span { width: 30px; height: 30px; border-radius: 9px; background: #f4eadc; color: var(--ink); display: grid; place-items: center; }
.win-clients img, .win-clients svg { width: 17px; height: 17px; }
.win-nav { display: grid; gap: .35rem; }
.win-nav span { display: flex; align-items: center; gap: .5rem; padding: .45rem .55rem; border-radius: 9px; font-size: .84rem; color: var(--night-muted); }
.win-nav span.on { background: var(--night-3); color: var(--night-text); }
.win-nav svg { width: 15px; height: 15px; }
.win-hand { margin-top: auto; padding: .7rem; border-radius: 12px; background: rgb(16 95 96 / 35%); border: 1px solid rgb(131 188 179 / 35%); display: flex; align-items: center; gap: .55rem; font-size: .82rem; }
.win-hand img { width: 22px; height: 22px; }
.win-hand b { display: block; font-weight: 650; }
.win-hand small { display: flex; align-items: center; gap: .3rem; color: #a4d3c4; }
.win-hand small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #56c596; box-shadow: 0 0 0 3px rgb(86 197 150 / 20%); }
.win-main { padding: 1.25rem clamp(1rem, 2.4vw, 1.6rem); display: flex; flex-direction: column; gap: 1rem; color: var(--night-text); min-width: 0; }
.convo { display: flex; flex-direction: column; gap: .95rem; }
.js .win-main { display: grid; align-content: start; }
.js .convo { grid-area: 1 / 1; }
.js .convo.off { visibility: hidden; pointer-events: none; }
.bubble {
  align-self: flex-end; max-width: min(560px, 92%);
  padding: .8rem 1rem; border-radius: 16px 16px 4px 16px;
  background: var(--night-3); border: 1px solid var(--night-line);
  font-size: .95rem; line-height: 1.5; min-height: 2.9em;
}
.bubble .at { color: #ffb58a; font-weight: 650; }
.bubble { position: relative; }
.bubble .ghost { visibility: hidden; }
.bubble .live { position: absolute; inset: .8rem 1rem; }
.no-js .bubble .ghost { display: none; }
.no-js .bubble .live { position: static; }
.reply { display: flex; flex-direction: column; gap: .6rem; }
.reply-who { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--night-muted); }
.reply-who img { width: 20px; height: 20px; }
.tag-sherlock { gap: .32rem; padding-left: .16rem; }
.reply-who .tag-avatar { width: 16px; height: 16px; border-radius: 50%; }
.reply-who b { color: var(--night-text); font-weight: 650; }
.tag { display: inline-flex; align-items: center; padding: .12rem .5rem; border-radius: 999px; font: 650 .66rem/1.5 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: rgb(255 130 74 / 18%); color: #ffb58a; border: 1px solid rgb(255 130 74 / 35%); }
.live-steps { list-style: none; padding: 0; display: grid; gap: .42rem; }
.live-steps li { display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--night-muted); transition: opacity .35s, transform .35s, color .35s; }
.live-steps .tick { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 1.5px solid #5b5347; display: grid; place-items: center; }
.live-steps .tick svg { width: 11px; height: 11px; opacity: 0; color: #0f3a40; transition: opacity .2s; }
.live-steps li.done { color: var(--night-text); }
.live-steps li.done .tick { background: #a4d3c4; border-color: #a4d3c4; }
.live-steps li.done .tick svg { opacity: 1; }
.live-steps li.busy .tick { border-color: #ffb58a; border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.js .live-steps li:not(.on) { opacity: 0; transform: translateY(4px); }
.finding {
  border-radius: 16px; padding: 1rem 1.1rem 1.05rem;
  background: #f4eadc; color: #1f1c18; transition: opacity .45s, transform .45s;
}
.js .finding:not(.on) { opacity: 0; transform: translateY(8px); }
.finding-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .7rem; }
.finding-head b { font-size: .98rem; letter-spacing: -.01em; }
.finding-head .tag { background: #d4e9dc; color: #114f51; border-color: #a4d3c4; }
.finding dl { display: grid; gap: .5rem; }
.finding .row { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: .9rem; }
.finding dt { font: 650 .68rem/1.9 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #8d3e21; }
.finding dd { font-size: .92rem; line-height: 1.45; }
.finding code { font: 600 .84em var(--mono); background: rgb(16 95 96 / 10%); color: #114f51; padding: .05em .35em; border-radius: 5px; overflow-wrap: anywhere; }
.demo-note { margin-top: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font: 600 .74rem/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: rgb(230 237 232 / 78%); }
@media (max-width: 780px) {
  .window { grid-template-columns: 1fr; min-height: 0; }
  .win-side { display: none; }
  .finding .row { grid-template-columns: 1fr; gap: .1rem; }
}

/* ---------- 2. Proof strip ---------- */
.proof { padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(3.25rem, 6vw, 5rem); background: var(--section); }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee + .marquee { margin-top: 1rem; }
.marquee-track { display: flex; gap: 1rem; width: max-content; padding: .25rem 0; animation: marquee 52s linear infinite; }
.marquee.reverse .marquee-track { animation-direction: reverse; animation-duration: 58s; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.proof-card {
  width: 272px; min-height: 152px; flex: none;
  display: flex; flex-direction: column; justify-content: space-between; gap: .9rem;
  padding: 1.2rem 1.3rem; border-radius: 22px; color: #fff;
  box-shadow: 0 10px 24px rgb(16 46 53 / 16%);
}
.proof-card .big { font-size: 1.72rem; font-weight: 690; letter-spacing: -.045em; line-height: 1.02; }
.proof-card .small { margin-top: .35rem; font-size: .95rem; color: rgb(255 255 255 / 88%); }
.proof-card .meta { display: flex; align-items: center; gap: .45rem; font: 650 .7rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / 78%); }
.proof-card .meta svg { width: 16px; height: 16px; }
.pc-1 { background: linear-gradient(135deg, #105f60, #18746e); }
.pc-2 { background: linear-gradient(135deg, #113d42, #347d74); }
.pc-3 { background: linear-gradient(135deg, #75351f, #ae4c25); }
.pc-4 { background: linear-gradient(135deg, #2b474d, #506f75); }
.pc-5 { background: linear-gradient(135deg, #114f51, #56998e); }
.pc-6 { background: linear-gradient(135deg, #8d3e21, #c25a2c); }
.dup { display: contents; }
.proof-foot { margin-top: 1.6rem; text-align: center; font-size: .9rem; color: var(--soft); }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; overflow-x: auto; }
  .marquee-track { animation: none; margin-inline: auto; padding-inline: 1.25rem; }
  .marquee .dup { display: none; }
}

/* ---------- 3. When to call Sherlock ---------- */
.when { padding: clamp(3.75rem, 7.5vw, 6.25rem) 0; background: var(--paper); }
.when-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3.5vw, 3rem); }
.when-item { text-align: center; padding: .5rem .25rem; }
.doodle { width: 88px; height: 88px; margin: 0 auto 1.2rem; color: var(--teal); }
.doodle .acc { color: var(--orange); }
.when-item h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 650; letter-spacing: -.04em; line-height: 1.15; }
.when-item p { margin-top: .7rem; color: var(--muted); font-size: 1.04rem; text-wrap: pretty; }
@media (max-width: 820px) { .when-grid { grid-template-columns: 1fr; gap: 2.25rem; } }

/* ---------- 4. In action: the case cycle (OpenHands-style loop, Hands colours) ---------- */
.action { padding: clamp(3.75rem, 7.5vw, 6.25rem) 0; background: var(--section); }
.cycle-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3.25rem); align-items: start;
  padding: clamp(1.25rem, 3.5vw, 2.75rem); border-radius: var(--radius-xl);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.cycle-label { display: inline-flex; align-items: center; gap: .45rem; font: 650 .7rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.cycle-label svg { width: 15px; height: 15px; }
.cycle-steps { list-style: none; padding: 0; margin-top: 1.1rem; }
/* All steps share one grid cell; sherlock.js sizes the box to the current step (animated) and reserves the
   card's tallest state on .cycle-wrap, so a short step leaves no hole and the page below never moves. */
.js .cycle-steps { display: grid; align-items: start; overflow: hidden; transition: height .45s cubic-bezier(.4, 0, .2, 1); }
/* No transition on the steps themselves: the reduced-motion rule below would otherwise animate the no-js > js
   spacing change, and sherlock.js would measure the steps mid-change. */
.cycle-step { transition: none; }
.js .cycle-step { grid-area: 1 / 1; }
.js .cycle-step:not(.on) { visibility: hidden; pointer-events: none; }
.cycle-step.on { animation: fadeUp .4s ease; }
.no-js .cycle-step + .cycle-step { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px dashed var(--line); }
.cs-count { font: 650 .74rem/1 var(--mono); letter-spacing: .1em; color: var(--rust); }
.cycle-step h3 { margin-top: .55rem; font-size: clamp(1.75rem, 3.1vw, 2.5rem); font-weight: 640; line-height: 1.04; letter-spacing: -.055em; }
.cycle-step h3 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--teal); letter-spacing: -.03em; }
.cycle-step > p { margin-top: .6rem; max-width: 46ch; color: var(--muted); font-size: 1.03rem; }
.artifact { margin-top: 1.1rem; }
.cycle-foot { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.cycle-toggle { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 650; font-size: .85rem; }
.cycle-toggle svg { width: 14px; height: 14px; }
.no-js .cycle-toggle { display: none; }
.cycle-note { font-size: .82rem; color: var(--soft); }
.cycle-fig { position: relative; width: 100%; max-width: 470px; aspect-ratio: 1 / 1; margin-inline: auto; }
.cycle-fig svg.hex { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hex .ring { fill: none; stroke: rgb(20 47 53 / 9%); stroke-width: 1; }
.hex .body { fill: rgb(16 95 96 / 7%); }
.hex .edge { fill: none; stroke: rgb(20 47 53 / 26%); stroke-width: 1.5; stroke-dasharray: 3 5; transition: stroke .5s; }
.hex .edge.done { stroke: var(--teal); stroke-width: 2.2; stroke-dasharray: none; }
.hex .node { fill: var(--ink); }
/* The case inside the hexagon: the code city with one overlay per station (data-at on .cycle-card, set by
   sherlock.js). Coordinates are pixels of the city image (1416 x 927 viewBox). Placement keeps the city clear
   of the hexagon's edges and of Sherlock where he stops at each corner. */
.case-city { position: absolute; left: 23.5%; top: 29.2%; width: 53%; pointer-events: none; }
.case-city svg { display: block; width: 100%; height: auto; overflow: visible; }
.cc-t {
  fill: none; stroke: var(--orange); stroke-width: 17; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 2; stroke-dashoffset: 1; opacity: 0;
  transition: stroke-dashoffset .8s cubic-bezier(.4, 0, .2, 1), opacity .35s;
}
.cc-p .t { fill: #fbf1e2; } .cc-p .l { fill: #ecd9bd; } .cc-p .r { fill: #d8bf9c; }
.cc-p { stroke: rgb(120 84 52 / 35%); stroke-width: 2; stroke-linejoin: round; transform-box: fill-box; transform-origin: 50% 100%; transition: opacity .45s, transform .45s; }
.cc-ring { fill: rgb(255 130 74 / 10%); stroke: var(--orange); stroke-width: 8; opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .3s; }
.cc-pin path { fill: var(--orange); stroke: var(--rust); stroke-width: 4; }
.cc-pin circle { fill: #fff; }
.cc-pin { opacity: 0; transform: translateY(-70px); transition: opacity .25s, transform .55s cubic-bezier(.3, 1.5, .5, 1); }
.cc-key circle { fill: none; stroke: var(--orange); stroke-width: 12; }
.cc-key rect { fill: var(--orange); }
.cc-key { opacity: 0; transform: translateX(80px); transition: opacity .3s, transform .7s cubic-bezier(.4, 0, .2, 1); }
.cc-check circle { fill: var(--teal); stroke: #fff; stroke-width: 6; }
.cc-check path { fill: none; stroke: #fff; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.cc-check { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.3); transition: opacity .3s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.cc-lens circle { fill: rgb(255 255 255 / 30%); stroke: var(--orange); stroke-width: 17; }
.cc-lens line { stroke: #8b5a36; stroke-width: 24; stroke-linecap: round; }
.cc-lens { opacity: 0; transform: translate(515px, 560px); transition: transform 1s cubic-bezier(.65, 0, .35, 1), opacity .4s; }
/* 01 Report: two parcels for one order, circled. */
[data-at="0"] .cc-p { animation: ccPop .55s cubic-bezier(.3, 1.5, .5, 1) both; }
[data-at="0"] .cc-p2 { animation-delay: .2s; }
[data-at="0"] .cc-ring { opacity: 1; animation: ccRing 1.8s ease-out .5s infinite; }
/* 02 Investigate: the lens sweeps the city. */
[data-at="1"] .cc-lens { opacity: 1; transform: translate(720px, 300px); animation: ccSweep 4s ease-in-out .25s both; }
/* 03 Evidence: the recorded path is drawn and splits in two at the payment step. */
[data-at="2"] .cc-t, [data-at="3"] .cc-t, [data-at="4"] .cc-t, [data-at="5"] .cc-t { opacity: .95; stroke-dashoffset: 0; }
[data-at="2"] .cc-t2 { transition-delay: .55s; }
[data-at="2"] .cc-t3a, [data-at="2"] .cc-t3b { transition-delay: 1.1s; }
[data-at="2"] .cc-lens { opacity: 1; transform: translate(860px, 640px); }
/* 04 Answer: the cause is pinned. */
[data-at="3"] .cc-pin { opacity: 1; transform: none; transition-delay: .35s; }
[data-at="3"] .cc-lens { opacity: .6; transform: translate(1140px, 560px); }
/* 05 Fix: the key goes in. */
[data-at="4"] .cc-key, [data-at="5"] .cc-key { opacity: 1; transform: none; }
[data-at="4"] .cc-key { transition-delay: .35s; }
[data-at="4"] .cc-lens { opacity: .6; transform: translate(1140px, 560px); }
/* 06 Verify: one path, one parcel, checked. */
[data-at="5"] .cc-t3b { opacity: 0; transition-delay: .3s; }
[data-at="5"] .cc-p2 { opacity: 0; transform: translateY(-26px) scale(.6); transition-delay: .3s; }
[data-at="5"] .cc-check { opacity: 1; transform: none; transition-delay: .8s; }
[data-at="5"] .cc-lens { opacity: 1; transform: translate(470px, 640px); }
@keyframes ccPop { from { opacity: 0; transform: translateY(-34px) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes ccRing { 0% { transform: scale(.92); opacity: 1; } 70% { transform: scale(1.12); opacity: .25; } 100% { transform: scale(1.12); opacity: 0; } }
@keyframes ccSweep {
  0% { transform: translate(690px, 520px); }
  30% { transform: translate(300px, 400px); }
  64% { transform: translate(1100px, 430px); }
  100% { transform: translate(720px, 300px); }
}
.cycle-pt {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  padding: .25rem .5rem; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  font-size: .92rem; font-weight: 560; color: var(--soft); white-space: nowrap;
}
.cycle-pt:hover { color: var(--ink); background: rgb(255 255 255 / 55%); }
.cycle-pt[aria-current="step"] { color: var(--ink); font-weight: 760; }
.runner {
  position: absolute; z-index: 3; left: 50%; top: 17.5%; width: 13%; aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--mint);
  box-shadow: 0 0 0 6px rgb(255 130 74 / 26%), 0 10px 20px rgb(16 46 53 / 28%);
  transition: left 1.05s cubic-bezier(.65, 0, .35, 1), top 1.05s cubic-bezier(.65, 0, .35, 1);
}
.runner-avatar { display: block; width: 100%; height: 100%; border-radius: 50%; }
.no-js .runner { display: none; }
.art-quote { padding: .95rem 1.1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line-soft); font-family: var(--serif); font-size: 1.16rem; line-height: 1.35; letter-spacing: -.005em; }
.art-meta {
  margin-top: .6rem; display: flex; flex-wrap: wrap; gap: .15rem 1.1rem;
  padding: .5rem .85rem; border-radius: 12px; background: var(--paper); border: 1px solid var(--line-soft);
  font: 600 .78rem/1.45 var(--mono); color: var(--ink);
}
.art-meta span { white-space: nowrap; }
.art-meta b { font-family: var(--sans); font-weight: 650; color: var(--soft); }
.art-list { list-style: none; padding: 0; display: grid; gap: .45rem; }
.art-list li { display: flex; align-items: flex-start; gap: .55rem; padding: .6rem .8rem; border-radius: 12px; background: #fff; border: 1px solid var(--line-soft); font-size: .92rem; }
.art-list svg { width: 18px; height: 18px; flex: none; margin-top: .1rem; color: var(--teal); }
.art-list li.no svg { color: var(--rust); }
.trace { border-radius: 16px; background: #fff; border: 1px solid var(--line-soft); padding: .9rem 1rem; display: grid; gap: .45rem; }
.trace .label { margin-bottom: .2rem; font: 650 .66rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
.bar-row { display: grid; grid-template-columns: 138px minmax(0, 1fr) 58px; align-items: center; gap: .6rem; font: 600 .76rem/1.2 var(--mono); }
.bar-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 12px; border-radius: 6px; background: rgb(16 95 96 / 12%); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #56998e, #105f60); }
.bar-row.hot { color: var(--rust); }
.bar-row.hot .bar i { background: linear-gradient(90deg, #f19667, #ae4c25); }
.bar-row em { font-style: normal; text-align: right; color: var(--soft); }
.bar-row.hot em { color: var(--rust); }
.trace .sub { margin-top: .25rem; font-size: .82rem; color: var(--soft); }
.art-card { display: grid; gap: .5rem; padding: .9rem 1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line-soft); }
.art-card .row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: .75rem; }
.art-card .row + .row { padding-top: .5rem; border-top: 1px solid var(--line-soft); }
.art-card dt { font: 650 .66rem/1.9 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--rust); }
.art-card dd { font-size: .9rem; }
.artifact code { font: 600 .84em var(--mono); background: rgb(16 95 96 / 10%); color: #114f51; padding: .05em .35em; border-radius: 5px; overflow-wrap: anywhere; }
.diff { border-radius: 16px; overflow: hidden; background: var(--night); color: var(--night-text); border: 1px solid rgb(0 0 0 / 15%); }
.diff-head { display: flex; justify-content: space-between; gap: .75rem; padding: .5rem .85rem; background: var(--night-2); border-bottom: 1px solid var(--night-line); font: 600 .72rem/1.4 var(--mono); color: var(--night-muted); }
.diff pre { margin: 0; padding: .6rem 0; font: 500 .78rem/1.6 var(--mono); }
.diff .l { display: block; padding: 0 .85rem 0 2.1em; text-indent: -1.25em; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff .del { background: rgb(174 76 37 / 24%); color: #ffcfb8; }
.diff .add { background: rgb(86 153 142 / 26%); color: #c9f0e3; }
.diff .ctx { color: var(--night-muted); }
.diff-foot { padding: .5rem .85rem .65rem; font-size: .8rem; color: var(--night-muted); border-top: 1px solid var(--night-line); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .cycle-card { grid-template-columns: 1fr; }
  .cycle-fig { order: -1; max-width: 400px; }
}
@media (max-width: 560px) {
  .cycle-pt { font-size: .8rem; padding: .2rem .3rem; }
  .bar-row { grid-template-columns: 100px minmax(0, 1fr) 48px; }
  .art-card .row { grid-template-columns: 1fr; gap: .1rem; }
  /* Phones: the tallest stations (diff, answer card, lists) a bit tighter, so the card changes height less. */
  .art-list { gap: .4rem; }
  .art-list li { padding: .5rem .7rem; font-size: .88rem; }
  .art-card { gap: .4rem; padding: .75rem .85rem; }
  .art-card .row + .row { padding-top: .4rem; }
  .art-card dd { font-size: .87rem; line-height: 1.45; }
  .diff pre { padding: .45rem 0; font-size: .7rem; line-height: 1.5; }
  .diff .l { padding: 0 .7rem 0 1.95em; }
  .diff-head { padding-inline: .7rem; }
  .diff-foot { padding: .45rem .7rem .55rem; font-size: .76rem; }
  .art-meta { flex-direction: column; gap: .2rem; padding: .55rem .8rem; }
  .art-meta b { display: inline-block; min-width: 3.9rem; }
}

/* ---------- 5. Via your AI ---------- */
.ai { padding: clamp(3.75rem, 7.5vw, 6.25rem) 0; background: var(--paper); }
.ai-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.ai-card {
  display: flex; flex-direction: column; gap: 1rem; overflow: hidden;
  padding: clamp(1.3rem, 2.6vw, 1.9rem); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line);
}
.ai-card.dark { background: linear-gradient(155deg, #0f3a40, #105f60 70%, #18746e); border-color: transparent; color: #fff; }
.ai-card.dark > p { color: #c0d4d7; }
.ai-card h3 { display: flex; align-items: center; gap: .7rem; font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 650; letter-spacing: -.04em; }
.ai-logo { width: 40px; height: 40px; flex: none; border-radius: 12px; background: #fff; color: var(--ink); border: 1px solid var(--line-soft); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.ai-logo img, .ai-logo svg { width: 22px; height: 22px; }
.ai-card > p { color: var(--muted); font-size: 1rem; }
.mock {
  margin-top: auto; border-radius: 16px; overflow: hidden;
  background: var(--night); color: var(--night-text); border: 1px solid rgb(0 0 0 / 18%);
  font-size: .86rem; box-shadow: 0 12px 28px rgb(16 46 53 / 18%);
}
.mock-bar { display: flex; align-items: center; gap: .4rem; padding: .55rem .8rem; background: var(--night-2); border-bottom: 1px solid var(--night-line); font: 650 .68rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--night-muted); }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #4a443b; }
.mock-bar span { margin-left: .4rem; }
.mock-body { padding: .85rem .95rem; display: grid; gap: .55rem; }
.mock-line { display: flex; gap: .5rem; align-items: flex-start; line-height: 1.45; }
.mock-line.me { justify-content: flex-end; }
.mock-line.me > span { background: var(--night-3); border: 1px solid var(--night-line); padding: .45rem .65rem; border-radius: 12px 12px 3px 12px; max-width: 92%; }
.mock-line .at { color: #ffb58a; font-weight: 650; }
.mock-line.tool, .mock-line.term { display: block; }
.mock-line.tool { color: var(--night-muted); font-family: var(--mono); font-size: .78rem; }
.mock-line.tool b { color: #a4d3c4; font-weight: 650; }
.mock-line.term { font-family: var(--mono); font-size: .8rem; }
.mock-line.term .p { color: #a4d3c4; }
.connect { margin-top: clamp(2.25rem, 5vw, 3.25rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; counter-reset: c; list-style: none; padding: 0; }
.connect li { counter-increment: c; padding: 1.25rem 1.3rem; border-radius: 22px; background: rgb(230 237 232 / 70%); border: 1px solid var(--line-soft); }
.connect li::before { content: counter(c); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; font: 700 .8rem/1 var(--mono); margin-bottom: .75rem; }
.connect h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -.025em; }
.connect p { margin-top: .4rem; color: var(--muted); font-size: .95rem; }
.connect a { color: var(--teal); font-weight: 650; }
.starter { margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center; padding: 1.1rem 1.2rem; border-radius: 22px; background: var(--deep); color: #e6ede8; }
.starter-label { font: 650 .68rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #9ec9c0; margin-bottom: .55rem; }
.starter pre { margin: 0; white-space: pre-wrap; font: 500 .9rem/1.55 var(--mono); color: #f4eadc; }
.starter pre .ph { color: #ffb58a; }
.copy-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / 30%); background: rgb(255 255 255 / 10%); color: #fff; font-weight: 650; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.copy-btn:hover { background: rgb(255 255 255 / 18%); }
.copy-btn svg { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .ai-grid, .connect { grid-template-columns: 1fr; }
  .starter { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq { padding: clamp(3.75rem, 7.5vw, 6rem) 0; background: var(--section); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.faq-grid .h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
.faq-grid .lede a { color: var(--teal); font-weight: 650; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; font-weight: 640; font-size: 1.07rem; letter-spacing: -.015em; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 400 1.5rem/1 var(--sans); color: var(--teal); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 1.2rem; color: var(--muted); max-width: 62ch; }
.faq .answer a { color: var(--teal); font-weight: 650; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- Closing CTA ---------- */
.final { padding: clamp(3rem, 6vw, 5rem) 0; background: var(--paper); }
/* Dark card with the CTA; on its right Sherlock hands the closed case to the orange Hand that reaches out
   of the dark side. The picture is anchored to the seam, so the hand always comes from the card. */
.final-card {
  display: grid; grid-template-columns: minmax(0, 1fr) clamp(240px, 30%, 340px);
  border-radius: var(--radius-xl); overflow: hidden; color: #fff;
  background:
    radial-gradient(55% 90% at 100% 0%, rgb(255 130 74 / 42%), transparent 62%),
    linear-gradient(150deg, #102e35 0%, #105f60 100%);
  box-shadow: var(--shadow-lg);
}
.final-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1.6rem; padding: clamp(2rem, 5vw, 3.5rem); }
.final-art {
  position: relative; min-height: 320px;
  background:
    radial-gradient(70% 55% at 62% 40%, rgb(255 255 255 / 55%), transparent 72%),
    linear-gradient(165deg, #d4e9dc 0%, #c3ddd2 100%);
}
.final-art img { position: absolute; left: 0; bottom: 0; width: auto; height: calc(100% - 1.4rem); max-height: 440px; }
@media (max-width: 760px) {
  .final-card { grid-template-columns: 1fr; }
  .final-art { min-height: 0; height: 250px; }
  .final-art img { height: 236px; }
}
.final-card h2 { max-width: 17ch; font-size: clamp(2rem, 4vw, 3.3rem); font-weight: 630; line-height: 1.04; letter-spacing: -.058em; text-wrap: balance; }
.final-card h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: #ffd0ae; letter-spacing: -.03em; }
.final-card p { margin-top: .8rem; max-width: 46ch; color: #c0d4d7; font-size: 1.05rem; }
.final-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.final-actions .row { display: flex; flex-wrap: wrap; gap: .6rem; }
.final-actions small { color: #a4d3c4; font-size: .86rem; }

/* ---------- Footer ---------- */
.foot { background: var(--deep); color: #e6ede8; padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 2rem; align-items: flex-start; padding-bottom: 1.75rem; border-bottom: 1px solid rgb(192 212 215 / 24%); }
.foot .brand-by { color: #c0d4d7; }
.foot .brand-mark { padding: 3px; border-radius: 10px; background: #e6ede8; }
.foot .brand-avatar { padding: 0; border-radius: 50%; background: none; }
.foot-tag { margin-top: .7rem; max-width: 34ch; color: #c0d4d7; font-size: .95rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; list-style: none; padding: 0; }
.foot-links a { text-decoration: none; color: #e6ede8; font-weight: 560; font-size: .95rem; }
.foot-links a:hover { color: #ffd0ae; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; padding-top: 1.25rem; font-size: .84rem; color: #c0d4d7; }
.foot-bottom a { color: #c0d4d7; }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; }
.foot-legal .analytics-preferences-link { color: #c0d4d7; font-size: .84rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Shared analytics consent panel (markup from /site/analytics-consent-ui.js) ---------- */
.analytics-consent-panel {
  position: fixed; z-index: 10050; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  width: min(680px, calc(100vw - 28px)); padding: 20px 22px;
  border: 1px solid var(--line-soft); border-radius: var(--radius-md);
  background: rgb(219 232 226 / 96%); box-shadow: var(--shadow-lg); color: var(--ink);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.analytics-consent-panel[hidden] { display: none !important; }
.analytics-consent-panel h2 { margin: 0 40px 6px 0; font: 400 20px/1.2 var(--brand); }
.analytics-consent-copy { margin: 0; max-width: 62ch; color: var(--muted); font-size: 14px; line-height: 1.5; }
.analytics-consent-status { margin: 10px 0 0; color: var(--soft); font-size: 12px; font-weight: 700; }
.analytics-consent-actions { margin-top: 16px; display: flex; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.analytics-consent-actions .btn { min-height: 42px; padding: .6rem 1.1rem; font-size: .95rem; }
.analytics-consent-close {
  position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 999px;
  background: transparent; color: var(--ink); font: 24px/1 var(--sans); cursor: pointer;
}
.analytics-consent-close:hover { background: var(--raised); }
.analytics-preferences-link { appearance: none; width: fit-content; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; opacity: .78; }
.analytics-preferences-link:hover { opacity: 1; text-decoration: underline; }
@media (max-width: 640px) {
  .analytics-consent-panel { bottom: max(10px, env(safe-area-inset-bottom)); width: calc(100vw - 20px); padding: 18px; }
  .analytics-consent-actions { justify-content: stretch; }
  .analytics-consent-actions .btn { flex: 1 1 180px; }
}
