/* TabProof design system — one file, every public page.

   The palette, the geometry, the type stack and the focus model are NOT declared
   here. They live in design-system/tokens.json and arrive via tokens.css, which
   is generated. This file is only TabProof's own components.

   Two things this stylesheet is judged on, because it is the UI of the tool that
   judges other people's UIs (audit/CLAUDE.md rule 7):
     - every text pairing is listed in tokens.json -> contrast.pairs and checked
       by `node design-system/contrast.js`
     - every non-text boundary meets 1.4.11, or is documented as exempt with a
       reason. Form controls use --input, which is the one line token darkened
       far enough to clear 3:1. */

@import url("tokens.css?v=20261205-1");

/* ---- base ---- */
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--background);color:var(--foreground);
     font:1rem/1.65 var(--font-sans);
     -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
img{max-width:100%}
a{color:var(--accent-strong)}
a:hover{color:var(--accent)}
code{font-family:var(--font-mono);font-size:.92em;
     background:var(--na-bg);padding:.1em .35em;border-radius:var(--radius-sm)}

/* Devanagari needs different leading and no negative tracking: the conjuncts and
   matras collide otherwise. Prices on this site are already in INR, so this is
   not hypothetical. */
:lang(hi),:lang(hin){letter-spacing:0;line-height:1.85}
:lang(hi) h1,:lang(hi) h2,:lang(hi) h3,:lang(hi) .logo,
:lang(hin) h1,:lang(hin) h2,:lang(hin) h3,:lang(hin) .logo{letter-spacing:0}

/* ---- a11y scaffolding ---- */
/* A link that sits inside a sentence — "Sign in with an admin account" — renders
   at the text's own line height, around 21px tall, which is under the 44px target
   the workspace gate enforces on every control. Negative margin gives the hit
   area the missing height while pulling the glyphs back onto the same baseline,
   so the sentence keeps its line spacing and the target becomes 45px without the
   link looking like a button. */
.link-inline{display:inline-block;min-height:44px;padding:12px 2px;margin:-12px -2px;line-height:1.25}
.skip{position:absolute;left:-9999px;top:0;background:var(--accent);color:var(--on-accent);
      padding:.7rem 1.1rem;z-index:9999;border-radius:0 0 var(--radius-sm) 0;font-weight:600;
      transition:left .18s ease}
.skip:focus{left:0}
:focus-visible{outline:3px solid var(--ring);outline-offset:2px;border-radius:var(--radius-sm)}
/* The fixed analytics-consent banner (.cookiebar below) docks over the bottom of
   the viewport, and the last tab stops on every page — the shared footer's
   site-nav links — otherwise take focus underneath it: the ring is declared and
   computed (4.64:1 against the footer surface) but occluded, which the CV
   keyboard audit reads as no indicator at all (CP-12). scroll-margin-bottom
   lifts a focused control above the banner's top edge; the body:has(.cookiebar)
   rule at the banner reserves the scrollable slack that makes the lift reachable
   at the very end of the document. */
a,button,input,select,textarea,summary,[tabindex]{scroll-margin-bottom:8rem}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;
      overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.hidden{display:none !important}

/* ---- layout ---- */
.container{max-width:var(--maxw);margin:0 auto;padding:0 var(--gutter)}
.container-narrow{max-width:var(--measure);margin:0 auto;padding:0 var(--gutter)}
.section{padding:2.6rem 0}
.section-tight{padding:1.6rem 0}
main{padding-bottom:3rem}
.band{background:var(--surface);border-top:1px solid var(--border);
      border-bottom:1px solid var(--border)}

/* ---- dashboard ----
   A score in a history table has to be scannable down a column of them, which a bare
   percentage is not. The pill is a class per tone (never an inline colour) so it survives
   a token rename the same way .score does. */
.dash-top{display:flex;align-items:flex-start;justify-content:space-between;
          gap:1rem;flex-wrap:wrap;margin-bottom:.9rem}
.dash-actions{display:flex;gap:.6rem;flex-wrap:wrap;align-items:center}
.row-actions{display:inline-flex;gap:.4rem;align-items:center;flex-wrap:wrap;
        justify-content:flex-end}
.add-site{border:1px solid var(--border);border-radius:var(--radius-sm);
          padding:.9rem 1rem;margin-bottom:1.1rem;background:var(--surface)}
.crawl-note{display:flex;align-items:center;gap:.1rem;margin:.2rem 0 .6rem;
          color:var(--accent-strong);font-weight:600}
/* Add-website scope choice: "Whole website" (default, matches + New audit) or "This page
   only". Native radios stay the selection indicator; the card border and tint reinforce it
   and survive forced-colors via the outline below. */
.add-site>input[type=text]{width:100%}
.scope-choice{border:0;padding:0;margin:.9rem 0 0;min-width:0}
.scope-choice legend{font-weight:600;padding:0;margin-bottom:.5rem;font-size:.9375rem}
.scope-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:.6rem}
.scope-card{display:flex;align-items:flex-start;gap:.6rem;padding:.75rem .85rem;
        border:1px solid var(--input);border-radius:var(--radius-sm);background:var(--card);
        cursor:pointer;transition:border-color .16s ease,background .16s ease}
.scope-card:hover{border-color:var(--border-strong);background:var(--surface)}
.scope-card input[type=radio]{width:18px;height:18px;margin:.2rem 0 0;flex:none;
        accent-color:var(--accent-strong)}
.scope-card:focus-within{outline:3px solid var(--ring);outline-offset:2px}
.scope-card.is-selected{border-color:var(--accent-strong);background:var(--accent-soft);
        box-shadow:0 0 0 1px var(--accent-strong)}
.scope-card__body{display:block;min-width:0}
.scope-card__title{display:block;font-weight:600;line-height:1.35;font-size:.9375rem}
.scope-card__desc{display:block;margin-top:.15rem;color:var(--muted-foreground);
        font-size:.875rem;line-height:1.45}
.add-site-foot{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin-top:.9rem}
.add-site-foot .btn{min-height:44px}
.add-site-foot .hint{margin:0}
@media(forced-colors:active){
  .scope-card.is-selected{outline:2px solid Highlight;outline-offset:1px}
}
/* A9: #site-url measured 44px while #add-site-btn rendered 46px, so the two
   edges never lined up. Both are pinned to the same border-box 44px height.
   The reusable contract for any input+button row is .field-row-44 below. */
/* A9 contract: put .field-row-44 on an input+button row and both controls render
   exactly 44px tall with a 1px border, top and bottom edges flush. */
.field-row-44{display:flex;flex-wrap:wrap;gap:.6rem;align-items:stretch}
.field-row-44>input,.field-row-44>.btn{box-sizing:border-box;height:44px;
      min-height:44px;border-width:1px}
.field-row-44>input{flex:1 1 auto;min-width:0;padding-top:0;padding-bottom:0;
      line-height:44px}
.score-pill{display:inline-block;min-width:3.4rem;padding:.15rem .5rem;border-radius:var(--radius-full);
             border:1px solid currentColor;font-variant-numeric:tabular-nums;
             font-weight:600;text-align:center}
.score-pill--pass{color:var(--pass);background:var(--pass-bg)}
.score-pill--review{color:var(--review);background:var(--review-bg)}
.score-pill--fail{color:var(--fail);background:var(--fail-bg)}
.score-pill--na{color:var(--na)}
.nowrap{white-space:nowrap}

/* ---- typography ----
   Nine sizes, all from tokens.json -> typeScale. The previous stylesheet had
   twenty-five distinct font-size values, sixteen of them used exactly once, and
   six different treatments for the h1 depending on the page. */
h1,h2,h3,h4{font-family:var(--font-display);color:var(--foreground);
            letter-spacing:-.02em;line-height:1.15;margin:0 0 .5rem}
h1{font-size:clamp(1.9rem,1.45rem + 1.8vw,2.75rem);line-height:1.1}
h2,.section-title{font-size:1.7rem;line-height:1.25}
h3{font-size:1.0625rem;letter-spacing:-.01em}
h4{font-size:.9375rem;letter-spacing:0}
p{margin:0 0 1rem;text-wrap:pretty}
.lede{font-size:1.125rem;color:var(--muted-foreground)}
.section-sub{color:var(--muted-foreground);max-width:var(--measure);margin:.2rem 0 1.6rem}
.hint{color:var(--muted-foreground);font-size:.9375rem;margin:.3rem 0 .8rem}
.muted{color:var(--muted-foreground)}
.eyebrow{font-family:var(--font-mono);font-size:.8125rem;font-weight:500;
         letter-spacing:.14em;text-transform:uppercase;color:var(--accent-strong);
         margin:0 0 .5rem}
