/* =====================================================================================
   AI Site View design system
   -------------------------------------------------------------------------------------
   One stylesheet, no build step, no framework. Every page in the product loads this file
   and composes the primitives below, so a change here changes the whole product.

   Palette: deep forest green and graphite, warm off-white type, muted emerald as the
   brand, lime used only where a single spark of energy earns its place. Never pure black,
   never a neon or crypto register. Reference points: Linear, Stripe, Vercel, Ramp.

   Colour meaning is fixed and must not drift:
     emerald  = brand and pass
     amber    = partial, needs attention
     clay     = fail, blocked
     slate    = unknown, untested, coming soon
   ===================================================================================== */

:root {
    /* --- surfaces: a dark forest stack, each step slightly lighter and greener --- */
    --bg: #0a120e;
    --bg-1: #0d1712;
    --surface: #111d17;
    --surface-2: #16261e;
    --surface-3: #1c3025;
    --paper: #f4f1e9;
    --paper-2: #e9e5da;

    /* --- type --- */
    --ink: #f2f5f2;
    --ink-2: #c3d0c7;
    --ink-3: #8ea094;
    --ink-4: #6b7d72;
    --on-paper: #16211a;
    --on-paper-2: #46564c;

    /* --- brand and state --- */
    --emerald: #3fa37a;
    --emerald-bright: #55c795;
    --emerald-deep: #2b7a5a;
    --lime: #b9e86a;
    --amber: #d9a441;
    --clay: #d1614b;
    --slate: #7d8f9c;

    /* --- lines and glow --- */
    --line: rgba(244, 241, 233, .09);
    --line-2: rgba(244, 241, 233, .15);
    --line-3: rgba(244, 241, 233, .26);
    --glow: rgba(63, 163, 122, .18);

    /* --- geometry --- */
    --r-sm: 8px;
    --r: 12px;
    --r-lg: 18px;
    --r-xl: 26px;
    --maxw: 1200px;
    --gut: clamp(20px, 5vw, 40px);

    /* --- type scale, fluid --- */
    --t-display: clamp(2.45rem, 5.4vw, 4.05rem);
    --t-h1: clamp(2.1rem, 5vw, 3.4rem);
    --t-h2: clamp(1.7rem, 3.6vw, 2.6rem);
    --t-h3: clamp(1.15rem, 2vw, 1.4rem);
    --t-body: clamp(1rem, 1.1vw, 1.075rem);
    --t-sm: .875rem;
    --t-xs: .78rem;

    --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ===================================================================================== */
/* Reset                                                                                 */
/* ===================================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: var(--t-body);
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv02", "cv03", "cv04", "ss01";
    overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }

:focus-visible {
    outline: 2px solid var(--emerald-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection { background: rgba(63, 163, 122, .32); color: #fff; }

/* ===================================================================================== */
/* Layout primitives                                                                     */
/* ===================================================================================== */

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { max-width: 860px; }

.sec { padding-block: clamp(64px, 9vw, 116px); position: relative; }
/* The hero sits against the next band, so it does not need a full pad underneath. */
.sec.grid-bg { padding-bottom: clamp(48px, 6vw, 78px); }
/* The nav is sticky, so anything scrolled to must clear it. */
#report { scroll-margin-top: 84px; }
.sec-tight { padding-block: clamp(48px, 6vw, 76px); }

/* The warm off-white bands. They redeclare the tokens locally, so every component inside
   inverts automatically and nothing needs a special light-mode variant. */
.sec-paper {
    background: var(--paper);
    --ink: var(--on-paper);
    --ink-2: var(--on-paper-2);
    --ink-3: #6b7a70;
    --ink-4: #8b9990;
    --surface: #ffffff;
    --surface-2: #f7f5ef;
    --surface-3: #efece3;
    --line: rgba(22, 33, 26, .10);
    --line-2: rgba(22, 33, 26, .16);
    --line-3: rgba(22, 33, 26, .26);
    --emerald: #22795a;
    --emerald-bright: #2b7a5a;
    color: var(--ink);
}

.sec-raised { background: var(--bg-1); }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); } }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.center .lede, .center .sec-head p { margin-inline: auto; }

