/* Answer Experience Group brand system — tokens from the official Brand Kit v1.0. */
:root {
  --bg: #1A1A19;
  --surface: #232321;
  --elevated: #201F1E;
  --ink: #F4F3F0;
  --body: rgba(244,243,240,0.72);
  --muted: rgba(244,243,240,0.55);
  --subtle: rgba(244,243,240,0.45);
  --line: rgba(255,255,255,0.07);
  --line-2: rgba(255,255,255,0.14);
  --line-3: rgba(255,255,255,0.18);

  --mint: #5FE9D0;
  --purple: #693CD6;
  --violet: #A78BEB;
  --red: #E5685F;
  --amber: #E8B84B;

  --radius: 14px;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.5; min-height: 100vh;
}
::selection { background: rgba(95,233,208,0.28); color: #fff; }

.topbar {
  display: flex; align-items: center; gap: 11px;
  padding: 20px 28px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(26,26,25,0.92); backdrop-filter: blur(10px); z-index: 50;
}
.logo-mark { flex: none; animation: orbit-spin 18s linear infinite; transform-origin: 50% 50%; }
.brand { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.brand .dot { color: var(--mint); }
.brand-sub { color: var(--subtle); font-size: 12px; letter-spacing: 0.06em; font-family: var(--mono); margin-left: auto; text-transform: uppercase; }

main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px) 90px; position: relative; }

/* ============================ HERO ============================ */
.hero { position: relative; padding: 76px 0 64px; text-align: center; overflow: hidden; }
.hero-grid {
  position: absolute; inset: -2px 0 auto 0; height: 100%; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 0%, transparent 75%);
  opacity: 0.5;
}
.glow { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; filter: blur(8px); }
.glow-violet { top: -60px; left: 60%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(105,60,214,0.28) 0%, rgba(105,60,214,0.05) 50%, transparent 72%);
  animation: breathe 11s ease-in-out infinite; }
.glow-mint { bottom: -120px; left: 18%; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(95,233,208,0.16) 0%, transparent 70%);
  animation: breathe 13s ease-in-out infinite reverse; }
.hero > .eyebrow, .hero > h1, .hero > .console-wrap, .hero > .status, .hero > .trust-line { position: relative; z-index: 2; }

.eyebrow { color: var(--mint); text-transform: uppercase; font-weight: 500; font-size: 12px; letter-spacing: 0.24em; margin: 0 0 18px; }
.hero h1 { font-weight: 700; font-size: clamp(30px, 5vw, 60px); line-height: 1.05; letter-spacing: -0.035em; margin: 0 auto; max-width: 16ch; white-space: normal; text-align: center; text-wrap: balance; }

/* rotating engine in the headline: "Can [logo + name] crawl your site?"
   inline-block keeps the name on the text baseline; a measured fixed width
   (set in app.js) stops the whole line from jumping as names change. */
.rotator { display: inline-block; text-align: center; white-space: nowrap; }
.rotator .r-logo, .rotator .r-name {
  transition: opacity .3s cubic-bezier(.16,1,.3,1), transform .3s cubic-bezier(.16,1,.3,1);
}
.rotator.out .r-logo, .rotator.out .r-name { opacity: 0; transform: translateY(-0.16em); }
.r-logo { height: 0.84em; width: auto; vertical-align: -0.09em; margin-right: 0.18em; }
.r-name { font-weight: 700; }

/* ---- console (the focal point) ---- */
.console-wrap { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 48px 0 0; }

.console {
  position: relative; z-index: 3; flex: 0 1 660px; max-width: 660px;
  background: linear-gradient(180deg, rgba(40,38,52,0.9), rgba(26,26,25,0.95));
  border: 1px solid var(--line-2); border-radius: 18px; padding: 18px 18px 16px;
  box-shadow: 0 0 0 1px rgba(95,233,208,0.08), 0 30px 80px -30px rgba(105,60,214,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
  animation: console-rise 0.6s cubic-bezier(.16,1,.3,1) both;
}
.console::before {
  content: ""; position: absolute; inset: -1px; border-radius: 18px; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(95,233,208,0.5), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  background-size: 300% 100%; animation: sheen 6s linear infinite;
}
.console-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--mint); text-align: left; margin: 2px 4px 12px; }
.blink { animation: blink 1.1s step-end infinite; }