.center{text-align:center}
.mt0{margin-top:0}
.steps-list{margin:0 0 1rem;padding-left:1.2rem}
.steps-list li{margin:.4rem 0}

/* ---- header / footer ----
   Glass, not opaque white: the canonical masthead. backdrop-filter is
   progressive — where it is unsupported the background is still 92% opaque. */
.site-header{background:color-mix(in srgb, var(--background) 82%, transparent);
             -webkit-backdrop-filter:blur(16px) saturate(180%);
             backdrop-filter:blur(16px) saturate(180%);
             border-bottom:1px solid var(--border);
             position:sticky;top:0;z-index:20}
@supports not (backdrop-filter:blur(1px)){
  .site-header{background:var(--background)}
}
.site-header .container{display:flex;align-items:center;gap:1.4rem;min-height:4rem;
             padding-top:.5rem;padding-bottom:.5rem}
.logo{display:inline-flex;align-items:center;gap:.55rem;text-decoration:none;
      color:var(--foreground);font-family:var(--font-display);
      font-weight:700;font-size:1.0625rem;letter-spacing:-.02em}
.logo svg{display:block;flex:none}
.site-nav{display:flex;align-items:center;gap:.4rem;margin-left:auto}
.site-nav a,.slot-link{text-decoration:none;color:var(--muted-foreground);font-weight:600;
            font-size:.9375rem;padding:.5rem .875rem;border-radius:var(--radius-full);
            transition:background-color .16s ease,color .16s ease}
.site-nav a:hover,.slot-link:hover{background:var(--surface-2);color:var(--foreground)}
.site-nav a[aria-current="page"]{background:var(--surface-2);color:var(--foreground);
            font-weight:700}
.slot-link--admin{color:var(--accent-strong)}
.slot-link--admin:hover{color:var(--accent-strong)}
#ap-auth-slot{display:flex;gap:.5rem;align-items:center}
.site-footer{border-top:1px solid var(--border);background:var(--surface);
             padding:2rem 0;color:var(--muted-foreground);font-size:.9375rem}
.site-footer nav{display:flex;gap:1.4rem;flex-wrap:wrap;margin-top:.8rem}
.site-footer nav a{color:var(--muted-foreground);padding:.4rem 0}

/* ---- analytics consent (one banner, keyboard-operable, no modal trap) ---- */
.cookiebar{position:fixed;left:0;right:0;bottom:0;z-index:60;
           background:var(--surface);border-top:1px solid var(--border);
           box-shadow:var(--shadow-card);padding:.9rem var(--gutter)}
.cookiebar__in{max-width:var(--maxw);margin:0 auto;display:flex;
               align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
.cookiebar p{margin:0;max-width:62ch;color:var(--muted-foreground);font-size:.9375rem}
.cookiebar__actions{display:flex;gap:.6rem;flex-wrap:wrap}
.cookie-settings{background:none;border:0;color:var(--muted-foreground);font:inherit;
                 min-height:44px;padding:.4rem 0;cursor:pointer;text-decoration:underline}
.cookie-settings:hover{color:var(--foreground)}
/* While the consent banner is up it covers the bottom of the viewport, so the
   document carries scrollable room beneath the footer while it is shown — that
   is what lets the scroll-margin lift in the a11y scaffolding above place a
   focused control fully above the banner at the end of the page. :has drops the
   space again the moment the banner leaves the DOM. */
body:has(.cookiebar){padding-bottom:8rem}

/* ---- expert services ---- */
.service-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
              gap:1rem;align-items:start}
.service-card h2{font-size:1.25rem}
.service-card form{margin:.8rem 0 0}
.service-card .form-status{min-height:1.5rem}
.service-card textarea{min-height:7.5rem;resize:vertical}
.site-footer a:hover{color:var(--foreground)}

/* ---- buttons ----
   Pill geometry, and hover changes elevation rather than only colour, so the
   affordance is visible without relying on a hue shift alone. */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
     background:var(--accent);color:var(--on-accent);border:1px solid transparent;
     border-radius:var(--radius-full);
     padding:.72rem 1.5rem;font:inherit;font-size:1rem;font-weight:600;
     cursor:pointer;text-decoration:none;min-height:44px;
     transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,
                transform .16s ease}
