/* ==========================================================================
   DutyLookout marketing styles — "customs ledger meets harbor lookout"
   Self-hosted, system fonts only (no external font/CDN requests).
   ========================================================================== */

:root {
  /* palette — light */
  --paper: #f4f7f6;
  --surface: #ffffff;
  --surface-raised: #fbfdfc;
  --ink: #10222e;
  --ink-soft: #4a5b66;
  --ink-faint: #71828c;
  --line: #d9e1df;
  --line-strong: #b9c6c3;
  --teal: #0e7a6e;
  --teal-deep: #0a5f56;
  --teal-tint: #e3f1ee;
  --amber: #e8a33d;
  --amber-tint: #fbf0dc;
  --signal: #c64b33;
  --signal-tint: #f9e8e3;
  --ink-on-accent: #ffffff;
  --beam: rgba(232, 163, 61, 0.12); /* the lookout's sweep, cf. the logo beam */
  --shadow: 0 1px 2px rgba(16, 34, 46, 0.06), 0 8px 24px rgba(16, 34, 46, 0.07);
  --shadow-soft: 0 1px 2px rgba(16, 34, 46, 0.05);

  /* type */
  --font-sans: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas,
    "DejaVu Sans Mono", monospace;

  /* scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4.5rem;

  --radius: 10px;
  --radius-sm: 6px;
  --container: 68.75rem; /* 1100px */

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1a22;
    --surface: #122430;
    --surface-raised: #162b38;
    --ink: #e6eeec;
    --ink-soft: #a4b6bc;
    --ink-faint: #7b8f97;
    --line: #23404b;
    --line-strong: #33525f;
    --teal: #3fbfb0;
    --teal-deep: #63d4c6;
    --teal-tint: #10312f;
    --amber: #f0b45c;
    --amber-tint: #322815;
    --signal: #e0765d;
    --signal-tint: #3a1f18;
    --ink-on-accent: #0c1a22;
    --beam: rgba(240, 180, 92, 0.09);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--teal-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

::selection {
  background: var(--amber);
  color: #10222e;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 var(--s-3);
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 700;
  text-wrap: balance;
}

p {
  margin: 0 0 var(--s-4);
}

code,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Eyebrow — set like a tariff-schedule caption */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 var(--s-3);
}

.section {
  padding-block: var(--s-8);
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section-lede {
  max-width: 42rem;
  color: var(--ink-soft);
  font-size: 1.06rem;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: 600 0.95rem/1.2 var(--font-sans);
  cursor: pointer;
  text-align: center;
  transition: background-color 120ms ease, border-color 120ms ease,
    color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline-offset: 3px;
}

.btn-primary {
  background: var(--teal);
  color: var(--ink-on-accent);
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--teal-deep);
  color: var(--ink-on-accent);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-secondary:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.btn-lg {
  padding: 0.85rem 1.6rem;
  font-size: 1.02rem;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(8px);
  }
}

.site-header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-4) var(--s-5);
  flex-wrap: wrap;
  padding-block: var(--s-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
  color: var(--ink);
}

.brand .wm-accent {
  color: var(--teal);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--s-4) var(--s-5);
  flex-wrap: wrap;
  margin-left: auto;
}

.site-nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.site-nav .btn {
  margin-left: var(--s-2);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 0;
  padding-block: var(--s-8) var(--s-7);
}

/* The lookout's beam — a faint amber sweep from the top corner, echoing the
   logo mark. Static by design; the schedule card stays the moving part. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: conic-gradient(
    from 214deg at 100% 0%,
    transparent 0deg,
    var(--beam) 24deg,
    transparent 52deg
  );
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: var(--s-7);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2rem, 4.9vw, 3.15rem);
  letter-spacing: -0.03em;
  margin-bottom: var(--s-4);
}

.hero h1 .under {
  color: var(--signal);
}

.hero-sub {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 34rem;
  margin-bottom: var(--s-5);
}

.hero-ctas {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-4);
}

.hero-trust {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.hero-trust span + span::before {
  content: "·";
  margin-inline: 0.55rem;
  color: var(--line-strong);
}

/* --------------------------------------------------------------------------
   The signature artifact — an HTS schedule excerpt
   -------------------------------------------------------------------------- */

