/* GetVisible — Agent Readiness Scanner
   Token source: Shopify Polaris (public design system). Brand greens are the
   Polaris v10 "action primary" ramp + Shopify's logo green; neutrals and status
   tones are Polaris v12. No other colours are used. */

:root {
  /* brand (Polaris v10 action-primary ramp, Shopify logo green) */
  --brand: #008060;
  --brand-hover: #006e52;
  --brand-pressed: #005e46;
  --brand-deep: #004c3f;
  --brand-tint: #f1f8f5;
  --brand-logo: #95bf47;

  /* neutrals (Polaris v12) */
  --bg: #f1f1f1;
  --surface: #ffffff;
  --surface-2: #f7f7f7;
  --surface-3: #ebebeb;
  --inverse: #1a1a1a;
  --text: #303030;
  --text-2: #616161;
  --text-3: #8a8a8a;
  --text-inverse: #ffffff;
  --text-inverse-2: #b5b5b5;
  --border: #e3e3e3;
  --border-strong: #cccccc;

  /* status (Polaris v12) */
  --ok: #29845a;
  --ok-text: #0c5132;
  --ok-surface: #cdfee1;
  --warn: #ffb800;
  --warn-text: #5e4200;
  --warn-surface: #fff1e3;
  --bad: #c70a24;
  --bad-text: #8e0b21;
  --bad-surface: #fee9e8;

  /* type: one family, 6 sizes */
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 15px; --fs-lg: 18px; --fs-xl: 24px; --fs-2xl: clamp(30px, 5vw, 48px);

  /* space / radius / depth / motion */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-pill: 999px;
  --shadow-1: 0 1px 0 rgba(26,26,26,.07), 0 1px 2px rgba(26,26,26,.08);
  --shadow-2: 0 1px 0 rgba(26,26,26,.05), 0 8px 24px -8px rgba(26,26,26,.18);
  --shadow-3: 0 24px 64px -16px rgba(0,76,63,.35);
  --ease: cubic-bezier(.2,.8,.2,1);
  --ease-io: cubic-bezier(.77,0,.175,1);
  --t-fast: 140ms; --t-med: 220ms;
  --focus: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-md); line-height: 1.55;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv11', 'ss01';
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-underline-offset: 2px; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--s4); }
[hidden] { display: none !important; }

/* ── NAV ─────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: var(--s2); font-weight: 700; font-size: var(--fs-md); color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); display: grid; place-items: center; }
.logo-mark svg { width: 15px; height: 15px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); background: var(--brand-tint); color: var(--brand-deep); border: 1px solid rgba(0,128,96,.18); }
.nav-links { display: flex; align-items: center; gap: var(--s5); font-size: var(--fs-sm); }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 500; }
@media (hover: hover) { .nav-links a:hover { color: var(--text); } }
@media (max-width: 640px) { .nav-links .hide-sm { display: none; } }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 44px; padding: 0 var(--s5); border-radius: var(--r-md); border: 1px solid transparent;
  font-weight: 600; font-size: var(--fs-md); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn:disabled { cursor: not-allowed; opacity: .6; }
.btn-primary { background: var(--brand); color: var(--text-inverse); box-shadow: inset 0 -1px 0 rgba(0,0,0,.2), var(--shadow-1); }
@media (hover: hover) { .btn-primary:hover:not(:disabled) { background: var(--brand-hover); } }
.btn-primary:active:not(:disabled) { background: var(--brand-pressed); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); box-shadow: var(--shadow-1); }
@media (hover: hover) { .btn-secondary:hover:not(:disabled) { background: var(--surface-2); } }
.btn-ghost { background: transparent; color: var(--text-2); }
@media (hover: hover) { .btn-ghost:hover { color: var(--text); background: var(--surface-3); } }
.btn-sm { min-height: 36px; padding: 0 var(--s4); font-size: var(--fs-sm); border-radius: var(--r-sm); }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── HERO ────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden; color: var(--text-inverse);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(149,191,71,.22), transparent 60%),
    radial-gradient(700px 500px at 0% 110%, rgba(0,128,96,.45), transparent 60%),
    linear-gradient(180deg, var(--brand-deep), var(--inverse));
  padding: var(--s8) 0 calc(var(--s8) + var(--s5));
}
.hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; max-width: 860px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: var(--s2); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-logo); padding: 6px 12px; border: 1px solid rgba(149,191,71,.35); border-radius: var(--r-pill); background: rgba(149,191,71,.08); }
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-logo); box-shadow: 0 0 0 4px rgba(149,191,71,.2); }
.hero h1 { font-size: var(--fs-2xl); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; margin: var(--s5) auto var(--s4); max-width: 760px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--brand-logo); }
.hero .lede { font-size: var(--fs-lg); line-height: 1.6; color: var(--text-inverse-2); max-width: 620px; margin: 0 auto var(--s6); text-wrap: pretty; }

/* Rotating platform name: words rise in from below and leave upward. */
.lede-rotator { font-size: clamp(18px, 2.2vw, 22px); }
.rotator { position: relative; display: inline-block; height: 1.6em; vertical-align: top; overflow: hidden; text-align: left; transition: width 450ms var(--ease-io); }
.rotator-word {
  position: absolute; left: 0; top: 0; line-height: 1.6em; white-space: nowrap;
  color: var(--brand-logo); font-weight: 600;
  opacity: 0; transform: translateY(100%); filter: blur(2px);
  transition: transform 450ms var(--ease-io), opacity 450ms var(--ease-io), filter 450ms var(--ease-io);
}
.rotator-word.is-active { opacity: 1; transform: none; filter: none; }
.rotator-word.is-leaving { opacity: 0; transform: translateY(-100%); filter: blur(2px); }
.rotator-word.no-anim { transition: none; }