.btn:hover{background:var(--accent-strong);box-shadow:var(--shadow-glow);
           transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn:disabled{background:var(--disabled-fill);color:var(--disabled-ink);
              border-color:var(--input);cursor:not-allowed;box-shadow:none;transform:none}
.btn-outline{background:transparent;color:var(--accent-strong);border:2px solid var(--accent)}
.btn-outline:hover{background:var(--accent-soft);color:var(--accent-strong);
                   box-shadow:none;transform:none}
.btn-subtle{background:var(--na-bg);color:var(--foreground);border-color:var(--border)}
.btn-subtle:hover{background:var(--surface-2);color:var(--foreground);
                  box-shadow:none;transform:none}
.btn-danger{background:var(--fail)}
.btn-danger:hover{background:var(--fail-strong)}
.btn-sm{padding:.45rem .95rem;font-size:.875rem;min-height:38px}
/* A .btn-sm inside a data table is an interactive row control (the dashboard's
   per-row Report/Re-check/Remove), so it meets the same 44px floor as .fbtn
   instead of its 38px inline size. */
.table-scroll .btn-sm{min-height:44px}
.btn-block{width:100%}


/* ---- cards & sections ----
   One card recipe, used everywhere, with real elevation and a hover state. The
   previous file cloned this same box fifteen times under fifteen names
   (.card, .card-flush, .feature, .step, .tier, .score, .issue-stat, .scope-tile,
   .kb-fig, .paywall, .cta-banner, .disclaimer, .standing-disclaimer, .faq
   details, .finding) with no elevation hierarchy between any of them. */
.card{background:var(--card);border:1px solid var(--border);
      border-radius:var(--radius-lg);box-shadow:var(--shadow-card);
      padding:1.5rem;margin-bottom:1.4rem;
      transition:box-shadow .16s ease,transform .16s ease}
.card h2{margin-top:0}
.card-flush{padding:0;overflow:hidden}
.card-hover:hover{box-shadow:var(--shadow-card-hover);transform:translateY(-2px)}

/* ---- hero ---- */
.hero{background:
   radial-gradient(60rem 24rem at 85% -10%,var(--accent-soft),transparent),
   radial-gradient(40rem 20rem at 5% 110%,var(--surface-2),transparent),
   var(--background);
   border-bottom:1px solid var(--border);padding:3.4rem 0 3rem;text-align:center}
.hero h1{margin:0 auto .7rem;max-width:var(--measure)}
.hero .lede{color:var(--muted-foreground);max-width:42ch;margin:0 auto 1.8rem}
.hero-note{font-size:.9375rem;color:var(--muted-foreground);margin-top:.8rem}

/* scan box */
.scanbox{max-width:42rem;margin:0 auto;background:var(--card);border:1px solid var(--border);
         border-radius:var(--radius-lg);box-shadow:var(--shadow-card-hover);
         padding:1.3rem;text-align:left}
.scanbox .row{display:flex;gap:.7rem;flex-wrap:wrap}
.scanbox input[type=text]{flex:1;min-width:0;padding:.8rem 1rem;font:inherit;font-size:1.0625rem}
.trustline{display:flex;gap:1.2rem;justify-content:center;flex-wrap:wrap;margin:1rem 0 0;
           padding:0;list-style:none;color:var(--muted-foreground);font-size:.9375rem}
.trustline li{display:inline-flex;align-items:center;gap:.4rem}
.trustline svg{width:1rem;height:1rem;flex:none;color:var(--pass)}

/* Yes/no marks in comparison tables.
   The cells used to hold a bare U+2713 / U+2717. A glyph is not a name: whether a
   screen reader announces one at all depends on the browser and the verbosity
   setting, so the table that carries the page's whole argument was unreadable
   without sight. Now the icon is decorative and the real words are in the DOM. */
.mark{display:inline-flex;align-items:center;gap:.3rem;vertical-align:-.15em;
      font-weight:600}
.mark svg{width:1rem;height:1rem;flex:none}
.mark--yes{color:var(--pass)}
.mark--no{color:var(--muted-foreground)}

/* Icon-only controls. The old dismiss affordance was the character ✕ at 1rem,
   which is a glyph, not a control: it has no hit area, no focus styling of its
   own, and renders differently on every platform. */
.icon-btn{display:inline-flex;align-items:center;justify-content:center;
          width:2rem;height:2rem;padding:0;background:transparent;color:inherit;
          border:1px solid transparent;border-radius:var(--radius-full);
          cursor:pointer;line-height:1;flex:none;
          transition:background-color .16s ease,border-color .16s ease}
.icon-btn svg{width:1.05rem;height:1.05rem}
.icon-btn:hover{background:rgba(0,0,0,.06);border-color:currentColor}
.notice .icon-btn:hover{background:rgba(0,0,0,.08)}

/* Mobile navigation toggle. Hidden above 900px where the nav is inline anyway. */
.nav-toggle{display:none;align-items:center;justify-content:center;
            width:2.75rem;height:2.75rem;margin-left:auto;padding:0;
            background:transparent;color:var(--foreground);
            border:1px solid var(--border);border-radius:var(--radius-full);cursor:pointer}
.nav-toggle:hover{background:var(--surface-2);border-color:var(--border-strong)}

.center-band{text-align:center}
.lede-center{margin-left:auto;margin-right:auto}

/* status / errors / notices */
.status{margin-top:.9rem;font-size:.9375rem;color:var(--muted-foreground)}
.error-box{background:var(--fail-bg);border:1px solid var(--fail-border);color:var(--fail);
     border-radius:var(--radius-sm);padding:.8rem 1rem;margin-top:.9rem}
.notice{display:flex;justify-content:space-between;align-items:center;gap:1rem;
     background:var(--pass-bg);border:1px solid var(--pass-border);color:var(--pass);
     border-radius:var(--radius-sm);padding:.7rem 1rem;margin-top:.9rem;font-weight:600}
.notice button{background:transparent;color:inherit;border:none;font-size:1rem;
     padding:.2rem .5rem;cursor:pointer;line-height:1}
.notice.error{background:var(--fail-bg);border-color:var(--fail-border);color:var(--fail)}
.progress-log{background:var(--terminal-bg);color:var(--terminal-fg);
     border-radius:var(--radius-sm);
     padding:.9rem 1.1rem;max-height:220px;overflow:auto;font-size:.8125rem;margin-top:.8rem;
     font-family:var(--font-mono);white-space:pre-wrap;overflow-wrap:anywhere}
.spinner{display:inline-block;width:1.1em;height:1.1em;vertical-align:-.18em;
     border:2.5px solid var(--border);border-top-color:var(--accent);
     border-radius:50%;animation:ap-spin .8s linear infinite;margin-right:.5rem}
@keyframes ap-spin{to{transform:rotate(360deg)}}

/* ---- badges ----
   A pill with a 1px border in its own currentColor, so the state survives
   forced-colors mode where the tint is thrown away. The tint carries the state
   in normal mode; the border carries it when the tint is gone. */
.badge{display:inline-block;border:1px solid currentColor;border-radius:var(--radius-full);
       padding:.16rem .65rem;font-family:var(--font-mono);
       font-size:.8125rem;font-weight:500;letter-spacing:.02em;line-height:1.5}
.b-fail{background:var(--fail-bg);color:var(--fail)}
.b-pass{background:var(--pass-bg);color:var(--pass)}
.b-review{background:var(--review-bg);color:var(--review)}
.b-na{background:var(--na-bg);color:var(--na)}
.b-brand{background:var(--accent-soft);color:var(--accent-strong)}


/* ---- scores ----
   The tone is a class (.score--pass etc.), not an inline colour, so renaming a
   token can never quietly turn a score the wrong colour in production. */
.score-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:1rem}
.score{border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;
       text-align:center;background:var(--card);box-shadow:var(--shadow-card);
       min-width:0;
       transition:box-shadow .16s ease,transform .16s ease}
.score:hover{box-shadow:var(--shadow-card-hover);transform:translateY(-2px)}
.score .big{font-family:var(--font-display);font-size:2.1rem;font-weight:700;
             font-variant-numeric:tabular-nums;line-height:1.15;color:var(--foreground)}
.score .lbl{font-family:var(--font-mono);font-size:.8125rem;color:var(--muted-foreground);
             text-transform:uppercase;letter-spacing:.06em;font-weight:500}
.score .sub{font-size:.8125rem;color:var(--muted-foreground);margin-top:.25rem}
/* A2: a long token in a label or subtext must wrap inside the card instead of
   pushing the grid track past the viewport, and the card itself must be allowed
   to shrink below its content's preferred width. No fixed min-width anywhere. */
.score .lbl,.score .sub,.score-subtext{overflow-wrap:anywhere;word-break:normal;min-width:0}
.score--pass .big{color:var(--pass)}
.score--review .big{color:var(--review)}
.score--fail .big{color:var(--fail)}
.score--na .big{color:var(--na)}

/* issues headline */
.issues-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1rem;margin-top:.6rem}
.issue-stat{border:1px solid var(--border);border-radius:var(--radius-lg);
            padding:1.2rem 1.3rem;background:var(--card)}
.issue-stat.compliance{background:var(--fail-bg);border-color:var(--fail-border)}
.issue-stat.practice{background:var(--accent-soft);border-color:var(--border)}
.issue-num{font-family:var(--font-display);font-size:2.7rem;font-weight:700;line-height:1;
           font-variant-numeric:tabular-nums}
.issue-stat.compliance .issue-num{color:var(--fail)}
.issue-stat.practice .issue-num{color:var(--accent-strong)}
.issue-lbl{font-weight:600;margin-top:.35rem}
.issue-sub{color:var(--muted-foreground);font-size:.875rem;margin:.3rem 0 0}
.issue-note{color:var(--muted-foreground);font-size:.9375rem;margin:1rem 0 0;
            padding-top:.8rem;border-top:1px dashed var(--border)}

/* ---- tables ----
   Row rules move to --border-strong. The old --border-soft sat at 1.24:1 on
   white, which is invisible on the 82-row checkpoint table where the row
   structure IS the content. */
.table-scroll{overflow-x:auto;min-width:0;max-width:100%}
/* Data tables keep their columns readable: they scroll inside this container
   instead of squeezing to the viewport. The min-width belongs on the table,
   never the container, so the page itself never grows a horizontal scrollbar. */
.table-scroll table{min-width:720px}
table{width:100%;border-collapse:collapse;font-size:.9375rem}
caption{text-align:left;font-weight:600;padding-bottom:.6rem;font-size:1rem}
th,td{text-align:left;padding:.7rem .75rem;border-bottom:1px solid var(--border);
      vertical-align:top}
tbody tr{transition:background-color .12s ease}
tbody tr:hover{background:var(--surface)}
tbody tr:last-child td{border-bottom:0}
th{background:var(--na-bg);font-family:var(--font-mono);font-size:.8125rem;
    text-transform:uppercase;letter-spacing:.04em;color:var(--muted-foreground);font-weight:500}
.num{text-align:right}
td.num,th.num{font-variant-numeric:tabular-nums}

/* ---- forms ----
   The 1.4.11 fix. Every control below was delineated by a 1.47:1 hairline, which
   is the one checkpoint this tool's own UI most plausibly failed: a border that
   faint is not enough to say "this is an input". --input is 3.03:1. */
label{display:block;font-weight:600;margin-bottom:.35rem}
input[type=text],input[type=email],input[type=password],input[type=number],
input[type=url],input[type=search],select,textarea{
  padding:.65rem .85rem;border:1px solid var(--input);border-radius:var(--radius-sm);
  font:inherit;font-size:1rem;background:var(--card);color:var(--foreground);
  min-height:2.75rem;transition:border-color .16s ease,box-shadow .16s ease}
input::placeholder,textarea::placeholder{color:var(--muted-foreground);opacity:1}
input:focus-visible,select:focus-visible,textarea:focus-visible{
  outline:3px solid var(--ring);outline-offset:1px;border-color:var(--ring)}
/* app.js and site-audit.html already set aria-invalid on failure; until now
   nothing in the stylesheet responded to it, so a field the engine had just
   rejected looked exactly like one it had accepted. */
[aria-invalid="true"]{border-color:var(--fail)!important;
  box-shadow:0 0 0 1px var(--fail)}
