/* ==========================================================================
   MS Consulting Group — Tax consulting one-pager
   Design tokens · 8-point spacing · mobile-first
   Breakpoints: 750px / 990px
   ========================================================================== */

:root {
  --bg: #f7f5f0;
  --ink: #121212;
  --muted: #5c5c5c;
  --line: #e2ddd4;
  --accent: #1a3c34;
  --accent-2: #c4a35a;
  --white: #fff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;

  --radius: 4px;
  --ease: ease;
  --dur: 200ms;
  --max: 1120px;
  --header-h: 72px;
}

/* Reset / base ----------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img,
iframe {
  max-width: 100%;
  border: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

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

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2);
  color: var(--ink);
}

p {
  margin: 0 0 var(--space-2);
  color: var(--muted);
}

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

/* Layout helpers --------------------------------------------------------- */

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.section {
  padding: clamp(64px, 10vw, 120px) 24px;
}

.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-1);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  max-width: 18ch;
  margin-bottom: var(--space-3);
}

.section-lead {
  max-width: 42ch;
  font-size: 1.0625rem;
  margin-bottom: var(--space-5);
}

.gold-rule {
  width: 48px;
  height: 2px;
  background: var(--accent-2);
  border: 0;
  margin: 0 0 var(--space-3);
}

.gold-rule--hero {
  width: 64px;
  height: 3px;
  margin-bottom: var(--space-4);
}

.gold-rule--section {
  width: 40px;
  height: 2px;
  margin: 0 0 var(--space-2);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  min-height: 48px;
  padding: 14px 28px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: #143029;
  color: var(--white);
  border-color: #143029;
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn-ghost:hover {
  background: var(--accent);
  color: var(--white);
}

.btn-text {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding-inline: 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  align-items: center;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: var(--header-h);
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo:hover {
  color: var(--accent);
}

.logo-mark {
  display: none;
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-left: 6px;
  vertical-align: middle;
}

.nav {
  display: none;
  align-items: center;
  gap: var(--space-3);
}

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.header-phone {
  display: none;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--accent);
}

.header-cta {
  padding: 10px 18px;
  min-height: 40px;
  font-size: 0.8125rem;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-2) 24px var(--space-3);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 12px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

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

.mobile-nav .btn {
  margin-top: var(--space-1);
  width: 100%;
  justify-content: center;
}

@media (min-width: 750px) {
  .header-phone {
    display: inline;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-nav {
    display: none !important;
  }

  .nav {
    display: flex;
  }

  .logo-mark {
    display: inline;
  }
}

@media (min-width: 990px) {
  .header-cta {
    padding: 14px 28px;
    min-height: 48px;
    font-size: 0.9375rem;
  }

  .nav {
    gap: var(--space-4);
  }
}

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

.hero {
  position: relative;
  padding: clamp(72px, 13vw, 160px) 24px clamp(80px, 11vw, 140px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 65% at 88% 12%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 55%),
    radial-gradient(ellipse 55% 45% at 8% 82%, color-mix(in srgb, var(--accent-2) 14%, transparent), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, var(--line)) 100%);
  pointer-events: none;
  z-index: 0;
}

/* Subtle paper texture */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 0px, var(--max));
  margin-inline: auto;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(2.25rem, 6.5vw, 3.75rem);
  max-width: 14ch;
  margin-bottom: var(--space-3);
}

.hero-sub {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem);
  max-width: 38ch;
  margin-bottom: var(--space-4);
  color: var(--muted);
}

.hero .btn-row {
  margin-bottom: var(--space-4);
}

.trust-line {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.trust-line span {
  white-space: nowrap;
}

.trust-sep {
  margin: 0 0.45em;
  color: var(--line);
  font-weight: 300;
}

/* Who we serve ----------------------------------------------------------- */

.serve {
  background: var(--bg);
}

.audience-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

.audience-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--space-4);
  border-top: 3px solid var(--accent-2);
  transition: border-color var(--dur) var(--ease);
}

.audience-card:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  border-top-color: var(--accent-2);
}

.audience-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-2);
}

.audience-card p {
  font-size: 0.9375rem;
  margin-bottom: 0;
}

@media (min-width: 750px) {
  .audience-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }
}

@media (min-width: 990px) {
  .audience-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Services --------------------------------------------------------------- */

.services {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card-grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--space-4);
  transition: border-color var(--dur) var(--ease);
}

