/* Taxtirement website. System fonts, no external requests, light and dark. */
:root {
  --bg: #fbfaf7;
  --bg-alt: #f1efe9;
  --card: #ffffff;
  --fg: #16212a;
  --muted: #4d5b66;
  --line: #dcd8cf;
  --brand: #12566e;          /* deep teal from the app icon: 8.3:1 on --bg */
  --brand-ink: #ffffff;
  --brand-soft: #e3eff3;
  --sun: #a65a0c;            /* warm accent for text: 5.6:1 on --bg */
  --sun-fill: #f4b552;       /* decorative only */
  --warn-bg: #fff4dc;
  --warn-fg: #5c3d00;
  --warn-line: #e6c27a;
  --focus: #0b63ce;
  --shadow: 0 1px 2px rgba(20, 33, 42, .06), 0 4px 16px rgba(20, 33, 42, .06);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e171c;
    --bg-alt: #13212a;
    --card: #172730;
    --fg: #eef2f4;
    --muted: #b3c0c8;
    --line: #2b3d48;
    --brand: #8fd0e6;
    --brand-ink: #0b1a21;
    --brand-soft: #173643;
    --sun: #f6c27a;
    --sun-fill: #f4b552;
    --warn-bg: #2f2410;
    --warn-fg: #f8dfae;
    --warn-line: #6b5326;
    --focus: #7fb8ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1.1875rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.25rem); font-weight: 700; margin-top: 0; }
h3 { font-size: 1.3rem; font-weight: 650; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { font-weight: 650; }
small, .small { font-size: .95rem; }
code { font: .95em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-alt); padding: .05em .3em; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: .6em 1em; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; border-radius: 9px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.site-nav li { margin: 0; }
.site-nav a { color: var(--fg); text-decoration: none; font-size: 1.05rem; padding: 8px 0; display: inline-block; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); text-decoration: underline; text-underline-offset: 6px; }

/* Sections */
main { display: block; }
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section > .wrap > h2 + .lede { margin-top: -.2em; }
.lede { font-size: 1.3rem; color: var(--muted); max-width: 46em; }
.eyebrow { font-size: 1rem; font-weight: 650; color: var(--sun); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6em; }

/* Hero */
.hero { padding: 56px 0 64px; background: linear-gradient(180deg, var(--brand-soft), var(--bg)); }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero .lede { color: var(--fg); }
.hero-shot { justify-self: center; max-width: 320px; }
.hero-shot img { border-radius: 28px; box-shadow: var(--shadow); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 24px 0 12px; }
.badge-placeholder {
  display: inline-flex; flex-direction: column; justify-content: center;
  min-width: 190px; min-height: 58px; padding: 8px 18px; border-radius: 12px;
  background: var(--fg); color: var(--bg); line-height: 1.2; text-decoration: none;
}
.badge-placeholder .top { font-size: .8rem; letter-spacing: .02em; }
.badge-placeholder .bottom { font-size: 1.2rem; font-weight: 650; }
.price-note { color: var(--muted); font-size: 1.05rem; }

.button {
  display: inline-block; background: var(--brand); color: var(--brand-ink); text-decoration: none;
  font-weight: 650; padding: 14px 22px; border-radius: 12px; line-height: 1.2;
}
.button:hover { filter: brightness(1.08); text-decoration: none; }
.button.secondary { background: transparent; color: var(--brand); border: 2px solid var(--brand); }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .35em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 12px; }
.card .icon svg { width: 24px; height: 24px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split .shot { max-width: 340px; justify-self: center; }
.split .shot img { border-radius: 24px; box-shadow: var(--shadow); }
.checklist { list-style: none; padding: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: .8em; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .checklist li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b1a21' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 28px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat .figure { font-size: 1.55rem; font-weight: 750; color: var(--brand); line-height: 1.2; display: block; }
.stat .label { font-size: 1rem; color: var(--muted); }

/* Screenshot strip */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 18px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 20px; box-shadow: var(--shadow); }
.shots figcaption { font-size: 1rem; color: var(--muted); margin-top: 8px; }
.shot-placeholder { aspect-ratio: 1320 / 2868; border: 2px dashed var(--line); border-radius: 20px; display: grid; place-items: center; text-align: center; padding: 16px; color: var(--muted); font-size: 1rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.plan.featured { border: 2px solid var(--brand); }
.plan .price { font-size: 2.2rem; font-weight: 750; line-height: 1.1; margin: .2em 0; }
.plan .price small { font-size: 1.05rem; font-weight: 500; color: var(--muted); }

/* FAQ */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 18px 28px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding-bottom: 6px; }

/* Notices */
.notice { border: 1px solid var(--warn-line); background: var(--warn-bg); color: var(--warn-fg); border-radius: 14px; padding: 16px 20px; margin: 0 0 28px; }
.notice strong { color: inherit; }
.notice p:last-child { margin-bottom: 0; }
.disclaimer { color: var(--muted); font-size: 1rem; }

/* Long-form pages */
.page { padding: 48px 0 72px; }
.page h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); }
.page h2 { font-size: 1.6rem; margin-top: 1.8em; }
.page h3 { margin-top: 1.4em; }
.prose { max-width: 760px; }
.prose li > ul { margin-top: .35em; }
.meta { color: var(--muted); font-size: 1rem; }
.toc { background: var(--bg-alt); border-radius: 14px; padding: 16px 22px; margin: 0 0 28px; }
.toc ul { margin: 0; padding-left: 1.1em; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 1.05rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 14px; border-bottom: 1px solid var(--line); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { background: var(--bg-alt); font-weight: 650; }
tbody th { font-weight: 600; width: 34%; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* State pages */
.state-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 16px; list-style: none; padding: 0; }
.state-grid li { margin: 0; }
.state-grid a { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; text-decoration: none; border: 1px solid var(--line); background: var(--card); color: var(--fg); }
.state-grid a:hover { border-color: var(--brand); }
.state-grid .tag { font-size: .9rem; color: var(--muted); }
.state-grid a span:first-child { font-weight: 600; }
.pill { display: inline-block; font-size: .9rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.pill.pending { background: var(--warn-bg); color: var(--warn-fg); border: 1px solid var(--warn-line); }
.inshort { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--brand); border-radius: 12px; padding: 18px 22px; margin: 0 0 28px; }
.inshort ul { margin: 0; padding-left: 1.1em; }
.fine details, details.fine { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; margin: 0 0 14px; }
details.fine summary { cursor: pointer; font-weight: 650; padding: 14px 0; }
details.fine > *:last-child { padding-bottom: 12px; }
.sources li { font-size: 1.02rem; }
.sources .what { display: block; }
.sources a { font-size: .95rem; word-break: break-all; }
.rule { margin-bottom: 1.2em; }
.rule h3 { margin-bottom: .3em; font-size: 1.15rem; }
.cta-box { background: var(--brand-soft); border-radius: 16px; padding: 22px 24px; margin: 36px 0 0; }
.cta-box p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 40px 0 48px; font-size: 1rem; color: var(--muted); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45em; }
.site-footer a { color: var(--fg); }
.site-footer .legal { margin-top: 28px; }

@media (max-width: 900px) {
  .hero .wrap, .split { grid-template-columns: 1fr; gap: 32px; }
  .hero-shot { max-width: 260px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .split .shot { order: 2; }
}
@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .wrap { padding: 0 16px; }
  .section { padding: 44px 0; }
  .hero { padding: 36px 0 44px; }
  .grid, .grid.two, .plans, .site-footer .cols { grid-template-columns: 1fr; }
  .lede { font-size: 1.18rem; }
  .site-nav ul { gap: 0 18px; }
  .site-nav a { font-size: 1rem; padding: 6px 0; }
  .site-nav li:first-child { display: none; }
  tbody th { width: auto; }
  .shots { grid-auto-columns: 70%; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  .site-header nav, .site-footer, .cta-row, .hero-shot { display: none; }
  body { background: #fff; color: #000; }
}