fieldset{border:1px solid var(--border-strong);border-radius:var(--radius-sm);
         margin:0 0 1rem;padding:1rem}
legend{font-weight:600;padding:0 .4rem}
.inline-label{display:inline-flex;align-items:center;gap:.45rem;font-weight:400}
/* A checkbox whose label wraps to two lines, centred on `align-items:center`, renders with
   the box floating beside the first line and the second line indented under it. Top-aligning
   and letting the text wrap puts the box on the first line where it belongs. */
.inline-label--stack{align-items:flex-start}
.inline-label--stack input[type=checkbox]{margin-top:.3rem;flex:none}
details{margin:.35rem 0}
summary{cursor:pointer;font-weight:600;padding:.45rem 0}
details[open]>summary{margin-bottom:.4rem}

/* ---- findings / evidence ----
   overflow-wrap rather than word-break:break-all. break-all splits a word
   mid-character, which is wrong in English and actively harmful in a script
   that does not use spaces. */
.inst{background:var(--na-bg);border-left:3px solid var(--accent);
      padding:.55rem .7rem;margin:.45rem 0;font-family:var(--font-mono);
      font-size:.8125rem;overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere}
.inst .why{color:var(--fail);font-family:var(--font-sans);font-weight:600;display:block}
.evidence-thumb{max-width:min(100%,420px);margin-top:.4rem;
      border:1px solid var(--border);border-radius:var(--radius-sm);display:block}
.kb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1rem}
.kb-fig{margin:0;border:1px solid var(--border);border-radius:var(--radius-sm);
        overflow:hidden;background:var(--card)}
.kb-fig img{width:100%;display:block}
.kb-fig figcaption{padding:.6rem .75rem;font-size:.8125rem}
.dl-row{display:flex;gap:.6rem;flex-wrap:wrap;margin-bottom:1rem}

/* ---- paywall / upsell ---- */
.paywall{border:1.5px dashed var(--border-strong);background:var(--accent-soft);
         border-radius:var(--radius-lg);padding:1.3rem 1.4rem}
.paywall-row{display:flex;align-items:center;gap:.9rem;flex-wrap:wrap}
/* min-width was 16rem, which at a 320px viewport is wider than the space the card leaves
   after its own padding — the text column stuck out past the card. min-width:0 lets the
   flex child shrink and wrap instead, which is what a flex child is for. */
.paywall-row__text{flex:1 1 16rem;min-width:0}
.paywall .lock-icon,.scope-note .lock-icon{color:var(--accent-strong);flex:none}
.cta-banner{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;
     background:var(--accent-soft);border:1px solid var(--border);
     border-radius:var(--radius-lg);padding:1rem 1.2rem}

/* ---- pricing ---- */
.tier-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.3rem;
           align-items:stretch;margin:1.6rem 0}
.tier{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);
      padding:1.6rem;display:flex;flex-direction:column;gap:.4rem;position:relative;
      box-shadow:var(--shadow-card);transition:box-shadow .16s ease,transform .16s ease}
.tier:hover{box-shadow:var(--shadow-card-hover);transform:translateY(-2px)}
.tier.featured{border:2px solid var(--accent);box-shadow:var(--shadow-card-hover)}
.tier .tier-flag{position:absolute;top:-.85rem;left:1.4rem;background:var(--accent);
      color:var(--on-accent);border-radius:var(--radius-full);
      font-family:var(--font-mono);font-size:.75rem;font-weight:500;
      letter-spacing:.06em;text-transform:uppercase;padding:.2rem .8rem}
