/* ============================================================
   Hani Web Quality & QA
   Redesign: precise modern-inspection language.
   Native CSS, zero external requests, light + dark via tokens.

   Radius scale (locked, documented):
     chips 8px / inputs 10px / buttons 12px / cards + panels 16px

   Accent: single desaturated inspection green, one accent per page,
   identical in every section (rate + severity tags included).
   ============================================================ */

:root {
  color-scheme: light dark;

  /* --- surfaces + ink (light: warm bone / cream / oatmeal paper) ---
     Owner override: warm the cool paper. Family = deep pine on bone.
     Locked scale, ~2 luminance steps apart:
       surface (raised) lighter than bg, surface-2 (tinted band) deepest. */
  --bg: #f4f1ea;              /* page paper: bone, clearly not white */
  --surface: #fcfbf7;         /* cards, form panel, findings block: raised cream */
  --surface-2: #eae5d9;       /* tinted sections, footer: oatmeal band */
  --ink: #211d19;             /* warm off-black, pairs with the wood-neutral family */
  --ink-2: #3d3830;
  --muted: #5b564c;
  --line: #e2ded4;            /* warm hairline */
  --line-strong: #c9c3b4;

  /* --- accent (one green, locked) --- */
  --accent: #146b50;          /* AA on --bg and --surface as text; AA as button bg with near-white text */
  --accent-strong: #0e5a44;
  --on-accent: #f4f8f5;
  --accent-soft: #e4ebe1;     /* soft sage tint: bridges accent and cream, visible on paper */

  /* --- featured panel (deep pine, brand family) --- */
  --panel: #10312a;
  --panel-2: #0d2721;
  --panel-ink: #eaf4ee;
  --panel-muted: #9dbfb0;
  --panel-accent: #7ecfb2;
  --panel-line: rgba(234, 244, 238, .16);

  /* --- severity --- */
  --sev-blocker: #b0331f;
  --sev-major: #8a6410;
  --sev-minor: var(--muted);
  --sev-polish: var(--accent-strong);

  /* --- misc --- */
  --placeholder: #6d675f;   /* warm grey-green, 5.0:1 on the cream input bg (AA verified) */
  --todo: #903a2b;
  --shadow-tint: 40, 34, 24;  /* shadows tinted warm to the paper hue */

  /* --- type --- */
  --sans: system-ui, -apple-system, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", "Cascadia Mono", "Segoe UI Mono", Consolas, Menlo, monospace;

  /* --- rhythm --- */
  --measure: 62ch;
  --container: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(3.5rem, 9vw, 6.75rem);

  /* --- radius scale (locked) --- */
  --r-chip: 8px;
  --r-input: 10px;
  --r-btn: 12px;
  --r-card: 16px;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* Dark tokens apply when: the user picked dark (data-theme="dark"),
   OR no saved choice exists and the system prefers dark (media query,
   `html:not([data-theme="light"])` also covers JS-off auto mode). */

html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #141416;
  --surface: #1d1d21;
  --surface-2: #232327;
  --ink: #ececef;
  --ink-2: #c4c4cc;
  --muted: #9a9aa3;
  --line: #2b2b31;
  --line-strong: #3b3b43;

  --accent: #3fa383;         /* AA with near-black button text; AA as accent text on dark surfaces */
  --accent-strong: #4db892;
  --on-accent: #0d1310;
  --accent-soft: #1a2c26;

  --panel: #16382e;
  --panel-2: #122f26;
  --panel-ink: #e6f2ec;
  --panel-muted: #a3c4b6;
  --panel-accent: #8fd8ba;
  --panel-line: rgba(230, 242, 236, .16);

  --sev-blocker: #f79585;
  --sev-major: #d6b96b;
  --sev-minor: var(--muted);
  --sev-polish: var(--accent-strong);

  --placeholder: #94949e;
  --todo: #f39684;
  --shadow-tint: 0, 0, 0;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;

    --bg: #141416;
    --surface: #1d1d21;
    --surface-2: #232327;
    --ink: #ececef;
    --ink-2: #c4c4cc;
    --muted: #9a9aa3;
    --line: #2b2b31;
    --line-strong: #3b3b43;

    --accent: #3fa383;
    --accent-strong: #4db892;
    --on-accent: #0d1310;
    --accent-soft: #1a2c26;

    --panel: #16382e;
    --panel-2: #122f26;
    --panel-ink: #e6f2ec;
    --panel-muted: #a3c4b6;
    --panel-accent: #8fd8ba;
    --panel-line: rgba(230, 242, 236, .16);

    --sev-blocker: #f79585;
    --sev-major: #d6b96b;
    --sev-minor: var(--muted);
    --sev-polish: var(--accent-strong);

    --placeholder: #94949e;
    --todo: #f39684;
    --shadow-tint: 0, 0, 0;
  }
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