.schedule-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.schedule-cap {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 0.55rem 0.9rem;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (prefers-color-scheme: dark) {
  .schedule-cap {
    background: var(--surface-raised);
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
  }
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
}

.schedule-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 0.5rem 0.9rem 0.35rem;
  border-bottom: 1px solid var(--line);
}

.schedule-table td {
  padding: 0.5rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.schedule-table tr:last-child td {
  border-bottom: none;
}

.schedule-table .code {
  white-space: nowrap;
  color: var(--ink-soft);
}

.schedule-table .desc {
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: 0.8rem;
}

.schedule-table .rate {
  white-space: nowrap;
  text-align: right;
}

.schedule-table tr.hit {
  background: var(--amber-tint);
}

.schedule-table tr.hit td {
  border-left: 3px solid var(--amber);
  border-left-width: 0;
}

.schedule-table tr.hit td:first-child {
  box-shadow: inset 3px 0 0 var(--amber);
}

.schedule-table tr.hit .code,
.schedule-table tr.hit .desc,
.schedule-table tr.hit .rate {
  color: var(--ink);
  font-weight: 600;
}

.schedule-note {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  border-top: 1px dashed var(--line-strong);
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--surface-raised);
}

.watch-dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 0.42em;
  border-radius: 50%;
  background: var(--amber);
}

@media (prefers-reduced-motion: no-preference) {
  .watch-dot {
    animation: beacon 2.6s ease-in-out infinite;
  }
  @keyframes beacon {
    0%,
    100% {
      box-shadow: 0 0 0 0 rgba(232, 163, 61, 0.55);
    }
    55% {
      box-shadow: 0 0 0 7px rgba(232, 163, 61, 0);
    }
  }
}

.schedule-fineprint {
  padding: 0.55rem 0.9rem;
  font-size: 0.7rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Pillars (Classify / Cost / Watch)
   -------------------------------------------------------------------------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-6);
}

.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
  box-shadow: var(--shadow-soft);
  transition: border-color 150ms ease, box-shadow 150ms ease,
    transform 150ms ease;
}

.pillar:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.pillar-verb {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  display: block;
  margin-bottom: var(--s-2);
}

.pillar h3 {
  font-size: 1.15rem;
  margin-bottom: var(--s-2);
}

.pillar p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.pillar p + p {
  margin-top: var(--s-3);
}

.pillar .fact {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  display: block;
  margin-top: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--line-strong);
}

/* --------------------------------------------------------------------------
   How it works — a genuine sequence, so numbered
   -------------------------------------------------------------------------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-5);
  margin-top: var(--s-6);
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: var(--s-5);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--teal);
}

.steps li::after {
  content: "";
  position: absolute;
  top: 0.5em;
  left: 2.2rem;
  right: 0;
  border-top: 1px dashed var(--line-strong);
}

.steps li:last-child::after {
  right: var(--s-4);
}

.steps h3 {
  font-size: 1rem;
  margin-bottom: var(--s-1);
}

.steps p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Comparison table
   -------------------------------------------------------------------------- */

.compare-wrap {
  margin-top: var(--s-6);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.compare {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.compare th,
.compare td {
  padding: 0.8rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare thead th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line-strong);
}

.compare tbody tr:last-child th,
.compare tbody tr:last-child td {
  border-bottom: none;
}

.compare tbody th {
  font-weight: 600;
  white-space: nowrap;
}

.compare td {
  color: var(--ink-soft);
}

.compare .us {
  background: var(--teal-tint);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Pricing
   -------------------------------------------------------------------------- */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-6);
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
  transition: border-color 150ms ease, box-shadow 150ms ease,
    transform 150ms ease;
}

.plan:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.plan.featured:hover {
  border-color: var(--teal);
}

.plan.featured {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}

.plan-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--s-1);
}

.plan-flag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--s-2);
}

.plan-price {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 2.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-1);
}

.plan-price small {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-faint);
}

.plan-limit {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  padding-bottom: var(--s-4);
  border-bottom: 1px dashed var(--line-strong);
  margin-bottom: var(--s-4);
}

.plan ul {
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
  flex: 1;
}

.plan ul li {
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: var(--s-2);
}

.plan ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.plans-fineprint {
  margin-top: var(--s-4);
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  margin-top: var(--s-6);
  display: grid;
  gap: var(--s-3);
  max-width: 46rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--s-4) var(--s-5);
}