/* ===================================================================================== */
/* Type                                                                                  */
/* ===================================================================================== */

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.028em; line-height: 1.1; text-wrap: balance; }
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -.018em; line-height: 1.28; }

.display { font-size: var(--t-display); font-weight: 600; letter-spacing: -.04em; line-height: 1.02; }

.eyebrow {
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--emerald-bright);
    display: flex;
    align-items: center;
    gap: 9px;
}
.eyebrow::before {
    content: "";
    width: 16px; height: 1px;
    background: currentColor;
    opacity: .6;
    flex: none;
}
.center .eyebrow { justify-content: center; }

.lede { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--ink-2); max-width: 62ch; line-height: 1.6; }
.muted { color: var(--ink-3); }
.small { font-size: var(--t-sm); }
.xs { font-size: var(--t-xs); }
.mono { font-family: var(--mono); font-size: .82em; letter-spacing: -.01em; }

.sec-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head h2 + p { margin-top: 16px; }
.center .sec-head { margin-inline: auto; }

/* ===================================================================================== */
/* Buttons                                                                               */
/* ===================================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 22px;
    border-radius: var(--r);
    font-size: var(--t-sm);
    font-weight: 600;
    letter-spacing: -.01em;
    border: 1px solid transparent;
    transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--emerald);
    color: #05130d;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 10px 26px -12px rgba(63, 163, 122, .8);
}
.btn-primary:hover { background: var(--emerald-bright); }

.btn-ghost { border-color: var(--line-2); color: var(--ink); background: rgba(244, 241, 233, .03); }
.btn-ghost:hover { border-color: var(--line-3); background: rgba(244, 241, 233, .06); }

.btn-sm { padding: 9px 15px; font-size: var(--t-xs); border-radius: var(--r-sm); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* ===================================================================================== */
/* Cards and panels                                                                      */
/* ===================================================================================== */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: clamp(20px, 2.4vw, 28px);
    position: relative;
}

.card-glass {
    background: linear-gradient(168deg, rgba(244, 241, 233, .055), rgba(244, 241, 233, .015));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.card-hover { transition: border-color .2s var(--ease), transform .2s var(--ease); }
.card-hover:hover { border-color: var(--line-2); transform: translateY(-2px); }

.card h3 { margin-bottom: 8px; }
.card h3 + p { color: var(--ink-3); font-size: var(--t-sm); }

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    overflow: hidden;
}
.panel-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: rgba(244, 241, 233, .02);
}
.panel-body { padding: clamp(18px, 2.4vw, 26px); }

/* A faint blueprint grid. Depth without decoration. */
/* overflow:clip rather than hidden, because hidden would make this a scroll container and
   break position:sticky for anything inside it. The glow below is wider than a phone. */
.grid-bg { position: relative; isolation: isolate; overflow: clip; }
.grid-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 78%);
    opacity: .8;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    background: var(--glow);
    pointer-events: none;
    z-index: -1;
    max-width: 100%;
}

/* ===================================================================================== */
/* Status vocabulary                                                                     */
/* Used identically in the report, the profile, the engine grid and the fix list.         */
/* ===================================================================================== */

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: var(--t-xs);
    font-weight: 600;
    letter-spacing: .02em;
    border: 1px solid;
    white-space: nowrap;
    line-height: 1.5;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.tag-plain::before { display: none; }

.t-pass { color: var(--emerald-bright); border-color: rgba(85, 199, 149, .34); background: rgba(85, 199, 149, .10); }
.t-warn { color: var(--amber); border-color: rgba(217, 164, 65, .34); background: rgba(217, 164, 65, .10); }
.t-fail { color: var(--clay); border-color: rgba(209, 97, 75, .36); background: rgba(209, 97, 75, .10); }
.t-idle { color: var(--slate); border-color: rgba(125, 143, 156, .32); background: rgba(125, 143, 156, .10); }
.t-brand { color: var(--emerald-bright); border-color: rgba(85, 199, 149, .3); background: rgba(85, 199, 149, .07); }

/* Provenance labels. These are load-bearing: the product's promise is that you can always
   tell what was measured from what was read from what is not built yet. */
