/* Attendance App — public website
   Paper-and-ink register. Brand tokens mirror lib/core/theme.dart.
   No external dependencies: the Barlow faces are bundled below. */

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #fbf8ef;
  --paper-2: #f1ecde;
  --paper-3: #e8e1cd;
  --rule: #d5ccb4;
  --rule-strong: #b9ae93;
  --ink: #16181d;
  --ink-2: #3e3a32;
  --muted: #6b6252;
  --navy: #1b3a6b;
  --navy-deep: #12294d;
  --vermilion: #b3261e;
  --ochre: #a2681e;
  --ochre-light: #e8c48a;
  --green: #1f6f43;
  --white: #fffdf6;
  --font: "Barlow", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --condensed: "Barlow Condensed", "Barlow", "Segoe UI", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0;
}

p {
  margin: 0;
}

a {
  color: var(--navy);
  text-underline-offset: 2px;
}

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

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

code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.86em;
  padding: 1px 4px;
  background: var(--paper-3);
}

::selection {
  background: var(--navy);
  color: var(--paper);
}

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 14px;
  background: var(--navy);
  color: var(--paper);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
  color: var(--paper);
}

/* Header */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--condensed);
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

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

.brand img {
  width: 32px;
  height: 32px;
}

.brand em {
  font-style: normal;
  color: var(--navy);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

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

.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--navy);
}

.nav .btn {
  border-bottom: 0;
  color: var(--paper);
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}

.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: var(--paper);
}

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

.btn-ghost:hover {
  background: var(--paper-3);
  border-color: var(--ink-2);
  color: var(--ink);
}

.btn-gold {
  background: var(--ochre);
  border-color: var(--ochre);
  color: var(--paper);
}

.btn-gold:hover {
  background: #8a5718;
  border-color: #8a5718;
  color: var(--paper);
}

.btn-lg {
  padding: 13px 18px;
  font-size: 12px;
}

/* Hero */

.hero {
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}

.hero h1 {
  max-width: 12ch;
  margin: 0 0 20px;
  font-family: var(--condensed);
  font-size: clamp(40px, 6.4vw, 70px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.005em;
}

.hero .lead {
  max-width: 54ch;
  margin: 0 0 26px;
  font-size: 17px;
  line-height: 1.62;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-note {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 580px;
  margin-top: 30px;
  border: 1px solid var(--rule);
  background: var(--white);
}

.hero-note span {
  padding: 10px 12px;
  border-left: 1px solid var(--rule);
  font-size: 13px;
  line-height: 1.3;
}

.hero-note span:first-child {
  border-left: 0;
}

.hero-note b {
  display: block;
  margin-bottom: 3px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre);
}

/* Hero register sheet */

.ledger-wrap {
  width: 100%;
  max-width: 440px;
  justify-self: end;
}

.ledger-sheet {
  position: relative;
  padding: 0 16px 12px 26px;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: var(--white);
}

.ledger-sheet::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12px;
  width: 1px;
  background: var(--vermilion);
  opacity: 0.55;
}

.ledger-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 11px;
  border-bottom: 1px solid var(--ink);
}

.ledger-head strong {
  font-family: var(--condensed);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ledger-head span {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.ledger-cols {
  display: flex;
  justify-content: space-between;
  padding: 8px 0 6px;
  border-bottom: 1px solid var(--rule);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.ledger-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.ledger-initial {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--rule-strong);
  font-family: var(--condensed);
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
}

.ledger-name strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.2;
}

.ledger-name small {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
}

.ledger-marks {
  display: flex;
  gap: 4px;
}

.ledger-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--rule-strong);
  font-size: 10px;
  font-weight: 600;
}

.ledger-mark-p {
  border-color: var(--navy);
  color: var(--navy);
}

.ledger-mark-a {
  border-color: var(--vermilion);
  color: var(--vermilion);
}

.ledger-mark-ot {
  width: auto;
  padding: 0 5px;
  border-color: var(--ochre);
  color: var(--ochre);
}

.ledger-totals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}

.ledger-totals div {
  padding: 9px 0 10px 10px;
  border-left: 1px solid var(--rule);
}

.ledger-totals div:first-child {
  padding-left: 0;
  border-left: 0;
}