.console-row { position: relative; display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 8px 8px 12px; overflow: hidden; }
.console-row:focus-within { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(95,233,208,0.14); }
.scan-orbit { flex: none; display: grid; place-items: center; }
.scan-orbit svg { animation: orbit-spin 6s linear infinite; transform-origin: 50% 50%; }
.console input {
  flex: 1; background: transparent; border: 0; color: var(--ink);
  font-size: 18px; padding: 12px 4px; outline: none; font-family: inherit; min-width: 0;
}
.console input::placeholder { color: var(--subtle); }
.scanline {
  position: absolute; top: 0; bottom: 0; width: 60px; left: -60px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(95,233,208,0.18), transparent);
}
.console-row:focus-within .scanline { animation: scan 1.6s ease-in-out infinite; }

.btn-primary {
  background: var(--mint); color: #1A1A19; border: 0; border-radius: 8px;
  padding: 13px 26px; font-size: 14px; font-weight: 650; letter-spacing: 0.01em; cursor: pointer;
  font-family: inherit; white-space: nowrap; flex: none;
  transition: transform .2s cubic-bezier(.16,1,.3,1), box-shadow .2s ease, filter .2s ease;
}
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(95,233,208,0.3); }
.btn-primary:disabled { opacity: .55; cursor: progress; }


.mascot { flex: 0 0 116px; width: 116px; align-self: flex-end; }
.mascot img, .mascot-svg { width: 100%; height: auto; display: block; }
.mascot-left { animation: float 5s ease-in-out infinite; }
.mascot-right { animation: float 5.6s ease-in-out infinite .4s; }

.status { margin-top: 22px; color: var(--muted); min-height: 22px; font-size: 14px; }
.status .spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid var(--line-2);
  border-top-color: var(--mint); border-radius: 50%; animation: orbit-spin .8s linear infinite; vertical-align: -2px; margin-right: 8px; }
.trust-line { color: var(--subtle); font-size: 13px; margin: 14px 0 0; }

/* ---- the crawl: the swarm dives into the live site ---- */
.crawl { max-width: 660px; margin: 6px auto 0; }
.crawl-stage { display: flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15px; color: var(--ink); font-weight: 550; letter-spacing: -0.01em; }
.crawl-stage .dots { display: inline-flex; gap: 4px; }
.crawl-stage .dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--mint); opacity: .4;
  animation: cdot 1.1s ease-in-out infinite; }
.crawl-stage .dots i:nth-child(2) { animation-delay: .18s; } .crawl-stage .dots i:nth-child(3) { animation-delay: .36s; }
@keyframes cdot { 0%,100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

.crawl-track { position: relative; height: 132px; margin: 16px 0 14px;
  border-radius: 16px; border: 1px solid var(--line-2); overflow: hidden;
  background:
    radial-gradient(120% 80% at 88% 50%, rgba(105,60,214,0.14), transparent 60%),
    linear-gradient(180deg, rgba(40,38,52,0.5), rgba(26,26,25,0.7)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 36px); }

/* crawlers stream in from the left and dive into the site window on the right */
.crawler { position: absolute; top: 50%; left: -8%; width: 30px; height: 30px;
  animation: dive 4.2s cubic-bezier(.4,0,.7,1) infinite; animation-delay: calc(var(--i) * -0.6s); }
.crawler img, .crawler svg { width: 100%; height: 100%; display: block; animation: bob .5s ease-in-out infinite; }
.crawler.mascot-crawler { width: 34px; height: 34px; }
.crawler .legs { position: absolute; left: 50%; bottom: -3px; width: 16px; height: 6px; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0,0,0,0.35), transparent 70%); border-radius: 50%;
  animation: bob .5s ease-in-out infinite reverse; }
