

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-600-latin.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-italic-400-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/assets/fonts/sourcesans3-400-700-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --surface: #fbf7ef;
  --surface-raised: #ffffff;
  --surface-sunk: #f3ede1;
  --ink: #13213b;
  --ink-muted: #556074;
  --brand: #1b2d4f;
  --brand-hover: #253c66;
  --on-brand: #fbf7ef;
  --brass: #b07c33;
  --brass-light: #dcb06a;
  --accent-text: #8a5f22;
  --line: #e3dccd;
  --line-strong: #c9bfa9;
  --focus: #34507f;
  --due-soon-ink: #7a4b00;
  --due-soon-bg: #fff4dc;
  --overdue-ink: #ffffff;
  --overdue-bg: #a8322b;
  --on-time-ink: #1d4f8a;
  --on-time-bg: #e7f0fb;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0f1a2e;
    --surface-raised: #182742;
    --surface-sunk: #0b1424;
    --ink: #f3eee4;
    --ink-muted: #aeb8ca;
    --brand: #2c4675;
    --brand-hover: #36548a;
    --on-brand: #fbf7ef;
    --brass: #dcb06a;
    --accent-text: #dcb06a;
    --line: #2c3b57;
    --line-strong: #43557a;
    --focus: #dcb06a;
    --due-soon-ink: #ffd88a;
    --due-soon-bg: #3a2c0e;
    --overdue-ink: #ffffff;
    --overdue-bg: #b23a32;
    --on-time-ink: #b9d3f5;
    --on-time-bg: #1b3050;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: 18px; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface-raised); padding: 8px 12px; z-index: 10; }

.brand { text-transform: none; letter-spacing: normal; white-space: nowrap; }
.brand b { font-weight: 700; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap.narrow { max-width: 820px; }

h1, h2 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.6vw, 62px); line-height: 1.05; letter-spacing: -0.012em; margin: 0 0 22px; }
h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--brass); }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.15; margin: 0 0 14px; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 6px; }
p { margin: 0 0 16px; }
.lede { font-size: 20px; line-height: 1.6; max-width: 62ch; }
.muted { color: var(--ink-muted); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 16px; }
.eyebrow a { color: inherit; }


.button { display: inline-block; background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 17px; line-height: 1.2; text-decoration: none; padding: 14px 22px; border-radius: 10px; border: 2px solid var(--brand); text-align: center; }
.button:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--on-brand); }
.button-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-outline:hover { background: var(--surface-sunk); color: var(--ink); border-color: var(--ink-muted); }
.button-small { font-size: 16px; padding: 9px 16px; }
.link-quiet { text-decoration: none; font-weight: 600; color: var(--ink); }
.link-quiet:hover { text-decoration: underline; }


.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-row { display: flex; align-items: center; gap: 28px; padding-block: 18px; }
.logo img { display: block; height: 40px; width: auto; }
.nav-main { display: flex; gap: 24px; margin-right: auto; }
.nav-main a { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--ink-muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-main a:hover, .nav-main a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brass); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-mobile { display: none; }


