/* Practice Signal — shared stylesheet
   Palette and type follow brand/brand-guide.md. Flat colour only. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-semibold-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-regular-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #0B1F3A;
  --ink: #1A2332;
  --slate: #5A6A7A;
  --paper: #F6F4F1;
  --white: #FFFFFF;
  --teal: #0F766E;
  --teal-dark: #0B5F58;
  --teal-on-navy: #5EEAD4;
  --amber: #B45309;
  --ignore: #94A3B8;
  --line: #E2E8F0;
  --on-navy: #C9D2DD;

  --font-display: "Source Serif 4", "Libre Baskerville", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1120px;
  --radius: 10px;
  --space: clamp(3.5rem, 8vw, 6rem);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-dark); text-decoration-thickness: 2px; }

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

h1, h2, h3, h4 { color: var(--navy); margin: 0 0 0.6em; line-height: 1.2; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
h3 { font-family: var(--font-ui); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.005em; }
h4 { font-family: var(--font-ui); font-weight: 600; font-size: 1rem; }
p { margin: 0 0 1em; }
main p { max-width: 72ch; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 600; }
small { font-size: 0.875rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap.narrow > * { max-width: 46rem; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: 0.6rem 1rem; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; color: var(--white); }

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

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 40;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 76px; padding-block: 0.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.7rem;
  color: var(--navy); text-decoration: none;
  font-family: var(--font-ui); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.015em;
  white-space: nowrap; min-height: 44px; flex-shrink: 0;
}
.brand:hover { color: var(--navy); }
.brand img { width: 36px; height: 36px; }

.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 0.25rem 1.6rem; flex-wrap: wrap;
}
.site-nav li + li { margin-top: 0; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.975rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--line); }
.site-nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--teal); }
.site-nav .nav-cta a { border-bottom: 0; padding: 0.55rem 1rem; color: var(--white); }

/* Mobile / tablet disclosure menu (no JS needed) */
.header-actions { display: none; align-items: center; gap: 0.75rem; }
.header-actions .bar-cta { display: none; min-height: 44px; white-space: nowrap; }
.nav-menu > summary {
  list-style: none; display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 44px; min-width: 44px; padding: 0 0.95rem;
  background: var(--white); color: var(--navy); border: 1.5px solid var(--navy); border-radius: 8px;
  font-weight: 600; font-size: 1rem; cursor: pointer; user-select: none;
}
.nav-menu > summary::-webkit-details-marker { display: none; }
.nav-menu > summary::marker { content: ""; }
.burger, .burger::before, .burger::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-menu[open] .burger { background: transparent; }
.nav-menu[open] .burger::before { top: 0; transform: rotate(45deg); }
.nav-menu[open] .burger::after { top: 0; transform: rotate(-45deg); }
.nav-menu[open] > summary { background: var(--navy); color: var(--white); }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -18px rgba(11, 31, 58, 0.35);
  padding: 0.25rem 0 1.25rem;
}
.menu-panel ul { list-style: none; margin: 0 auto; padding: 0; width: min(100% - 2.5rem, var(--wrap)); }
.menu-panel li { margin: 0; }
.menu-panel li a:not(.btn) {
  display: flex; align-items: center; min-height: 48px; padding: 0 0.25rem;
  border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.05rem;
}
.menu-panel li a[aria-current="page"] { color: var(--navy); font-weight: 600; box-shadow: inset 3px 0 0 var(--teal); padding-left: 0.85rem; }
.menu-panel .menu-cta a { width: 100%; min-height: 48px; margin-top: 1rem; }

@media (max-width: 940px) {
  .nav-desktop { display: none; }
  .header-actions { display: flex; }
  .site-header .wrap { min-height: 68px; }
}
@media (min-width: 600px) and (max-width: 940px) {
  .header-actions .bar-cta { display: inline-flex; }
  .menu-panel .menu-cta { display: none; }
}
@media (max-width: 359px) {
  .brand { font-size: 1.2rem; gap: 0.55rem; }
  .brand img { width: 32px; height: 32px; }
  .nav-menu > summary { padding: 0 0.75rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-ui); font-weight: 600; font-size: 1rem; line-height: 1.2;
  padding: 0.85rem 1.35rem; border-radius: 8px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: var(--paper); color: var(--navy); }