main { flex: 1 0 auto; }

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, p, ul, ol, dl, dd, blockquote, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--accent-strong); text-underline-offset: .18em; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent); color: var(--on-accent); }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- typography ---------- */
.display {
  font-weight: 700;
  font-size: clamp(2.35rem, 6vw, 4.3rem);
  line-height: 1.14;               /* italic descender clearance (y, p) */
  letter-spacing: -0.03em;
  text-wrap: balance;
  padding-block-end: .06em;        /* reserve for italic descenders */
}

.display em {
  font-style: italic;
  color: var(--accent-strong);
}

.h2 {
  font-weight: 700;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  text-wrap: balance;
  max-width: 26em;
}

.h3 {
  font-weight: 650;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

p { max-width: var(--measure); }

.section-lead {
  font-size: 1.1rem;
  color: var(--muted);
  margin-top: .9em;
  margin-bottom: 1rem;
}
.section-lead--tight { margin-top: 1.4em; }

.footnote {
  font-size: .8rem;
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: .01em;
  margin-top: 1.2em;
}

.skip-link {
  position: absolute;
  left: .75rem;
  top: -3.5rem;
  z-index: 200;
  background: var(--ink);
  color: var(--bg);
  padding: .55rem 1rem;
  font-family: var(--mono);
  font-size: .85rem;
  text-decoration: none;
  border-radius: 0 0 var(--r-chip) var(--r-chip);
}
.skip-link:focus-visible { top: 0; color: var(--bg); }

/* mono micro-labels (aside headings only, rationed) */
.aside-label {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: .7rem;
  max-width: none;
}
.aside-label:not(:first-child) { margin-top: 1.5rem; }

/* ---------- buttons (AA-checked, one-line labels) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  padding: .85rem 1.6rem;
  border-radius: var(--r-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background-color .2s var(--ease),
    color .2s var(--ease),
    border-color .2s var(--ease),
    box-shadow .2s var(--ease),
    transform .12s var(--ease);
}

/* press feedback */
.btn:active { transform: translateY(1px) scale(.99); }

/* primary: green fill, verified 4.5:1+ */
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  box-shadow: 0 8px 22px rgba(var(--shadow-tint), .2);
}

/* structural ghost: outline on page bg */
.btn--ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: var(--bg);
}

/* inverse: light fill on the pine featured panel */
.btn--inverse {
  background: #eaf4ee;
  border-color: #eaf4ee;
  color: #123529;
}
.btn--inverse:hover {
  background: #f4f8f6;
  border-color: #f4f8f6;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .28);
}

.btn--small { padding: .5rem .95rem; font-size: .9rem; }
.btn--wide { align-self: flex-start; width: auto; }

/* ---------- header + nav (single line at desktop, <= 72px) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4rem;
  max-height: 4.5rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: .55rem;
}

/* light / dark toggle: accessible icon button, AA in both modes */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.9rem;
  height: 2.9rem;
  padding: 0;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  color: var(--ink);                     /* icon vs surface > 12:1 in both themes */
  cursor: pointer;
  transition: border-color .18s var(--ease), color .18s var(--ease), background-color .18s var(--ease);
}
.theme-toggle:hover { border-color: var(--ink); color: var(--accent-strong); }

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  /* JS-off auto mode: mirror the media query so the icon matches the page */
  html:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  html:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand-mark { color: var(--accent); flex-shrink: 0; }