.prov {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--line-2);
    color: var(--ink-3);
    white-space: nowrap;
    vertical-align: middle;
}
.prov-tested { color: var(--emerald-bright); border-color: rgba(85, 199, 149, .32); }
.prov-extracted { color: #63bfd8; border-color: rgba(99, 191, 216, .32); }
.prov-inferred { color: var(--amber); border-color: rgba(217, 164, 65, .32); }
.prov-unknown { color: var(--slate); border-color: rgba(125, 143, 156, .3); }
.prov-soon { color: var(--slate); border-color: rgba(125, 143, 156, .3); }
.prov-beta { color: var(--lime); border-color: rgba(185, 232, 106, .32); }

.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; display: inline-block; }
.d-pass { background: var(--emerald-bright); }
.d-warn { background: var(--amber); }
.d-fail { background: var(--clay); }
.d-idle { background: var(--slate); }

/* ===================================================================================== */
/* Navigation                                                                            */
/* ===================================================================================== */

.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 18, 14, .72);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    border-bottom: 1px solid transparent;
    transition: border-color .25s var(--ease), background .25s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); background: rgba(10, 18, 14, .9); }

.nav-in {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 66px;
}
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 14px; flex: 1; }
.nav-links a {
    padding: 8px 12px;
    border-radius: var(--r-sm);
    font-size: var(--t-sm);
    color: var(--ink-3);
    transition: color .16s var(--ease), background .16s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: rgba(244, 241, 233, .05); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-name { font-weight: 650; letter-spacing: -.03em; font-size: 1.02rem; }

.burger { display: none; width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line); align-items: center; justify-content: center; }
.burger span, .burger span::before, .burger span::after {
    content: ""; display: block; width: 16px; height: 1.5px; background: var(--ink); border-radius: 2px;
    transition: transform .22s var(--ease), opacity .22s var(--ease);
}
.burger span::before { transform: translateY(-5px); }
.burger span::after { transform: translateY(3.5px); }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: rotate(-45deg) translateY(0); }

.drawer {
    display: none;
    border-top: 1px solid var(--line);
    background: var(--bg-1);
    padding: 10px var(--gut) 20px;
}
.drawer.open { display: block; }
.drawer a { display: block; padding: 12px 2px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.drawer .btn { margin-top: 16px; }

@media (max-width: 980px) {
    .nav-links, .nav-cta .btn-ghost { display: none; }
    .burger { display: inline-flex; }
    .nav-in { justify-content: space-between; }
    .nav-cta { margin-left: auto; }
}

/* ===================================================================================== */
/* The scan form                                                                         */
/* ===================================================================================== */

.scan { max-width: 560px; }
.scan-row {
    display: flex;
    gap: 8px;
    background: var(--surface);
    border: 1px solid var(--line-2);
    border-radius: var(--r-lg);
    padding: 7px;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.scan-row:focus-within {
    border-color: rgba(85, 199, 149, .5);
    box-shadow: 0 0 0 4px rgba(63, 163, 122, .12);
}
.scan-row input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: none;
    padding: 11px 13px;
    font-size: 1rem;
    letter-spacing: -.01em;
}
.scan-row input::placeholder { color: var(--ink-4); }
.scan-row input:focus { outline: none; }
.scan-note { margin-top: 12px; font-size: var(--t-xs); color: var(--ink-4); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.scan-err { margin-top: 10px; color: var(--clay); font-size: var(--t-sm); min-height: 1.2em; }

@media (max-width: 560px) {
    .scan-row { flex-direction: column; }
    .scan-row .btn { width: 100%; }
}

/* Progressive scan messaging. Real stages, no invented results. */
.progress { margin-top: 18px; display: none; }
.progress.on { display: block; }
.progress-bar { height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--emerald), var(--lime)); transition: width .5s var(--ease); }
.progress-msg { margin-top: 10px; font-size: var(--t-sm); color: var(--ink-3); display: flex; align-items: center; gap: 9px; }

