@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("./assets/fonts/atkinson-hyperlegible-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("./assets/fonts/atkinson-hyperlegible-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("./assets/fonts/instrument-sans-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --background: #f4f1e9;
  --surface: #fffdf8;
  --surface-muted: #ebe7dc;
  --text: #17302b;
  --text-muted: #526861;
  --border: #d8d3c6;
  --border-strong: #b7b0a1;
  --action: #245847;
  --action-hover: #173f33;
  --action-pressed: #0f3027;
  --on-action: #ffffff;
  --warm: #c97816;
  --warm-soft: #f6e6cb;
  --focus-outer: #fffdf8;
  --shadow-raised: 0 18px 44px rgb(23 48 43 / 12%), 0 2px 8px rgb(23 48 43 / 8%);
  --font-body: "Atkinson Hyperlegible", Arial, sans-serif;
  --font-display: "Instrument Sans", "Atkinson Hyperlegible", Arial, sans-serif;
  --shell: 73.75rem;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

p,
h1,
h2,
h3,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.022em; /* instrument sans needs less squeeze than the old display face */
}

h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.98;
}

h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  line-height: 1.04;
}

h3 {
  font-size: 1.28rem;
  line-height: 1.15;
}

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.5rem;
  background: var(--text);
  color: var(--surface);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--focus-outer);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgb(183 176 161 / 65%);
  background: rgb(244 241 233 / 94%);
}

.header-inner {
  display: flex;
  min-height: 4.75rem;
  align-items: center;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  min-height: 2.75rem;
  flex: 0 0 auto;
  align-items: center;
}

.brand img {
  width: 11rem;
}

nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 1.6rem;
}

nav a,
.text-link,
.email-link,
.footer-links a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--text-muted);
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.24em;
  transition: color 160ms var(--ease);
}

nav a {
  text-decoration: none;
}

nav a:hover,
.text-link:hover,
.email-link:hover,
.footer-links a:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.35rem;
  border: 1px solid var(--action);
  border-radius: 0.55rem;
  background: var(--action);
  color: var(--on-action);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), transform 160ms
    var(--ease);
}

.button:hover {
  border-color: var(--action-hover);
  background: var(--action-hover);
  transform: translateY(-1px);
}

.button:active {
  border-color: var(--action-pressed);
  background: var(--action-pressed);
  transform: translateY(0);
}

.button-small {
  min-height: 2.75rem;
  padding-inline: 1.1rem;
}

.hero {
  padding: clamp(3.5rem, 9vw, 8.5rem) 0 clamp(3rem, 7vw, 7rem);
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.83fr) minmax(30rem, 1.17fr);
  gap: clamp(3rem, 6vw, 6.5rem);
}

.hero-copy,
.hero-proof,
.product-proof,
.local-grid > *,
.pilot-grid > *,
.faq-grid > *,
.closing-grid > * {
  min-width: 0;
}

.eyebrow {
  margin-bottom: 1.2rem;
  color: var(--action);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 37rem;
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  margin-top: 2rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
}

