/* Front page. Tokens, fonts, buttons and the scanner come from assets/report.css. */

/* Motion: one easing and a few durations, used everywhere on this page. */
:root {
  --out: cubic-bezier(0.22, 1, 0.36, 1);   /* fast start, long soft landing */
  --t-micro: 200ms;                        /* hovers, presses, focus */
  --t-text: 650ms;                         /* headline and copy reveals */
  --t-section: 560ms;                      /* scroll reveals */
  --stagger: 70ms;
}

/* A faint purple glow behind the hero that drifts very slowly. */
.is-home { position: relative; isolation: isolate; overflow-x: clip; }
.is-home::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 110svh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(110, 91, 255, 0.08), transparent 70%),
    radial-gradient(700px 420px at 8% 4%, rgba(110, 91, 255, 0.04), transparent 70%);
  background-repeat: no-repeat;
}

/* ---------- Header nav ---------- */
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink-3); text-decoration: none; font: 500 0.9rem/1 var(--sans); padding: 9px 12px; border-radius: 8px; transition: color var(--ease), background-color var(--ease); }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
@media (max-width: 760px) {
  .nav a:not(:first-child) { display: none; }
}

/* ---------- Hero: fills the first screen ---------- */
/* Sizes scale with the viewport height as well as the width, so the headline, form and
   example all fit in one view on laptop and desktop screens. */
.hero {
  max-width: var(--content); margin: 0 auto;
  min-height: calc(100svh - 70px);
  padding: clamp(12px, 2.6vh, 56px) var(--gutter);
  display: grid; align-items: center; align-content: center; gap: 48px;
  grid-template-columns: 1fr;
}
@media (min-width: 1060px) {
  .hero { grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); column-gap: clamp(40px, 5vw, 72px); }
}
/* Oversized neo-grotesque headline: regular weight, tight tracking, generous leading. */
.hero-text { container-type: inline-size; min-width: 0; }
.hero h1 {
  font: 400 clamp(2.6rem, 11vw, 4.6rem)/1.05 var(--display);
  letter-spacing: var(--display-tracking); text-wrap: balance;
  margin-top: clamp(10px, 1.8vh, 18px);
}
@media (min-width: 1060px) {
  /* Two lines across the column, capped by the viewport height so everything fits on screen. */
  .hero h1 { font-size: clamp(2.8rem, min(11.7cqi, 9.4vh), 5.6rem); }
}
.hero-sub { margin-top: clamp(10px, 1.8vh, 18px); font: italic 500 clamp(1.3rem, min(2.2vw, 3.4vh), 1.9rem)/1.2 var(--serif); letter-spacing: -0.01em; color: var(--brand-text); }
.lede { font-size: clamp(1rem, 2vh, 1.1rem); line-height: 1.6; color: var(--ink-3); max-width: 54ch; margin: clamp(8px, 1.5vh, 14px) 0 clamp(16px, 3vh, 28px); }

/* ---------- Form: URL first, options second, action third ---------- */
.analyse-form { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(12px, 2vh, 18px); box-shadow: var(--shadow-lg); max-width: 640px; }
.field-label { display: block; font: 500 0.8rem/1 var(--sans); color: var(--ink-3); margin: 0 0 8px; padding: 0; }
.url-field { position: relative; }
.url-icon { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: none; stroke: var(--ink-3); stroke-width: 1.4; pointer-events: none; transition: stroke var(--ease); }
.url-field input {
  width: 100%; height: clamp(50px, 6.6vh, 58px); font: 450 1.08rem/1 var(--sans); padding: 0 16px 0 50px;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); color: var(--ink);
  transition: border-color var(--ease), box-shadow var(--ease), background-color var(--ease);
}
.url-field input::placeholder { color: color-mix(in srgb, var(--ink-3) 70%, transparent); }
.url-field input:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--line-2)); }
.url-field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); background: var(--surface); }
.url-field:focus-within .url-icon { stroke: var(--brand-text); }
.url-field input[aria-invalid="true"] { border-color: var(--high); box-shadow: 0 0 0 4px color-mix(in srgb, var(--high) 25%, transparent); }
.form-error { display: flex; gap: 8px; align-items: flex-start; margin: 10px 2px 0; color: var(--high-text); font-size: 0.9rem; font-weight: 500; }
.form-error::before { content: "!"; flex: none; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--high); color: #fff; font: 700 0.72rem/1 var(--mono); }
.form-error[hidden] { display: none; }