.scan-form { max-width: 620px; margin: 0 auto; }
.scan-field { display: flex; gap: var(--s2); padding: 6px; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-3); border: 1px solid rgba(255,255,255,.2); transition: box-shadow var(--t-med) var(--ease); }
.scan-field:focus-within { box-shadow: var(--shadow-3), 0 0 0 4px rgba(149,191,71,.45); }
.scan-field .prefix { display: flex; align-items: center; padding-left: var(--s3); color: var(--text-2); font-size: var(--fs-md); user-select: none; }
.scan-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 16px; padding: 0 var(--s1); }
.scan-field input::placeholder { color: var(--text-3); }
.scan-field input:focus-visible { box-shadow: none; }
.scan-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s2) var(--s5); margin-top: var(--s4); font-size: var(--fs-sm); color: var(--text-inverse-2); }
.scan-meta span { display: inline-flex; align-items: center; gap: 6px; }
.scan-meta svg { width: 14px; height: 14px; color: var(--brand-logo); }
.form-error { margin-top: var(--s3); font-size: var(--fs-sm); font-weight: 500; color: var(--bad-surface); min-height: 20px; }
@media (max-width: 560px) {
  .hero { padding: var(--s7) 0 var(--s8); }
  .scan-field { flex-direction: column; padding: var(--s2); }
  .scan-field .prefix { display: none; }
  .scan-field input { min-height: 48px; text-align: center; }
  .scan-field .btn { width: 100%; }
}

.agents { margin-top: var(--s7); }
.agents p { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: var(--text-inverse-2); margin: 0 0 var(--s3); font-weight: 600; }
.agents ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: var(--s2); }
.agents li { font-size: var(--fs-sm); font-weight: 600; color: rgba(255,255,255,.88); padding: 6px 14px; border-radius: var(--r-pill); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }

/* ── SECTIONS ────────────────────────────────────────── */
.section { padding: var(--s8) 0; }
.section-head { max-width: 640px; margin: 0 0 var(--s6); }
.section-head .kicker { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 var(--s2); }
.section-head h2 { font-size: var(--fs-xl); letter-spacing: -.02em; line-height: 1.25; margin: 0 0 var(--s2); }
.section-head p { color: var(--text-2); margin: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.feature { padding: var(--s5); }
.feature .icon { width: 36px; height: 36px; border-radius: var(--r-sm); background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; margin-bottom: var(--s4); }
.feature .icon svg { width: 18px; height: 18px; }
.feature h3 { font-size: var(--fs-md); margin: 0 0 var(--s2); }
.feature p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }
.steps-row { counter-reset: step; }
.steps-row .feature h3::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: var(--s2); border-radius: 50%; background: var(--inverse); color: var(--text-inverse); font-size: var(--fs-xs); }