.btn-small { padding: 0.55rem 1rem; font-size: 0.925rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* ---------- Sections ---------- */
.section { padding-block: var(--space); }
.section-white { background: var(--white); border-block: 1px solid var(--line); }
.section-navy { background: var(--navy); color: var(--paper); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy a:not(.btn) { color: var(--teal-on-navy); }
.section-navy a:not(.btn):hover { color: var(--white); }

.eyebrow {
  display: inline-block; font-family: var(--font-mono); font-size: 0.8rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal);
  margin: 0 0 1rem;
}
.section-navy .eyebrow { color: var(--teal-on-navy); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.25rem); color: var(--ink); max-width: 40rem; }
.muted { color: var(--slate); }
.section-head { max-width: 44rem; margin-bottom: 2.5rem; }
.section-head p { color: var(--slate); font-size: 1.1rem; }
.section-head .eyebrow { color: var(--teal); font-size: 0.8rem; }
.h1-line { display: block; }
.mono { font-family: var(--font-mono); font-size: 0.85em; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) var(--space); }
.hero .wrap {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 { margin-bottom: 0.45em; }
.hero .lead { margin-bottom: 1.75rem; }
.hero-note { margin-top: 1rem; color: var(--slate); font-size: 0.95rem; }
.trust-line {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  color: var(--slate); font-size: 0.925rem; max-width: 36rem;
}

.page-hero { padding-block: clamp(3rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem); }
.page-hero .lead { color: var(--ink); }

/* ---------- Brief card (product preview) ---------- */
.brief-card {
  margin: 0; background: var(--white); border: 1px solid var(--line);
  border-top: 4px solid var(--navy); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(11, 31, 58, 0.04), 0 18px 40px -24px rgba(11, 31, 58, 0.28);
  overflow: hidden;
}
.brief-card-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 1.1rem 1.35rem 0.9rem; border-bottom: 1px solid var(--line);
}
.brief-card-head .brand-mini { font-weight: 600; color: var(--navy); font-size: 0.975rem; }
.brief-card-head .date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate); }
.brief-card-glance { padding: 1rem 1.35rem; background: var(--paper); border-bottom: 1px solid var(--line); }
.brief-card-glance p { margin: 0; }
.brief-card-glance .label { font-size: 0.78rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate); }
.brief-card-glance .counts { font-weight: 600; color: var(--navy); }
.brief-card ol { list-style: none; margin: 0; padding: 0; }
.brief-card li { padding: 1rem 1.35rem; border-bottom: 1px solid var(--line); margin: 0; }
.brief-card li:last-child { border-bottom: 0; }
.brief-card li .meta { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.35rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--slate); }
.brief-card li .title { font-weight: 600; color: var(--navy); line-height: 1.35; margin: 0; font-size: 0.975rem; }
.brief-card li .note { margin: 0.25rem 0 0; font-size: 0.9rem; color: var(--slate); line-height: 1.5; }
.brief-card figcaption {
  padding: 0.8rem 1.35rem; font-size: 0.82rem; color: var(--slate);
  background: var(--paper); border-top: 1px solid var(--line);
}

/* ---------- Label chips ---------- */
.chip {
  display: inline-block; font-family: var(--font-ui); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  padding: 0.38rem 0.55rem 0.34rem; border-radius: 4px; border: 1px solid currentColor;
  white-space: nowrap;
}
.chip-action { color: var(--teal); background: var(--white); font-weight: 700; }
.chip-watch { color: var(--amber); background: var(--white); }
.chip-ignore { color: var(--slate); background: var(--paper); border-color: var(--ignore); }
.chip-lg { font-size: 0.8rem; padding: 0.5rem 0.7rem 0.45rem; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.section-white .card { background: var(--paper); }
.card h3 { margin-bottom: 0.45rem; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .chip { margin-bottom: 1rem; }

.label-card { border-top: 4px solid var(--line); }
.label-card.is-action { border-top-color: var(--teal); }
.label-card.is-watch { border-top-color: var(--amber); }
.label-card.is-ignore { border-top-color: var(--ignore); }
.label-card ul { color: var(--ink); font-size: 0.975rem; }

.feature h3 { font-size: 1.075rem; }
.feature p { color: var(--slate); font-size: 0.975rem; }
.feature-icon {
  width: 2.25rem; height: 2.25rem; border-radius: 8px; background: var(--paper);
  border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 0.9rem;
  color: var(--navy);
}
.section-white .feature-icon { background: var(--white); }
.feature-icon svg { width: 1.2rem; height: 1.2rem; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.steps li { margin: 0; counter-increment: step; position: relative; padding-top: 3.25rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy); color: var(--white); font-weight: 600; font-size: 0.95rem;
}
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--slate); margin: 0; }
.section-navy .steps li::before { background: var(--white); color: var(--navy); }
.section-navy .steps p { color: var(--on-navy); }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; margin: 0; padding: 0 0 1.75rem 1.75rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px;
  border-radius: 50%; background: var(--white); border: 2px solid var(--navy);
}
.timeline li.is-accent::before { background: var(--teal); border-color: var(--teal); }
.timeline h3 { margin-bottom: 0.25rem; font-size: 1.1rem; }
.timeline p { margin: 0; color: var(--slate); }