.options { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(10px, 1.6vh, 14px) 14px; align-items: end; margin-top: clamp(10px, 1.8vh, 16px); }

.segmented { border: 0; padding: 0; margin: 0; min-width: 0; }
.segmented-track { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: inline-flex; align-items: center; gap: 7px; height: clamp(36px, 4.6vh, 40px); padding: 0 14px; border-radius: 9px; font: 500 0.9rem/1 var(--sans); color: var(--ink-3); transition: background-color var(--ease), color var(--ease), box-shadow var(--ease); pointer-events: none; }
.segmented svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.segmented label:hover span { color: var(--ink); }
.segmented input:checked + span { background: var(--brand-tint); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 65%, transparent); }
.segmented input:checked + span svg { stroke: var(--brand-text); }
.segmented input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.select select {
  width: 100%; height: clamp(46px, 5.8vh, 50px); padding: 0 40px 0 14px; appearance: none; -webkit-appearance: none;
  font: 500 0.92rem/1 var(--sans); color: var(--ink); background-color: var(--surface-2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%235f6475' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color var(--ease);
}
.select select:hover { border-color: var(--line-2); }
.select select:focus-visible { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-ring); }

.btn-go { grid-column: 1 / -1; width: 100%; margin-top: 2px; height: clamp(46px, 6vh, 52px); padding: 0 22px; font-size: 1rem; font-weight: 600; border-radius: 12px; }
.btn-arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--ease); }
.btn-go:hover .btn-arrow { transform: translateX(3px); }
.btn-go.is-loading .btn-arrow, .btn-go.is-paused .btn-arrow { display: none; }
.btn-go.is-paused { cursor: not-allowed; opacity: 0.6; }
.btn-go.is-loading::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.8s linear infinite; }
.btn-lg { height: 50px; padding: 0 22px; font-size: 1rem; font-weight: 600; border-radius: 12px; }

/* Usage limits: not an input error, so amber, with when it lifts. */
.limit-notice { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--medium) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--medium) 45%, var(--line)); color: var(--ink-2); font-size: 0.9rem; line-height: 1.5; }
.limit-notice[hidden] { display: none; }
.limit-icon { flex: none; width: 20px; height: 20px; margin-top: 1px; fill: none; stroke: var(--medium-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.limit-title { font-weight: 600; color: var(--ink); }
.limit-when { margin-top: 4px; font: 500 0.8rem/1.4 var(--mono); color: var(--medium-text); }
.limit-when:empty { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .limit-notice:not([hidden]) { animation: rise-sm 320ms var(--out); }
}
.network-help { margin: clamp(8px, 1.4vh, 12px) 2px 0; font-size: 0.84rem; color: var(--ink-3); }

.assure { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: clamp(12px, 2.2vh, 22px) 0 0; padding: 0; font-size: 0.9rem; color: var(--ink-2); }
.assure li { display: inline-flex; align-items: center; gap: 8px; }
.assure li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%235543e8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 40%, transparent); }
.notice { font-size: 0.8rem; color: var(--ink-3); margin: clamp(6px, 1.2vh, 12px) 0 0; max-width: 600px; opacity: 0.85; }