.tier h2{margin:0;font-size:1.15rem}
.tier .price{font-family:var(--font-display);font-size:2.2rem;font-weight:700;
             letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.tier .price small{font-size:.9375rem;font-weight:600;color:var(--muted-foreground)}
.tier .usd{font-size:.875rem;color:var(--muted-foreground)}
.tier ul{list-style:none;margin:.8rem 0 1.2rem;padding:0;flex:1}
.tier li{padding:.3rem 0 .3rem 1.6rem;position:relative;font-size:.9375rem}
.tier li::before{content:"✓";position:absolute;left:0;color:var(--pass);font-weight:700}
.tier li.no{color:var(--muted-foreground)}
.tier li.no::before{content:"—";color:var(--na)}
.cycle-toggle{display:inline-flex;gap:.4rem;align-items:center;background:var(--na-bg);
      border-radius:var(--radius-full);padding:.3rem}
.cycle-toggle button{border:none;background:transparent;font:inherit;font-weight:600;
      padding:.45rem 1.1rem;border-radius:var(--radius-full);cursor:pointer;
      min-height:38px;color:var(--muted-foreground);
      transition:background-color .16s ease,color .16s ease}
.cycle-toggle button[aria-pressed="true"]{background:var(--card);color:var(--foreground);
      box-shadow:var(--shadow-card)}

/* ---- report bento ----
   The report's own layout. The score is the answer to the question the visitor
   asked, so it takes the largest tile and is stated in a sentence as well as a
   number — a bare "78%" invites the reader to supply their own meaning. */
.bento__hero{display:grid;grid-template-columns:auto 1fr;gap:1.75rem;align-items:center;
             margin:1.4rem 0 1.2rem}
.ring-wrap{position:relative;width:150px;height:150px;flex:none}
.ring{width:100%;height:100%;transform:rotate(-90deg)}
.ring__track{fill:none;stroke:var(--surface-2);stroke-width:10}
.ring__value{fill:none;stroke:var(--pass);stroke-width:10;stroke-linecap:round;
             stroke-dasharray:327;stroke-dashoffset:327;
             transition:stroke-dashoffset 1.1s cubic-bezier(.2,.7,.3,1)}
/* the dashoffset is set once by report.js; before that the ring reads as empty,
   which is a truthful placeholder rather than a wrong number */
.ring--pass .ring__value{stroke:var(--pass)}
.ring--review .ring__value{stroke:var(--review)}
.ring--fail .ring__value{stroke:var(--fail)}
.ring--na .ring__value{stroke:var(--na)}
.ring__label{position:absolute;inset:0;display:flex;flex-direction:column;
             align-items:center;justify-content:center;gap:.1rem}
.ring__num{font-family:var(--font-display);font-size:2.4rem;font-weight:700;
           line-height:1;font-variant-numeric:tabular-nums;color:var(--foreground)}
.ring__cap{font-family:var(--font-mono);font-size:.6875rem;letter-spacing:.08em;
           text-transform:uppercase;color:var(--muted-foreground)}
.bento__verdict{min-width:0}
.verdict{font-family:var(--font-display);font-size:1.1875rem;font-weight:600;
         line-height:1.3;margin:0 0 .4rem;letter-spacing:-.01em}
.rep-title{font-size:1.5rem;word-break:break-all;margin:0 0 .3rem}
.rep-meta{margin:0}
.rep-dupes{margin:.3rem 0 0}

/* ---- severity strip ---- */
.sev-strip{list-style:none;margin:0;padding:0;display:grid;
           grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.8rem}
.sev-strip li{border:1px solid var(--border);border-radius:var(--radius-sm);
              padding:.8rem .9rem;background:var(--card)}
.sev-strip .n{font-family:var(--font-display);font-size:1.6rem;font-weight:700;
              line-height:1;font-variant-numeric:tabular-nums;display:block}
.sev-strip .k{font-family:var(--font-mono);font-size:.75rem;letter-spacing:.07em;
              text-transform:uppercase;color:var(--muted-foreground);display:block;
              margin-top:.3rem}
.sev--critical .n{color:var(--fail)}
.sev--serious .n{color:var(--fail)}
.sev--moderate .n{color:var(--review)}
.sev--minor .n{color:var(--muted-foreground)}

/* ---- table filters ---- */
.filters{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin:1.1rem 0 .3rem}
.filters__h{margin:0;font-size:.9375rem}
.filters__set{display:flex;gap:.4rem;flex-wrap:wrap}
.filters__count{margin:0;font-size:.875rem;color:var(--muted-foreground);
                font-variant-numeric:tabular-nums}
.fbtn{min-height:44px;border:1px solid var(--border);background:var(--card);
      border-radius:var(--radius-full);padding:.35rem .85rem;font:inherit;
      font-size:.8125rem;font-weight:600;cursor:pointer;
      display:inline-flex;align-items:center;gap:.4rem;
      transition:background-color .16s ease,border-color .16s ease,color .16s ease}
.fbtn:hover{border-color:var(--border-strong)}
.fbtn[aria-pressed="true"]{background:var(--foreground);color:var(--card);
                            border-color:var(--foreground)}
.fbtn .dot{width:.5rem;height:.5rem;border-radius:50%;flex:none}

/* Severity, in a table cell. Quieter than a badge: it is context for the
   outcome, not the outcome itself, and the outcome already has a badge. */
.sev-tag{font-family:var(--font-mono);font-size:.75rem;letter-spacing:.05em;
         text-transform:uppercase;color:var(--muted-foreground)}
.sev-tag.sev--critical,.sev-tag.sev--serious{color:var(--fail)}
.sev-tag.sev--moderate{color:var(--review)}

/* An expanded failing row. One extra <tr> rather than a nested table, so the
   row keeps its place in the coverage document it belongs to. */
tr.row--fail>td{background:var(--fail-bg)}
tr.row-detail>td{background:var(--card);padding:0;border-bottom:1px solid var(--border)}
.row-detail__in{padding:.9rem 1rem}
.row-detail__why{font-weight:600;margin:0 0 .5rem;color:var(--fail)}
.sel-row{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;margin:0 0 .5rem}
.sel-row code{flex:1;min-width:0;overflow-wrap:anywhere;background:var(--na-bg)}
.copy-btn{border:1px solid var(--border);background:var(--card);border-radius:var(--radius-sm);
          padding:.3rem .7rem;font:inherit;font-size:.8125rem;cursor:pointer;min-height:34px;
          white-space:nowrap}
.copy-btn:hover{background:var(--surface-2)}
.row-toggle{border:0;background:transparent;font:inherit;font-weight:600;font-size:.875rem;
            color:var(--accent-strong);cursor:pointer;padding:.15rem 0;
            text-decoration:underline;text-underline-offset:2px}

/* ---- findings summary (the report's default view) ----
   The main report stays short so the reader reaches the bottom quickly: outcome
   counts, the top five failing checkpoints, and one link to the detailed list.
   Nothing expands here — that lives behind ?view=findings. */
.find-summary-count{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:.6rem 0 1rem}
.find-chip{display:inline-flex;align-items:center;gap:.35rem;padding:.3rem .7rem;
        border:1px solid var(--border);border-radius:var(--radius-full);
        font-size:.875rem;color:var(--muted-foreground);background:var(--card)}
.find-chip strong{color:var(--foreground);font-variant-numeric:tabular-nums}
a.find-chip{cursor:pointer}
a.find-chip:hover{border-color:var(--border-strong);color:var(--foreground)}
.find-chip--fail{border-color:var(--fail-border);background:var(--fail-bg);color:var(--fail)}
.find-chip--fail strong{color:var(--fail)}
.find-chip--needs-review{border-color:var(--review-border);background:var(--review-bg);color:var(--review)}
.find-chip--needs-review strong{color:var(--review)}
.find-summary-total{color:var(--muted-foreground);font-size:.875rem;margin-left:.25rem}
.find-top{list-style:none;margin:0 0 1.1rem;padding:0;display:grid;gap:.5rem}
.find-top__item{display:flex;align-items:center;gap:.7rem;padding:.6rem .8rem;
        border:1px solid var(--border);border-left:3px solid var(--fail);
        border-radius:var(--radius-sm);background:var(--card)}
.find-top__rank{flex:none;width:1.7rem;height:1.7rem;display:inline-flex;align-items:center;
        justify-content:center;border-radius:50%;background:var(--fail-bg);color:var(--fail);
        font-weight:700;font-size:.8125rem;font-variant-numeric:tabular-nums}
.find-top__main{flex:1;min-width:0;line-height:1.4}
.find-top__meta{flex:none;color:var(--muted-foreground);font-size:.8125rem;
        font-variant-numeric:tabular-nums;white-space:nowrap}
.find-summary-cta{margin:.2rem 0 0}
@media(max-width:640px){
  .find-top__item{flex-wrap:wrap}
  .find-top__meta{white-space:normal}
}

/* ---- callouts ----
   A disclosure about who can read the report was rendered as .hint, the same
   weight as "e.g. www.example.com". It is a security boundary, so it gets the
   same visual weight as one. */
.callout{display:flex;gap:.7rem;align-items:flex-start;border-radius:var(--radius-sm);
         padding:.8rem 1rem;font-size:.9375rem;margin:1rem 0 0;
         border:1px solid var(--border)}
.callout--warn{background:var(--review-bg);border-color:var(--review-border);
               color:var(--foreground)}

/* The "what this report is and is not" block was three paragraphs that restated, in
   order, what three earlier sections of the same page had already said in more words.
   A list is the honest shape for four standalone constraints: each one is read on its
   own, none of them is a narrative. */
.method-list{margin:0;padding-left:1.3rem}
.method-list li{margin:.5rem 0}
.method-list li::marker{color:var(--accent-strong)}

@media (max-width: 640px){
  .bento__hero{grid-template-columns:1fr;justify-items:center;text-align:center}
  .bento__verdict{text-align:left}
}

.grid-3{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:1.3rem}
.feature{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);
         padding:1.4rem;box-shadow:var(--shadow-card);
         transition:box-shadow .16s ease,transform .16s ease}
.feature:hover{box-shadow:var(--shadow-card-hover);transform:translateY(-2px)}
.feature .f-icon{color:var(--accent-strong);margin-bottom:.6rem;line-height:0}
.feature .f-icon svg{width:1.5rem;height:1.5rem}
.feature h3{margin:.2rem 0 .4rem}
.feature p{margin:0;color:var(--muted-foreground);font-size:.9375rem}
.steps{counter-reset:step;display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:1.3rem}
.step{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-lg);
      padding:1.4rem;box-shadow:var(--shadow-card);
      transition:box-shadow .16s ease,transform .16s ease}
.step:hover{box-shadow:var(--shadow-card-hover);transform:translateY(-2px)}
.step::before{counter-increment:step;content:counter(step);display:inline-flex;align-items:center;
      justify-content:center;width:2.1rem;height:2.1rem;border-radius:50%;
      background:var(--accent);color:var(--on-accent);font-family:var(--font-display);
      font-weight:700;margin-bottom:.6rem}

.step h3{margin:.2rem 0 .4rem}
.step p{margin:0;color:var(--muted-foreground);font-size:.9375rem}
.faq details{background:var(--card);border:1px solid var(--border);
             border-radius:var(--radius-sm);padding:.4rem 1rem;margin:.6rem 0}
.faq summary{padding:.55rem 0}
.disclaimer{background:var(--review-bg);border:1px solid var(--review-border);
      border-radius:var(--radius-lg);padding:1rem 1.2rem;font-size:.9375rem}
.standing-disclaimer{background:var(--review-bg);border:1px solid var(--review-border);
      padding:.6rem 1rem;font-size:.875rem;border-radius:var(--radius-sm);margin:0 0 1.4rem}
.lead-status{font-size:.9375rem;margin-top:.6rem}
.lead-status.ok{color:var(--pass);font-weight:600}
.lead-status.err{color:var(--fail)}
.form-status{font-size:.9375rem;margin-top:.6rem;min-height:1.2em}
.form-status.ok{color:var(--pass);font-weight:600}
.form-status.err{color:var(--fail)}

/* ---- professional service request form (services.html) ----
   One form instead of two competing ones: the service is a radio choice, so the
   fields and the validation live in one place. The native radio stays visible
   and is the non-colour selection indicator; the card border only reinforces it. */
.request-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(270px,1fr);
        gap:1.4rem;align-items:start}
.request-card{margin-bottom:0}
.service-choice{border:0;padding:0;margin:0 0 1.2rem;min-width:0}
.service-choice legend{font-weight:600;padding:0;margin-bottom:.6rem}
.choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.8rem}
.choice-card{display:flex;align-items:flex-start;gap:.7rem;padding:1rem;
        border:1px solid var(--input);border-radius:var(--radius-sm);background:var(--card);
        cursor:pointer;transition:border-color .16s ease,background .16s ease}
.choice-card:hover{border-color:var(--border-strong);background:var(--surface)}
.choice-card input[type=radio]{width:20px;height:20px;margin:.25rem 0 0;flex:none;
        accent-color:var(--accent-strong)}
.choice-card:focus-within{outline:3px solid var(--ring);outline-offset:2px}
.choice-card.is-selected{border-color:var(--accent-strong);background:var(--accent-soft);
        box-shadow:0 0 0 1px var(--accent-strong)}
