/* TaxAhead landing page. Tokens follow the product design system (taxahead DESIGN.md). */
@font-face {
  font-family: "Public Sans";
  src: url("/fonts/PublicSans-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/SourceSerif4-Variable.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --color-canvas: #F6F5F0;
  --color-surface: #FFFFFF;
  --color-ink: #19352E;
  --color-text-secondary: #52635D;
  --color-action: #174C3C;
  --color-action-hover: #0F3A2D;
  --color-selected-surface: #E7EFE8;
  --color-positive: #236747;
  --color-negative: #A33333;
  --color-focus: #1E6A8D;
  --color-rule: #D9DED6;
  --color-control-outline: #7D8E83;
  --font-sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --radius: 12px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background:
    radial-gradient(1000px 560px at 50% 0, rgba(214, 231, 218, .75), rgba(214, 231, 218, 0) 70%) no-repeat,
    var(--color-canvas);
  color: var(--color-ink);
  font: 400 1rem/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums;
}
h1, h2, h3, p, figure, ol { margin: 0; }
img, video, svg { display: block; max-width: 100%; }
a { color: var(--color-action); text-underline-offset: 3px; }
a:hover { color: var(--color-action-hover); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.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 { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 16px;
  background: var(--color-action); color: #fff; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; color: #fff; }

/* Header */
.site-header { padding: 18px 0; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark {
  font-family: var(--font-serif); font-weight: 600; font-size: 1.625rem; letter-spacing: -0.01em;
  color: var(--color-ink); text-decoration: none;
}
.wordmark:hover { color: var(--color-ink); }
.wordmark-small { font-size: 1.25rem; }

/* Buttons and inputs */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border: 1px solid var(--color-action); border-radius: var(--radius);
  background: var(--color-action); color: #fff; font: 600 1rem/1 var(--font-sans);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.button:hover { background: var(--color-action-hover); border-color: var(--color-action-hover); color: #fff; }
.button:disabled { opacity: .7; cursor: progress; }
.button-ghost { background: transparent; color: var(--color-ink); border-color: var(--color-control-outline); }
.button-ghost:hover { background: var(--color-surface); color: var(--color-ink); border-color: var(--color-ink); }
.button-small { min-height: 44px; padding: 0 16px; font-size: .9375rem; }
.button-light { background: #F6F5F0; border-color: #F6F5F0; color: var(--color-ink); }
.button-light:hover { background: #fff; border-color: #fff; color: var(--color-ink); }
.button-on-dark { background: transparent; border-color: rgba(255, 255, 255, .55); color: #fff; }
.button-on-dark:hover { background: rgba(255, 255, 255, .12); border-color: #fff; color: #fff; }
.input {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--color-control-outline);
  border-radius: var(--radius); background: var(--color-surface); color: var(--color-ink);
  font: 400 1.0625rem/1.2 var(--font-sans);
}
.input::placeholder { color: var(--color-text-secondary); }
.input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-color: var(--color-action); }
.input[aria-invalid="true"] { border-color: var(--color-negative); }

/* Hero */
/* Hero: the cinematic film fills the section; a scrim keeps the copy readable.
   The text column ends by 56% of the width at every desktop size, and the scrim
   stays at 0.84+ there, so even a pure-white pixel keeps body text above 4.5:1. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-height: min(92vh, 900px);
  padding-bottom: 88px; background: #1B2B25; color: #fff;
}
.hero-film { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14, 31, 26, .45) 0%, rgba(14, 31, 26, 0) 22%, rgba(14, 31, 26, 0) 78%, rgba(14, 31, 26, .5) 100%),
    linear-gradient(90deg, rgba(14, 31, 26, .9) 0%, rgba(14, 31, 26, .84) 56%, rgba(14, 31, 26, .45) 76%, rgba(14, 31, 26, .12) 100%);
}
.hero .site-header { padding: 22px 0; }
.hero .wordmark, .hero .wordmark:hover { color: #fff; }
.hero :focus-visible { outline-color: #F6F5F0; }
.hero-copy { margin-block: auto; padding-top: 32px; }
.hero-copy > * { max-width: 640px; }
.hero h1 { color: #fff; }
.hero .eyebrow { background: rgba(231, 239, 232, .12); color: #D3E8DA; border: 1px solid rgba(231, 239, 232, .28); }
.hero .lede { margin-left: 0; color: #DCE6E0; }
.hero .waitlist { margin-left: 0; }
.hero .form-note { text-align: left; color: #CBD8D0; }
.hero .form-note.is-error { color: #FFD7CC; }
.film-toggle {
  position: absolute; right: 20px; bottom: 20px; min-height: 44px; padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; background: rgba(14, 31, 26, .55);
  color: #fff; font: 600 .8125rem/1 var(--font-sans); cursor: pointer;
}
.film-toggle:hover { background: rgba(14, 31, 26, .8); }
.eyebrow {
  display: inline-block; margin-bottom: 22px; padding: 6px 14px; border-radius: 999px;
  background: var(--color-selected-surface); color: var(--color-positive);
  font-size: .875rem; font-weight: 600; letter-spacing: .01em;
}
h1 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.5rem); line-height: 1.04; letter-spacing: -0.025em;
  text-wrap: balance;
}
.lede {
  max-width: 680px; margin: 24px auto 0; color: var(--color-text-secondary);
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.6; text-wrap: pretty;
}

.waitlist { max-width: 540px; margin: 36px auto 0; text-align: left; }
.waitlist-row { display: flex; gap: 10px; }
.waitlist-row .input { flex: 1; }
.form-note { margin-top: 12px; color: var(--color-text-secondary); font-size: .9375rem; text-align: center; }
.form-note.is-error { color: var(--color-negative); font-weight: 600; }
.waitlist-done {
  padding: 20px 22px; border-radius: var(--radius); background: var(--color-surface);
  border: 1px solid var(--color-rule); text-align: center; color: var(--color-ink);
}
.waitlist-done strong { display: block; font-size: 1.125rem; }
.waitlist-done p { margin-top: 4px; color: var(--color-text-secondary); }
.waitlist-done:focus { outline: none; }

.demo { padding-bottom: 72px; }
.section-lede { max-width: 640px; margin-top: 14px; color: var(--color-text-secondary); font-size: 1.125rem; line-height: 1.6; }
.demo-media { margin-top: 40px; }
.frame {
  overflow: hidden; border-radius: 18px; background: var(--color-canvas);
  border: 1px solid rgba(25, 53, 46, .14);
  box-shadow: 0 1px 2px rgba(25, 53, 46, .06), 0 30px 70px -20px rgba(25, 53, 46, .28);
}
.frame video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: var(--color-canvas); }
.media-caption {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 14px; color: var(--color-text-secondary); font-size: .9375rem;
}

/* Sections */
.section { padding: 96px 0; }
.section-surface { background: var(--color-surface); border-block: 1px solid var(--color-rule); }
.section-title {
  max-width: 760px; font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(1.875rem, 1.4rem + 1.8vw, 2.75rem); line-height: 1.12; letter-spacing: -0.02em;
  text-wrap: balance;
}
h3 { font-size: 1.1875rem; line-height: 1.35; font-weight: 650; }

.steps { list-style: none; padding: 0; margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.step-number {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px;
  border-radius: 50%; background: var(--color-action); color: #fff; font-weight: 700;
}
.step p, .feature p { margin-top: 8px; color: var(--color-text-secondary); line-height: 1.6; }

.features { margin-top: 48px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature { padding: 28px; border: 1px solid var(--color-rule); border-radius: 16px; background: var(--color-canvas); }
.feature svg {
  width: 28px; height: 28px; margin-bottom: 16px; fill: none; stroke: var(--color-action);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.band { background: var(--color-ink); color: #F1F5F1; padding: 64px 0; }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.band h3 { color: #fff; }
.band p { margin-top: 8px; color: #C9D6CE; line-height: 1.6; }

.faq { margin-top: 36px; border-top: 1px solid var(--color-rule); }
.faq details { border-bottom: 1px solid var(--color-rule); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none;
  font-size: 1.125rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 4px;
  border-right: 2px solid var(--color-ink); border-bottom: 2px solid var(--color-ink);
  transform: rotate(45deg) translateY(-3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding: 0 0 20px; color: var(--color-text-secondary); line-height: 1.65; max-width: 680px; }

.cta { text-align: center; padding-top: 40px; padding-bottom: 112px; }
.cta:focus { outline: none; }
.cta h2 {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); line-height: 1.08; letter-spacing: -0.02em;
}
.cta .lede { margin-top: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--color-rule); padding: 28px 0 40px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.footer-row nav a { font-weight: 600; }
.fine { flex-basis: 100%; color: var(--color-text-secondary); font-size: .875rem; }

/* Plain pages: privacy, joined, errors */
.plain-main { max-width: 720px; margin: 0 auto; padding: 48px 24px 96px; }
.plain-main h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin: 32px 0 16px; }
.plain-main h2 { font-size: 1.25rem; margin: 36px 0 8px; }
.plain-main p, .plain-main li { color: var(--color-text-secondary); line-height: 1.7; }
.plain-main p + p { margin-top: 12px; }
.plain-main ul { padding-left: 1.2em; }

@media (max-width: 900px) {
  .steps, .band-grid { grid-template-columns: 1fr; gap: 32px; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 800px) {
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(14, 31, 26, .55) 0%, rgba(14, 31, 26, .82) 30%, rgba(14, 31, 26, .82) 100%);
  }
}
@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero { min-height: auto; padding-bottom: 80px; }
  .hero-copy { padding-top: 16px; }
  .film-toggle { right: 12px; bottom: 12px; }
  .waitlist-row { flex-direction: column; }
  .waitlist-row .button { width: 100%; }
  .demo-media { margin-top: 28px; }
  .frame { border-radius: 12px; }
  .media-caption { flex-direction: column; align-items: flex-start; }
  .site-header .button-small { padding: 0 12px; }
}
.plain-main form { margin: 24px 0; }
/* Turnstile renders only when a visitor has to interact (appearance: interaction-only). */
.turnstile { display: flex; justify-content: center; margin-top: 12px; }
.turnstile:empty { display: none; }