/* ---------- Example report (hero visual): a miniature of the real report ---------- */
.demo { width: 100%; max-width: 540px; margin: 0 auto; }
.demo-window { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.demo-bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.demo-pill { display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--rc); color: var(--on-rc); font: 600 0.74rem/1 var(--mono); }
.demo-host { font: 500 0.8rem/1 var(--mono); color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-meta { margin-left: auto; font: 0.7rem/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.demo-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.demo-shot { padding: 18px; background: var(--surface-2); background-image: radial-gradient(circle, rgba(16, 18, 27, 0.07) 1px, transparent 1.2px); background-size: 14px 14px; border-right: 1px solid var(--line); }
.demo-panel { padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.demo-caption { margin-top: 10px; text-align: center; font-size: 0.78rem; color: var(--ink-3); }

/* The mock web page: light, like most real pages, so the annotations read clearly. */
.mp { position: relative; padding: 0 12px 14px; color: #1d1b18; background: #fbfaf7; border-radius: 8px; box-shadow: 0 0 0 1px var(--line-2), 0 10px 24px -14px rgba(16, 18, 27, 0.3); font-family: var(--sans); }
.mp-nav { display: flex; align-items: center; height: 38px; font-size: 0.66rem; color: #5d5850; }
.mp-nav b { font-size: 0.82rem; color: #1d1b18; letter-spacing: -0.02em; margin-right: auto; }
.mp-nav b i { color: #c0612b; font-style: normal; }
.mp-nav em { font-style: normal; color: #1d1b18; background: #efece5; padding: 4px 8px; border-radius: 999px; }
.mp-hero {
  position: relative; height: clamp(84px, 13vh, 118px); border-radius: 8px;
  background:
    radial-gradient(60% 80% at 70% 38%, rgba(255, 214, 160, 0.55), transparent 60%),
    radial-gradient(24% 34% at 68% 50%, #3b2214 0 60%, transparent 62%),
    radial-gradient(34% 20% at 68% 74%, rgba(0, 0, 0, 0.28), transparent 70%),
    linear-gradient(135deg, #7a4a2c 0%, #b5794b 45%, #e3b07a 100%);
}
.mp-hero-tag { position: absolute; left: 10px; bottom: 10px; font: 600 0.56rem/1 var(--sans); letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: rgba(0, 0, 0, 0.35); padding: 5px 7px; border-radius: 999px; }
.mp-copy { padding: 14px 0 0; }
.mp-h { display: inline-block; font: 650 0.9rem/1.2 var(--sans); letter-spacing: -0.02em; color: #1d1b18; }
.mp-p { margin-top: 5px; font-size: 0.64rem; line-height: 1.5; color: #5d5850; }
.mp-btn { display: inline-block; margin-top: 8px; font: 600 0.6rem/1 var(--sans); color: #fff; background: #1d1b18; padding: 7px 10px; border-radius: 6px; }
.mp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.mp-card p { margin-top: 5px; font: 600 0.6rem/1.2 var(--sans); color: #1d1b18; }
.mp-card small { font-size: 0.56rem; color: #7a746a; }
.mp-thumb { height: clamp(34px, 5.4vh, 46px); border-radius: 6px; }
.mp-thumb.t1 { background: radial-gradient(40% 50% at 50% 55%, #6b3d22 0 55%, transparent 57%), linear-gradient(160deg, #f1e3cf, #dcc4a3); }
.mp-thumb.t2 { background: radial-gradient(40% 50% at 50% 55%, #2f4a3a 0 55%, transparent 57%), linear-gradient(160deg, #e3eadf, #c3d2bf); }
.mp-thumb.t3 { background: radial-gradient(40% 50% at 50% 55%, #3a2a4a 0 55%, transparent 57%), linear-gradient(160deg, #e7e1ee, #cfc6db); }

/* Annotations: outline + soft fill + numbered badge, sharing the severity colour. */
.ann { position: relative; --c: var(--high); }
.ann-medium { --c: var(--medium); }
.ann::before { content: ""; position: absolute; inset: -4px; border: 2px solid var(--c); border-radius: 10px; background: color-mix(in srgb, var(--c) 10%, transparent); pointer-events: none; transition: opacity var(--ease), background-color var(--ease), border-width var(--ease); }
.ann::after { content: attr(data-n); position: absolute; top: -11px; left: -11px; display: grid; place-items: center; width: 19px; height: 19px; border-radius: 6px; background: var(--c); color: #fff; font: 700 0.64rem/1 var(--mono); box-shadow: 0 0 0 2px #fbfaf7; transition: opacity var(--ease); }
.ann-medium::after { color: #1a1206; }
.mp-h.ann::before { inset: -3px -5px; border-radius: 5px; }

/* Selected / hovered / inactive: hovering a finding picks out its element and fades the rest. */
.demo:has(.demo-card:hover) .ann::before, .demo:has(.demo-card:hover) .ann::after { opacity: 0.22; }
.demo:has(.demo-card-1:hover) .ann[data-n="1"]::before, .demo:has(.demo-card-1:hover) .ann[data-n="1"]::after,
.demo:has(.demo-card-2:hover) .ann[data-n="2"]::before, .demo:has(.demo-card-2:hover) .ann[data-n="2"]::after,
.demo:has(.demo-card-3:hover) .ann[data-n="3"]::before, .demo:has(.demo-card-3:hover) .ann[data-n="3"]::after { opacity: 1; }
.demo:has(.demo-card-1:hover) .ann[data-n="1"]::before,
.demo:has(.demo-card-2:hover) .ann[data-n="2"]::before,
.demo:has(.demo-card-3:hover) .ann[data-n="3"]::before { border-width: 3px; background: color-mix(in srgb, var(--c) 20%, transparent); }

.demo-score { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.demo-score svg { width: 50px; height: 50px; flex: none; }
.demo-score circle { fill: none; stroke-width: 6; }
.demo-score .track { stroke: var(--surface-3); }
.demo-score .arc { stroke: var(--rc); stroke-linecap: round; }
.demo-score b { display: block; font: 600 1.6rem/1 var(--mono); letter-spacing: -0.04em; color: var(--rt); }
.demo-score small { display: block; margin-top: 3px; font: 500 0.62rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.demo-panel-title { margin-top: 4px; font: 600 0.78rem/1 var(--sans); color: var(--ink-2); }
.demo-issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.demo-card {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  transition: border-color var(--ease), background-color var(--ease);
  cursor: default;
}
.demo-card:hover { border-color: color-mix(in srgb, var(--c) 70%, var(--line-2)); background: var(--surface-3); }
.demo-card .num { flex: none; width: 22px; height: 22px; font-size: 0.7rem; border-radius: 6px; }
.demo-card b { display: block; font: 600 0.8rem/1.3 var(--sans); color: var(--ink); }
.demo-card small { display: block; margin-top: 3px; font: 0.68rem/1.3 var(--mono); color: var(--ink-3); }
.demo-card .sev { color: var(--ct); }

/* One-time reveal, then still. */
.ann::before, .ann::after, .demo-card { animation: reveal 0.5s cubic-bezier(0.2, 0, 0, 1) backwards; }
.ann[data-n="1"]::before, .ann[data-n="1"]::after, .demo-card-1 { animation-delay: 1.05s; }
.ann[data-n="2"]::before, .ann[data-n="2"]::after, .demo-card-2 { animation-delay: 1.25s; }
.ann[data-n="3"]::before, .ann[data-n="3"]::after, .demo-card-3 { animation-delay: 1.45s; }
@keyframes reveal { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Short laptop screens: keep the form above the fold. */
@media (min-width: 1060px) and (max-height: 760px) {
  .lede { line-height: 1.5; }
  .network-help { display: none; }
}
@media (max-width: 560px) {
  .demo-body { grid-template-columns: 1fr; }
  .demo-shot { border-right: 0; border-bottom: 1px solid var(--line); }
  .demo-meta { display: none; }
}

/* ---------- Progress: takes the example's place in the hero's right column ---------- */
.hero-side { width: 100%; max-width: 540px; margin: 0 auto; min-width: 0; }
.hero-side .demo { max-width: none; }
.progress { scroll-margin-top: 96px; }
.progress .status-card {
  flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border-radius: 16px;
  border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: var(--shadow-lg), 0 0 0 6px var(--brand-tint);
}
/* The scanner sits on the same dotted canvas as the example's screenshot. */
.progress .scanner {
  display: block; width: 100%; height: clamp(170px, 27vh, 240px); padding: clamp(18px, 3vh, 26px) 0;
  background: var(--surface-2) radial-gradient(circle, rgba(16, 18, 27, 0.07) 1px, transparent 1.2px) 0 0 / 14px 14px;
  border-bottom: 1px solid var(--line);
}
.progress-body { min-width: 0; padding: clamp(18px, 2.8vh, 24px) 24px clamp(18px, 2.8vh, 24px); }
.progress-url { font: 600 1.05rem/1.35 var(--mono); letter-spacing: -0.02em; word-break: break-all; margin-bottom: 16px; }
.steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.steps li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-3); transition: color var(--ease); }
.steps li > span:last-child { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.steps li b { display: inline-block; min-width: 72px; font: 600 0.72rem/1.9 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.steps .dot { width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; transition: background-color var(--ease), border-color var(--ease); }
.steps li.is-current { color: var(--ink); }
.steps li.is-current b { color: var(--brand-text); }
.steps li.is-current .dot { border-color: var(--brand); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.steps li.is-done { color: var(--ink-2); }
.steps li.is-done .dot { border-color: var(--good); background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress-error { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--high) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--high) 40%, var(--line)); color: var(--ink); font-size: 0.9rem; }
.progress-error[hidden] { display: none; }
.report-link { margin-top: 10px; color: var(--ink-3); word-break: break-all; }
.report-link a { font-family: var(--mono); font-size: 0.82rem; margin-left: 6px; }

/* ---------- Sections ---------- */
.section { max-width: var(--content); margin: 0 auto; padding: clamp(64px, 10vh, 104px) var(--gutter) 0; scroll-margin-top: 60px; }
.section-head { max-width: 820px; margin-bottom: 48px; }
.section-head h2 { font: 400 clamp(2.4rem, 5vw, 4rem)/1.08 var(--display); letter-spacing: var(--display-tracking); text-wrap: balance; }
.section-lede { margin-top: 14px; font-size: 1.06rem; color: var(--ink-3); }

.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; }
.how-steps li { position: relative; padding: 26px 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color var(--ease); }
.how-steps li:hover { border-color: var(--line-2); }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-text); font: 600 0.82rem/1 var(--mono); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 40%, transparent); margin-bottom: 18px; }
.how-steps h3, .features h3 { font: 600 1.1rem/1.3 var(--sans); letter-spacing: -0.015em; margin-bottom: 8px; }
.how-steps p, .features p { color: var(--ink-3); font-size: 0.95rem; line-height: 1.6; }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.features li { padding: 26px 24px 28px; background: var(--surface); transition: background-color var(--ease); }
.features li:hover { background: #fcfcfe; }
.features svg { width: 22px; height: 22px; margin-bottom: 16px; fill: none; stroke: var(--brand-text); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.sample { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1000px) { .sample { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.sample .section-head { margin-bottom: 0; }
.sample .section-head h2 { font-size: clamp(2.2rem, 3.8vw, 3.2rem); }
.sample-points { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 12px; color: var(--ink-3); font-size: 0.95rem; }
.sample-points li { padding-left: 18px; position: relative; }
.sample-points li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.sample-points b { color: var(--ink); font-weight: 600; }
.sample-shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); background: var(--surface); }
.sample-shot img { display: block; width: 100%; height: auto; }

.faq { max-width: 820px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 2px; cursor: pointer; font: 550 1.05rem/1.4 var(--sans); color: var(--ink); transition: color var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 9px; height: 9px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: rotate(45deg) translateY(-3px); transition: transform var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.faq summary:hover { color: var(--brand-text); }
.faq details p { padding: 0 2px 22px; color: var(--ink-3); max-width: 70ch; }
.faq details p b { color: var(--ink-2); font-weight: 600; }

.cta-band {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--content) - 2 * var(--gutter)));
  margin: clamp(72px, 11vh, 120px) auto clamp(72px, 11vh, 112px);
  padding: 40px clamp(24px, 4vw, 48px);
  background: linear-gradient(135deg, rgba(110, 91, 255, 0.08), rgba(110, 91, 255, 0.02)), var(--surface);
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line)); border-radius: 20px;
}
.cta-band h2 { font: 400 clamp(2rem, 4vw, 3.2rem)/1.08 var(--display); letter-spacing: var(--display-tracking); max-width: 18ch; }

/* ---------- Footer ---------- */
.foot-home { align-items: flex-start; }
.foot-brand p { margin-top: 12px; max-width: 46ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--ink-3); text-decoration: none; }
.foot-links a:hover { color: var(--ink); }

@media (max-width: 620px) {
  .analyse-form { padding: 14px; }
  .options { grid-template-columns: 1fr; gap: 12px; }
  .segmented-track { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .segmented span { justify-content: center; }
  .btn-go { width: 100%; }
  .cta-band .btn { width: 100%; }
}

/* =====================================================================
   Motion. Transform and opacity only; nothing loops except the faint
   background drift. Everything here is skipped for reduced motion
   (see also the global rule in report.css).
   ===================================================================== */
.split .w { display: inline-block; }
.nowrap { white-space: nowrap; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise-sm { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes word { from { opacity: 0; transform: translateY(0.42em); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
  to   { transform: translate3d(-2.5%, 2%, 0) scale(1.06); opacity: 1; }
}
@keyframes sent { from { opacity: 0.55; transform: scale(1); } to { opacity: 0; transform: scale(1.035); } }

/* ---------- Micro-interactions (kept even without the entrance) ---------- */
/* Buttons lift slightly on hover and press down on click. */
.btn-primary { transition: background-color var(--t-micro) var(--out), box-shadow var(--t-micro) var(--out), transform var(--t-micro) var(--out); }
.btn-primary:hover:not([disabled]) { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 10px 22px -10px rgba(110, 91, 255, 0.75); }
.btn-primary:active:not([disabled]) { transform: translateY(0) scale(0.985); transition-duration: 90ms; }
.btn-arrow { transition: transform var(--t-micro) var(--out); }
.btn-go:hover .btn-arrow { transform: translateX(4px); }

/* The form wakes up when you focus the URL field; the placeholder steps back. */
.analyse-form { transition: border-color var(--t-micro) var(--out), box-shadow 320ms var(--out); }
.analyse-form:focus-within { border-color: color-mix(in srgb, var(--brand) 28%, var(--line)); box-shadow: var(--shadow-lg), 0 18px 48px -28px rgba(110, 91, 255, 0.45); }
.url-field input { transition: border-color var(--t-micro) var(--out), box-shadow var(--t-micro) var(--out), background-color var(--t-micro) var(--out); }
.url-field input:focus { box-shadow: 0 0 0 4px var(--brand-ring), 0 6px 20px -10px rgba(110, 91, 255, 0.45); }
.url-field input::placeholder { transition: opacity var(--t-micro) var(--out); }
.url-field input:focus::placeholder { opacity: 0.45; }

/* Submit feedback: a single soft ring leaves the form. */
.analyse-form { position: relative; }
.analyse-form::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 2px solid var(--brand); opacity: 0; pointer-events: none; }
.analyse-form.is-sent::after { animation: sent 700ms var(--out); }

/* Cards respond to the pointer. */
.how-steps li { transition: border-color var(--t-micro) var(--out), box-shadow var(--t-micro) var(--out), transform var(--t-micro) var(--out); }
.how-steps li:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.step-num { transition: background-color var(--t-micro) var(--out), transform var(--t-micro) var(--out); }
.how-steps li:hover .step-num { background: color-mix(in srgb, var(--brand) 14%, transparent); transform: translateY(-1px); }
.features svg { transition: transform 260ms var(--out); }
.features li:hover svg { transform: translateY(-2px) scale(1.06); }
.sample-shot { transition: transform 320ms var(--out), box-shadow 320ms var(--out); }
.sample-shot:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(16, 18, 27, 0.05), 0 34px 70px -28px rgba(16, 18, 27, 0.28); }
.demo-card { transition: border-color var(--t-micro) var(--out), background-color var(--t-micro) var(--out), transform var(--t-micro) var(--out); }
.demo-card:hover { transform: translateX(2px); }

/* Links: an underline that draws in from the left. */
.foot-links a { background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; padding-bottom: 2px; transition: color var(--t-micro) var(--out), background-size 260ms var(--out); }
.foot-links a:hover { background-size: 100% 1px; }
.nav a:active { transform: translateY(1px); }

/* FAQ answers ease in when opened. */
.faq details[open] > p { animation: rise-sm 320ms var(--out); }

@media (prefers-reduced-motion: no-preference) {
  /* ---------- Hero entrance: one sequence on load, then still ---------- */
  .is-home::before { animation: drift 22s ease-in-out infinite alternate; }

  .hero .eyebrow { animation: fade 500ms var(--out) 60ms backwards; }
  .split .w { animation: word var(--t-text) var(--out) backwards; }
  .split .w:nth-of-type(1) { animation-delay: 120ms; }
  .split .w:nth-of-type(2) { animation-delay: calc(120ms + var(--stagger)); }
  .split .w:nth-of-type(3) { animation-delay: calc(120ms + 2 * var(--stagger)); }
  .split .w:nth-of-type(4) { animation-delay: calc(120ms + 3 * var(--stagger)); }
  .split .nowrap .w:nth-of-type(1) { animation-delay: calc(120ms + 4 * var(--stagger)); }
  .split .nowrap .w:nth-of-type(2) { animation-delay: calc(120ms + 5 * var(--stagger)); }
  .hero-sub { animation: rise-sm var(--t-text) var(--out) 480ms backwards; }
  .lede { animation: rise-sm var(--t-text) var(--out) 560ms backwards; }
  .analyse-form { animation: settle 700ms var(--out) 640ms backwards; }
  .btn-go { animation: rise-sm 500ms var(--out) 820ms backwards; }
  .assure, .notice { animation: fade 600ms var(--out) 900ms backwards; }
  .demo { animation: rise 800ms var(--out) 500ms backwards; }

  /* The progress panel arrives instead of popping in. */
  .progress:not([hidden]) .status-card { animation: settle 560ms var(--out); }
  .progress-error:not([hidden]) { animation: rise-sm 320ms var(--out); }

  /* ---------- Scroll reveals (motion.js adds .motion and .is-in) ---------- */
  .motion [data-reveal]:not(.is-in),
  .motion [data-reveal-group]:not(.is-in) > *,
  .motion .features:not(.is-in) li > * { opacity: 0; }
  .motion [data-reveal].is-in { animation: rise var(--t-section) var(--out) backwards; }
  .motion [data-reveal-group].is-in > * { animation: rise var(--t-section) var(--out) backwards; }
  .motion .features.is-in { animation: fade 400ms var(--out) backwards; }
  .motion .features.is-in li > * { animation: rise-sm var(--t-section) var(--out) backwards; }

  /* Stagger children by their position (up to eight). */
  .motion [data-reveal-group].is-in > :nth-child(2), .motion .features.is-in li:nth-child(2) > * { animation-delay: calc(1 * var(--stagger)); }
  .motion [data-reveal-group].is-in > :nth-child(3), .motion .features.is-in li:nth-child(3) > * { animation-delay: calc(2 * var(--stagger)); }
  .motion [data-reveal-group].is-in > :nth-child(4), .motion .features.is-in li:nth-child(4) > * { animation-delay: calc(3 * var(--stagger)); }
  .motion [data-reveal-group].is-in > :nth-child(5), .motion .features.is-in li:nth-child(5) > * { animation-delay: calc(4 * var(--stagger)); }
  .motion [data-reveal-group].is-in > :nth-child(6), .motion .features.is-in li:nth-child(6) > * { animation-delay: calc(5 * var(--stagger)); }
  .motion [data-reveal-group].is-in > :nth-child(7) { animation-delay: calc(6 * var(--stagger)); }
  .motion [data-reveal-group].is-in > :nth-child(n+8) { animation-delay: calc(7 * var(--stagger)); }
  .motion .sample-shot.is-in { animation-delay: 120ms; }
}