/* ── SCANNING ────────────────────────────────────────── */
.scanning { max-width: 520px; margin: 0 auto; text-align: left; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-lg); padding: var(--s5); }
.scanning-host { font-size: var(--fs-lg); font-weight: 600; margin: 0 0 var(--s1); color: var(--text-inverse); word-break: break-all; }
.scanning-sub { font-size: var(--fs-sm); color: var(--text-inverse-2); margin: 0 0 var(--s4); }
.progress { height: 6px; border-radius: var(--r-pill); background: rgba(255,255,255,.12); overflow: hidden; margin-bottom: var(--s4); }
.progress > div { height: 100%; width: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-logo)); transform-origin: left; transform: scaleX(0); transition: transform 600ms var(--ease); }
.scan-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.scan-steps li { display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-sm); color: rgba(255,255,255,.45); transition: color var(--t-med) var(--ease); }
.scan-steps li .tick { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); display: grid; place-items: center; flex-shrink: 0; transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease); }
.scan-steps li .tick svg { width: 12px; height: 12px; opacity: 0; }
.scan-steps li.active { color: var(--text-inverse); }
.scan-steps li.active .tick { border-color: var(--brand-logo); border-top-color: transparent; animation: spin .9s linear infinite; }
.scan-steps li.done { color: rgba(255,255,255,.8); }
.scan-steps li.done .tick { background: var(--brand); border-color: var(--brand); }
.scan-steps li.done .tick svg { opacity: 1; }

/* ── REPORT ──────────────────────────────────────────── */
.report { padding: var(--s6) 0 var(--s8); }
.report-top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.report-top .kicker { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 var(--s1); }
.report-top h1 { font-size: var(--fs-xl); letter-spacing: -.02em; margin: 0; line-height: 1.2; word-break: break-word; }
.report-top .meta { font-size: var(--fs-sm); color: var(--text-2); margin: var(--s1) 0 0; }
.toolbar { display: flex; gap: var(--s2); flex-wrap: wrap; }

.summary { display: grid; grid-template-columns: 300px 1fr; gap: var(--s4); margin-bottom: var(--s4); }
@media (max-width: 860px) { .summary { grid-template-columns: 1fr; } }
.score-card { padding: var(--s5); display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--inverse); color: var(--text-inverse); border-color: var(--inverse); }
.dial { position: relative; width: 168px; height: 168px; }
.dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.dial .track { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 12; }
.dial .value { fill: none; stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1200ms var(--ease); }
.dial .label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.dial .label strong { font-size: 52px; line-height: 1; letter-spacing: -.04em; font-weight: 700; }
.dial .label span { font-size: var(--fs-xs); color: var(--text-inverse-2); margin-top: var(--s1); }
.grade { margin-top: var(--s4); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: var(--r-pill); }
.grade.ready { background: rgba(41,132,90,.25); color: var(--ok-surface); }
.grade.partial { background: rgba(255,184,0,.18); color: var(--warn); }
.grade.invisible { background: rgba(199,10,36,.25); color: var(--bad-surface); }
.score-card .explain { font-size: var(--fs-sm); color: var(--text-inverse-2); margin: var(--s3) 0 0; }