.brand-name {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}
/* CSS-rendered separator: no dash characters in the wordmark */
.brand-sep,
.footer-sep {
  display: inline-block;
  width: 1.35rem;
  height: 1.5px;
  background: var(--line-strong);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-nav a:not(.btn) {
  font-size: .93rem;
  font-weight: 550;
  color: var(--ink-2);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .18s var(--ease), color .18s var(--ease);
}
.site-nav a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { color: var(--accent-strong); border-bottom-color: var(--accent); }
.site-nav .nav-cta a { border-bottom: none; }

.nav-toggle { display: none; }

@media (max-width: 68rem) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.9rem;
    height: 2.9rem;
    padding: .75rem;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-btn);
    cursor: pointer;
  }
  .nav-toggle-bar {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 1px;
    transition: transform .2s var(--ease), opacity .2s var(--ease);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    position: fixed;
    inset: 69px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 24px 48px rgba(var(--shadow-tint), .18);
    display: none;
  }
  .site-nav.open { display: block; }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gutter) 1.4rem;
  }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav li.nav-cta { border-bottom: none; padding-top: 1.1rem; }
  .site-nav a {
    display: block;
    padding: 1rem .25rem;
    font-size: 1.05rem;
    border-bottom-width: 0 !important;
  }

  /* lock scroll while the menu is open */
  body:has(.site-nav.open) { overflow: hidden; }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); }

.section--tinted {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

/* Two adjacent tinted sections would read as one wall; give each its
   own env by alternating tinted/untinted (deliberate, same theme). */
.section--tinted + .section--tinted { border-top: 1px solid var(--line-strong); }

/* ---------- hero: editorial manifesto (type as the design) ---------- */
.hero { padding-block: clamp(3rem, 8vw, 6rem); }   /* top padding <= pt-24 cap */

.hero-eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: 1.6rem;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
  margin-top: 1.4em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2.1rem;
}

/* .page-hero (checklist page) just reuses .hero; nothing extra */

@media (max-width: 40rem) {
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn,
  .pkg-actions .btn { line-height: 1.25; }
}

/* ---------- trust band (below the hero, its own band) ---------- */
.trust-band {
  border-block: 1px solid var(--line);
  background: var(--bg);
}
.trust-band-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.trust-item {
  font-size: .95rem;
  font-weight: 550;
  color: var(--ink-2);
  padding-block: 1.05rem;
  max-width: none;
}
.trust-band-grid > .trust-item + .trust-item {
  border-inline-start: 1px solid var(--line);
  padding-inline-start: 1.4rem;
}

@media (max-width: 40rem) {
  .trust-band-grid { grid-template-columns: 1fr 1fr; row-gap: .25rem; }
  .trust-band-grid > .trust-item + .trust-item { border-inline-start: none; padding-inline-start: 0; }
  .trust-band-grid > .trust-item:nth-child(even) {
    border-inline-start: 1px solid var(--line);
    padding-inline-start: 1.2rem;
  }
}

/* ---------- why: split with the labeled Sample findings block ---------- */
.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.why-grid .h2 { margin-bottom: 1.1rem; }

.findings {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.6rem;
  box-shadow: 8px 8px 0 rgba(var(--shadow-tint), .04);
}

.findings-title {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent-strong);
  max-width: none;
}

.findings-sub {
  font-size: .88rem;
  color: var(--muted);
  margin-top: .55rem;
  max-width: none;
}

.findings-list { margin-top: 1.1rem; }

.findings-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .6rem;
  border-bottom: 1px solid var(--line);
}
.findings-list li:last-child { border-bottom: none; }
.findings-list p {
  font-size: .92rem;
  line-height: 1.45;
  color: var(--ink-2);
  max-width: none;
}

.findings-verdict {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
  max-width: none;
}
.findings-verdict strong { color: var(--ink); }

.sev {
  display: inline-block;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .22rem .55rem;
  border: 1px solid currentColor;
  border-radius: var(--r-chip);
}
.sev--blocker { color: var(--sev-blocker); }
.sev--major { color: var(--sev-major); }
.sev--minor { color: var(--sev-minor); }
.sev--polish { color: var(--sev-polish); }

@media (max-width: 58.75rem) {
  .why-grid { grid-template-columns: 1fr; }
  .findings { max-width: 34rem; }
}