.ledger-totals span {
  display: block;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.ledger-totals strong {
  display: block;
  font-family: var(--condensed);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.ledger-caption {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  text-align: right;
}

/* At a glance */

.facts-band {
  padding: 42px 0;
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}

.facts-band h2 {
  margin: 0 0 12px;
  font-family: var(--font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 48px;
  margin: 0;
}

.fact {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--rule);
}

.fact dt {
  padding-top: 2px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.fact dd {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
}

.fact dd a {
  color: var(--ink);
}

/* Sections */

.section {
  padding: 64px 0;
}

.section.alt {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-2);
}

.section-head {
  max-width: 780px;
  margin-bottom: 26px;
}

.section h2,
.trust-band h2,
.cta h2 {
  font-family: var(--condensed);
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  line-height: 1.02;
}

.section-head p {
  max-width: 66ch;
  margin: 10px 0 0;
  font-size: 15.5px;
  color: var(--muted);
}

.kicker {
  display: none;
}

/* Register list of features */

.feature-grid {
  counter-reset: feature;
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  background: var(--white);
}

.feature {
  display: grid;
  grid-template-columns: 38px 210px minmax(0, 1fr);
  align-items: baseline;
  gap: 20px;
  padding: 17px 20px;
  border-top: 1px solid var(--rule);
}

.feature:first-child {
  border-top: 0;
}

.feature::before {
  counter-increment: feature;
  content: counter(feature, decimal-leading-zero);
  font-family: var(--condensed);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ochre);
}

.feature .ico {
  display: none;
}

.feature h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}

.feature p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* Steps */

.steps {
  counter-reset: step;
  border: 1px solid var(--rule-strong);
  background: var(--white);
}

.step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 20px;
  border-top: 1px solid var(--rule);
}

.step:first-child {
  border-top: 0;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--condensed);
  font-size: 24px;
  font-weight: 600;
  line-height: 1;
  color: var(--ochre);
}

.step h3,
.step p {
  grid-column: 2;
}

.step h3 {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
}

.step p {
  max-width: 78ch;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* Plans */

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rule-strong);
  background: var(--white);
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border-left: 1px solid var(--rule);
}

.plan:first-child {
  border-left: 0;
}

.plan.featured {
  background: var(--paper-2);
  box-shadow: inset 0 3px 0 var(--ochre);
}

