/* Taxify marketing site. No build step, no JavaScript required. */

:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --surface-2: #f2f0ea;
  --text: #17191c;
  --muted: #5a5f66;
  --border: #e3e0d8;
  --accent: #0f766e;
  --accent-strong: #0b5e58;
  --accent-soft: #e3f3f0;
  --on-accent: #ffffff;
  --code-bg: #12161b;
  --code-text: #e6edf3;
  --code-muted: #8b98a5;
  --code-key: #7ee0d2;
  --code-str: #f5c48b;
  --code-num: #b7a6ff;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(16 24 32 / 0.04), 0 8px 24px -12px rgb(16 24 32 / 0.12);
  --max: 1120px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1113;
    --surface: #151a1d;
    --surface-2: #1b2125;
    --text: #e8ebee;
    --muted: #9aa3ab;
    --border: #273036;
    --accent: #2dd4bf;
    --accent-strong: #5eead4;
    --accent-soft: #10302c;
    --on-accent: #062a26;
    --code-bg: #0a0d0f;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px -12px rgb(0 0 0 / 0.6);
  }
}

*, *::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: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-strong); }
code, pre { font-family: var(--mono); font-size: 0.9em; }
:not(pre) > code {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.35em;
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -48px;
  background: var(--accent); color: var(--on-accent);
  padding: 8px 14px; border-radius: 8px; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand svg { width: 28px; height: 28px; }
.nav-links { display: none; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
@media (min-width: 820px) { .nav-links { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: 10px; border: 1px solid transparent;
  font: 600 0.95rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); color: var(--on-accent); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }
.btn-sm { min-height: 38px; padding: 8px 14px; font-size: 0.9rem; }

/* Hero */
.hero { padding: 56px 0 72px; }
@media (min-width: 960px) { .hero { padding: 88px 0 104px; } }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 4px 12px;
}
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 750; margin-top: 18px; }
h1 .accent { color: var(--accent); }
.lede { font-size: 1.15rem; color: var(--muted); margin: 20px 0 0; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.92rem; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* Code window */
.code-window {
  background: var(--code-bg); color: var(--code-text);
  border-radius: var(--radius); box-shadow: var(--shadow);
  border: 1px solid rgb(255 255 255 / 0.06);
  overflow: hidden; min-width: 0; margin: 0;
}
.code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid rgb(255 255 255 / 0.08); font: 0.8rem var(--mono); color: var(--code-muted); }
.dots { display: flex; gap: 6px; }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: #3a434b; }
.code-label { text-transform: uppercase; letter-spacing: .08em; font-size: 0.72rem; color: var(--code-muted); padding: 14px 18px 0; font-family: var(--mono); }
.code-window pre { margin: 0; padding: 10px 18px 18px; overflow-x: auto; line-height: 1.65; font-size: 0.84rem; }
.code-window pre + .code-label { border-top: 1px solid rgb(255 255 255 / 0.08); }
.status { color: #7ee787; }
.k { color: var(--code-key); }
.s { color: var(--code-str); }
.n { color: var(--code-num); }
.c { color: var(--code-muted); }

/* Sections */
section { scroll-margin-top: 72px; }
.section { padding: 72px 0; border-top: 1px solid var(--border); }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-alt { background: var(--surface); }
.section-head { max-width: 40em; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 14px 0 0; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; }
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.stat dt { color: var(--muted); font-size: 0.9rem; order: 2; }
.stat dd { margin: 0 0 4px; font-size: 1.9rem; font-weight: 750; letter-spacing: -0.02em; }
.stat { display: flex; flex-direction: column; }

/* Feature grid */
.features { display: grid; gap: 16px; }
@media (min-width: 700px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.section:not(.section-alt) .feature { background: var(--surface); }
.feature .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 16px; }
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); margin: 8px 0 0; }

/* Steps */
.steps { display: grid; gap: 16px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); margin: 8px 0 0; }

/* Reference table */
.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; align-items: start; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
td code { white-space: nowrap; }
.note { color: var(--muted); font-size: 0.92rem; margin-top: 16px; }