/* ---------- shared tick markers (mask: theme-aware, one asset) ---------- */
.tick-list {
  display: grid;
  gap: .7rem;
  margin-top: 1rem;
}
.tick-list li {
  position: relative;
  padding-left: 1.95rem;
  font-size: .95rem;
  line-height: 1.5;
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .16em;
  width: .95em;
  height: .95em;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' fill='none' stroke='black' stroke-width='2.5'/%3E%3Cpath d='M7 12.5l3.2 3.5L17 8.5' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='square'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' fill='none' stroke='black' stroke-width='2.5'/%3E%3Cpath d='M7 12.5l3.2 3.5L17 8.5' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='square'/%3E%3C/svg%3E") no-repeat center / contain;
}

.tick-list--cross li::before {
  background: var(--sev-blocker);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' fill='none' stroke='black' stroke-width='2.5'/%3E%3Cpath d='M7 7l10 10M17 7L7 17' stroke='black' stroke-width='2.5' stroke-linecap='square'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' fill='none' stroke='black' stroke-width='2.5'/%3E%3Cpath d='M7 7l10 10M17 7L7 17' stroke='black' stroke-width='2.5' stroke-linecap='square'/%3E%3C/svg%3E") no-repeat center / contain;
}

.tick-list--tight { gap: .5rem; }
.tick-list--tight li { font-size: .9rem; }

/* ---------- packages: wide featured panel + a two-up row ---------- */
.packages {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

/* featured panel: interior two-column split, natural height, zero dead space.
   Structural override lives AFTER .pkg-card so its grid beats the flex base. */
.pkg-featured-main { min-width: 0; }
.pkg-featured-list { min-width: 0; }
.pkg-featured-list .tick-list { margin-top: .2rem; gap: .95rem; }
.pkg-featured-list .tick-list li { font-size: .96rem; }

.pkg-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.pkg-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.9rem 1.7rem 1.7rem;
  display: flex;
  flex-direction: column;
  box-shadow: 6px 6px 0 rgba(var(--shadow-tint), .04);
}

/* the featured panel also uses card internals but packs itself in one piece */
.pkg-featured {
  color: var(--panel-ink);
  background: var(--panel);
  background-image: linear-gradient(160deg, var(--panel), var(--panel-2));
  border-radius: var(--r-card);
  box-shadow: 10px 10px 0 rgba(var(--shadow-tint), .1);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.6rem, 3vw, 2.6rem);
  align-items: start;
  padding: 2.2rem 2.1rem 2rem;
}

.pkg-card h3 {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.pkg-sub {
  color: var(--muted);
  font-size: .92rem;
  margin-top: .45rem;
  max-width: none;
}

/* featured color family handled by .pkg-featured above */
.pkg-card--featured h3 { color: var(--panel-ink); }
.pkg-card--featured .pkg-sub { color: var(--panel-muted); }
.pkg-card--featured .tick-list li { color: var(--panel-ink); }
.pkg-card--featured .tick-list li::before { background: var(--panel-accent); }
.pkg-card--featured .pkg-fit { color: var(--panel-muted); }
.pkg-card--featured .pkg-fit strong { color: var(--panel-ink); }
.pkg-card--featured .pkg-actions .btn--inverse:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }

.pkg-flag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-accent);
  background: var(--accent);
  padding: .3rem .7rem;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  max-width: none;
}

.price {
  display: flex;
  align-items: baseline;
  gap: .65rem;
  flex-wrap: wrap;
  margin: 1.15rem 0 1.25rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
  max-width: none;
}
.pkg-card--featured .price { border-bottom-color: var(--panel-line); }

.price-num {
  font-weight: 750;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.pkg-card--featured .price-num { color: var(--panel-accent); }

.price-note {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted);
}
.pkg-card--featured .price-note { color: var(--panel-muted); }

.pkg-fit { margin-top: 1.2rem; font-size: .92rem; max-width: none; }
.pkg-fit strong { color: var(--ink); }