.choice-card__icon{display:inline-flex;flex:none;color:var(--accent-strong)}
.choice-card__icon svg{width:1.5rem;height:1.5rem}
.choice-card__body{display:block;min-width:0}
.choice-card__title{display:block;font-weight:600;line-height:1.35}
.choice-card__desc{display:block;margin-top:.2rem;color:var(--muted-foreground);
        font-size:.9375rem;line-height:1.5}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem 1.1rem;
        margin-top:1.1rem}
.field{display:flex;flex-direction:column;min-width:0}
.field--full{grid-column:1/-1}
.field label{margin-bottom:.35rem}
.field .hint{margin:.35rem 0 0}
.field-error{color:var(--fail);font-weight:600;font-size:.875rem;margin:.35rem 0 0}
.form-summary{padding:.9rem 1rem;margin:1rem 0;border:1px solid var(--fail-border);
        border-radius:var(--radius-sm);background:var(--fail-bg);color:var(--fail-strong)}
.form-summary h3{margin:0 0 .4rem;font-size:1rem}
.form-summary ul{margin:0;padding-left:1.1rem}
.form-summary a{color:var(--fail-strong);font-weight:600}
.request-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1rem;margin-top:1.2rem}
.request-actions .btn{min-height:44px}
.request-aside{display:grid;gap:1.2rem}
.request-aside .card{margin-bottom:0}
.form-success{padding:1rem 1.1rem;border:1px solid var(--pass-border);
        border-radius:var(--radius-sm);background:var(--pass-bg)}
.form-success h2{font-size:1.25rem}
@media(max-width:900px){
  .request-layout{grid-template-columns:1fr}
}
@media(max-width:640px){
  .form-grid{grid-template-columns:1fr}
  .choice-grid{grid-template-columns:1fr}
}
@media(forced-colors:active){
  .choice-card.is-selected{outline:2px solid Highlight;outline-offset:1px}
}
.bar{background:var(--na-bg);border-radius:var(--radius-full);height:12px;overflow:hidden}
.bar>span{display:block;height:100%;background:var(--accent);
          transition:width .4s ease}

/* ---- scan scope (site-audit) ---- */
.scope-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(208px,1fr));gap:.9rem}
/* A8: equal-height tiles — the header sits at the top and the field is pinned
   to the bottom of every tile in a row, so copy of uneven length cannot open
   dead gaps or shove one input off the shared baseline. */
.scope-tile{border:1px solid var(--border);border-radius:var(--radius-sm);
            padding:1rem 1.1rem;background:var(--card);
            display:flex;flex-direction:column;justify-content:space-between;
            height:100%;gap:.4rem}
.scope-tile .s-lbl{font-weight:600;display:block;margin-bottom:.5rem}
.scope-tile .s-desc{font-size:.8125rem;color:var(--muted-foreground);margin:.55rem 0 0;
            order:1;line-height:1.5}
/* A3: the number inputs land on the same pixel baseline across the grid. The
   description is ordered above the field and the auto top margin pins the field
   to the tile bottom; equal tile heights then put every input on one line.
   (Order is visual only — DOM, tab and AT order are unchanged.) */
.scope-tile input[type=number]{width:100%;max-width:7.5rem;order:2;margin-top:auto}
.scope-tile .badge{vertical-align:1px;margin-left:.3rem}
/* A3: the badge is decoupled from the label into its own header row — flex,
   baseline-aligned, badge on the same line as the heading. flex-wrap lets the
   badge drop under the label when a narrower grid track cannot hold both on
   one line — space-between without wrap pushed the badge 14px past the tile. */
.scope-tile__header{display:flex;align-items:baseline;justify-content:space-between;
            gap:.5rem;min-height:2rem;flex-wrap:wrap}
.scope-tile__header .s-lbl{margin-bottom:0}
/* A4/A5: two-column row — a 24×24 native checkbox beside a text stack — inside
   a 44px label. The badge rides inline after the label text. */
.scope-checkbox-row{display:flex;align-items:center;gap:.75rem;min-height:44px;
            cursor:pointer;font-weight:400;margin:0}
/* 24×24, not 20×20: the WCAG 2.5.8 detector floor is 24px, and eight of these
   checkboxes sat one resize below it. The 44px label keeps the tap target. */
.scope-checkbox-row input[type=checkbox],.check-box{width:24px;height:24px;
            min-width:24px;min-height:24px;flex:none;margin:0}
.scope-checkbox-row__text{display:flex;align-items:center;flex-wrap:wrap;
            gap:.1rem .35rem;min-width:0}
/* The report page's .inline-label checkbox (keyboard "issues only") gets the
   same 24px floor; the two site-audit checkboxes now use .scope-checkbox-row. */
.inline-label input[type=checkbox]{width:24px;height:24px;min-width:24px;min-height:24px}
.scope-note{display:flex;gap:.6rem;align-items:flex-start;background:var(--accent-soft);
            border:1px solid var(--border);border-radius:var(--radius-sm);
            padding:.75rem .95rem;font-size:.875rem;margin:0 0 1rem}
.scope-note .lock-icon{font-size:1.05rem;line-height:1.3}

.auth-panel{max-width:26rem;margin:1.6rem auto}
.auth-panel h1{font-size:1.3rem}
.auth-panel input{width:100%}
/* Continue with Google: the one .btn variant that stays light in light mode,
   matching the Google brand button convention. Declared after .btn so these
   win the background/colour/border cascade at equal specificity. */
.btn-google{background:#fff;color:var(--foreground);
        border:1px solid var(--border);font-weight:600}

/* ---- evidence rail shell ----
   The app shell is main content plus a sticky evidence rail that appears from
   1024px; below that the rail is display:none and the masthead nav is the one
   navigation surface, so the same links are never rendered twice to a phone.
   Every value here comes from tokens.css — no palette, radius or shadow is
   declared in this file. Sticky needs the flex alignment or the rail would
   stretch with the row and never move. */
.app-shell{display:flex;gap:1.5rem;align-items:flex-start;min-width:0}
.app-shell>main{min-width:0;flex:1}

.evidence-rail{display:none}
@media(min-width:1024px){
  .evidence-rail{display:block;position:sticky;top:5rem;align-self:flex-start;
        width:18rem;flex:none;max-height:calc(100vh - 6rem);overflow-y:auto;
        background:var(--sidebar);border:1px solid var(--sidebar-border);
        border-radius:var(--radius-lg);padding:1rem}
}
.evidence-rail__title{font-family:var(--font-mono);font-size:.75rem;font-weight:500;
        letter-spacing:.12em;text-transform:uppercase;color:var(--muted-foreground);
        margin:0 0 .5rem}

/* Rail items: the Evidence Desk rows are anchors carrying an icon, a label
   and a detail line. The resting colour has to be the sidebar foreground —
   an anchor's default accent blue would make every row read as selected,
   and the active tint below would mean nothing. */
.rail-item{display:flex;gap:.6rem;align-items:center;min-height:44px;
        padding:.5rem .75rem;border-radius:var(--radius-sm);
        text-decoration:none;color:var(--sidebar-foreground)}
.rail-item+.rail-item{margin-top:.15rem}
.rail-item:hover{background:var(--sidebar-accent);
        color:var(--sidebar-accent-foreground)}
.rail-item[aria-current="page"]{background:var(--primary-soft);
        color:var(--accent-strong)}
.rail-item__icon{flex:none;width:1rem;height:1rem}
.rail-item__body{min-width:0}
.rail-item__label{display:block;font-weight:600;font-size:.9375rem}
.rail-item__detail{display:block;font-size:.75rem;color:var(--muted-foreground)}

/* Plan usage: role="progressbar" sits on the card, the bar inside is
   decorative, and the rail's script writes the fill width alongside
   aria-valuenow so the visual and the announced value cannot disagree. */
.rail-usage{margin-top:1rem;padding:.8rem;background:var(--card);
        border:1px solid var(--sidebar-border);border-radius:var(--radius-sm)}
.rail-usage__label{display:block;font-family:var(--font-mono);font-size:.75rem;
        font-weight:500;letter-spacing:.12em;text-transform:uppercase;
        color:var(--muted-foreground)}
.rail-usage__value{display:block;margin-top:.3rem;font-weight:600;
        color:var(--foreground);font-variant-numeric:tabular-nums}