.stats { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s5); }
.stats h2 { font-size: var(--fs-md); margin: 0; }
.big-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.big-stat { padding: var(--s4); border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--border); }
.big-stat .n { font-size: 32px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.big-stat .l { font-size: var(--fs-sm); color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.big-stat.invisible .n { color: var(--bad-text); }
.big-stat.partial .n { color: var(--warn-text); }
.big-stat.ready .n { color: var(--ok-text); }
@media (max-width: 480px) { .big-stats { grid-template-columns: 1fr; } .big-stat { display: flex; justify-content: space-between; align-items: center; } }
.stack-bar { display: flex; height: 10px; border-radius: var(--r-pill); overflow: hidden; background: var(--surface-3); }
.stack-bar div { height: 100%; transition: flex-grow 900ms var(--ease); }
.sub-scores { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); font-size: var(--fs-sm); color: var(--text-2); }
.sub-scores strong { color: var(--text); }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.ready { background: var(--ok); } .dot.partial { background: var(--warn); } .dot.invisible, .dot.blocked { background: var(--bad); } .dot.unknown { background: var(--border-strong); }

.panel { padding: var(--s5); margin-bottom: var(--s4); }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.panel-head h2 { font-size: var(--fs-lg); letter-spacing: -.01em; margin: 0; }
.panel-head p { font-size: var(--fs-sm); color: var(--text-2); margin: var(--s1) 0 0; max-width: 640px; }

.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
@media (max-width: 860px) { .platforms { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .platforms { grid-template-columns: 1fr; } }
.platform { padding: var(--s4); border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface-2); }
.platform-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.platform-name { font-weight: 600; font-size: var(--fs-md); }
.meter { height: 6px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.meter div { height: 100%; border-radius: inherit; transform-origin: left; transition: transform 900ms var(--ease); }
.platform .blockers { margin: var(--s3) 0 0; padding: 0; list-style: none; font-size: var(--fs-xs); color: var(--text-2); display: grid; gap: 4px; }
.platform .blockers li::before { content: '✕ '; color: var(--bad); font-weight: 700; }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; padding: 2px 9px; border-radius: var(--r-pill); white-space: nowrap; }
.badge.ready, .badge.pass { background: var(--ok-surface); color: var(--ok-text); }
.badge.partial, .badge.high, .badge.medium { background: var(--warn-surface); color: var(--warn-text); }
.badge.invisible, .badge.blocked, .badge.fail, .badge.critical { background: var(--bad-surface); color: var(--bad-text); }
.badge.unknown, .badge.low { background: var(--surface-3); color: var(--text-2); }

.issues { display: grid; gap: var(--s2); }
.issue { display: grid; grid-template-columns: 1fr 200px; gap: var(--s4); padding: var(--s4); border-radius: var(--r-md); border: 1px solid var(--border); }
@media (max-width: 720px) { .issue { grid-template-columns: 1fr; gap: var(--s2); } }
.issue h3 { font-size: var(--fs-md); margin: 0 0 var(--s1); display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.issue p { font-size: var(--fs-sm); color: var(--text-2); margin: 0; }
.issue .reach { font-size: var(--fs-sm); align-self: center; }
.issue .reach strong { display: block; font-size: var(--fs-md); }
.issue .reach .meter { margin-top: 6px; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
@media (max-width: 720px) { .checks { grid-template-columns: 1fr; } }
.check { display: grid; grid-template-columns: 22px 1fr; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); }
.check .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.check .ic svg { width: 12px; height: 12px; }
.check.pass .ic { background: var(--ok-surface); color: var(--ok-text); }
.check.fail .ic { background: var(--bad-surface); color: var(--bad-text); }
.check.unknown .ic { background: var(--surface-3); color: var(--text-2); }
.check h3 { font-size: var(--fs-sm); margin: 0; font-weight: 600; }
.check p { font-size: var(--fs-xs); color: var(--text-2); margin: 2px 0 0; }
.check .fix { color: var(--text); margin-top: 6px; }

/* products table */
.table-tools { display: flex; gap: var(--s3); align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: var(--s3); }
.tabs { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-3); border-radius: var(--r-md); }
.tabs button { border: 0; background: transparent; padding: 7px 12px; min-height: 36px; border-radius: 9px; font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); cursor: pointer; transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); font-weight: 600; }
@media (hover: hover) { .tabs button:hover:not([aria-selected="true"]) { color: var(--text); } }
.search { display: flex; align-items: center; gap: var(--s2); padding: 0 var(--s3); min-height: 40px; border-radius: var(--r-md); border: 1px solid var(--border-strong); background: var(--surface); min-width: 220px; flex: 0 1 280px; }
.search:focus-within { box-shadow: var(--focus); }
.search svg { width: 16px; height: 16px; color: var(--text-2); flex-shrink: 0; }
.search input { border: 0; outline: 0; flex: 1; min-width: 0; background: transparent; font-size: var(--fs-sm); }
.search input:focus-visible { box-shadow: none; }