/* Comparison */
.compare td:nth-child(2), .compare th:nth-child(2) { background: var(--accent-soft); }
.compare th:nth-child(2) { color: var(--accent); }

/* Pricing */
.pricing { display: grid; gap: 24px; align-items: stretch; }
@media (min-width: 900px) { .pricing { grid-template-columns: 1.1fr 1fr; } }
.price-card { background: var(--surface); border: 2px solid var(--accent); border-radius: calc(var(--radius) + 4px); padding: 32px; box-shadow: var(--shadow); }
.price-card h3 { font-size: 1.2rem; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 6px; }
.price .amount { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
.price .per { color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 10px; }
.price-card li { display: flex; gap: 10px; }
.price-card li svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }
.price-card .btn { width: 100%; }
.price-aside { border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 32px; background: var(--surface-2); }
.price-aside h3 { font-size: 1.1rem; }
.price-aside p { color: var(--muted); }
.statement { font-family: var(--mono); background: var(--surface); border: 1px dashed var(--border); border-radius: 10px; padding: 12px 16px; display: inline-block; margin-top: 4px; font-size: 1rem; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }
.faq details > div p { margin: 0 0 10px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { background: var(--accent); color: var(--on-accent); border-radius: calc(var(--radius) + 6px); padding: 44px 28px; text-align: center; }
.cta-band h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
.cta-band p { margin: 12px auto 0; max-width: 36em; opacity: .9; }
.cta-band .btn { margin-top: 26px; background: var(--on-accent); color: var(--accent); }
.cta-band .btn:hover { background: var(--surface); color: var(--accent-strong); }
.cta-band :focus-visible { outline-color: var(--on-accent); }

/* Footer */
.site-footer { padding: 40px 0 48px; color: var(--muted); font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer-row ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer-row a { color: var(--muted); }
.footer-row a:hover { color: var(--text); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Pricing slider */
.calc { margin: 18px 0 4px; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.calc label { color: var(--muted); font-size: 0.92rem; }
.calc output { font-weight: 700; font-variant-numeric: tabular-nums; }
.calc input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--accent); height: 28px; margin: 4px 0 0; cursor: pointer; }
.calc-scale { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); }
.price .amount { font-variant-numeric: tabular-nums; }
.price-table { margin-top: 24px; }
.price-table summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 6px 0; }
.price-table .table-wrap { margin-top: 12px; max-width: 520px; }
.price-table .note { max-width: 520px; }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* Small helpers (no inline styles, so the CSP can stay strict) */
.sprite { position: absolute; }
.sub-head { font-size: 1.1rem; margin-bottom: 14px; }
.copyright { margin: 0; }
.not-found { max-width: 640px; text-align: center; }
.not-found .lede { margin-inline: auto; }
.not-found .hero-cta { justify-content: center; }

/* Pricing extras */
.breakdown { color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.price-aside .table-wrap { margin-top: 14px; }
.price-aside td:last-child, .price-aside th:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.billing-band { margin-top: 24px; padding: 24px 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.billing-band h3 { font-size: 1.05rem; }
.billing-band p { color: var(--muted); margin: 8px 0 0; }
.billing-band .statement { padding: 2px 8px; margin: 0; font-size: 0.92rem; }

/* Contact form */
.contact { display: grid; gap: 32px; }
@media (min-width: 960px) { .contact { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; } }
.contact-intro h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.contact-intro p { color: var(--muted); font-size: 1.08rem; margin: 14px 0 0; }
.contact-form { display: grid; gap: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 4px); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 640px) { .contact-form { grid-template-columns: 1fr 1fr; padding: 32px; } }
.field { display: grid; gap: 6px; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; }
.optional { color: var(--muted); font-weight: 400; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px;
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form input:focus-visible, .contact-form select:focus-visible, .contact-form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.contact-form button { width: 100%; }
@media (min-width: 640px) { .contact-form button { width: auto; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.more-plans { margin-top: 12px; }
.more-plans summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 4px 0; }
.more-plans .table-wrap { margin-top: 10px; }
.more-plans td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