@keyframes dive {
  0%   { left: -8%;  transform: translateY(-50%) scale(1) rotate(0); opacity: 0; }
  6%   { opacity: 1; }
  62%  { left: 60%;  transform: translateY(-50%) scale(1) rotate(0); opacity: 1; }
  80%  { left: 70%;  transform: translateY(-50%) scale(.45) rotate(8deg); opacity: .85; }
  90%  { left: 73%;  transform: translateY(-50%) scale(.08) rotate(16deg); opacity: 0; }
  100% { left: 73%;  opacity: 0; }
}
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-3px) rotate(3deg); } }

/* the target site, rendered as a tiny live browser the crawlers pour into */
.site-window { position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  width: 168px; height: 104px; border-radius: 10px; overflow: hidden;
  background: #14140f; border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 12px 30px -10px rgba(0,0,0,0.6), 0 0 0 4px rgba(95,233,208,0.06); }
.sw-bar { display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 9px;
  background: rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.08); }
.sw-dots { display: inline-flex; gap: 4px; }
.sw-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.22); }
.sw-url { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 9px;
  color: var(--muted); white-space: nowrap; overflow: hidden; }
.sw-fav { width: 11px; height: 11px; border-radius: 2px; display: block; }
.sw-body { position: relative; padding: 11px 12px; display: grid; gap: 7px; }
.sw-body > span { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.09);
  animation: swfill 2.4s ease-in-out infinite; }
.sw-body > span:nth-child(2) { animation-delay: .3s; } .sw-body > span:nth-child(3) { animation-delay: .6s; }
.sw-body > span.short { width: 55%; animation-delay: .9s; }
@keyframes swfill { 0%,100% { background: rgba(255,255,255,0.08); } 50% { background: rgba(95,233,208,0.35); } }
.sw-scan { position: absolute; left: 0; right: 0; top: 0; height: 26px; pointer-events: none;
  background: linear-gradient(180deg, rgba(95,233,208,0.28), transparent); animation: swscan 2.2s ease-in-out infinite; }
@keyframes swscan { 0% { top: -26px; } 100% { top: 104px; } }

/* the inspector mascot, peeking over the site with a magnifier */
.operator { position: absolute; right: 150px; bottom: 4px; width: 40px; height: 44px; z-index: 3;
  animation: opbob 2.4s ease-in-out infinite; }
.operator svg { width: 100%; height: 100%; display: block; }
.operator .magnifier { position: absolute; right: -8px; top: 2px; width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid var(--mint); box-shadow: 0 0 8px rgba(95,233,208,0.5); }
.operator .magnifier::after { content: ""; position: absolute; right: -5px; bottom: -4px; width: 7px; height: 2.5px;
  background: var(--mint); border-radius: 2px; transform: rotate(45deg); }
@keyframes opbob { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-4px) rotate(2deg); } }

.crawl-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,0.07); overflow: hidden; }
.crawl-bar span { display: block; height: 100%; width: 0; border-radius: 4px;
  background: linear-gradient(90deg, var(--violet), var(--mint)); transition: width .25s ease; }