.rail-usage__bar{display:block;height:.5rem;margin-top:.5rem;overflow:hidden;
        border-radius:var(--radius-full);background:var(--surface-2);
        border:1px solid var(--input)}
.rail-usage__fill{display:block;height:100%;width:0;background:var(--accent);
        transition:width .4s ease}

.rail-footer{margin-top:1rem;padding-top:.8rem;display:flex;flex-direction:column;
        gap:.15rem;border-top:1px solid var(--sidebar-border)}
.rail-footer a{display:flex;align-items:center;justify-content:space-between;
        gap:.5rem;min-height:44px;padding:.4rem .75rem;
        border-radius:var(--radius-sm);text-decoration:none;
        font-weight:600;font-size:.9375rem;color:var(--sidebar-foreground)}
.rail-footer a:hover{background:var(--sidebar-accent);
        color:var(--sidebar-accent-foreground)}
.rail-footer svg{width:1rem;height:1rem;flex:none}
.rail-logout{display:flex;align-items:center;min-height:44px;padding:.4rem .75rem;
        border:0;border-radius:var(--radius-sm);background:transparent;
        font:inherit;font-weight:600;font-size:.9375rem;color:var(--sidebar-foreground);
        cursor:pointer;text-align:left}
.rail-logout:hover{background:var(--sidebar-accent);color:var(--sidebar-accent-foreground)}
/* On workspace pages the rail owns Log out on desktop; the header fallback stays
   for mobile, where the rail is hidden. */
@media(min-width:1024px){
  body.has-rail.auth-signed-in #ap-auth-slot{display:none}
}

/* Masthead for the shell pages: the glass recipe, spec'd at 64px with a 12px
   blur (AC-AP8.1). .site-header is left untouched so pages that have not
   adopted the shell yet keep the header they were built with. */
.masthead{position:sticky;top:0;z-index:30;
        background:color-mix(in srgb, var(--background) 82%, transparent);
        -webkit-backdrop-filter:blur(12px) saturate(180%);
        backdrop-filter:blur(12px) saturate(180%);
        border-bottom:1px solid var(--border)}
@supports not (backdrop-filter:blur(1px)){
  .masthead{background:var(--background)}
}
.masthead .container{display:flex;align-items:center;gap:1.4rem;min-height:4rem;
        max-width:none;width:100%;
        padding-top:.5rem;padding-bottom:.5rem}
/* Brand subtext: a block inside the logo's text span, so it drops under the
   wordmark without restructuring .logo for every page that uses it. */
.masthead__sub{display:block;font-size:.6875rem;color:var(--muted-foreground)}

/* Masthead search: the label is the 44px control and carries the border, so
   the input inside sheds the form-control chrome. Hidden below 1024px — the
   same width the evidence rail appears — and margin:0 undoes the global
   label margin so the box centres in the masthead row. */
.masthead__search{display:none;height:44px;margin:0;align-items:center;gap:.5rem;
        border:1px solid var(--border);border-radius:var(--radius-lg);
        padding:0 .75rem}
@media(min-width:1024px){
  .masthead__search{display:flex}
}
.masthead__search input{border:0;min-height:44px;background:transparent}

.page-header{display:flex;align-items:flex-end;justify-content:space-between;
        gap:1rem;flex-wrap:wrap;margin:1.5rem 0 1.4rem}
.page-header__text{min-width:0}
.page-header h1{margin:0}
.page-header .lede{margin:.3rem 0 0}
.page-header__actions{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}

/* Metric strip: two columns until xl, then four across — the four-card strip
   reads as one line only when there is room for four readable cards. */
.metric-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;
        margin:0 0 1.4rem}
@media(min-width:760px){
  .metric-strip{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(min-width:1280px){
  .metric-strip{grid-template-columns:repeat(5,minmax(0,1fr))}
}
.metric-card{background:var(--card);border:1px solid var(--border);
        border-radius:var(--radius-lg);box-shadow:var(--shadow-card);
        padding:1rem 1.1rem;min-width:0}
.metric-card__label{display:block;font-family:var(--font-mono);font-size:.8125rem;
        font-weight:500;letter-spacing:.06em;text-transform:uppercase;
        color:var(--muted-foreground)}
.metric-card__value{display:block;margin-top:.15rem;font-family:var(--font-display);
        font-size:1.75rem;font-weight:700;line-height:1.15;
        font-variant-numeric:tabular-nums;color:var(--foreground)}
.metric-card__value--fail{color:var(--fail)}

.section-title-bar{display:flex;align-items:center;justify-content:space-between;
        gap:.75rem;flex-wrap:wrap;margin:1.4rem 0 .8rem}
.section-title-bar h2,.section-title-bar .section-title{margin:0}

/* StatusBadge: the tint carries the state in normal mode, and the 1px
   currentColor border plus the dot carry it again when the tint is thrown
   away (forced-colors). Pass, Fail, Review, Info, Brand. */
.status-badge{display:inline-flex;align-items:center;gap:.4rem;
        border:1px solid currentColor;border-radius:var(--radius-full);
        padding:.16rem .65rem;font-family:var(--font-mono);font-size:.8125rem;
        font-weight:500;letter-spacing:.02em;line-height:1.5}
.status-badge::before{content:"";width:1.5ex;height:1.5ex;flex:none;
        background:currentColor;border-radius:50%}
.status-badge--pass{color:var(--pass);background:var(--pass-bg)}
.status-badge--fail{color:var(--fail);background:var(--fail-bg)}
.status-badge--review{color:var(--review);background:var(--review-bg)}
.status-badge--info{color:var(--na);background:var(--na-bg)}
.status-badge--brand{color:var(--accent-strong);background:var(--accent-soft)}

.run-history,.export-card{background:var(--card);border:1px solid var(--border);
        border-radius:var(--radius-lg);box-shadow:var(--shadow-card);
        padding:1.5rem;margin-bottom:1.4rem;min-width:0}

/* Dashboard split: run history takes the wider column and the executive pack
   the narrower one from 1280px; below that they stack in DOM order. */
.dash-split{display:grid;gap:1.4rem}
@media(min-width:1280px){
  .dash-split{grid-template-columns:3fr 2fr}
}
.run-chip{display:grid;place-items:center;width:2.25rem;height:2.25rem;
        border-radius:var(--radius-sm);background:var(--accent-soft);
        font-family:var(--font-mono);font-size:.75rem;color:var(--accent-strong)}
.run-group{list-style:none;border:1px solid var(--border);border-radius:var(--radius-sm);
           padding:.75rem .85rem;margin:0 0 .7rem;background:var(--surface)}
.run-group__head{display:flex;justify-content:space-between;gap:.8rem;flex-wrap:wrap;
                 align-items:baseline;margin-bottom:.35rem}
.run-group__runs{list-style:none;padding:0;margin:0}
.run-group__run{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap;
                padding:.5rem 0;border-top:1px solid var(--border)}
.run-group__run-main{flex:1 1 14rem;min-width:0;overflow-wrap:anywhere}
.run-group__empty{padding:.45rem 0 0;font-size:.92rem}
.exec-pack{background:var(--card);border:1px solid var(--border);
        border-radius:var(--radius-lg);box-shadow:var(--shadow-card);
        padding:1.5rem;margin-bottom:1.4rem;min-width:0}

/* POUR principle bars: same recipe as .bar with a 3:1 track boundary. */
.principle-bar{height:.75rem;border-radius:var(--radius-full);
        background:var(--surface-2);border:1px solid var(--input);
        overflow:hidden;margin:.55rem 0}
.principle-bar>span{display:block;height:100%;background:var(--accent);
        transition:width .4s ease}

.findings-accordion details{background:var(--card);border:1px solid var(--border);
        border-radius:var(--radius-sm);margin:.5rem 0}
.findings-accordion summary{padding:.6rem .8rem}
.findings-accordion details[open]>summary{border-bottom:1px solid var(--border)}
.findings-accordion .code-block{margin:.8rem}

.code-block{font-family:var(--font-mono);font-size:.8125rem;line-height:1.55;
        background:var(--code);color:var(--code-foreground);
        border-radius:var(--radius-base);padding:.85rem 1rem;margin:.6rem 0;
        overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere}
/* A code element inside a code-block must not paint the inline-code chip: the
   bare code rule's --na-bg background slots itself between the block's designed
   pair and drops the snippet text to 1.28:1 — the axe color-contrast finding
   (CP-02) on /keyboard-focus-indicator. Transparent hands the text back to
   --code-foreground on --code, the pairing tokens.json already asserts at 4.5:1
   (12.55:1 measured). padding:0 keeps every wrapped line aligned with the
   block's own padding instead of indenting the first fragment. */
.code-block code{background:transparent;padding:0}

/* A10: the download row wraps 2×2 below 768px instead of 3-2-1. The (0,2,0)
   specificity also out-ranks .btn-sm's 38px min-height, so every export button
   stays a 44px target without touching report.js. */
.export-toolbar{display:flex;flex-wrap:wrap;gap:.5rem}
.export-toolbar .btn{min-height:44px}
@media(max-width:767px){
  .export-toolbar .btn{flex:1 1 calc(50% - .5rem);min-height:44px;
        justify-content:center;text-align:center}
}

/* A1: the URL row stacks at 640px — the input takes the whole width instead of
   collapsing towards its min-width, and the button becomes a full-width row. */
.input-action-group{display:flex;flex-wrap:wrap;gap:.7rem}
.input-action-group input{flex:1;min-width:0}
@media(max-width:640px){
  .input-action-group input{flex:1 1 100%;width:100%}
  .input-action-group .btn{width:100%;margin-top:.75rem}
}

/* A7 + the inline-link tap floor. Links that carry long addresses wrap inside
   themselves, and every inline text link gets at least a 24px bounding box —
   the WCAG 2.5.8 floor for inline links; buttons and inputs stay at 44px. */
.tap-link,.hint a,.paywall-row__text a{display:inline-block;min-height:24px;
        line-height:1.5;padding-block:2px}
#contact-card a{overflow-wrap:anywhere;word-break:break-word;display:inline-block;
        min-height:24px;line-height:1.5;padding-block:2px}
/* The empty state's inline link measured 83x21 — same floor, scoped to the
   non-button links of that card so the .btn beside it keeps its 44px height. */
#empty-state a:not(.btn){display:inline-block;min-height:24px;line-height:1.5;
        padding-block:2px}