.card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}

.card-num {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: var(--space-2);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

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

@media (min-width: 750px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
  }
}

/* Tax Evaluation --------------------------------------------------------- */

.evaluation {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.evaluation-layout {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: 1fr;
  align-items: start;
}

.evaluation-intro .section-lead {
  margin-bottom: var(--space-3);
}

.evaluation-micro {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--space-4);
}

.evaluation-list {
  display: grid;
  gap: var(--space-2);
}

.evaluation-list li {
  display: grid;
  gap: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--space-3);
  border-left: 3px solid var(--accent);
}

.evaluation-list strong {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.evaluation-list span {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (min-width: 750px) {
  .evaluation-layout {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-6);
  }
}

/* How it works ----------------------------------------------------------- */

.how {
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.steps {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: var(--space-5);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--white);
  background: var(--accent);
  border-radius: 50%;
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: var(--space-1);
}

.step p {
  font-size: 0.9375rem;
  margin-bottom: 0;
  max-width: 36ch;
}

@media (min-width: 750px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
  }

  .step {
    padding-left: 0;
    padding-top: var(--space-5);
  }

  .step::before {
    top: 0;
  }
}

/* About ------------------------------------------------------------------ */

.about {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.about-inner {
  max-width: 640px;
}

.about-inner .section-title {
  max-width: none;
}

.about-inner p {
  font-size: 1.0625rem;
  max-width: 52ch;
}

.about-inner p:last-child {
  margin-bottom: 0;
}

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

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

.faq-list {
  display: grid;
  gap: var(--space-2);
  max-width: 720px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}

.faq-item[open] {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 52px;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

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

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.faq-item p {
  margin: 0;
  padding: 0 var(--space-3) var(--space-3);
  font-size: 0.9375rem;
  max-width: 56ch;
}

/* Book / intake teaser --------------------------------------------------- */

.book {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.book-intro {
  max-width: 540px;
  margin-bottom: var(--space-5);
}

.book-teaser {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.book-teaser h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin: 0 0 var(--space-2);
}

.book-teaser p {
  margin: 0 0 var(--space-2);
  max-width: 52ch;
}

.book-teaser-list {
  margin: 0 0 var(--space-3);
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-1);
}

.book-teaser-list li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.book-teaser-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-2);
}

@media (min-width: 750px) {
  .book-teaser {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
    padding: var(--space-5);
  }
}

/* Contact strip ---------------------------------------------------------- */

.contact-strip {
  padding: var(--space-6) 24px;
  background: var(--accent);
  color: var(--white);
}

.contact-strip .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

.contact-strip h2 {
  color: var(--white);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  margin-bottom: var(--space-1);
}

.contact-strip p {
  color: color-mix(in srgb, var(--white) 75%, transparent);
  margin-bottom: 0;
  font-size: 0.9375rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}

.contact-links a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent-2) 70%, transparent);
  padding-bottom: 2px;
}

.contact-links a:hover {
  color: var(--accent-2);
  border-bottom-color: var(--accent-2);
}

@media (min-width: 750px) {
  .contact-strip .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

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

.site-footer {
  padding: var(--space-6) 24px var(--space-4);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: 1fr;
  margin-bottom: var(--space-5);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--space-1);
}

.footer-note,
.footer-text {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0;
  max-width: 28ch;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

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

.footer-list li {
  font-size: 0.8125rem;
  color: var(--muted);
}

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

.footer-list a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.footer-anchors {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
}

.footer-anchors a {
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-anchors a:hover {
  color: var(--accent);
}

@media (min-width: 750px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--space-4);
  }
}


/* File now / tax intake form -------------------------------------------- */

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

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

.fn-hero {
  padding: clamp(48px, 8vw, 96px) 24px var(--space-4);
  border-bottom: 1px solid var(--line);
}

.fn-hero-inner {
  max-width: 720px;
}

.fn-hero h1 {
  font-size: clamp(1.875rem, 4.5vw, 2.75rem);
  max-width: 18ch;
}

.fn-hero-lead {
  font-size: 1.125rem;
  max-width: 46ch;
  margin-bottom: var(--space-3);
}

.fn-expect {
  padding-top: var(--space-6);
  padding-bottom: var(--space-5);
}