/* ============================ ANIMATIONS ============================ */
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: .9; transform: scale(1.1); } }
@keyframes console-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes sheen { to { background-position: -300% 0; } }
@keyframes scan { 0% { left: -60px; } 100% { left: 100%; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0%,100% { opacity: .35; transform: scale(.85); } 50% { opacity: 1; transform: scale(1); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

/* ============================ RESULTS ============================ */
.hidden { display: none; }
.results { margin-top: 8px; }

.section-head { display: flex; align-items: center; gap: 14px; margin: 40px 2px 14px; }
.section-head .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--bg);
  background: var(--mint); padding: 4px 10px; border-radius: 5px; font-weight: 700; }
.section-head .tag.audit { background: var(--violet); }
.section-head h2 { font-size: 17px; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
.section-head .rule { flex: 1; height: 1px; background: var(--line); }

/* ---- summary band ---- */
.summary {
  display: grid; grid-template-columns: auto 1fr; gap: 26px; align-items: center;
  background: linear-gradient(135deg, rgba(40,38,52,0.6), var(--elevated)); border: 1px solid var(--line-2);
  border-radius: var(--radius); padding: 26px 28px; position: relative; overflow: hidden;
}
.summary .ring { width: 124px; height: 124px; position: relative; flex: none; }
.summary .ring svg { transform: rotate(-90deg); }
.summary .ring .num { position: absolute; inset: 0; display: grid; place-content: center; font-size: 38px; font-weight: 700; letter-spacing: -0.03em; }
.summary .ring .num small { font-size: 14px; color: var(--subtle); font-weight: 500; }
.summary .tier-name { font-size: 25px; font-weight: 700; margin: 0; letter-spacing: -0.02em; }
.summary .tier-meaning { color: var(--muted); margin: 5px 0 0; font-size: 14.5px; max-width: 52ch; }
.summary .summary-meta { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 14px; }
.summary .stat { }
.summary .stat .v { font-size: 18px; font-weight: 700; font-family: var(--mono); }
.summary .stat .l { font-size: 11px; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.08em; }

.gate-banner { background: rgba(229,104,95,0.08); border: 1px solid rgba(229,104,95,0.25); color: #f3b4af; padding: 14px 16px; border-radius: 12px; margin-top: 16px; }
.gate-banner ul { margin: 8px 0 0 18px; }
.note { color: var(--muted); font-size: 13px; line-height: 1.55; }
.note.card { padding: 14px 18px; }

/* ---- KEY NEXT STEPS (the action plan — visually distinct from the audit) ---- */
.roadmap { border: 1px solid rgba(95,233,208,0.28); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(95,233,208,0.06), rgba(95,233,208,0.01)); padding: 22px 24px; }
.roadmap .steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start;
  background: var(--elevated); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.step .idx { counter-increment: step; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: linear-gradient(150deg, var(--violet), var(--purple)); color: #fff;
  box-shadow: 0 4px 14px rgba(105,60,214,0.4), inset 0 1px 0 rgba(255,255,255,0.25);
  font-weight: 800; display: grid; place-content: center; font-family: var(--mono); font-size: 15px; }
.step .idx::before { content: counter(step); }
.step .s-title { font-weight: 650; }
.step .s-note { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.step .s-stake { text-align: right; white-space: nowrap; }
.step .s-stake .pts { color: var(--mint); font-weight: 800; font-family: var(--mono); font-size: 15px; }
.step .s-stake .lbl { display: block; font-size: 10px; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---- audit pillars ---- */
.card { background: var(--elevated); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin-top: 14px; }
.pillar-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; user-select: none; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pillar-head:hover .pillar-name { color: var(--mint); }
.pillar-head:focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; border-radius: 4px; }
.pillar-headline { flex: 1; min-width: 0; }
.pillar-name { font-size: 17px; margin: 0 0 8px; font-weight: 600; letter-spacing: -0.01em; transition: color .15s ease; }
.pillar-bar { height: 5px; background: rgba(255,255,255,0.08); border-radius: 3px; overflow: hidden; max-width: 320px; }
.pillar-bar span { display: block; height: 100%; border-radius: 3px; background: var(--mint); transition: width .5s ease; }
.pillar-score { font-weight: 700; font-family: var(--mono); font-size: 15px; display: flex; align-items: center; gap: 12px; flex: none; }
.pillar-score small { color: var(--subtle); font-weight: 500; }
.pillar-score .ps-num { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.pillar-score .ps-of { color: var(--subtle); font-size: 14px; font-weight: 600; }
.chevron { color: var(--muted); font-size: 13px; transition: transform .2s ease; }
.pillar.collapsed .chevron { transform: rotate(-90deg); }
.pillar.collapsed .checks { display: none; }
.pillar.collapsed .pillar-head { border-bottom: 0; padding-bottom: 0; }

.check { display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-content: center;
  font-size: 12px; font-weight: 800; line-height: 1; margin-top: 1px; }
.mark.pass { background: rgba(95,233,208,0.14); color: var(--mint); }
.mark.partial { background: rgba(232,184,75,0.16); color: var(--amber); }
.mark.fail { background: rgba(229,104,95,0.16); color: var(--red); }
.mark.unmeasured, .mark.na { background: rgba(255,255,255,0.05); color: var(--subtle); }
.site-id { display: inline-flex; align-items: center; gap: 7px; }
.site-id .fav { width: 16px; height: 16px; border-radius: 3px; display: block; }
.mark.warn { background: rgba(232,184,75,0.16); color: var(--amber); }
.mark.sm { width: 18px; height: 18px; font-size: 10px; }

/* ---- page-level scan ---- */
.pscan-wrap { background: var(--elevated); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-top: 14px; }
.pscan-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pscan-meta { color: var(--muted); font-size: 14px; } .pscan-meta b { color: var(--ink); }
.pscan-avg { font-family: var(--mono); font-size: 14px; color: var(--muted); } .pscan-avg b { font-size: 20px; font-weight: 800; }
.pscan-avg span { color: var(--subtle); }
.gaps { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.gaps .gap { font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  padding: 5px 10px; border-radius: 999px; } .gaps .gap b { color: var(--amber); font-family: var(--mono); }
.pscan-scroll { overflow-x: auto; margin-top: 14px; }
table.pscan { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
table.pscan th, table.pscan td { padding: 9px 3px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.05); white-space: nowrap; }
table.pscan thead th { color: var(--subtle); font-weight: 600; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.02em;
  text-transform: uppercase; border-bottom: 1px solid var(--line); }
table.pscan th.pg, table.pscan td.pg { text-align: left; width: 31%; padding-left: 2px; font-family: var(--mono); font-size: 11.5px;
  overflow: hidden; text-overflow: ellipsis; }
table.pscan th.sc, table.pscan td.sc { width: 52px; }
table.pscan td.pg a { color: var(--body); text-decoration: none; } table.pscan td.pg a:hover { color: var(--mint); text-decoration: underline; }
table.pscan td .mark { margin: 0 auto; }
table.pscan td.sc, table.pscan th.sc { font-family: var(--mono); font-weight: 800; font-size: 14px; text-align: right; }
.pscan-legend { margin-top: 14px; color: var(--subtle); font-size: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pscan-legend .mark { display: inline-grid; }
.ptype { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 5px; margin-right: 8px; vertical-align: 1px;
  background: rgba(167,139,235,0.16); color: var(--violet); }
.ptype.t-home { background: rgba(95,233,208,0.16); color: var(--mint); }
.ptype.t-article { background: rgba(232,184,75,0.16); color: var(--amber); }
.ptype.t-product, .ptype.t-service, .ptype.t-pricing { background: rgba(105,60,214,0.2); color: var(--violet); }
.crit-legend { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 22px; }
.cl-item { display: flex; gap: 9px; align-items: baseline; font-size: 12.5px; }
.cl-k { flex: none; width: 56px; font-family: var(--mono); font-size: 10.5px; font-weight: 700; color: var(--mint); text-transform: uppercase; }
.cl-d { color: var(--muted); }

/* roadmap: where the fix lives */
.step .s-where { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px;
  font-size: 12px; color: var(--subtle); }
.step .s-where svg { color: var(--violet); flex: none; }
.step .s-where b { color: var(--muted); font-weight: 650; }
.check:first-child { padding-top: 16px; }
.check:last-child { border-bottom: 0; padding-bottom: 2px; }
.pill { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .6px; padding: 4px 8px; border-radius: 5px; font-family: var(--mono); }
.pill.pass { background: var(--mint); color: #06201b; }
.pill.partial { background: var(--amber); color: #2a2207; }
.pill.fail { background: var(--red); color: #fff; }
.pill.unmeasured, .pill.na { background: rgba(244,243,240,0.18); color: var(--body); }
.check .ttl { font-weight: 600; }
.check .evidence { color: var(--muted); font-family: var(--mono); font-size: 12.5px; margin-top: 5px; line-height: 1.5; }
.check .fix { color: var(--amber); font-size: 13px; margin-top: 5px; }
.check .pts { color: var(--subtle); white-space: nowrap; font-variant-numeric: tabular-nums; font-family: var(--mono); font-size: 13px; }

/* ---- email gate ---- */
.gate { margin-top: 16px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.gate input { background: var(--bg); border: 1px solid var(--line-2); color: var(--ink); border-radius: 8px; padding: 13px 15px; font-size: 15px; font-family: inherit; min-width: 260px; outline: none; }
.gate input:focus { border-color: var(--mint); }
.gate .gate-msg { font-size: 13px; color: var(--muted); width: 100%; }

.footer { text-align: center; color: var(--subtle); padding: 40px 26px; border-top: 1px solid var(--line); font-size: 13px; margin-top: 30px; }
.footer .f-brand { color: var(--body); font-weight: 650; }
.footer .f-brand .dot { color: var(--mint); }

/* ============================ PROPOSAL / QUOTE ============================ */
.section-head .tag.quote { background: linear-gradient(120deg, var(--violet), var(--purple)); color: #fff; }

.proposal {
  position: relative; border-radius: 18px; padding: clamp(20px, 3vw, 30px); margin-top: 14px; overflow: hidden;
  background:
    radial-gradient(120% 120% at 90% -10%, rgba(105,60,214,0.20), transparent 55%),
    linear-gradient(165deg, rgba(95,233,208,0.06), rgba(26,26,25,0.4) 60%);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 90px -50px rgba(105,60,214,0.7);
}
.proposal::before {
  content: ""; position: absolute; inset: 0; border-radius: 18px; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, rgba(167,139,235,0.55), transparent 42%, rgba(95,233,208,0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.pl-head { display: flex; gap: 28px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; position: relative; }
.pl-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--violet); margin-bottom: 10px; }
.pl-title { font-size: clamp(21px, 2.6vw, 30px); font-weight: 700; letter-spacing: -0.025em; margin: 0 0 10px; line-height: 1.12; }
.pl-sub { color: var(--body); font-size: 14.5px; line-height: 1.55; max-width: 54ch; margin: 0; }
.pl-sub b { color: var(--ink); font-weight: 700; }
.pl-total { flex: none; text-align: right; min-width: 210px; padding: 16px 20px; border-radius: 14px;
  background: rgba(20,20,18,0.55); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.pl-total-l { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--subtle); }
.pl-total-v { font-size: clamp(32px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; color: var(--mint); line-height: 1.02; margin: 5px 0; }
.pl-total-n { font-size: 12px; color: var(--muted); }
.pl-lines { margin: 24px 0 4px; border-top: 1px solid var(--line); position: relative; }
.pl-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pl-name { font-weight: 600; font-size: 15px; }
.pl-scope { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--subtle); margin-top: 4px; letter-spacing: 0.02em; }
.pl-price { font-family: var(--mono); font-weight: 800; font-size: 16px; white-space: nowrap; }
.pl-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 4px; position: relative; }
.pl-stat { flex: 1 1 130px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; }
.pl-stat b { display: block; font-size: 21px; font-weight: 800; font-family: var(--mono); letter-spacing: -0.02em; color: var(--ink); }
.pl-stat span { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--subtle); }
.pl-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); position: relative; }
.pl-cta .btn-primary { padding: 14px 30px; font-size: 15px; }
.pl-cta .gate { margin-top: 0; }
.pl-fine { font-size: 12px; color: var(--subtle); max-width: 44ch; line-height: 1.5; }
.pl-thanks { font-size: 15px; color: var(--mint); font-weight: 600; line-height: 1.5; }
.pl-thanks b { color: var(--ink); }

/* ============================ BOT ACCESS ============================ */
.ba-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.ba-stats .pl-stat { flex: 1 1 120px; }
.ba-callout { border-radius: 12px; padding: 13px 16px; font-size: 14px; line-height: 1.5; border: 1px solid var(--line-2); }
.ba-callout b { font-weight: 700; }
.ba-callout.fail { background: rgba(229,104,95,0.09); border-color: rgba(229,104,95,0.28); color: #f3b4af; }
.ba-callout.pass { background: rgba(95,233,208,0.07); border-color: rgba(95,233,208,0.24); color: #a9efe1; }
.ba-list { margin-top: 16px; }
.ba-list-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--body); margin-bottom: 10px; }
.ba-list-h span { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--subtle); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12.5px; font-family: var(--mono); padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--body); }
.chip.amber { background: rgba(232,184,75,0.1); border-color: rgba(232,184,75,0.28); color: var(--amber); }
.ba-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 13.5px; }
.ba-table thead th { text-align: left; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--subtle); font-weight: 600; padding: 0 10px 10px; border-bottom: 1px solid var(--line); }
.ba-table td { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }
.ba-table tr:last-child td { border-bottom: 0; }
.ba-bot b { font-weight: 650; display: block; }
.ba-bot span { color: var(--subtle); font-size: 12px; }
.ba-cat { color: var(--muted); white-space: nowrap; font-size: 12.5px; }
.ba-st { text-align: right; white-space: nowrap; }

/* ============================ SITEMAP HEALTH ============================ */
.sm-head { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sm-grade { flex: none; width: 58px; height: 58px; border-radius: 14px; border: 2px solid; display: grid; place-content: center;
  font-size: 28px; font-weight: 800; letter-spacing: -0.02em; background: rgba(255,255,255,0.02); }
.sm-score { font-size: 16px; font-weight: 600; color: var(--body); }
.sm-score b { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin-left: 4px; }
.sm-score span { color: var(--subtle); font-size: 14px; }
.sm-meta { color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.5; } .sm-meta b { color: var(--body); }
.sm-signals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 18px 0; }
.sig-top { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; font-weight: 600; }
.sig-top b { font-family: var(--mono); font-size: 14px; font-weight: 800; }
.sig-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,0.07); overflow: hidden; margin: 6px 0 6px; }
.sig-bar span { display: block; height: 100%; border-radius: 3px; }
.sig-detail { color: var(--subtle); font-size: 12px; line-height: 1.45; }
.sm-recs { margin-top: 6px; }
.sm-rec { display: block; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--amber); margin-bottom: 8px; }
.sm-rec b { font-weight: 650; display: block; margin-bottom: 2px; }
.sm-rec span { color: var(--muted); font-size: 13px; }
.sm-rec.sev-high { border-left-color: var(--red); }
.sm-rec.sev-low { border-left-color: var(--violet); }
.sm-coverage { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.sm-coverage code, .note code { font-family: var(--mono); font-size: 0.92em; background: rgba(255,255,255,0.06); padding: 1px 5px; border-radius: 4px; }

/* ============================ RESPONSIVE ============================ */
@media (min-width: 1440px) {
  main { max-width: 1240px; }
  .hero { padding: 92px 0 72px; }
}
@media (max-width: 1024px) {
  .hero { padding: 60px 0 52px; }
  .mascot { flex-basis: 92px; width: 92px; }
}
@media (max-width: 760px) {
  .topbar { padding: 15px 18px; gap: 9px; }
  .brand { font-size: 15px; }
  .brand-sub { display: none; }
  .hero { padding: 44px 0 38px; }
  .console-wrap { margin-top: 32px; gap: 0; }
  .mascot { display: none; }
  .console { flex-basis: 100%; padding: 16px 14px 14px; }
  .console-row { flex-wrap: wrap; }
  .console input { flex-basis: 100%; font-size: 16px; }   /* 16px avoids iOS input zoom */
  .btn-primary { flex: 1; }
  .summary { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 24px 20px; }
  .summary .summary-meta { justify-content: center; }
  .summary .tier-meaning { max-width: none; }
  .check { grid-template-columns: 26px 1fr; }
  .check .pts { grid-column: 2; }
  .step { grid-template-columns: auto 1fr; }
  .step .s-stake { grid-column: 2; text-align: left; }
  .pl-head { flex-direction: column; gap: 20px; }
  .pl-total { text-align: left; width: 100%; min-width: 0; }
  .pl-cta { flex-direction: column; align-items: stretch; }
  .pl-cta .btn-primary { width: 100%; }
  .pl-fine { max-width: none; }
  .sm-signals { grid-template-columns: 1fr; }
  .ba-cat { display: none; }
  .ba-stats .pl-stat { flex-basis: calc(50% - 6px); }
}
@media (max-width: 420px) {
  .summary .summary-meta { gap: 16px; }
  .pl-stat { flex-basis: 100%; }
}
