:root {
  --yellow: #FFD23F;
  --yellow-soft: #FFF3C4;
  --ink: #111111;
  --ink-2: #3A3A3A;
  --paper: #FFFDF5;
  --white: #FFFFFF;
  --line: #E6DFC8;
  --font: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.55; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -0.035em; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
svg { display: block; }

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

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--yellow); border-bottom: 2px solid var(--ink); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 24px; letter-spacing: -0.03em; }
.logo svg { width: 34px; height: 34px; }
.links { display: flex; gap: 28px; }
.links a { text-decoration: none; font-weight: 500; font-size: 16px; }
.links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pill-btn { text-decoration: none; font-weight: 700; font-size: 15px; padding: 9px 16px; border: 2px solid var(--ink); border-radius: 99px; white-space: nowrap; }
.pill-btn:hover { background: var(--ink); color: var(--yellow); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 16px 28px; border-radius: 99px; border: 0; font: 700 17px var(--font); text-decoration: none; cursor: pointer; transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--yellow); }
.btn-full { width: 100%; }
.btn-link { font-weight: 700; text-underline-offset: 5px; text-decoration-thickness: 2px; }

/* Hero */
.hero { background: var(--yellow); padding: 72px 0 64px; border-bottom: 2px solid var(--ink); }
.kicker { display: inline-block; font-weight: 700; font-size: 15px; border: 2px solid var(--ink); border-radius: 99px; padding: 6px 14px; margin-bottom: 28px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 800; max-width: 17ch; line-height: 0.98; }
.lead { margin-top: 28px; font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 36px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 56px 0 0; border-top: 2px solid var(--ink); }
.facts div { padding: 20px 20px 0 0; }
.facts div + div { padding-left: 20px; border-left: 2px solid var(--ink); }
.facts dt { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.facts dd { margin: 6px 0 0; font-size: 15px; }

/* Sections */
.band { padding: 96px 0; border-bottom: 2px solid var(--ink); }
.band-white { background: var(--white); }
.band-yellow { background: var(--yellow); }
.section-kicker { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.band h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; max-width: 18ch; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 64px; align-items: start; }
.prose { display: grid; gap: 20px; font-size: 19px; color: var(--ink-2); }

.saving { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 36px; align-items: center; margin: 48px 0 56px; padding: 32px 36px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 24px; }
.saving-num { font-size: clamp(3rem, 8vw, 5.5rem); font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; white-space: nowrap; }
.saving-text { font-size: 18px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-weight: 800; margin-bottom: 16px; }
.steps h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.steps p { margin-top: 10px; font-size: 16px; color: var(--ink-2); }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.card { background: var(--white); border: 2px solid var(--ink); border-radius: 24px; padding: 36px; box-shadow: 6px 6px 0 var(--ink); }
.card-tag { display: inline-block; background: var(--yellow); border: 2px solid var(--ink); border-radius: 99px; padding: 4px 12px; font-size: 14px; font-weight: 700; margin-bottom: 20px; }
.card h3 { font-size: 30px; font-weight: 800; }
.card p:last-child { margin-top: 14px; color: var(--ink-2); }

.between { margin-top: 24px; font-weight: 500; }

/* Deadlines table */
.table-lead { margin-top: 20px; max-width: 40em; font-size: 19px; color: var(--ink-2); }
.table-box { margin-top: 36px; overflow-x: auto; border: 2px solid var(--ink); border-radius: 20px; max-width: 860px; }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead th { background: var(--ink); color: var(--yellow); font-size: 15px; font-weight: 700; }
tbody th { font-weight: 700; }
tbody tr:first-child { background: var(--yellow-soft); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.source { margin-top: 16px; font-size: 14px; color: #5A5A5A; max-width: 60em; }
.foot a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* FAQ */
.faq { margin-top: 40px; border-top: 2px solid var(--ink); max-width: 860px; }
.faq details { border-bottom: 2px solid var(--ink); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 22px 48px 22px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.3; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 30px; font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 48px 24px 0; color: var(--ink-2); }

/* Waitlist */
.side-text { margin-top: 20px; font-size: 19px; max-width: 26em; }
.form { background: var(--white); border: 2px solid var(--ink); border-radius: 24px; padding: 32px; display: grid; gap: 22px; box-shadow: 6px 6px 0 var(--ink); }
.form > label { display: grid; gap: 8px; font-weight: 700; font-size: 16px; }
.form input:not([type=radio]):not([type=checkbox]) { font: 400 17px var(--font); padding: 13px 15px; border: 2px solid var(--ink); border-radius: 12px; background: var(--white); width: 100%; }
.form input:focus { outline: none; box-shadow: 0 0 0 4px var(--yellow); }
.form .invalid { border-color: #B42318 !important; box-shadow: 0 0 0 4px #FDE2DF !important; }
.opt { font-weight: 400; font-size: 14px; color: #5A5A5A; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; margin-bottom: 10px; font-weight: 700; font-size: 16px; }
fieldset.invalid legend { color: #B42318; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: 10px 16px; border: 2px solid var(--ink); border-radius: 99px; font-size: 15px; font-weight: 500; }
.choice input:checked + span { background: var(--ink); color: var(--yellow); }
.choice input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }
.side-text + .side-text { margin-top: 14px; }
.form .beta { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--yellow-soft); font-weight: 500; cursor: pointer; }
.beta input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--ink); }
.form-msg:empty { display: none; }
.form-msg { font-weight: 700; color: #B42318; }
.small { font-size: 14px; color: #5A5A5A; }
.done { text-align: center; padding: 28px 8px; }
.done h3 { font-size: 34px; font-weight: 800; }
.done p { margin-top: 12px; }

/* Footer */
.foot { background: var(--ink); color: #D6D6D6; padding: 48px 0; font-size: 14px; }
.foot-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 40px; align-items: start; }
.logo-light { color: var(--white); }

@media (max-width: 960px) {
  .links { display: none; }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 2px solid var(--ink); margin-top: 18px; }
  .foot-inner { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .top-inner { height: 62px; }
  .logo { font-size: 21px; }
  .pill-btn { font-size: 14px; padding: 8px 13px; }
  .hero { padding: 48px 0 44px; }
  .facts { grid-template-columns: 1fr; }
  .facts div + div { padding-left: 0; border-left: 0; border-top: 2px solid var(--ink); margin-top: 18px; }
  th, td { padding: 12px 10px; font-size: 14px; white-space: normal; }
  th:first-child, td:first-child { padding-left: 14px; }
  .band { padding: 64px 0; }
  .saving { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .steps, .cards { grid-template-columns: 1fr; }
  .card, .form { padding: 24px; }
  .prose { font-size: 17px; }
}
@media (max-width: 360px) {
  .logo span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

.facts-source { margin-top: 18px; font-size: 14px; }
.prose a, .side-text a, .faq a { text-underline-offset: 3px; }

/* Illustration of the government form */
.mock { margin: 8px 0; }
.mock-stack { position: relative; padding: 72px 40px 0 0; }
.mock-card { background: var(--white); border: 2px solid var(--ink); border-radius: 6px; font-family: Arial, Helvetica, sans-serif; color: #0b0c0c; letter-spacing: 0; }
.mock-back1, .mock-back2 { position: absolute; height: 60%; padding: 8px 14px; }
.mock-back2 { left: 40px; right: 0; top: 0; background: #F3F2F1; }
.mock-back1 { left: 20px; right: 20px; top: 36px; background: #FAFAF8; }
.mock-q { font-weight: 700; font-size: 14px; color: #505a5f; }
.mock-front { position: relative; padding: 24px 24px 22px; box-shadow: 6px 6px 0 var(--ink); }
.mock-caption { font-size: 15px; color: #505a5f; margin-bottom: 4px; }
.mock-h { font-size: 26px; font-weight: 700; line-height: 1.15; margin-bottom: 14px; }
.mock-text { font-size: 16px; }
.mock-list { margin: 6px 0 16px; padding-left: 20px; font-size: 16px; line-height: 1.4; }
.mock-label { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.mock-file { display: flex; align-items: center; gap: 10px; font-size: 15px; margin-bottom: 20px; }
.mock-choose { border: 1px solid #0b0c0c; background: #F3F2F1; padding: 4px 8px; border-radius: 2px; }
.mock-btn { display: inline-block; background: #00703C; color: #FFFFFF; font-size: 17px; padding: 8px 14px; border-radius: 0; box-shadow: 0 2px 0 #002D18; }
.mock figcaption { margin-top: 14px; font-size: 14px; color: #5A5A5A; }
@media (max-width: 640px) {
  .mock-stack { padding: 68px 24px 0 0; }
  .mock-back1 { left: 12px; right: 12px; top: 34px; }
  .mock-back2 { left: 24px; }
  .mock-q { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mock-h { font-size: 22px; }
}

/* How it works: steps with app illustrations */
.flow { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 72px; }
.flow-row { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.flow-row:nth-child(even) .flow-copy { order: 2; }
.flow-num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--yellow); font-weight: 800; font-size: 20px; margin-bottom: 18px; }
.flow-copy h3 { font-size: 30px; font-weight: 800; }
.flow-copy p { margin-top: 12px; color: var(--ink-2); font-size: 18px; }
.flow-pair { display: grid; gap: 16px; }

.app { background: var(--white); border: 2px solid var(--ink); border-radius: 16px; box-shadow: 6px 6px 0 var(--ink); overflow: hidden; font-size: 15px; }
.app-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 2px solid var(--ink); background: var(--paper); font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-dots { display: flex; gap: 5px; flex: none; }
.app-dots i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); }
.app-body { padding: 18px; display: grid; gap: 14px; }
.app-note { font-size: 14px; color: var(--ink-2); }
.app-btn { justify-self: start; display: inline-block; background: var(--ink); color: var(--yellow); font-weight: 700; padding: 10px 16px; border-radius: 99px; font-size: 14px; }
.app-btn-sm { padding: 7px 13px; font-size: 13px; }

.drop { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 22px 16px; border: 2px dashed var(--ink); border-radius: 12px; background: var(--yellow-soft); }
.drop-title { font-weight: 800; font-size: 18px; }
.drop-sub { font-size: 13px; color: var(--ink-2); }
.file-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 12px 6px 6px; background: var(--white); border: 2px solid var(--ink); border-radius: 10px; font-size: 13px; font-weight: 700; box-shadow: 3px 3px 0 var(--ink); transform: rotate(-2deg); }
.file-chip b { background: #1D6F42; color: var(--white); font-size: 10px; padding: 3px 5px; border-radius: 4px; }
.progress { height: 10px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--ink); }

.code { background: var(--ink); color: #E8E8E8; border-radius: 16px; overflow: hidden; box-shadow: 6px 6px 0 rgba(17, 17, 17, 0.25); }
.code-bar { padding: 8px 14px; font-size: 12px; font-weight: 700; color: var(--yellow); border-bottom: 1px solid #333; text-transform: uppercase; letter-spacing: 0.08em; }
.code pre { margin: 0; padding: 14px; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.c-verb { color: var(--yellow); font-weight: 700; }
.c-ok { color: #7EE2A8; font-weight: 700; }
.c-dim { color: #A8A8A8; }

.tally { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tally div { border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; }
.tally b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.tally span { font-size: 13px; }
.tally-ok { background: var(--yellow); }
.tally-warn { background: var(--white); }
.rows { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--ink); }
.rows li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.row-addr { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-why { color: var(--ink-2); font-size: 13px; text-align: right; }
.st { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 99px; border: 2px solid var(--ink); }
.st-ok { background: var(--yellow); }
.st-warn { background: var(--ink); color: var(--white); }

.success { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 12px; }
.success-tick { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--yellow); flex: none; }
.success b { display: block; font-size: 20px; font-weight: 800; }
.success span { font-size: 14px; }

.chat { gap: 12px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.msg-you { justify-self: end; background: var(--ink); color: var(--white); border-bottom-right-radius: 4px; }
.msg-ai { justify-self: start; background: var(--paper); border: 2px solid var(--ink); border-bottom-left-radius: 4px; display: grid; gap: 10px; }
.chat-actions { display: flex; gap: 10px; align-items: center; }
.ghost { font-size: 13px; font-weight: 700; text-decoration: underline; }
.msg-sys { justify-self: center; max-width: 100%; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); padding: 4px 0; }

@media (max-width: 960px) {
  .flow-row { grid-template-columns: 1fr; gap: 28px; }
  .flow-row:nth-child(even) .flow-copy { order: 0; }
}
@media (max-width: 640px) {
  .flow { gap: 56px; }
  .flow-copy h3 { font-size: 26px; }
  .rows li { grid-template-columns: auto minmax(0, 1fr); }
  .row-why { grid-column: 2; text-align: left; margin-top: -6px; }
  .app-body { padding: 14px; }
  .msg { max-width: 95%; }
}

/* Hero: the core claim */
.claim { margin-top: 18px; font-size: clamp(1.7rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.25; max-width: 22ch; }
.claim span { background: var(--ink); color: var(--yellow); padding: 2px 12px; -webkit-box-decoration-break: clone; box-decoration-break: clone; border-radius: 6px; }
.lead-small { margin-top: 18px; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero .lead:first-of-type { margin-top: 28px; }