.pkg-addons {
  margin-top: 1.15rem;
  padding-top: .15rem;
  font-size: .82rem;
  color: var(--muted);
  max-width: none;
}
.pkg-addons span {
  font-family: var(--mono);
  color: var(--ink-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pkg-card--featured .pkg-addons { color: var(--panel-muted); }
.pkg-card--featured .pkg-addons span { color: var(--panel-ink); }

.pkg-actions { margin-top: 1.3rem; }

.pkg-not {
  margin-top: 1.2rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-input);
  padding: .75rem .95rem;
  font-size: .84rem;
  color: var(--muted);
  max-width: none;
}
.pkg-not summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.pkg-not summary:hover { color: var(--ink); }
.pkg-not[open] summary { margin-bottom: .5rem; }
.pkg-not p { font-size: .84rem; }

@media (max-width: 58.75rem) {
  .pkg-featured { grid-template-columns: 1fr; gap: 1.4rem; }
  .pkg-row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- what I check: hairline-organized grid ---------- */
.checks-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 2.4rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}

.check-item {
  background: var(--surface);
  padding: 1.35rem 1.45rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.check-item p {
  max-width: none;
  font-size: .93rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.check-item strong { color: var(--ink); }

/* the lettered codes are content: the report letters sections this way */
.check-code {
  flex-shrink: 0;
  width: 1.95rem;
  height: 1.95rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--accent);
  color: var(--accent-strong);
  font-family: var(--mono);
  font-weight: 700;
  font-size: .88rem;
  border-radius: var(--r-chip);
}
.check-code--inline { margin-bottom: 1rem; }
.check-code--accent { border-color: var(--accent); }

@media (max-width: 48rem) {
  .checks-grid { grid-template-columns: 1fr; }
}

.check-cta {
  margin-top: 2.1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ---------- process: 5 steps, hairline over each (organizes sequence) ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.6rem 1.4rem;
  margin-top: 2.5rem;
  counter-reset: step;
}

.p-step { border-top: 2px solid var(--ink); padding-top: 1.1rem; }
/* the free call is the entry action: it alone gets the accent rule */

.p-step:first-child { border-top-color: var(--accent); }

.p-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .78rem;
  color: var(--muted);
}

.p-step h3 {
  font-weight: 650;
  font-size: 1.05rem;
  line-height: 1.3;
  margin: .45rem 0 .4rem;
  letter-spacing: -0.01em;
}

.p-step p {
  font-size: .9rem;
  color: var(--muted);
}

@media (max-width: 62rem) {
  .process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1.5rem; }
}
@media (max-width: 40rem) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.about-grid .h2 { margin-bottom: 1.2rem; }

.about-note {
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  font-size: .95rem;
  color: var(--ink-2);
  border-radius: 0 var(--r-chip) var(--r-chip) 0;
  max-width: none;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.7rem;
  box-shadow: 6px 6px 0 rgba(var(--shadow-tint), .04);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  max-width: none;
}
.tag-row li {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  padding: .38rem .75rem;
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  border-radius: 999px;
}

.aside-quote {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: none;
}

@media (max-width: 58.75rem) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ---------- contact + Web3Forms form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact-grid > div:first-child > .h2 { margin-bottom: 0; }
.contact-lead { color: var(--muted); margin-top: 1rem; }

.contact-methods {
  display: grid;
  gap: .9rem;
  margin-top: 2rem;
  max-width: 26rem;
}
.contact-methods li {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
}
.contact-methods li:last-child { border-bottom: none; }

.contact-label {
  flex-shrink: 0;
  width: 3.6rem;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-value { font-size: 1.02rem; }

.todo-flag {
  margin-top: 1.1rem;
  padding: .55rem .85rem;
  border: 1.5px dashed var(--todo);
  border-radius: var(--r-chip);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--todo);
  max-width: 30rem;
}

.contact-form-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  box-shadow: 10px 10px 0 rgba(var(--shadow-tint), .05);
}

.form-head {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.4rem;
  max-width: none;
}

.form-field { margin-bottom: 1.05rem; }

.form-field--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .35rem;
  color: var(--ink);
}
.req { color: var(--sev-blocker); }
.optional {
  font-weight: 450;
  color: var(--muted);
  font-size: .82rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-input);
  padding: .72rem .85rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.form-field textarea { resize: vertical; }

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--placeholder); }

/* form label / placeholder contrast on --bg: label raw ink (17:1), placeholder #71717a (4.6:1) light
   and #94949e (5.0:1) dark, focus ring 3px solid tint. Verified both themes. */

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin-top: .9rem;
  font-size: .82rem;
  color: var(--muted);
  max-width: none;
}

@media (max-width: 58.75rem) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .form-field--half { grid-template-columns: 1fr; }
}

/* ---------- checklist page ---------- */

/* scope-notice: surface card, cross list */
.scope-not,
.panel-card,
.ab-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.7rem;
  box-shadow: 6px 6px 0 rgba(var(--shadow-tint), .04);
}
.scope-not { max-width: var(--measure); }