.plist { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.prow { border-top: 1px solid var(--border); }
.prow:first-child { border-top: 0; }
.prow > button { all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 44px 1fr 110px 56px 20px; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); cursor: pointer; transition: background var(--t-fast) var(--ease); }
@media (hover: hover) { .prow > button:hover { background: var(--surface-2); } }
.prow > button:focus-visible { box-shadow: inset 0 0 0 2px var(--brand); border-radius: 0; }
.pthumb { width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--surface-3); object-fit: cover; border: 1px solid var(--border); }
.ptitle { font-weight: 600; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psub { font-size: var(--fs-xs); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pscore { font-weight: 700; text-align: right; font-size: var(--fs-md); }
.chev { width: 16px; height: 16px; color: var(--text-2); transition: transform var(--t-med) var(--ease); }
.prow[data-open="true"] .chev { transform: rotate(180deg); }
.pdetail { padding: 0 var(--s4) var(--s4) calc(44px + var(--s3) + var(--s4)); }
.pdetail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.pdetail li { font-size: var(--fs-sm); padding: var(--s3); border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border); }
.pdetail li strong { display: flex; align-items: center; gap: var(--s2); margin-bottom: 2px; }
.pdetail .facts { font-size: var(--fs-xs); color: var(--text-2); margin: 0 0 var(--s2); }
.pdetail .none { color: var(--ok-text); font-size: var(--fs-sm); }
@media (max-width: 600px) {
  .prow > button { grid-template-columns: 40px 1fr 48px 16px; }
  .prow > button .badge { display: none; }
  .pthumb { width: 40px; height: 40px; }
  .pdetail { padding-left: var(--s4); }
}
.list-foot { display: flex; justify-content: center; padding-top: var(--s4); }
.empty { padding: var(--s6) var(--s4); text-align: center; color: var(--text-2); font-size: var(--fs-sm); }

.actions { list-style: none; margin: 0; padding: 0; counter-reset: act; display: grid; gap: var(--s2); }
.actions li { display: grid; grid-template-columns: 28px 1fr; gap: var(--s3); padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-md); }
.actions li::before { counter-increment: act; content: counter(act); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--inverse); color: var(--text-inverse); font-size: var(--fs-xs); font-weight: 700; }
.actions h3 { font-size: var(--fs-md); margin: 0 0 2px; display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.actions .scope { font-size: var(--fs-xs); color: var(--text-2); margin: 0 0 var(--s2); }
.actions p { font-size: var(--fs-sm); margin: 0; }

.ai-block { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
@media (max-width: 720px) { .ai-block { grid-template-columns: 1fr; } }
.ai-block h3 { font-size: var(--fs-sm); margin: 0 0 var(--s2); color: var(--text-2); font-weight: 600; }
.ai-block ul { margin: 0; padding-left: 18px; font-size: var(--fs-sm); display: grid; gap: 4px; }
.skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; margin-bottom: var(--s2); }
@keyframes shimmer { to { background-position: -200% 0; } }

.cta-band { margin-top: var(--s4); padding: var(--s6); border-radius: var(--r-lg); color: var(--text-inverse); background: radial-gradient(600px 300px at 100% 0%, rgba(149,191,71,.25), transparent 60%), linear-gradient(135deg, var(--brand-deep), var(--inverse)); display: flex; align-items: center; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }
.cta-band h2 { font-size: var(--fs-xl); letter-spacing: -.02em; margin: 0 0 var(--s1); }
.cta-band p { margin: 0; color: var(--text-inverse-2); max-width: 520px; }
.cta-band .btn-primary { background: var(--brand-logo); color: var(--inverse); }
@media (hover: hover) { .cta-band .btn-primary:hover { background: var(--brand-logo); filter: brightness(1.08); } }

/* ── GATE ────────────────────────────────────────────── */
.locked-wrap { position: relative; }
.locked-preview { filter: blur(5px); opacity: .6; pointer-events: none; user-select: none; }
.gate { position: relative; max-width: 480px; margin: calc(-1 * var(--s8)) auto 0; padding: var(--s6); z-index: 2; box-shadow: var(--shadow-2), var(--shadow-3); }
.gate h2 { font-size: var(--fs-xl); letter-spacing: -.02em; margin: 0 0 var(--s2); line-height: 1.25; }
.gate > p { color: var(--text-2); margin: 0 0 var(--s5); font-size: var(--fs-sm); }
.gate ul.perks { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: var(--s2); font-size: var(--fs-sm); }
.gate ul.perks li { display: flex; gap: var(--s2); align-items: flex-start; }
.gate ul.perks svg { width: 16px; height: 16px; color: var(--brand); flex-shrink: 0; margin-top: 3px; }
.field { display: grid; gap: 6px; margin-bottom: var(--s3); }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field input { min-height: 44px; padding: 0 var(--s3); border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--surface); font-size: 16px; transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease); }
.field input:focus-visible { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0,128,96,.2); border-radius: var(--r-sm); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.field .err { font-size: var(--fs-xs); color: var(--bad-text); min-height: 0; }
.consent { display: flex; gap: var(--s2); align-items: flex-start; font-size: var(--fs-xs); color: var(--text-2); margin: var(--s2) 0 var(--s4); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); flex-shrink: 0; }
.gate .btn { width: 100%; }
.gate .fine { font-size: var(--fs-xs); color: var(--text-2); margin: var(--s3) 0 0; text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r-md); font-size: var(--fs-sm); margin-bottom: var(--s4); }
.notice.ok { background: var(--ok-surface); color: var(--ok-text); }
.notice.info { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.notice.bad { background: var(--bad-surface); color: var(--bad-text); }
.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }

