/* ==========================================================================
   SueShield — styles.css
   Design language: "the checkpoint" — bold geometric sans, deep-navy hero
   bands, shield-blue accents, rounded panels, checklist motifs. Deliberately
   distinct from any editorial/serif system. WCAG 2.2 AA contrast pairs.
   ========================================================================== */

:root {
  --bg: #F6F8FB;
  --bg-2: #EBF0F7;
  --ink: #0B2338;        /* 14.6:1 on bg */
  --ink-soft: #3C5065;   /* 7.4:1 */
  --shield: #1368A9;     /* logo blue — 4.9:1 on bg, white on it 4.9:1 */
  --shield-deep: #0B4C80;
  --navy: #082943;       /* wordmark navy */
  --mint-ink: #0E6B4F;   /* success text — 5.6:1 */
  --alert-ink: #8A4B00;
  --rule: #D3DCE6;
  --card: #FFFFFF;
  --hero-ink: #EAF2FA;   /* text on navy — 13.9:1 */
  --hero-sub: #B9CFE2;   /* 8.6:1 on navy */
  --focus: #C74E00;

  --font-display: "Archivo", "Arial Black", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", Arial, sans-serif;
  --font-mono: "Red Hat Mono", Consolas, Menlo, monospace;

  --measure: 66ch;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --s1: .5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2.5rem; --s5: 4rem; --s6: 6rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 1.06rem; line-height: 1.65; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.35rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
h4 { font-size: 1.02rem; }
p, ul, ol, dl { margin: 0 0 1em; max-width: var(--measure); }
li { margin-bottom: .35em; }
a { color: var(--shield-deep); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--navy); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
a:focus-visible, button:focus-visible { text-decoration: none; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--navy); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--r-sm) 0; font-family: var(--font-display); font-weight: 700; }
.skip-link:focus { left: 0; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

.container { max-width: 72rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2.5rem); }
.narrow { max-width: 48rem; }
.section { padding-block: var(--s6); }
.band-alt { background: var(--bg-2); }
.section-header { max-width: 48rem; margin-bottom: var(--s4); }
.kicker { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--shield-deep); margin-bottom: var(--s1); }