.faq details {
  transition: border-color 150ms ease;
}

.faq details:hover {
  border-color: var(--line-strong);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 1.6rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-family: var(--font-mono);
  color: var(--teal);
  font-weight: 600;
}

.faq details[open] summary::after {
  content: "–";
}

.faq details p {
  margin: var(--s-3) 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  z-index: 0;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: var(--s-7) var(--s-6);
  text-align: center;
  margin-block: var(--s-8);
}

/* The beam again — the page opens and closes under the same lookout sweep. */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: conic-gradient(
    from 214deg at 100% 0%,
    transparent 0deg,
    rgba(232, 163, 61, 0.14) 24deg,
    transparent 52deg
  );
}

@media (prefers-color-scheme: dark) {
  .cta-band {
    background: var(--surface-raised);
    border: 1px solid var(--line);
    color: var(--ink);
  }
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  margin-bottom: var(--s-3);
}

.cta-band p {
  color: inherit;
  opacity: 0.75;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: var(--s-5);
}

/* --------------------------------------------------------------------------
   Prose pages (privacy / tos / about)
   -------------------------------------------------------------------------- */

.prose {
  max-width: 44rem;
  padding-block: var(--s-7) var(--s-8);
}

.prose h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: var(--s-2);
}

.prose .updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-bottom: var(--s-6);
}

.prose h2 {
  font-size: 1.3rem;
  margin-top: var(--s-6);
}

.prose h3 {
  font-size: 1.05rem;
  margin-top: var(--s-5);
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 1.3rem;
}

.prose li {
  margin-bottom: var(--s-2);
}

.prose strong {
  color: var(--ink);
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-block: var(--s-4);
}

.prose table th,
.prose table td {
  border: 1px solid var(--line);
  padding: 0.55rem 0.8rem;
  text-align: left;
  color: var(--ink-soft);
}

.prose table th {
  color: var(--ink);
  background: var(--surface);
  font-size: 0.82rem;
}

.prose .table-wrap {
  overflow-x: auto;
}

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: var(--s-4) var(--s-5);
  margin-block: var(--s-5);
  color: var(--ink-soft);
}

.callout.amber {
  border-left-color: var(--amber);
}

/* --------------------------------------------------------------------------
   Snapshot stamp + disclaimer — the compliance device, worn as a badge
   -------------------------------------------------------------------------- */

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--teal);
  color: var(--teal);
  border-radius: 4px;
  padding: 0.28rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: rotate(-1deg);
  background: var(--surface);
}

.estimate-disclaimer {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: var(--s-3);
}

/* --------------------------------------------------------------------------
   Lookup page
   -------------------------------------------------------------------------- */

.lookup-hero {
  padding-block: var(--s-7) var(--s-5);
  max-width: 46rem;
}

.lookup-hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
}

.lookup-form {
  max-width: 46rem;
  margin-bottom: var(--s-6);
}

.lookup-form textarea {
  width: 100%;
  min-height: 6.5rem;
  padding: var(--s-4);
  font: 1rem/1.5 var(--font-sans);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  resize: vertical;
  box-shadow: var(--shadow-soft);
}

.lookup-form textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 0;
  border-color: var(--teal);
}

.lookup-actions {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-top: var(--s-3);
}

.lookup-quota {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.turnstile-slot {
  margin-top: var(--s-4);
}

.notice {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: var(--s-4) var(--s-5);
  margin-block: var(--s-4);
  color: var(--ink-soft);
  max-width: 46rem;
}

.notice.warn {
  border-left: 3px solid var(--amber);
}

.notice.error {
  border-left: 3px solid var(--signal);
}

/* Result card */

.result-card {
  max-width: 46rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: var(--s-6);
}

.result-head {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
}

.result-query {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin: 0;
}

.result-query em {
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 600;
}

.result-body {
  padding: var(--s-5);
}

.result-codes {
  display: flex;
  gap: var(--s-6);
  flex-wrap: wrap;
  margin-bottom: var(--s-4);
}

.result-code-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 0.15rem;
}