/* A & B summary */
.ab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  margin-top: 2.2rem;
}
.ab-card .check-code--inline { margin-bottom: .9rem; }
.ab-card p { font-size: .93rem; color: var(--ink-2); max-width: none; }

@media (max-width: 48rem) {
  .ab-grid { grid-template-columns: 1fr; }
}

/* C F E F doc lists: two-column grouping, no hairline on every row */
.checklist-block { max-width: 50rem; }
.doc-list {
  columns: 2;
  column-gap: 2.5rem;
  margin-top: 1.5rem;
}
.doc-list li {
  break-inside: avoid;
  position: relative;
  padding-left: 1.95rem;
  margin-bottom: .8rem;
  font-size: .95rem;
  line-height: 1.5;
}
.doc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .16em;
  width: .9em;
  height: .9em;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' fill='none' stroke='black' stroke-width='2.5'/%3E%3Cpath d='M7 12.5l3.2 3.5L17 8.5' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='square'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='2' y='2' width='20' height='20' fill='none' stroke='black' stroke-width='2.5'/%3E%3Cpath d='M7 12.5l3.2 3.5L17 8.5' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='square'/%3E%3C/svg%3E") no-repeat center / contain;
}

@media (max-width: 48rem) {
  .doc-list { columns: 1; }
}

/* G: six exact cells, tinted cells on the tinted section (theme-compatible contrast) */
.g-head { max-width: 50rem; }
.g-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}
.g-item {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-card);
  padding: 1.25rem 1.35rem;
  background: var(--surface);
}
.g-item h3 {
  font-weight: 650;
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: .4rem;
}
.g-item p { font-size: .88rem; color: var(--muted); max-width: none; }

@media (max-width: 62rem) {
  .g-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 40rem) {
  .g-grid { grid-template-columns: 1fr; }
}

/* severity table */
.table-wrap {
  overflow-x: auto;
  margin-top: 2.2rem;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}

.table-caption {
  caption-side: top;
  text-align: left;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: .9rem 1.1rem .7rem;
  border-bottom: 1px solid var(--line);
}

.data-table th,
.data-table td {
  padding: .85rem 1.1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.data-table thead th {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-2);
}
.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody th { white-space: nowrap; }

.deliverable-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.3rem;
  margin-top: 2.5rem;
}
@media (max-width: 58.75rem) {
  .deliverable-grid { grid-template-columns: 1fr; }
}

.num-list {
  display: grid;
  gap: .85rem;
  margin-top: 1.1rem;
}
.num-list li {
  position: relative;
  padding-left: 2.3rem;
  font-size: .94rem;
  line-height: 1.55;
  counter-increment: num-list;
}
.num-list { counter-reset: num-list; }
.num-list li::before {
  content: counter(num-list, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: .12em;
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 700;
  color: var(--accent-strong);
}

/* closing CTA band */
.cta-band-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
}
.cta-band-inner .h2 { max-width: 26em; }
.cta-band-inner .contact-lead { max-width: 44em; margin-top: 0; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  padding-block: 2.4rem 2rem;
  flex-shrink: 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  max-width: none;
}

.footer-note {
  font-size: .88rem;
  color: var(--muted);
  margin-top: .5rem;
  max-width: 34em;
}

.footer-links {
  display: grid;
  gap: .45rem;
}
.footer-links a { font-size: .9rem; }

.footer-smallprint {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}
.footer-smallprint p {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .05em;
  color: var(--muted);
  max-width: none;
}

/* ---------- reveal on scroll (motivated: sequence + entrance hierarchy) ---------- */
.js .reveal { opacity: 0; translate: 0 16px; transition: opacity .55s var(--ease), translate .55s var(--ease); }
.js .reveal.in-view { opacity: 1; translate: 0 0; }

/* hero copy is NOT wrapped in .reveal on purpose: static, LCP-friendly.
   Scroll reveals below the hero use .reveal via IntersectionObserver. */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  .btn,
  .theme-toggle,
  .nav-toggle-bar { transition: none; }
  .btn:active { transform: none; }
}

/* ---------- hover-capable pointers only (touch stays clean) ---------- */
@media (hover: none) {
  .btn:hover { box-shadow: none; }
}