.error-state { max-width: 520px; margin: 0 auto; text-align: center; }
.error-state h2 { font-size: var(--fs-xl); margin: 0 0 var(--s2); }
.error-state p { color: var(--text-inverse-2); margin: 0 0 var(--s5); }

/* ── FOOTER ──────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: var(--s6) 0; font-size: var(--fs-sm); color: var(--text-2); }
.footer .wrap { display: flex; justify-content: space-between; gap: var(--s4); flex-wrap: wrap; }
.footer a { color: var(--text-2); }
.footer p { margin: 0; }

/* ── LEGAL PAGE ──────────────────────────────────────── */
.legal { max-width: 760px; margin: 0 auto; padding: var(--s7) var(--s4) var(--s8); }
.legal h1 { font-size: var(--fs-2xl); letter-spacing: -.03em; margin: 0 0 var(--s2); }
.legal h2 { font-size: var(--fs-lg); margin: var(--s6) 0 var(--s3); }
.legal p, .legal li { color: var(--text); }
.legal .box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--s4); }

/* ── MOTION ──────────────────────────────────────────── */
.reveal { animation: rise 420ms var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .scan-steps li.active .tick { animation: none; border-top-color: var(--brand-logo); }
  /* Reduced motion: words simply fade, no travel, no blur, no width slide. */
  .rotator, .rotator-word { transition-duration: 1ms !important; }
  .rotator-word, .rotator-word.is-leaving { transform: none; filter: none; }
  .rotator-word { transition: opacity 250ms ease !important; }
}

/* ── PRINT (Download PDF) ────────────────────────────── */
@media print {
  @page { margin: 14mm; }
  body { background: #fff; font-size: 12px; }
  .nav, .hero, .toolbar, .table-tools, .list-foot, .footer, .cta-band .btn, .no-print, .how { display: none !important; }
  .card { box-shadow: none !important; }
  .panel { break-inside: auto; }
  .panel-head { break-after: avoid; }
  .score-card, .stats, .platform, .issue, .check, .actions li, .prow { break-inside: avoid; }
  .score-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .badge, .dot, .meter div, .stack-bar div, .grade, .actions li::before { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pdetail[hidden] { display: block !important; }
  .prow > button { grid-template-columns: 36px 1fr 100px 48px 0; }
  .chev { display: none; }
  .cta-band { background: #fff !important; color: var(--text); border: 1px solid var(--border); }
  .cta-band p { color: var(--text-2); }
  .report { padding-top: 0; }
  a { color: var(--text); text-decoration: none; }
}
