/* VATquarter — marketing site
   Layout: a ledger. Narrow reading column (65ch) for prose; the return table is the hero visual and the recurring motif.
   Color: deep harbour-blue ink for brand, a single marigold "quarter mark" accent used only for the current-quarter cue and primary buttons. */
:root {
  --paper: #f4f7f8;
  --paper-2: #ffffff;
  --ink: #132229;
  --ink-2: #4f6670;
  --line: #d3dde1;
  --brand: #0f3d4a;
  --brand-2: #16586a;
  --mark: #d99a1e;
  --mark-ink: #1a1400;
  --good: #1f7a4d;
  --warn: #b8631c;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 6px;
  --gutter: clamp(16px, 4vw, 32px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f191d;
    --paper-2: #16242a;
    --ink: #e4edf0;
    --ink-2: #9db0b8;
    --line: #2a3b43;
    --brand: #9fd3e3;
    --brand-2: #c4e6f0;
    --mark: #e6b23a;
    --mark-ink: #1a1400;
    --good: #5fc48f;
    --warn: #e59a4f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f191d;
  --paper-2: #16242a;
  --ink: #e4edf0;
  --ink-2: #9db0b8;
  --line: #2a3b43;
  --brand: #9fd3e3;
  --brand-2: #c4e6f0;
  --mark: #e6b23a;
  --mark-ink: #1a1400;
  --good: #5fc48f;
  --warn: #e59a4f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--mark); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.eyebrow { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.wrap { max-width: 1080px; margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: 65ch; }
.prose p + p, .prose ul + p, .prose p + ul { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0; }
.prose li + li { margin-top: 0.35em; }
.prose h2 { margin-top: 2.4rem; margin-bottom: 0.8rem; }
.prose h3 { margin-top: 1.8rem; margin-bottom: 0.5rem; }
.prose code { font-family: var(--mono); font-size: 0.9em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 0.05em 0.35em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin-top: 1em; }
.prose th, .prose td { text-align: left; padding: 0.5em 0.7em; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.scroll { overflow-x: auto; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.35rem; font-weight: 500; }
.logo .q { display: inline-grid; grid-template-columns: 1fr 1fr; width: 22px; height: 22px; gap: 2px; }
.logo .q i { display: block; background: var(--brand); border-radius: 2px; }
.logo .q i:nth-child(3) { background: var(--mark); }
.nav { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; font-size: 0.95rem; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.btn { display: inline-block; padding: 0.7rem 1.1rem; border-radius: var(--radius); font-weight: 500; text-decoration: none; border: 1px solid transparent; font-size: 0.98rem; line-height: 1.2; }
.btn-primary { background: var(--mark); color: var(--mark-ink); }
.btn-primary:hover { filter: brightness(0.95); color: var(--mark-ink); }
.btn-quiet { border-color: var(--line); color: var(--ink); background: var(--paper-2); }
.btn-quiet:hover { border-color: var(--ink-2); color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero .lede { font-size: 1.15rem; color: var(--ink-2); max-width: 52ch; margin-top: 1.1rem; }
.hero .cta { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.6rem; align-items: center; }
.hero .fine { font-size: 0.85rem; color: var(--ink-2); margin-top: 0.9rem; }
.sheet { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(15, 61, 74, 0.45); min-width: 0; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.9rem 0.7rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sheet-head strong { font-family: var(--display); font-weight: 500; font-size: 1.1rem; }
.pill { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.2em 0.55em; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }
.pill.mark { background: var(--mark); color: var(--mark-ink); border-color: transparent; }
.sheet table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.sheet th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sheet td { padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--line); }
.sheet td.r, .sheet td:nth-child(2) { white-space: nowrap; }
.sheet td.r, .sheet th.r { text-align: right; }
.sheet tr.total td { font-weight: 600; border-bottom: 0; background: color-mix(in srgb, var(--mark) 12%, transparent); }
.sheet tfoot td { font-size: 0.78rem; color: var(--ink-2); white-space: normal; padding: 0.7rem 0.7rem; border-bottom: 0; line-height: 1.4; }
.tag { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.1em 0.45em; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-2); margin-left: 0.4em; }
.tag.warn { color: var(--warn); border-color: var(--warn); }

/* sections */
section { padding-block: clamp(2.5rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.sec-head { max-width: 62ch; margin-bottom: 2rem; }
.sec-head p { color: var(--ink-2); margin-top: 0.7rem; font-size: 1.05rem; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.6rem 2.2rem; }
.cols h3 { margin-bottom: 0.45rem; }
.cols p { color: var(--ink-2); font-size: 0.98rem; }
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper-2); }
.rule { padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); min-width: 0; }
.rule .eyebrow { margin-bottom: 0.35rem; }
.rule p { font-size: 0.95rem; }
.rule .ref { display: block; margin-top: 0.5rem; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2); }
.steps { counter-reset: step; display: grid; gap: 1.2rem; max-width: 62ch; }
.step { display: grid; grid-template-columns: 2.4rem 1fr; gap: 0.8rem; align-items: start; }
.step::before { counter-increment: step; content: counter(step); font-family: var(--mono); font-size: 0.85rem; color: var(--mark-ink); background: var(--mark); width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; }
.step p { color: var(--ink-2); font-size: 0.98rem; margin-top: 0.15rem; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.plan { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: 0.8rem; min-width: 0; }
.plan.featured { border-color: var(--brand); outline: 1px solid var(--brand); }
.plan .price { font-family: var(--display); font-size: 2.2rem; font-weight: 500; line-height: 1; }
.plan .price small { font-family: var(--body); font-size: 0.9rem; color: var(--ink-2); font-weight: 400; }
.plan ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); font-size: 0.95rem; display: grid; gap: 0.3em; }
.plan .btn { margin-top: auto; text-align: center; }

/* faq */
.faq { display: grid; gap: 0; max-width: 70ch; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ink-2); }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 0 1.1rem; color: var(--ink-2); max-width: 65ch; }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 2rem 3rem; font-size: 0.9rem; color: var(--ink-2); }
footer .row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer .links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
footer a { color: var(--ink-2); }