.plan-tag {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 3px 6px;
  border: 1px solid var(--rule-strong);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.plan.featured .plan-tag {
  border-color: var(--ochre);
  color: var(--ochre);
}

.plan h3 {
  margin-bottom: 6px;
  font-family: var(--condensed);
  font-size: 23px;
  font-weight: 600;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 8px;
}

.price strong {
  font-family: var(--condensed);
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price span {
  font-size: 12px;
  color: var(--muted);
}

.plan-sub {
  margin: 0 0 16px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

.plan ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.plan li {
  position: relative;
  padding-left: 12px;
  font-size: 13px;
  line-height: 1.45;
}

.plan li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--ochre);
}

.plan .btn {
  justify-content: center;
  margin-top: 18px;
}

.pricing-note {
  max-width: 900px;
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

.pricing-note a {
  color: var(--ink);
}

/* Trust */

.trust-band {
  padding: 56px 0;
  border-bottom: 1px solid var(--rule);
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.trust-point {
  padding: 16px 20px 18px;
  border-left: 1px solid var(--rule);
}

.trust-point:first-child {
  padding-left: 0;
  border-left: 0;
}

.trust-point svg {
  display: none;
}

.trust-point strong {
  display: block;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ochre);
}

.trust-point span {
  display: block;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

/* Closing call */

.cta {
  padding: 56px 0;
}

.cta-card {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 32px;
  border-top: 3px solid var(--ochre);
  background: var(--navy-deep);
  color: var(--paper);
}

.cta-card h2 {
  color: var(--paper);
}

.cta-card p {
  max-width: 62ch;
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(251, 248, 239, 0.76);
}

.cta-actions {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.cta .btn-primary {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--navy-deep);
}

.cta .btn-primary:hover {
  border-color: var(--paper-3);
  background: var(--paper-3);
  color: var(--ink);
}

.cta .btn-ghost {
  border-color: rgba(251, 248, 239, 0.45);
  color: var(--paper);
}

.cta .btn-ghost:hover {
  border-color: var(--paper);
  background: rgba(251, 248, 239, 0.08);
  color: var(--paper);
}

/* Footer */

.site-footer {
  flex-shrink: 0;
  padding: 44px 0 24px;
  background: var(--ink);
  color: rgba(251, 248, 239, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(251, 248, 239, 0.16);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--condensed);
  font-size: 18px;
  font-weight: 700;
  color: var(--paper);
  text-decoration: none;
}

.footer-brand:hover {
  color: var(--paper);
}

.footer-brand em {
  font-style: normal;
  color: var(--ochre-light);
}

.site-footer p {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
}

.site-footer a {
  color: rgba(251, 248, 239, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer h3 {
  margin: 0 0 10px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ochre-light);
}

.footer-links {
  display: grid;
  gap: 6px;
}

.footer-links a {
  font-size: 12.5px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  font-size: 11px;
  color: rgba(251, 248, 239, 0.48);
}

.footer-bottom a {
  color: rgba(251, 248, 239, 0.7);
}

/* Legal and support pages */

.breadcrumbs {
  padding-top: 18px;
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.breadcrumbs li {
  display: flex;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--rule-strong);
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

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

.legal-hero {
  padding: 34px 0 30px;
  border-bottom: 1px solid var(--rule-strong);
}

.legal-hero h1 {
  max-width: 20ch;
  margin: 0 0 12px;
  font-family: var(--condensed);
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 600;
  line-height: 1;
}

.legal-hero .lede {
  max-width: 72ch;
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-variant-numeric: tabular-nums;
}

.legal-meta span {
  font-size: 11.5px;
  color: var(--muted);
}

.legal-meta strong {
  margin-right: 5px;
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.legal-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  padding: 34px 0 64px;
}

.toc {
  position: sticky;
  top: 84px;
  padding-left: 16px;
  border-left: 1px solid var(--rule-strong);
}

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.toc a {
  display: block;
  padding: 3px 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  text-decoration: none;
}

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

.prose {
  min-width: 0;
  max-width: 780px;
}

.prose h2 {
  margin: 38px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--condensed);
  font-size: 27px;
  font-weight: 600;
  line-height: 1.1;
  scroll-margin-top: 84px;
}

.prose h2:first-of-type {
  margin-top: 26px;
}

.prose h3 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 600;
}

.prose p,
.prose li {
  font-size: 15px;
  line-height: 1.68;
}

.prose p {
  margin: 0 0 12px;
}

.prose ul,
.prose ol {
  margin: 0 0 14px;
  padding-left: 20px;
}

.prose li {
  margin: 5px 0;
}

.prose li::marker {
  color: var(--ochre);
}

.prose a {
  color: var(--navy);
}

.prose strong {
  font-weight: 600;
}

.prose table {
  width: 100%;
  margin: 12px 0 18px;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.5;
}

.prose th {
  padding: 7px 8px 6px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: bottom;
}

.prose td {
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.callout {
  margin: 0 0 18px;
  padding: 13px 16px;
  border-left: 3px solid var(--ochre);
  background: var(--paper-2);
}

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

.callout p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.callout p + p {
  margin-top: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 8px 0 16px;
  border: 1px solid var(--rule-strong);
  background: var(--white);
}

.contact-card {
  padding: 14px 16px;
  border-left: 1px solid var(--rule);
}

.contact-card:first-child {
  border-left: 0;
}

.contact-card svg {
  display: none;
}

.contact-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ochre);
}

.contact-card a,
.contact-card span {
  display: block;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink);
  word-break: break-word;
}

.contact-card a {
  color: var(--navy);
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

.contact-card p {
  margin: 5px 0 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* FAQ */

.faq {
  border: 1px solid var(--rule-strong);
  background: var(--white);
}

.faq details {
  border-top: 1px solid var(--rule);
}

.faq details:first-child {
  border-top: 0;
}

.faq summary {
  position: relative;
  padding: 14px 44px 14px 16px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}

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

.faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  font-family: var(--condensed);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: var(--ochre);
}

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

.faq details p {
  max-width: 78ch;
  margin: 0;
  padding: 0 16px 15px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

.faq details p strong {
  color: var(--ink);
}

.faq details a {
  color: var(--navy);
}

/* Numbered instructions inside prose */

.steps-list {
  counter-reset: step;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.steps-list li {
  position: relative;
  margin: 0 0 14px;
  padding: 0 0 0 38px;
  font-size: 15px;
  line-height: 1.65;
}

.steps-list li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--rule-strong);
  background: var(--paper);
  font-family: var(--condensed);
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
}

/* 404 */

.notfound {
  display: flex;
  align-items: center;
  min-height: 52vh;
  padding: 64px 0;
}

.notfound .code {
  font-family: var(--condensed);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ochre);
}

.notfound h1 {
  margin: 8px 0 10px;
  font-family: var(--condensed);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 600;
  line-height: 1;
}

.notfound p {
  max-width: 56ch;
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--muted);
}