/* ---------- Brief item (full format) ---------- */
.brief-item {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--amber);
  border-radius: var(--radius); padding: 1.6rem 1.6rem 1.4rem;
}
.brief-item.is-action { border-left-color: var(--teal); }
.brief-item.is-ignore { border-left-color: var(--ignore); }
.brief-item + .brief-item { margin-top: 1.25rem; }
.brief-item h3 { font-size: 1.2rem; margin: 0.75rem 0 0.75rem; }
.brief-item .item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; font-family: var(--font-mono); font-size: 0.8rem; color: var(--slate); }
.brief-item dl { margin: 0; display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 0.7rem 1.25rem; }
.brief-item dt { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.brief-item dd { margin: 0; font-size: 0.985rem; }
.brief-item .sources a, td[data-label="Source"] a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.link-block { display: inline-flex; align-items: center; min-height: 44px; }
.btn { min-height: 44px; }

.brief-doc { max-width: 52rem; }
.brief-doc h2 { margin-top: 2.75rem; font-size: clamp(1.5rem, 2.6vw, 1.9rem); display: flex; align-items: center; gap: 0.75rem; }
.brief-doc h2:first-child { margin-top: 0; }
.brief-header {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy);
  border-radius: var(--radius); padding: 1.6rem;
}
.brief-header .subject { font-family: var(--font-mono); font-size: 0.85rem; color: var(--slate); margin-bottom: 1rem; overflow-wrap: anywhere; }
.brief-header .title { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 1.6rem; margin: 0 0 0.2rem; }
.brief-header .period { color: var(--slate); margin: 0; }
.glance { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.glance .counts { font-weight: 600; color: var(--navy); font-size: 1.1rem; margin-bottom: 0.75rem; }
.glance ul { margin: 0; }

.ignore-list { list-style: none; padding: 0; margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.ignore-list li { padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); margin: 0; font-size: 0.975rem; }
.ignore-list li:last-child { border-bottom: 0; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate); font-weight: 600; background: var(--paper); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; color: var(--navy); }
td.date { font-family: var(--font-mono); font-size: 0.85rem; white-space: nowrap; }
.tick { color: var(--teal); font-weight: 700; }
.dash { color: var(--slate); }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.is-default { border: 2px solid var(--navy); }
.price-card .badge {
  position: absolute; top: -0.8rem; left: 1.5rem; background: var(--navy); color: var(--white);
  font-size: 0.75rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: 999px; letter-spacing: 0.02em;
}
.price-card .tier { font-family: var(--font-mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); margin-bottom: 0.4rem; }
.price { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: 2.6rem; line-height: 1; margin: 0.25rem 0 0.35rem; }
.price .per { font-family: var(--font-ui); font-size: 1rem; font-weight: 500; color: var(--slate); }
.price-card ul { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; flex: 1; }
.price-card li { padding-left: 1.6rem; position: relative; font-size: 0.975rem; }
.price-card li::before {
  content: ""; position: absolute; left: 0.1rem; top: 0.5em; width: 0.8rem; height: 0.45rem;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}
.price-card .btn { width: 100%; }
.price-strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem;
}
.price-strip p { margin: 0; }
.price-strip .big { font-family: var(--font-display); font-weight: 600; color: var(--navy); font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.25; margin-bottom: 0.35rem; }

.start-path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }

/* ---------- Callouts ---------- */
.callout {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--navy);
  border-radius: var(--radius); padding: 1.35rem 1.5rem;
}
.callout p:last-child { margin-bottom: 0; }
.callout-note { border-left-color: var(--slate); background: var(--paper); }

.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.two-col-wide { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }

.checklist, .crosslist { list-style: none; padding: 0; }
.checklist li, .crosslist li { position: relative; padding-left: 1.75rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0.15rem; top: 0.5em; width: 0.8rem; height: 0.45rem;
  border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}
.crosslist li::before, .crosslist li::after {
  content: ""; position: absolute; left: 0.2rem; top: 0.75em; width: 0.85rem; height: 2px; background: var(--slate);
}
.crosslist li::before { transform: rotate(45deg); }
.crosslist li::after { transform: rotate(-45deg); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 1.2rem 2.5rem 1.2rem 0; position: relative;
  font-weight: 600; color: var(--navy); font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--teal); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 1.25rem; max-width: 44rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Forms ---------- */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.field { margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
label, legend { display: block; font-weight: 600; color: var(--navy); font-size: 0.95rem; margin-bottom: 0.4rem; }
.hint { display: block; font-weight: 400; color: var(--slate); font-size: 0.875rem; margin-top: 0.1rem; }
input[type="text"], input[type="email"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid #B8C2CF; border-radius: 6px; padding: 0.7rem 0.8rem;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(15, 118, 110, 0.35); outline-offset: 0; border-color: var(--teal); }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.option { display: flex; align-items: center; gap: 0.65rem; min-height: 44px; font-weight: 400; color: var(--ink); margin: 0; font-size: 1rem; cursor: pointer; }
.option input { width: 1.25rem; height: 1.25rem; accent-color: var(--teal); margin: 0; font-size: 1rem; flex-shrink: 0; }
.form-foot { font-size: 0.875rem; color: var(--slate); margin-top: 1rem; }
.req { color: var(--amber); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy); padding-block: 3.5rem 2.25rem; font-size: 0.925rem; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--teal-on-navy); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 0.8fr)); gap: 2.5rem; padding-bottom: 2.25rem; border-bottom: 1px solid rgba(201, 210, 221, 0.25); }
.footer-brand { display: inline-flex; align-items: center; min-height: 44px; gap: 0.65rem; color: var(--white); font-weight: 500; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.01em; }
.footer-brand:hover { color: var(--white); }
.footer-brand img { width: 32px; height: 32px; outline: 1px solid rgba(201, 210, 221, 0.35); border-radius: 6px; }
.footer-tagline { margin: 0.9rem 0 0; color: var(--paper); }
.site-footer h2 { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 400; text-transform: uppercase; letter-spacing: 0.08em; color: var(--on-navy); margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-notice { padding-block: 1.75rem 1.25rem; max-width: 60rem; }
.footer-notice p { margin: 0 0 0.75rem; line-height: 1.55; }
.footer-notice strong { color: var(--white); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; font-size: 0.85rem; color: var(--on-navy); }
.footer-legal p { margin: 0; }

/* ---------- Misc ---------- */
.prose h2 { margin-top: 2.5rem; font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.back-top { margin-top: 2.5rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }

.not-found { min-height: 55vh; display: grid; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap, .two-col, .two-col-wide { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .start-path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  table.stack-sm thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.stack-sm, table.stack-sm tbody, table.stack-sm tr, table.stack-sm td { display: block; width: 100%; }
  table.stack-sm tr { padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); }
  table.stack-sm tr:last-child { border-bottom: 0; }
  table.stack-sm td { border: 0; padding: 0.2rem 0; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 0.75rem; white-space: normal; }
  table.stack-sm td::before { content: attr(data-label); font-weight: 600; color: var(--navy); font-family: var(--font-ui); font-size: 0.875rem; }
  table.stack-sm td.date { font-size: 0.9rem; }
  .grid-2, .grid-3, .grid-4, .start-path, .field-row, .options { grid-template-columns: 1fr; }
  .brief-item dl { grid-template-columns: 1fr; gap: 0.15rem; }
  .feature { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: 1rem; }
  .feature-icon { grid-row: span 2; margin-bottom: 0; }
  .feature h3 { margin-bottom: 0.2rem; }
  .grid-3 .feature + .feature { margin-top: 0.5rem; }
  .brief-item dd { margin-bottom: 0.65rem; }
  .btn-row .btn { width: 100%; }
  .price-strip { padding: 1.5rem; }
  .footer-top { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer .footer-top, .btn, .skip-link { display: none !important; }
  body { background: #fff; }
  .site-footer { background: #fff; color: #000; }
}