.hero { padding-block: 72px 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.cta-row { display: flex; align-items: center; gap: 16px 22px; flex-wrap: wrap; margin-top: 8px; }
.cta-note { font-size: 16px; color: var(--ink-muted); margin: 0; }
.page-hero { padding-block: 64px 40px; }
.page-hero .lede { color: var(--ink); }


.board { background: var(--surface-raised); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 48px -24px rgba(19, 33, 59, .35); overflow: hidden; }
.board-head { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--surface-sunk); }
.board-title { font-weight: 700; font-size: 16px; margin: 0; }
.board-sub { font-size: 14px; color: var(--ink-muted); margin: 0; }
.board-list { list-style: none; margin: 0; padding: 0; }
.board-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.board-list li:last-child { border-bottom: 0; }
.board-name { font-weight: 600; font-size: 16px; }
.board-meta { grid-column: 1; font-size: 14px; color: var(--ink-muted); }
.chip { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.chip-overdue { background: var(--overdue-bg); color: var(--overdue-ink); }
.chip-soon { background: var(--due-soon-bg); color: var(--due-soon-ink); border: 1px solid currentColor; }
.chip-ok { background: var(--on-time-bg); color: var(--on-time-ink); }
.board-foot { font-size: 13px; color: var(--ink-muted); padding: 10px 20px; border-top: 1px solid var(--line); margin: 0; }


section.block { padding-block: 72px; border-top: 1px solid var(--line); }
section.block.sunk { background: var(--surface-sunk); }
.section-intro { color: var(--ink-muted); max-width: 64ch; margin: 0 0 32px; font-size: 19px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 36px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.ruled { border-top: 3px solid var(--brass); padding-top: 16px; }
.ruled p { color: var(--ink-muted); margin: 0; }
.figure { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--brass); margin: 0 0 10px; }
.figure-label { font-weight: 700; margin: 0 0 6px; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.steps li { counter-increment: step; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps li::before { content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-weight: 700; margin-bottom: 14px; }
.steps p { color: var(--ink-muted); margin: 0; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 48px; }
.feature-list li { border-top: 3px solid var(--brass); padding-top: 16px; }
.feature-list p { margin: 0; color: var(--ink-muted); }

.checks { list-style: none; margin: 0 0 16px; padding: 0; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 7px; border-left: 2.5px solid var(--brass); border-bottom: 2.5px solid var(--brass); transform: rotate(-45deg); }


.table-wrap { overflow-x: auto; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 17px; }
th, td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-size: 15px; font-weight: 700; color: var(--ink-muted); padding-block: 12px; background: var(--surface-sunk); }
tbody th { font-weight: 600; }
td.days { font-weight: 600; }
td.days span { display: block; font-weight: 400; color: var(--ink-muted); font-size: 15px; }
td.law { color: var(--ink-muted); font-size: 15px; white-space: nowrap; }
.table-note { font-size: 15px; color: var(--ink-muted); margin: 14px 0 0; }
.compare td, .compare th { font-size: 16px; }
.compare .yes { color: var(--ink); font-weight: 600; }
.compare .no { color: var(--ink-muted); }


.plans { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--line); border-radius: 18px; padding: 24px 18px; }
.plan-featured { border: 2px solid var(--brass); }
.plan h3 { font-size: 21px; margin-bottom: 2px; }
.plan-count { font-weight: 600; color: var(--accent-text); margin: 0 0 14px; white-space: nowrap; }
.plan-price { margin: 0; }
.plan-per { display: block; font-size: 15px; margin-top: 4px; }
.plan-amount { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.plan-per { color: var(--ink-muted); }
.plan-amount { display: block; }
.plan-annual { font-size: 15px; color: var(--ink-muted); margin: 6px 0 18px; }
.plan-list { list-style: none; margin: 0 0 22px; padding: 0; font-size: 16px; flex: 1; }
.plan-list li { padding: 7px 0; border-top: 1px solid var(--line); }
.plan .button { width: 100%; }


.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 19px; list-style-position: outside; }
.faq details p { margin: 12px 0 0; color: var(--ink-muted); max-width: 70ch; }


.cta-band { background: var(--brand); color: var(--on-brand); border-radius: 22px; padding: 48px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.cta-band h2 { color: var(--on-brand); margin-bottom: 8px; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .button { background: var(--on-brand); color: #1b2d4f; border-color: var(--on-brand); }
.cta-band .button:hover { background: #ffffff; color: #1b2d4f; border-color: #ffffff; }


.law-page { padding-bottom: 72px; }
.law-block { margin-top: 48px; }
.law-block h2 { font-size: 30px; }
.law-cite { font-size: 16px; color: var(--ink-muted); margin: -6px 0 16px; }
.law-flag { display: inline-block; font-size: 13px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line-strong); margin-left: 6px; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
.law-help { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.law-note { margin-top: 40px; font-size: 15px; color: var(--ink-muted); }


.prose { max-width: 760px; padding-bottom: 72px; }
.prose h2 { font-size: 28px; margin-top: 40px; }
.prose h3 { margin-top: 24px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 6px; }


.site-footer { border-top: 1px solid var(--line); background: var(--surface-sunk); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-block: 48px 32px; }
.footer-grid h2 { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 12px; }
.footer-grid nav a { display: block; text-decoration: none; padding: 4px 0; font-size: 16px; }
.footer-grid nav a:hover { text-decoration: underline; }
.footer-brand img { display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 16px; color: var(--ink-muted); margin: 0 0 10px; }
.footer-brand strong { color: var(--ink); }
.footer-legal { font-size: 14px; color: var(--ink-muted); border-top: 1px solid var(--line); padding-block: 20px 36px; margin: 0; }

@media (max-width: 1180px) {
  .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1020px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .nav-main { gap: 18px; }
}

@media (max-width: 880px) {
  .nav-main, .header-actions { display: none; }
  .header-row { justify-content: space-between; }
  .nav-mobile { display: block; position: relative; }
  .nav-mobile summary { list-style: none; cursor: pointer; font-weight: 700; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 10px; }
  .nav-mobile summary::-webkit-details-marker { display: none; }
  .nav-mobile nav { position: absolute; right: 0; top: calc(100% + 8px); width: min(280px, 80vw); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 2px; z-index: 20; box-shadow: 0 18px 40px -20px rgba(19, 33, 59, .4); }
  .nav-mobile nav a { text-decoration: none; font-weight: 600; padding: 10px 12px; border-radius: 8px; }
  .nav-mobile nav a[aria-current="page"] { background: var(--surface-sunk); }
  .nav-mobile nav .button { margin-top: 8px; }
  .grid-3, .steps { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .feature-list { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: minmax(0, 1fr); padding: 32px 24px; }
}

@media (max-width: 600px) {
  body { font-size: 17px; }
  .hero { padding-block: 40px 56px; }
  .page-hero { padding-block: 40px 24px; }
  .lede { font-size: 18px; }
  section.block { padding-block: 52px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .logo img { height: 36px; }
  .facts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  th, td { padding: 12px 14px; }
  td.law { white-space: normal; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  table.clocks, table.clocks tbody, table.clocks tr, table.clocks td { display: block; width: 100%; }
  table.clocks thead { position: absolute; left: -9999px; }
  table.clocks tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.clocks tbody tr:last-child { border-bottom: 0; }
  table.clocks td { padding: 0; border: 0; }
  table.clocks td:first-child { font-weight: 700; margin-bottom: 4px; }
  table.clocks td.law { margin-top: 6px; }
}