/* Small screens */

@media (max-width: 980px) {
  .hero-grid {
    gap: 36px;
  }

  .feature {
    grid-template-columns: 32px 180px minmax(0, 1fr);
    gap: 16px;
  }

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

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid rgba(251, 248, 239, 0.16);
  }

  .legal-grid {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: grid;
  }

  .nav {
    position: absolute;
    top: 64px;
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 14px;
    border: 1px solid var(--rule-strong);
    background: var(--paper);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 11px 0;
    border-bottom: 1px solid var(--rule);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .nav a[aria-current="page"] {
    padding-left: 10px;
    border-bottom-color: var(--rule);
    box-shadow: inset 3px 0 0 var(--navy);
  }

  .hero {
    padding: 48px 0;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero h1 {
    max-width: 13ch;
  }

  .ledger-wrap {
    justify-self: start;
    max-width: 460px;
  }

  .plans {
    grid-template-columns: minmax(0, 1fr);
  }

  .plan {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .plan:first-child {
    border-top: 0;
  }

  .plan.featured {
    box-shadow: inset 3px 0 0 var(--ochre);
  }

  .cta-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
  }

  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding-top: 24px;
  }

  .toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    padding: 12px 0;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    border-left: 0;
  }

  .toc strong {
    width: 100%;
    margin-bottom: 2px;
  }

  .toc a {
    padding: 2px 0;
  }
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 18px;
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 4px 14px;
    padding: 16px;
  }

  .feature h3 {
    grid-column: 2;
  }

  .feature p {
    grid-column: 2;
    margin-top: 2px;
  }

  .trust-points {
    grid-template-columns: minmax(0, 1fr);
  }

  .trust-point {
    padding: 14px 0;
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .trust-point:first-child {
    border-top: 0;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-card {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .contact-card:first-child {
    border-top: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .footer-grid > div:first-child,
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-grid > div:last-child {
    padding-top: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 6px;
  }

  .cta-card {
    padding: 24px;
  }

  .cta-actions {
    flex-wrap: wrap;
  }

  .prose table {
    display: block;
    overflow-x: auto;
    font-size: 12.5px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 38px 0 40px;
  }

  .hero h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  .hero .lead {
    font-size: 15.5px;
  }

  .hero-note {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-note span {
    border-top: 1px solid var(--rule);
    border-left: 0;
  }

  .hero-note span:first-child {
    border-top: 0;
  }

  .section,
  .trust-band,
  .cta {
    padding: 44px 0;
  }

  .facts-band {
    padding: 30px 0;
  }

  .fact {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .legal-hero {
    padding: 26px 0 24px;
  }

  .legal-meta {
    gap: 5px 18px;
  }

  .prose h2 {
    font-size: 24px;
  }

  .plan {
    padding: 18px 16px;
  }

  .cta-card {
    padding: 20px;
  }

  .notfound {
    padding: 48px 0;
  }

  .btn {
    min-height: 44px;
  }
}

@media (max-width: 460px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid > div:first-child,
  .footer-grid > div:last-child {
    grid-column: auto;
  }

  .footer-grid > div:last-child {
    padding-top: 18px;
    border-top: 1px solid rgba(251, 248, 239, 0.16);
  }
}

@media (max-width: 400px) {
  .fact {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

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

  * {
    transition: none !important;
  }
}