.expect-list {
  display: grid;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
  max-width: 56ch;
}

.expect-list li {
  position: relative;
  padding: var(--space-2) var(--space-2) var(--space-2) 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.9875rem;
}

.expect-list li::before {
  content: "";
  position: absolute;
  left: 0.85rem;
  top: 1.15rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.fn-note {
  font-size: 0.9375rem;
  max-width: 56ch;
}

.fn-contact-note {
  font-size: 0.9375rem;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.form-section-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.form-section-nav-inner {
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  padding: var(--space-2) 0;
  scrollbar-width: thin;
}

.form-section-nav a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: nowrap;
}

.form-section-nav a:hover {
  color: var(--accent);
  border-color: var(--line);
  background: var(--white);
}

.fn-form-section {
  padding-top: var(--space-5);
}

.tax-intake {
  display: grid;
  gap: var(--space-4);
  max-width: 880px;
}

.form-card {
  margin: 0;
  padding: var(--space-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  scroll-margin-top: calc(var(--header-h) + 64px);
}

.form-card legend {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding: 0 var(--space-1);
}

.form-card .subhead {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin: var(--space-4) 0 var(--space-2);
}

.field-help {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0 0 var(--space-3);
  max-width: 60ch;
}

.field-grid {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 750px) {
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }
  .field--full {
    grid-column: 1 / -1;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label,
.choice {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.field .hint {
  font-weight: 400;
  color: var(--muted);
}

.req {
  color: #8a3b2b;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="number"],
.field select,
.field textarea {
  min-height: 44px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.field input[type="file"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.field input[type="file"] {
  font-size: 0.875rem;
  padding: 10px 0;
  min-height: 44px;
}

.choice-grid {
  display: grid;
  gap: var(--space-1);
  margin-bottom: var(--space-3);
}

@media (min-width: 750px) {
  .choice-grid {
    grid-template-columns: 1fr 1fr;
  }
  .choice-grid--dense {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 990px) {
  .choice-grid--dense {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-weight: 500;
  cursor: pointer;
}

.choice input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.choice--ack {
  margin-top: var(--space-2);
  background: var(--white);
  border-color: var(--accent);
}

.dependent-row {
  padding: var(--space-3);
  margin-bottom: var(--space-3);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.dependent-title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  margin: 0 0 var(--space-2);
}

.doc-checklist {
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.doc-checklist li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.doc-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.legal-scroll {
  max-height: 200px;
  overflow-y: auto;
  padding: var(--space-3);
  margin-bottom: var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.legal-scroll p,
.legal-scroll ul {
  margin: 0 0 var(--space-2);
}

.legal-scroll ul {
  padding-left: 1.25rem;
  list-style: disc;
}

.legal-scroll li {
  margin-bottom: 6px;
}

.form-submit-bar {
  position: sticky;
  bottom: 0;
  z-index: 100;
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px));
  margin-top: var(--space-4);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 8px 8px 0 0;
  background: var(--white);
  box-shadow: 0 -8px 28px rgba(18, 18, 18, 0.12);
  text-align: center;
}

.form-submit-bar .btn-lg {
  width: 100%;
  max-width: 100%;
}

@media (min-width: 750px) {
  .form-submit-bar .btn-lg {
    max-width: 420px;
  }
}

.form-submit-error {
  display: none;
  margin: 0 0 var(--space-3);
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #c45c4a;
  background: #fdf2f0;
  color: #5c1f16;
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: left;
}

.form-submit-error.is-visible {
  display: block;
}

.form-submit-error a {
  color: var(--accent);
  font-weight: 600;
}

.form-optional-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-2) 28%, var(--bg));
  color: var(--ink);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.btn-sm {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.875rem;
}

.btn-lg {
  min-height: 52px;
  padding: 16px 36px;
  font-size: 1rem;
  width: 100%;
  max-width: 360px;
}

.form-fineprint {
  margin: var(--space-3) 0 0;
  font-size: 0.8125rem;
}

.form-success {
  padding: var(--space-6) 24px;
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  border-bottom: 1px solid var(--line);
}

.form-success h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.form-success .container {
  max-width: 640px;
}

.page-file-now .site-footer {
  margin-top: 0;
}

@media (min-width: 750px) {
  .form-card {
    padding: var(--space-5);
  }
}

/* Reduced motion --------------------------------------------------------- */

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

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