/* article */
.article-head { padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; max-width: 65ch; }
.article-head p { color: var(--ink-2); margin-top: 0.8rem; font-size: 1.1rem; }
.meta { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-2); margin-top: 1rem; }
.callout { border-left: 3px solid var(--mark); padding: 0.8rem 1rem; background: var(--paper-2); border-radius: 0 var(--radius) var(--radius) 0; margin-top: 1.2rem; }
.doc-nav { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; margin-top: 1rem; }

@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; }
  .sheet table { font-size: 0.82rem; }
  .sheet td, .sheet th { padding-inline: 0.7rem; }
  .rule { border-right: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: filter 120ms ease, border-color 120ms ease; }
}

/* waitlist */
.waitlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem 1.4rem; max-width: 800px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.waitlist .field { display: grid; gap: 0.35rem; min-width: 0; }
.waitlist .wide { grid-column: 1 / -1; }
.waitlist label { font-size: 0.9rem; font-weight: 500; }
.waitlist .opt { color: var(--ink-2); font-weight: 400; }
.waitlist input, .waitlist select { font: inherit; font-size: 0.98rem; padding: 0.6rem 0.7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); min-width: 0; width: 100%; }
.waitlist input:focus, .waitlist select:focus { outline: 2px solid var(--mark); outline-offset: 1px; border-color: var(--brand); }
.waitlist .actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.waitlist .actions button { border: 0; cursor: pointer; font: inherit; }
.waitlist .actions button[disabled] { opacity: 0.6; cursor: default; }
.wl-status { font-size: 0.9rem; color: var(--ink-2); }
.waitlist .fine { font-size: 0.82rem; color: var(--ink-2); margin: 0; }