.result-code-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.confidence-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.confidence-meter {
  flex: 1;
  max-width: 14rem;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.confidence-meter span {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: 3px;
}

.result-rationale {
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
}

.duty-range {
  border-top: 1px dashed var(--line-strong);
  padding-top: var(--s-4);
  margin-top: var(--s-2);
}

.duty-range-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.15rem;
  font-weight: 600;
}

.duty-range p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: var(--s-2) 0 0;
}

.result-foot {
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--line);
  background: var(--surface-raised);
}

/* Pending state */

.pending-card {
  max-width: 46rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: var(--s-6) var(--s-5);
  text-align: center;
  color: var(--ink-soft);
  margin-bottom: var(--s-6);
}

.pending-card .watch-dot {
  display: inline-block;
  margin: 0 0 var(--s-3);
}

.pending-card h2 {
  font-size: 1.2rem;
  margin-bottom: var(--s-2);
}

.pending-card p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: var(--s-7) var(--s-6);
  margin-top: var(--s-8);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-6);
  margin-bottom: var(--s-6);
}

.footer-brand p {
  color: var(--ink-soft);
  max-width: 24rem;
  margin-top: var(--s-3);
  font-size: 0.88rem;
}

.footer-col h3 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: var(--s-3);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: var(--s-2);
}

.footer-col a {
  color: var(--ink-soft);
}

.footer-col a:hover {
  color: var(--ink);
}

/* AHV attribution — a dark ledger-caption band, so the white wordmark reads
   correctly in both themes without inversion. */
.footer-attrib {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4) var(--s-6);
  flex-wrap: wrap;
  background: var(--ink);
  border-radius: var(--radius);
  padding: var(--s-5) var(--s-6);
  margin-bottom: var(--s-6);
}

@media (prefers-color-scheme: dark) {
  .footer-attrib {
    background: var(--surface-raised);
    border: 1px solid var(--line);
  }
}

.footer-attrib-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: var(--s-2);
}

.footer-attrib-brand a {
  display: inline-block;
  line-height: 0;
  opacity: 0.92;
  transition: opacity 120ms ease;
}

.footer-attrib-brand a:hover {
  opacity: 1;
}

.footer-attrib-brand img {
  width: 158px;
}

.footer-attrib-line {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(244, 247, 246, 0.72);
  max-width: 24rem;
}

@media (prefers-color-scheme: dark) {
  .footer-attrib-line {
    color: var(--ink-soft);
  }
}

/* Same treatment inline on the About page. */
.ahv-chip {
  display: inline-block;
  line-height: 0;
  background: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1.1rem;
  opacity: 0.96;
  transition: opacity 120ms ease;
}

.ahv-chip:hover {
  opacity: 1;
}

@media (prefers-color-scheme: dark) {
  .ahv-chip {
    background: var(--surface-raised);
    border: 1px solid var(--line);
  }
}

.ahv-chip img {
  width: 150px;
}

.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: var(--s-4);
  color: var(--ink-faint);
  font-size: 0.8rem;
}

.footer-legal p {
  margin-bottom: var(--s-2);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 56rem) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .pillars,
  .plans {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .steps li::after {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }
}

@media (max-width: 30rem) {
  .container {
    padding-inline: var(--s-4);
  }

  .section {
    padding-block: var(--s-7);
  }

  .hero {
    padding-block: var(--s-6) var(--s-6);
  }

  .result-codes {
    gap: var(--s-4);
  }

  .result-code-value {
    font-size: 1.35rem;
  }

  .cta-band {
    padding: var(--s-6) var(--s-4);
  }

  .hero-ctas .btn {
    flex: 1 1 100%;
  }

  .footer-attrib {
    padding: var(--s-4) var(--s-5);
  }

  .footer-attrib-brand img {
    width: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── /install form ─────────────────────────────────────────────────────── */
.install-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 26rem;
  margin: 1.5rem 0;
}
.install-form label {
  font: 600 0.85rem/1.2 var(--font-sans);
  color: var(--ink-soft);
}
.install-form input {
  padding: 0.7rem 0.85rem;
  font: 1rem/1.3 var(--font-mono);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
}
.install-form input:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}
.install-form .btn {
  align-self: flex-start;
  margin-top: 0.35rem;
}
.form-error {
  color: var(--signal);
  font: 500 0.9rem/1.3 var(--font-sans);
  margin: 0;
}
.muted {
  color: var(--ink-faint);
  font-size: 0.9rem;
}