/* ---------- Header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: var(--s3); padding-block: .8rem; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand img { height: 44px; width: auto; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--rule); border-radius: var(--r-sm); padding: .6rem .9rem; font: inherit; font-family: var(--font-display); font-weight: 700; color: var(--ink); cursor: pointer; min-height: 44px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: .25rem 1.3rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-block; padding: .55rem .1rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; border-radius: 4px; }
.site-nav a:hover { color: var(--shield-deep); }
.site-nav a[aria-current="page"] { color: var(--shield-deep); box-shadow: inset 0 -3px 0 var(--shield); }

.btn { display: inline-block; background: var(--shield); color: #fff; font-family: var(--font-display); font-weight: 700; text-decoration: none; padding: .85rem 1.5rem; border-radius: 999px; border: 2px solid var(--shield); min-height: 44px; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--shield-deep); border-color: var(--shield-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--shield-deep); }
.btn-ghost:hover { background: var(--shield); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--navy); }
.btn-light:hover { background: var(--hero-sub); border-color: var(--hero-sub); color: var(--navy); }
.btn-outline-light { background: transparent; border-color: var(--hero-sub); color: var(--hero-ink); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- Dark hero band ---------- */
.hero { background: var(--navy); color: var(--hero-ink); padding-block: var(--s6); }
.hero h1 { color: #fff; }
.hero .lede { font-size: 1.24rem; color: var(--hero-sub); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s5); align-items: center; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.hero .kicker { color: #8FC1E8; }

/* Checkpoint panel (hero visual) */
.checkpoint { background: rgba(255,255,255,.06); border: 1px solid rgba(185,207,226,.35); border-radius: var(--r-lg); padding: var(--s3); }
.checkpoint h2 { color: #fff; font-size: 1.05rem; margin-bottom: var(--s2); }
.check-item { display: grid; grid-template-columns: 28px 1fr; gap: .7rem; align-items: start; padding-block: .55rem; border-bottom: 1px solid rgba(185,207,226,.22); }
.check-item:last-child { border-bottom: 0; }
.check-item .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--shield); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.check-item p { margin: 0; color: var(--hero-ink); font-size: .97rem; }
.check-item .sub { color: var(--hero-sub); font-size: .85rem; }

/* ---------- Pills / stats ---------- */
.pill-row { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pill { background: #fff; border: 1.5px solid var(--rule); border-radius: 999px; padding: .55rem 1.1rem; font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; color: var(--ink-soft); }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s3); }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--s3); }
.panel h3 { margin-top: 0; }
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
.panel .num-chip { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--bg-2); color: var(--shield-deep); font-family: var(--font-display); font-weight: 800; margin-bottom: var(--s2); }

/* Status levels */
.level { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--s3); margin-bottom: var(--s3); display: grid; grid-template-columns: auto 1fr; gap: var(--s3); align-items: start; }
.level-badge { width: 54px; height: 54px; border-radius: var(--r-md); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: #fff; background: var(--shield); }
.level.l2 .level-badge { background: var(--mint-ink); }
.level.l3 .level-badge { background: var(--navy); }
.level h3 { margin-bottom: .3em; }
.level .fineprint { background: var(--bg-2); border-radius: var(--r-sm); padding: var(--s2); font-size: .93rem; color: var(--ink-soft); margin-bottom: 0; }

/* Notices */
.callout { border: 1.5px solid var(--rule); border-radius: var(--r-md); background: #fff; padding: var(--s2) var(--s3); max-width: var(--measure); }
.callout p:last-child { margin-bottom: 0; }
.callout-blue { border-color: var(--shield); background: #EDF5FB; }
.callout-alert { border-color: var(--alert-ink); background: #FBF3E6; }

/* FAQ */
.faq details { border: 1px solid var(--rule); border-radius: var(--r-md); background: #fff; margin-bottom: var(--s1); max-width: 48rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: .95rem 1.15rem; list-style-position: inside; font-family: var(--font-display); font-size: .98rem; }
.faq summary:hover { color: var(--shield-deep); }
.faq details > div { padding: 0 1.15rem 1rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form-shell { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(1.25rem, 3vw, 2.5rem); max-width: 48rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s3); }
.form-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: var(--s2); }
.form-field.full { grid-column: 1 / -1; }
label { font-weight: 700; font-size: .97rem; }
.hint { font-size: .87rem; color: var(--ink-soft); margin: 0; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1.5px solid #6E8096; border-radius: var(--r-sm);
  padding: .68rem .8rem; min-height: 44px; width: 100%;
}
textarea { min-height: 7.5rem; resize: vertical; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: #B03000; border-width: 2px; }
.error-text { color: #B03000; font-weight: 700; font-size: .9rem; }
.required-mark { color: #B03000; }
.checkbox-row { display: grid; grid-template-columns: auto 1fr; gap: .7rem; align-items: start; max-width: var(--measure); margin-bottom: var(--s2); }
.checkbox-row input[type="checkbox"] { width: 24px; height: 24px; margin-top: .15rem; accent-color: var(--shield); }
.checkbox-row label { font-weight: 500; font-size: .96rem; }
.consent-frame { border: 2px solid var(--shield); border-radius: var(--r-md); padding: var(--s2) var(--s3); background: #EDF5FB; margin-bottom: var(--s2); }
.consent-frame p { font-size: .94rem; }
.error-summary { border-left: 6px solid #B03000; border-radius: var(--r-sm); background: #FCF1EC; padding: var(--s2) var(--s3); margin-bottom: var(--s3); }
.error-summary h2 { font-size: 1.05rem; margin-bottom: .4em; }
.error-summary ul { margin-bottom: 0; }
.error-summary a { color: #B03000; font-weight: 700; }
[hidden] { display: none !important; }
.tel-wrap { display: flex; align-items: center; gap: .5rem; }
.tel-wrap .tel-prefix { font-weight: 700; color: var(--ink-soft); }
.tel-wrap input { flex: 1; }
fieldset { border: 1.5px solid var(--rule); border-radius: var(--r-md); padding: var(--s2) var(--s3); margin: 0 0 var(--s2); }
legend { font-weight: 700; padding-inline: .4rem; }

/* ---------- Verify ---------- */
.verify-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--s2) var(--s3); align-items: end; }
.or-chip { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: .95rem; }
.verify-result { margin-block: var(--s4); }
.record-panel { background: #fff; border: 1.5px solid var(--rule); border-radius: var(--r-lg); padding: var(--s3); }
.record-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: var(--s2); border-bottom: 1px solid var(--rule); padding-bottom: var(--s2); margin-bottom: var(--s2); }
.record-id { font-family: var(--font-mono); font-size: .86rem; color: var(--ink-soft); }
.state-chip { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; color: #fff; background: var(--mint-ink); border-radius: 999px; padding: .35rem .9rem; white-space: nowrap; }
.state-chip.chip-caution { background: var(--alert-ink); }
.state-chip.chip-neutral { background: var(--navy); }
.sample-flag { display: inline-block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; background: var(--alert-ink); color: #fff; border-radius: var(--r-sm); padding: .35rem .9rem; margin-bottom: var(--s2); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: .5rem .6rem .5rem 0; border-bottom: 1px solid var(--rule); font-size: .96rem; vertical-align: top; }
.spec-table th { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; width: 34%; }
.record-panel .fineprint { font-size: .85rem; color: var(--ink-soft); border-top: 1px solid var(--rule); padding-top: var(--s2); margin: var(--s2) 0 0; }
.verify-page h2 { margin-top: var(--s5); }
.verify-page .callout { margin-top: var(--s4); }

/* Badges */
.badge-tile { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-lg); padding: var(--s3); text-align: center; }
.badge-tile img { width: 210px; }
.badge-tile figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: var(--s1); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--hero-ink); margin-top: var(--s6); }
.site-footer a { color: #A9CBE7; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: var(--s4); padding-block: var(--s5) var(--s3); }
.footer-grid h2 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hero-sub); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-bottom { border-top: 1px solid rgba(185,207,226,.3); padding-block: var(--s3); font-size: .9rem; }
.footer-bottom p { max-width: none; color: var(--hero-sub); }

/* ---------- Legal ---------- */
.legal-page h2 { margin-top: var(--s4); }
.legal-meta { font-family: var(--font-mono); font-size: .84rem; color: var(--ink-soft); }
.dispute-box { border: 2px solid var(--alert-ink); background: #FBF3E6; border-radius: var(--r-md); padding: var(--s2) var(--s3); font-weight: 600; max-width: var(--measure); }

/* ---------- Motion & prefs ---------- */
@media (prefers-reduced-motion: no-preference) {
  a, .btn, .site-nav a, input, select, textarea { transition: color 130ms ease, background-color 130ms ease, border-color 130ms ease; }
  html:focus-within { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .state-chip, .level-badge, .check-item .tick { forced-color-adjust: none; background: CanvasText; color: Canvas; }
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s3); }
  .form-grid, .verify-grid { grid-template-columns: 1fr; }
  .or-chip { padding: 0; text-align: center; }
  .level { grid-template-columns: 1fr; }
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; width: 100%; }
  .site-nav.open { display: block; }
  .header-inner { flex-wrap: wrap; }
  .site-nav ul { flex-direction: column; gap: 0; padding-block: var(--s1); }
  .site-nav a { display: block; padding: .7rem .25rem; min-height: 44px; }
  .no-js .nav-toggle { display: none; }
  .no-js .site-nav { display: block; }
}
@media (max-width: 480px) {
  .hero-ctas .btn { width: 100%; text-align: center; }
}
@media print {
  .site-header, .site-footer, .hero-ctas, .nav-toggle { display: none; }
}