.spin { width: 13px; height: 13px; border: 1.6px solid var(--line-3); border-top-color: var(--emerald-bright); border-radius: 50%; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===================================================================================== */
/* Score display                                                                         */
/* ===================================================================================== */

.score-ring { position: relative; width: 132px; height: 132px; flex: none; }
.score-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.score-ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.score-ring .track { stroke: var(--line); }
.score-ring .val { stroke: var(--emerald-bright); transition: stroke-dashoffset 1.1s var(--ease); }
.score-ring .mid { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.score-ring .num { font-size: 2.5rem; font-weight: 650; letter-spacing: -.05em; line-height: 1; }
.score-ring .cap { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-4); margin-top: 4px; }

.bars { display: grid; gap: 13px; }
.bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.bar-row .lab { font-size: var(--t-sm); color: var(--ink-2); }
.bar-row .num { font-size: var(--t-sm); font-weight: 650; font-family: var(--mono); }
.bar-track { grid-column: 1 / -1; height: 5px; background: var(--line); border-radius: 3px; overflow: hidden; }
.bar-track i { display: block; height: 100%; border-radius: 3px; background: var(--emerald); transition: width .9s var(--ease); }
.bar-track i.w { background: var(--amber); }
.bar-track i.f { background: var(--clay); }

/* ===================================================================================== */
/* Report tabs                                                                           */
/* ===================================================================================== */

.tabs {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    border-bottom: 1px solid var(--line);
    padding: 0 6px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    padding: 13px 15px;
    font-size: var(--t-sm);
    font-weight: 550;
    color: var(--ink-3);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: color .16s var(--ease), border-color .16s var(--ease);
}
.tab:hover { color: var(--ink-2); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--emerald-bright); }
.tab .n { font-family: var(--mono); font-size: 10px; opacity: .7; margin-left: 5px; }

.tabpanel { display: none; }
.tabpanel.on { display: block; animation: fade .32s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }

/* ===================================================================================== */
/* Finding rows: one component for crawlers, comprehension items and profile fields       */
/* ===================================================================================== */

.finding {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 4px 13px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}
.finding:last-child { border-bottom: 0; }
.finding > .dot { margin-top: 8px; }
.finding .f-name { font-weight: 600; font-size: .95rem; letter-spacing: -.01em; }
.finding .f-human { color: var(--ink-2); font-size: var(--t-sm); margin-top: 3px; }
.finding .f-ev { color: var(--ink-4); font-size: var(--t-xs); margin-top: 6px; font-family: var(--mono); }
.finding .f-tech {
    margin-top: 8px;
    font-size: var(--t-xs);
    color: var(--ink-3);
    border-left: 2px solid var(--line-2);
    padding: 3px 0 3px 10px;
}
.finding .f-right { grid-column: 3; grid-row: 1; }
.finding .f-body { grid-column: 2; }

@media (max-width: 620px) {
    .finding { grid-template-columns: auto 1fr; }
    .finding .f-right { grid-column: 2; grid-row: auto; margin-top: 8px; }
}

/* ===================================================================================== */
/* Demo / product visual cards                                                           */
/* ===================================================================================== */

.demo {
    background: linear-gradient(170deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line-2);
    border-radius: var(--r-xl);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7), 0 0 0 1px rgba(244, 241, 233, .03) inset;
    overflow: hidden;
}
.demo-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(244, 241, 233, .025);
}
.demo-head .host { font-family: var(--mono); font-size: var(--t-xs); color: var(--ink-3); margin-left: auto; }
.demo-body { padding: 18px; display: grid; gap: 16px; }

.kv { display: grid; gap: 9px; }
.kv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--t-sm); }
.kv-row .k { color: var(--ink-3); }
.kv-row .v { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; }

.quote {
    background: rgba(63, 163, 122, .07);
    border: 1px solid rgba(63, 163, 122, .2);
    border-radius: var(--r);
    padding: 14px 16px;
    font-size: var(--t-sm);
    line-height: 1.55;
    color: var(--ink-2);
}
.quote .lab {
    display: block;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--emerald-bright);
    margin-bottom: 7px;
}

/* ===================================================================================== */
/* Engine grid                                                                           */
/* ===================================================================================== */