/* ==========================================================================
   RESPONSIVE
   --------------------------------------------------------------------------
   The previous stylesheet had two @media rules and neither was a width query,
   so the header silently became a two-row block on a phone and there was no
   mobile navigation at all. Breakpoints follow the canonical site: 560 / 640 /
   900 / 1120, with the nav collapsing behind a disclosure at 900.
   ========================================================================== */

@media (max-width: 900px){
  .site-header .container{flex-wrap:wrap;row-gap:.5rem}
  .nav-toggle{display:inline-flex}
  .site-nav{display:none;order:3;width:100%;margin-left:0;
            padding:.5rem 0 .75rem;border-top:1px solid var(--border)}
  .site-nav.is-open{display:flex;flex-direction:column;align-items:stretch;gap:.15rem}
  .site-nav a,.site-nav .slot-link{padding:.6rem .75rem;width:100%}
  #ap-auth-slot{margin-left:0;margin-top:.4rem;padding-top:.5rem;
                border-top:1px solid var(--border);flex-wrap:wrap}
  .hero{padding:2.4rem 0 2.2rem}
  .issues-grid,.grid-3,.tier-grid,.steps{grid-template-columns:1fr}
  .kb-grid{grid-template-columns:1fr}
  .cta-banner,.paywall-row{flex-direction:column;align-items:flex-start}
}

@media (max-width: 640px){
  .section{padding:2rem 0}
  .card{padding:1.15rem;margin-bottom:1.1rem}
  .scanbox{padding:1rem}
  .scanbox .row{gap:.6rem}
  /* the URL field has to be allowed to shrink below its min-width or it forces
     a horizontal scrollbar at 320px */
  .scanbox input[type=text]{min-width:0;flex:1 1 100%}
  .scanbox .btn{width:100%}
  .trustline{gap:.75rem;font-size:.875rem}
  .score-grid{grid-template-columns:repeat(auto-fit,minmax(140px,1fr))}
  .tier{padding:1.3rem}
  .dash-top{flex-direction:column;align-items:stretch}
  .dash-actions .btn{flex:1 1 auto}
}

/* A2: score cards go single column at 480px and stay single column. The old
   400px two-column rule re-created the clipping it was meant to avoid, so it
   is gone — one column is the contract below 480px. */
@media(max-width:480px){
  .score-grid,#score-grid,#pour-grid{grid-template-columns:1fr}
}

@media (max-width: 400px){
  .tier .price{font-size:1.9rem}
}

/* ==========================================================================
   REDUCED MOTION
   --------------------------------------------------------------------------
   The old rule *slowed* the spinner to 2.5s, which is not the same as honouring
   the preference: someone who asked for less motion still gets a looping
   animation forever. Everything below stops instead of slowing.
   ========================================================================== */

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important;animation-iteration-count:1 !important;
    transition-duration:.001ms !important;scroll-behavior:auto !important}
  .btn:hover,.card:hover,.score:hover,.tier:hover,.feature:hover,.step:hover{transform:none}
  .spinner{border-top-color:var(--accent);animation:none;
           border-right-color:var(--accent);opacity:.9}
  /* the spinner still has to read as "working" without moving, so it becomes a
     static ring with a solid leading edge rather than disappearing */
  .bar>span,.principle-bar>span{transition:none}
}

/* ==========================================================================
   FORCED COLORS
   --------------------------------------------------------------------------
   Windows high contrast replaces the palette wholesale. Every hairline and
   tint in this file then disappears, so anything whose only boundary was a
   background colour has to be re-expressed with a system colour. This is the
   mode an accessibility tool is most likely to be run in, and it is the one
   most stylesheets skip.
   ========================================================================== */

@media (forced-colors: active){
  .card,.score,.tier,.feature,.step,.scope-tile,.faq details,.paywall,.cta-banner,
  .disclaimer,.standing-disclaimer,.issue-stat,.kb-fig{
    border:1px solid CanvasText;background:Canvas;color:CanvasText;
    box-shadow:none;forced-color-adjust:none}
  .badge,.tier-flag,.cycle-toggle,.chip{
    border:1px solid CanvasText;color:CanvasText;background:Canvas;
    forced-color-adjust:none}
  .badge.b-fail,.badge.b-review,.badge.b-na{border-color:CanvasText}
  .btn{border:1px solid ButtonText;color:ButtonText;background:ButtonFace;
       forced-color-adjust:none}
  .btn:hover{background:Highlight;color:HighlightText}
  .btn-outline{background:Canvas;color:LinkText}
  input,select,textarea{border:1px solid CanvasText;color:CanvasText;
                        background:Field;forced-color-adjust:none}
  [aria-invalid="true"]{border:2px solid CanvasText}
  :focus-visible{outline:3px solid Highlight;outline-offset:2px}
  .site-header,.masthead{background:Canvas;border-bottom:1px solid CanvasText;
               -webkit-backdrop-filter:none;backdrop-filter:none}
  .bar,.principle-bar{background:Canvas;border:1px solid CanvasText}
  .bar>span,.principle-bar>span{background:Highlight;
               forced-color-adjust:none}
  .site-nav a[aria-current="page"]{outline:1px solid CanvasText}
  .muted,.hint,.section-sub{color:CanvasText}
  .status-badge,.evidence-rail,.metric-card,.run-history,.export-card,
  .findings-accordion details,.code-block{
    border:1px solid CanvasText;background:Canvas;color:CanvasText;
    forced-color-adjust:none}
  .rail-item,.rail-usage,.metric-card,.dash-split>*{
    border:1px solid CanvasText;forced-color-adjust:none}
}

/* ==========================================================================
   PRINT
   --------------------------------------------------------------------------
   A report gets printed. Drop the chrome and flatten the shadows rather than
   spending a page of toner on a navigation bar.
   ========================================================================== */

@media print{
  .site-header,.site-footer,.masthead,.evidence-rail,.skip,#ap-auth-slot,.btn,
  .cta-banner,.paywall,
  .table-scroll button,.no-print{display:none !important}
  body{background:#fff;color:#000;font-size:11pt;padding-bottom:0}
  .card,.score,.tier,.disclaimer{border:1px solid #999;box-shadow:none;break-inside:avoid}
  a[href^="http"]::after{content:" (" attr(href) ")";font-size:.85em;color:#555;
                         word-break:break-all}
  h1,h2,h3{break-after:avoid}
  table{font-size:9pt}
}