.hero-note {
  margin-top: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-proof figcaption,
.product-proof figcaption {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.capture-frame {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.capture-frame img {
  width: 100%;
  height: auto;
}

.capture-frame-kiosk {
  border-radius: 1.35rem;
}

.status-strip {
  border-block: 1px solid var(--border-strong);
  background: var(--warm-soft);
}

.status-grid {
  display: grid;
  padding-block: 1.6rem;
  align-items: start;
  grid-template-columns: minmax(15rem, 0.75fr) minmax(0, 1.25fr);
  gap: 2.5rem;
}

.status-grid p {
  max-width: 48rem;
}

.status-statement {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
}

.section {
  padding: clamp(3.75rem, 9vw, 8rem) 0;
  border-bottom: 1px solid var(--border);
}

.narrow-heading {
  max-width: 61rem;
}

.narrow-heading > p:last-child {
  max-width: 46rem;
  margin-top: 1.25rem;
  color: var(--text-muted);
  font-size: 1.12rem;
}

.flow-list {
  padding: 0;
  margin-top: clamp(3rem, 6vw, 5rem);
  list-style: none;
}

.flow-list li {
  display: grid;
  padding: 1.6rem 0;
  border-top: 1px solid var(--border-strong);
  align-items: start;
  grid-template-columns: 5rem minmax(0, 1fr);
  gap: 1rem;
}

.flow-list li:last-child {
  border-bottom: 1px solid var(--border-strong);
}

.flow-number {
  color: var(--warm);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}

.flow-list li > div {
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(1.5rem, 5vw, 6rem);
}

.flow-list p {
  max-width: 40rem;
  color: var(--text-muted);
}

.proof-section {
  background: var(--surface-muted);
}

.proof-grid {
  display: grid;
  margin-top: clamp(3rem, 6vw, 5rem);
  align-items: start;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.proof-label {
  display: flex;
  margin-bottom: 0.85rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.proof-label span:last-child {
  color: var(--action);
}

.local-section {
  background: var(--text);
  color: var(--surface);
}

.local-section .eyebrow {
  color: #f2b969;
}

.local-grid,
.lang-grid,
.pilot-grid,
.faq-grid,
.closing-grid {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(17rem, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.lang-copy > p {
  max-width: 44rem;
  color: var(--text-muted);
  font-size: 1.12rem;
}

.lang-copy > p + p {
  margin-top: 1.1rem;
}

.lang-roll {
  display: flex;
  padding: 0;
  margin: 1.9rem 0 0;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.lang-roll li {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 2rem;
  background: var(--surface);
  font-size: 0.95rem;
  font-weight: 700;
}

.lang-copy > .lang-note {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
}

.local-lead {
  max-width: 42rem;
  color: #f3f0e9;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  font-weight: 600;
  line-height: 1.3;
}

.boundary-list {
  margin-top: 2.5rem;
}

.boundary-list > div {
  display: grid;
  padding: 1.15rem 0;
  border-top: 1px solid rgb(255 253 248 / 24%);
  grid-template-columns: minmax(11rem, 0.75fr) minmax(0, 1.25fr);
  gap: 1.5rem;
}

.boundary-list > div:last-child {
  border-bottom: 1px solid rgb(255 253 248 / 24%);
}

.boundary-list dt {
  color: #ffffff;
  font-weight: 700;
}

.boundary-list dd {
  color: #c7d1cd;
}

.pilot-section {
  background: var(--surface);
}

.pilot-copy blockquote {
  padding-top: 1.1rem;
  border-top: 4px solid var(--warm);
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 650;
  line-height: 1.3;
}

.pilot-copy p {
  max-width: 46rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
}

.faq-list {
  border-top: 1px solid var(--border-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--border-strong);
}

.faq-list summary {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 650;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--warm);
  font-size: 1.5rem;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 43rem;
  padding: 0 2.5rem 1.5rem 0;
  color: var(--text-muted);
}

.closing-section {
  padding: clamp(3.5rem, 8vw, 7rem) 0;
  background: var(--warm-soft);
}

.closing-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.4rem;
}

/* privacy + terms pages */
.legal-main {
  padding: clamp(3.25rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6.5rem);
}

.legal-main .shell {
  max-width: 46rem;
}

.legal-main h1 {
  max-width: none;
  font-size: clamp(2.3rem, 5.5vw, 3.4rem);
}

.legal-updated {
  margin-top: 1rem;
  color: var(--text-muted);
}

.plain-answer {
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--border-strong);
  border-radius: 0.75rem;
  margin-top: 1.9rem;
  background: var(--surface);
}

.legal-main .plain-answer {
  color: var(--text);
}

.legal-main h2 {
  max-width: none;
  margin-top: 2.75rem;
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  line-height: 1.2;
}

.legal-main p {
  margin-top: 1rem;
  color: var(--text-muted);
}

.legal-main ul {
  margin: 1rem 0 0;
  padding-left: 1.3rem;
  color: var(--text-muted);
}

.legal-main li + li {
  margin-top: 0.4rem;
}

/* how-it-works walkthrough page */
nav a[aria-current="page"] {
  color: var(--text);
}

.walk-intro {
  padding: clamp(3.25rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.walk-intro h1 {
  max-width: 17ch;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.02;
}

.walk-intro .hero-lead {
  max-width: 42rem;
}

.walk-steps {
  padding: 0 0 clamp(3rem, 6vw, 5rem);
  margin-block: 0; /* keep .shell's margin-inline: auto */
  list-style: none;
}

.walk-step {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--border-strong);
}

.walk-step-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}

.walk-step .flow-number {
  display: block;
  margin-bottom: 0.9rem;
}

.walk-step h2 {
  max-width: 22ch;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.08;
}

.walk-step p {
  max-width: 42rem;
  margin-top: 1.1rem;
  color: var(--text-muted);
}

.walk-step figcaption {
  margin-top: 0.85rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.walk-list {
  max-width: 42rem;
  padding-left: 1.25rem;
  margin: 1.1rem 0 0;
  color: var(--text-muted);
}

.walk-list li + li {
  margin-top: 0.55rem;
}

.walk-list strong {
  color: var(--text);
}

@media (max-width: 48rem) {
  .walk-step-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .walk-step figcaption {
    font-size: 1rem;
  }
}

footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-strong);
  background: var(--background);
}

.footer-inner {
  display: grid;
  align-items: center;
  grid-template-columns: auto 1fr auto auto;
  gap: 1rem 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  min-width: 2.75rem; /* short labels like "FAQ" still get a full thumb target */
  text-decoration: none;
}

.copyright {
  white-space: nowrap;
}

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

  .hero-copy {
    max-width: 50rem;
  }

  .hero-proof {
    max-width: 52rem;
  }

  .footer-inner {
    grid-template-columns: auto 1fr;
  }

  .footer-links,
  .copyright {
    grid-column: 2;
  }
}

@media (max-width: 48rem) {
  .header-inner {
    gap: 0.8rem;
  }

  nav {
    display: none;
  }

  .header-inner .button {
    margin-left: auto;
  }

  .status-grid,
  .proof-grid,
  .local-grid,
  .lang-grid,
  .pilot-grid,
  .faq-grid,
  .closing-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .flow-list li > div,
  .boundary-list > div {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .proof-grid {
    gap: 3rem;
  }

  /* captions and the hero footnote need to hold 16px on small screens */
  .hero-proof figcaption,
  .product-proof figcaption,
  .hero-note {
    font-size: 1rem;
  }

  .footer-inner {
    font-size: 1rem;
  }
}

@media (max-width: 33rem) {
  .shell {
    width: min(100% - 2.25rem, var(--shell));
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 4.4rem;
  }

  .brand img {
    width: 8.5rem;
  }

  .button-small {
    min-height: 2.75rem;
    padding-inline: 0.85rem;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 3.25rem;
  }

  .faq-list details p {
    padding-right: 1.25rem;
  }

  h1 {
    font-size: clamp(2.65rem, 13vw, 3.5rem);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .flow-list li {
    grid-template-columns: 3.25rem minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links,
  .copyright {
    grid-column: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .button,
  .capture-frame,
  .status-strip {
    border: 1px solid CanvasText;
  }
}