.engine {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 12px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    align-items: center;
}
.engine .en { font-weight: 600; font-size: .93rem; }
.engine .es { font-size: var(--t-xs); color: var(--ink-3); grid-column: 2; }
.engine .eb { grid-row: 1 / span 2; width: 30px; height: 30px; border-radius: 8px; display: grid; place-content: center; background: var(--surface-3); font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--ink-2); }

/* ===================================================================================== */
/* Fix cards                                                                             */
/* ===================================================================================== */

.fix {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
}
.fix-i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-content: center; flex: none; font-size: 14px; }
.fix-i.w { background: rgba(217, 164, 65, .13); color: var(--amber); }
.fix-i.f { background: rgba(209, 97, 75, .13); color: var(--clay); }
.fix-i.p { background: rgba(85, 199, 149, .13); color: var(--emerald-bright); }
.fix-b { flex: 1; min-width: 0; }
.fix-b .fh { font-weight: 600; font-size: .95rem; letter-spacing: -.012em; }
.fix-b .fw { font-size: var(--t-sm); color: var(--ink-2); margin-top: 4px; }
.fix-b .ft { font-size: var(--t-xs); color: var(--ink-3); margin-top: 9px; border-left: 2px solid var(--line-2); padding-left: 10px; }
.fix-meta { display: flex; gap: 7px; margin-top: 11px; flex-wrap: wrap; }

/* ===================================================================================== */
/* Pricing                                                                               */
/* ===================================================================================== */

.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: rgba(85, 199, 149, .38); box-shadow: 0 0 0 1px rgba(85, 199, 149, .12), 0 30px 60px -40px rgba(63, 163, 122, .5); }
.price-amt { font-size: 2.1rem; font-weight: 650; letter-spacing: -.04em; line-height: 1; margin: 14px 0 4px; }
.price-amt span { font-size: .9rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price-list { list-style: none; display: grid; gap: 9px; margin: 18px 0 22px; font-size: var(--t-sm); color: var(--ink-2); }
.price-list li { display: flex; gap: 9px; align-items: flex-start; }
.price-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--emerald); margin-top: 8px; flex: none; }
/* Guard for list items that mix a <strong> lead-in with body text: without this each
   becomes its own flex item and they wrap independently. */
.price-list li > span { flex: 1; min-width: 0; }
.price-list li.soon { color: var(--ink-4); }
.price-list li.soon::before { background: var(--slate); }
.price-card .btn { margin-top: auto; }

/* ===================================================================================== */
/* Compare table                                                                         */
/* ===================================================================================== */

.cmp { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px 18px; align-items: center; }
.cmp-h { font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.cmp-n { font-family: var(--mono); font-weight: 650; font-size: 1.05rem; }
.cmp-l { font-size: var(--t-sm); color: var(--ink-2); text-align: center; }
@media (max-width: 620px) { .cmp { grid-template-columns: 1fr auto 1fr; gap: 10px; font-size: var(--t-sm); } }

/* ===================================================================================== */
/* Ask-your-website                                                                      */
/* ===================================================================================== */

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    font-size: var(--t-sm);
    color: var(--ink-2);
    background: rgba(244, 241, 233, .025);
    transition: border-color .16s var(--ease), color .16s var(--ease), background .16s var(--ease);
}
.chip:hover { border-color: var(--line-3); color: var(--ink); background: rgba(244, 241, 233, .06); }
.chip[aria-pressed="true"] { border-color: rgba(85, 199, 149, .45); color: var(--emerald-bright); background: rgba(63, 163, 122, .1); }

.qa { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 18px; }
.qa + .qa { margin-top: 10px; }
.qa .qq { font-weight: 600; font-size: .95rem; display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.qa .qa-ans { margin-top: 9px; color: var(--ink-2); font-size: var(--t-sm); }
.qa .qa-rec { margin-top: 10px; font-size: var(--t-xs); color: var(--ink-3); border-left: 2px solid var(--line-2); padding-left: 10px; }

/* ===================================================================================== */
/* Evidence drawers                                                                      */
/* Every fact opens into why we concluded it: source, layer, snippet, confidence.         */
/* ===================================================================================== */

details.ev {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    margin-bottom: 8px;
    overflow: hidden;
}
details.ev summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    cursor: pointer;
    list-style: none;
    transition: background .16s var(--ease);
}
details.ev summary::-webkit-details-marker { display: none; }
details.ev summary:hover { background: rgba(244, 241, 233, .03); }
details.ev summary .dot { flex: none; }
.ev-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ev-label { font-weight: 600; font-size: .92rem; letter-spacing: -.01em; }
.ev-value { font-size: var(--t-sm); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-side { display: flex; align-items: center; gap: 7px; flex: none; }
.ev-caret {
    width: 8px; height: 8px; flex: none;
    border-right: 1.5px solid var(--ink-4); border-bottom: 1.5px solid var(--ink-4);
    transform: rotate(45deg);
    transition: transform .2s var(--ease);
    margin: 0 3px 3px 0;
}
details.ev[open] .ev-caret { transform: rotate(-135deg); margin: 3px 3px 0 0; }
.ev-body { padding: 4px 16px 16px; border-top: 1px solid var(--line); }
.ev-why { font-size: var(--t-sm); color: var(--ink-2); padding-top: 12px; }
.ev-sec {
    font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: var(--ink-4); margin: 14px 0 8px;
}
.ev-item { border-left: 2px solid var(--line-2); padding: 2px 0 2px 12px; margin-bottom: 10px; }
.ev-src { font-size: var(--t-sm); color: var(--ink-2); }
.ev-snip {
    margin-top: 6px;
    font-family: var(--mono);
    font-size: .74rem;
    line-height: 1.55;
    color: var(--ink-3);
    background: var(--bg-1);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    padding: 8px 11px;
    overflow-wrap: anywhere;
}
.ev-tech { font-size: var(--t-xs); color: var(--ink-3); margin-top: 10px; }
.ev-meta { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.ev-fix { font-size: var(--t-sm); color: var(--ink-2); margin-top: 12px; border-left: 2px solid var(--emerald); padding-left: 11px; }
.ev-cat {
    font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; color: var(--ink-4); margin: 20px 0 8px;
}
.ev-cat:first-of-type { margin-top: 0; }

@media (max-width: 620px) {
    details.ev summary { flex-wrap: wrap; }
    .ev-main { flex-basis: calc(100% - 60px); }
    .ev-side { margin-left: 19px; }
    .ev-value { white-space: normal; }
}

/* ===================================================================================== */
/* The profile hero: what machines can understand about this business                     */
/* ===================================================================================== */

.profile-hero {
    background: linear-gradient(170deg, var(--surface-2), var(--surface));
    border: 1px solid var(--line-2);
    border-radius: var(--r-xl);
    padding: clamp(20px, 3vw, 30px);
}
.ph-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.ph-name { font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.03em; margin-top: 8px; }
.ph-conf { display: grid; gap: 6px; justify-items: end; text-align: right; }
.ph-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; margin: 18px 0 10px; }
.ph-fact {
    display: grid;
    gap: 3px;
    text-align: left;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    transition: border-color .16s var(--ease), transform .16s var(--ease);
}
.ph-fact:hover { border-color: var(--line-3); transform: translateY(-1px); }
.ph-fact .k { font-size: var(--t-xs); color: var(--ink-4); }
.ph-fact .v { font-size: var(--t-sm); font-weight: 550; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-fact .s { font-size: var(--t-xs); color: var(--ink-3); display: flex; align-items: center; gap: 6px; margin-top: 2px; }

/* ===================================================================================== */
/* Machine blind spots                                                                   */
/* ===================================================================================== */

.spot {
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
    padding: 18px 19px;
    display: grid;
    gap: 10px;
    align-content: start;
}
.sp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.sp-q { font-weight: 650; font-size: 1.02rem; letter-spacing: -.015em; }
.spot-sm .sp-q { font-size: .95rem; }
.sp-found { font-size: var(--t-sm); color: var(--ink-2); }
.sp-why { font-size: var(--t-sm); color: var(--ink-2); }
.sp-matters { font-size: var(--t-xs); color: var(--ink-3); border-left: 2px solid var(--amber); padding-left: 10px; }
.sp-fix { font-size: var(--t-sm); color: var(--ink-2); border-left: 2px solid var(--emerald); padding-left: 10px; }

/* ===================================================================================== */
/* Question evidence pills                                                               */
/* ===================================================================================== */

.qa-est { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.qa-est .k { font-size: var(--t-xs); color: var(--ink-4); margin-right: 4px; }
.qa-pill {
    font-size: var(--t-xs);
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(85, 199, 149, .3);
    color: var(--ink-2);
    background: rgba(85, 199, 149, .06);
}
.qa-pill-miss { border-color: rgba(209, 97, 75, .3); background: rgba(209, 97, 75, .06); }

/* The "you know / machines see" gap moment on the homepage */
.gap-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .gap-pair { grid-template-columns: 1fr; } }
.gap-cell { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: var(--surface); }
.gap-cell .gk {
    font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .12em;
    text-transform: uppercase; margin-bottom: 10px; display: block;
}
.gap-cell.you .gk { color: var(--emerald-bright); }
.gap-cell.them .gk { color: var(--amber); }
.gap-verdict { margin-top: 14px; font-size: var(--t-sm); color: var(--ink-2); border-left: 2px solid var(--clay); padding-left: 12px; }

/* ===================================================================================== */
/* Empty, loading and error states                                                       */
/* ===================================================================================== */

.empty {
    border: 1px dashed var(--line-2);
    border-radius: var(--r-lg);
    padding: clamp(28px, 4vw, 44px);
    text-align: center;
    color: var(--ink-3);
}
.empty h3 { color: var(--ink-2); margin-bottom: 8px; }

.skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 6px; }
@keyframes sk { from { background-position: 100% 50%; } to { background-position: 0 50%; } }

.alert {
    border-radius: var(--r-lg);
    padding: 16px 18px;
    border: 1px solid;
    font-size: var(--t-sm);
    line-height: 1.55;
}
.alert-warn { border-color: rgba(217, 164, 65, .3); background: rgba(217, 164, 65, .07); color: var(--ink-2); }
.alert-fail { border-color: rgba(209, 97, 75, .32); background: rgba(209, 97, 75, .07); color: var(--ink-2); }
.alert-info { border-color: var(--line-2); background: rgba(244, 241, 233, .03); color: var(--ink-2); }
.alert strong { color: var(--ink); }

/* ===================================================================================== */
/* Footer                                                                                */
/* ===================================================================================== */

.foot { border-top: 1px solid var(--line); padding-block: clamp(40px, 5vw, 64px) 32px; background: var(--bg-1); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot h4 { font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); font-weight: 600; margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 9px; }
.foot a { color: var(--ink-3); font-size: var(--t-sm); }
.foot a:hover { color: var(--ink); }
.foot-base { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--t-xs); color: var(--ink-4); }

/* ===================================================================================== */
/* Motion: sparing, and fully removed under reduce-motion                                */
/* ===================================================================================== */

/* Scoped to .js on purpose. Without JavaScript there is no .js class, so .rise never gets an
   opacity of 0 and the whole page is visible. A scroll reveal that hides content when its script
   does not run is precisely the failure this product tells other people to fix. */
.js .rise { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .rise.in { opacity: 1; transform: none; }

.pulse { animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

.scanline { stroke-dasharray: 5 7; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }

@media (prefers-reduced-motion: reduce) {
    .js .rise, .rise { opacity: 1; transform: none; transition: none; }
    .pulse, .scanline, .spin, .skel { animation: none; }
    .spin { border-top-color: var(--emerald-bright); }
    .btn:hover, .card-hover:hover { transform: none; }
    .bar-track i, .score-ring .val, .progress-bar i { transition: none; }
}

/* ===================================================================================== */
/* Utilities                                                                             */
/* ===================================================================================== */

.hide { display: none !important; }
.flex { display: flex; }
.between { justify-content: space-between; }
.items-center { align-items: center; }
.gap-sm { gap: 8px; }
.gap { gap: 14px; }
.wrap-flex { flex-wrap: wrap; }
.mt-sm { margin-top: 10px; }
.mt { margin-top: 20px; }
.mt-lg { margin-top: 34px; }
.mb { margin-bottom: 20px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
