/* tabulata.ai
   The app's Ledger design language (bizframe_app/lib/src/theme.dart): navy
   ink on white sheets, an amber accent, hairline rules, 2px corners, IBM Plex
   Sans for words and IBM Plex Mono for numbers and codes. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/plex-sans-regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/plex-sans-medium.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/plex-sans-semibold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/plex-sans-bold.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/plex-mono-regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("../fonts/plex-mono-medium.woff2") format("woff2"); }

:root {
  color-scheme: light dark;

  --ink: #14213D;
  --amber: #F5A524;
  --amber-tint: #FDEBC8;

  --desk: #F6F7F9;
  --sheet: #FFFFFF;
  --rule: #C9CED8;
  --rule-soft: #E3E6EC;
  --text: #14213D;
  --muted: #4A5568;
  --accent: #F5A524;
  /* amber as text on white fails contrast; this brown is 6.1:1 */
  --accent-text: #8A5A00;
  --link: #14213D;
  --band: #14213D;
  --band-text: #F6F7F9;
  --band-muted: #B4BDCF;
  --band-rule: #2B3A5C;

  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  --container: 1140px;
  --gutter: clamp(16px, 4vw, 40px);
  --section-gap: clamp(64px, 9vw, 112px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --desk: #0E1626;
    --sheet: #162036;
    --rule: #33405C;
    --rule-soft: #243049;
    --text: #E8ECF3;
    --muted: #A9B4C8;
    --accent: #DD9F3C;
    --accent-text: #E5AE55;
    --link: #E8ECF3;
    --band: #0A111F;
    --band-rule: #243049;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--desk);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, p { margin: 0; }

.container { max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.skip-link { position: absolute; left: 16px; top: -56px; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 2px; z-index: 10; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* The small capital label over a column, a group, a section. */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}

.h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; font-weight: 600; letter-spacing: -0.4px; text-wrap: balance; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 58ch; }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 2px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.button--primary { background: var(--amber); color: var(--ink); }
.button--primary:hover { background: #E2941A; }
.button--large { padding: 14px 24px; font-size: 16px; }
.button--outline { border-color: var(--rule); color: var(--text); background: transparent; }
.button--outline:hover { border-color: var(--text); }
.button[aria-disabled="true"] { background: transparent; border-color: var(--rule); color: var(--muted); cursor: default; }

/* ---------- Header: the app's navy top bar ---------- */

.site-header { background: var(--ink); color: #F6F7F9; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: -0.2px; }
.site-nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); font-size: 15px; }
.site-nav a:not(.button) { color: #D5DBE8; text-decoration: none; padding-block: 6px; border-bottom: 2px solid transparent; }
.site-nav a:not(.button):hover { color: #fff; border-bottom-color: var(--amber); }
@media (max-width: 720px) { .site-nav a:not(.button) { display: none; } }

.beta-banner { background: var(--amber-tint); color: var(--ink); font-size: 14px; border-bottom: 1px solid #EBCF95; }
.beta-banner .container { padding-block: 8px; }
.beta-banner a { color: var(--ink); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px); }
.hero__copy { max-width: 760px; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.04; font-weight: 600; letter-spacing: -1.2px; text-wrap: balance; }
.hero h1 em { font-style: normal; box-shadow: inset 0 -0.18em 0 var(--amber); }
.hero .lede { margin-top: 20px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.hero__note { font-size: 14px; color: var(--muted); }
.hero__shot { margin-top: clamp(36px, 5vw, 56px); }

/* A screenshot on the desk: a sheet with a hairline and a heavy foot rule. */
.shot { background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px; overflow: hidden; box-shadow: 0 1px 0 var(--rule), 0 18px 40px -24px rgba(20, 33, 61, 0.45); }
.shot img { width: 100%; }
figure { margin: 0; }
figcaption { margin-top: 10px; font-size: 13.5px; color: var(--muted); }

/* ---------- Steps: a three-line ledger ---------- */

.steps { padding-block: 0 var(--section-gap); }
.steps__table { border-top: 2px solid var(--text); margin-top: 28px; }
.step { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.4fr); gap: 8px 32px; padding: 22px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.step__n { font-family: var(--mono); font-size: 15px; color: var(--accent-text); font-weight: 500; }
.step h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.2px; }
.step p { color: var(--muted); }
.step .say { font-family: var(--mono); font-size: 14.5px; color: var(--text); background: var(--sheet); border: 1px solid var(--rule-soft); border-left: 3px solid var(--amber); padding: 10px 14px; margin-top: 10px; border-radius: 2px; }
@media (max-width: 820px) { .step { grid-template-columns: 48px minmax(0, 1fr); } .step > :nth-child(3) { grid-column: 2; } }

/* ---------- Features ---------- */

.feature { padding-block: 0 var(--section-gap); }
.feature__row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.feature__row--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature__row--reverse .feature__copy { order: 2; }
.feature__copy .h2 { margin-top: 10px; }
.feature__copy .lede { margin-top: 16px; }
@media (max-width: 900px) { .feature__row, .feature__row--reverse { grid-template-columns: 1fr; } .feature__row--reverse .feature__copy { order: 0; } }

.checks { list-style: none; margin: 22px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.checks li { padding: 11px 0 11px 22px; border-bottom: 1px solid var(--rule); position: relative; font-size: 16px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 19px; width: 9px; height: 9px; background: var(--accent); }

/* ---------- Uses: a ruled table ---------- */

.uses { padding-block: 0 var(--section-gap); }
.table-wrap { margin-top: 28px; background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px; overflow-x: auto; }
table.ledger { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 560px; }
table.ledger th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; color: var(--muted); padding: 12px 18px; border-bottom: 1px solid var(--rule); background: var(--desk); }
table.ledger td { padding: 14px 18px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
table.ledger tr:last-child td { border-bottom: 0; }
table.ledger td:first-child { font-weight: 600; white-space: nowrap; }
table.ledger .mono { font-size: 14.5px; color: var(--muted); }
.uses__note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------- Yours: the navy band ---------- */

.band { background: var(--band); color: var(--band-text); padding-block: var(--section-gap); margin-bottom: var(--section-gap); }
.band .eyebrow { color: var(--amber); }
.band .lede { color: var(--band-muted); margin-top: 16px; }
.band__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 2px solid var(--amber); }
.band__item { padding: 22px 22px 6px 0; border-right: 1px solid var(--band-rule); padding-left: 22px; }
.band__item:first-child { padding-left: 0; }
.band__item:last-child { border-right: 0; }
.band__item h3 { font-size: 18px; font-weight: 600; }
.band__item p { margin-top: 8px; color: var(--band-muted); font-size: 15.5px; }
.band a { color: var(--band-text); }
@media (max-width: 900px) {
  .band__grid { grid-template-columns: 1fr 1fr; }
  .band__item { border-right: 0; border-bottom: 1px solid var(--band-rule); padding: 20px 20px 20px 0; }
  .band__item:first-child { padding-left: 0; }
}
@media (max-width: 560px) { .band__grid { grid-template-columns: 1fr; } }

/* ---------- Editions ---------- */

.editions { padding-block: 0 var(--section-gap); }
.editions__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.edition { background: var(--sheet); border: 1px solid var(--rule); border-top: 4px solid var(--text); border-radius: 2px; padding: 24px; }
.edition--now { border-top-color: var(--amber); }
.edition h3 { font-size: 22px; font-weight: 600; }
.edition__price { font-family: var(--mono); font-size: 15px; color: var(--accent-text); margin-top: 4px; }
.edition p { margin-top: 12px; color: var(--muted); }
.edition ul { margin: 14px 0 0; padding-left: 18px; color: var(--text); font-size: 16px; }
.edition li { margin-top: 6px; }
@media (max-width: 760px) { .editions__grid { grid-template-columns: 1fr; } }

/* ---------- Download ---------- */

.download { padding-block: 0 var(--section-gap); }
.download__sheet { background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(20px, 3vw, 32px); margin-top: 28px; }
.download__sheet img { width: 88px; height: 88px; }
.download__sheet h3 { font-size: 22px; font-weight: 600; }
.download__meta { color: var(--muted); font-size: 15px; margin-top: 4px; }
.download__needs { margin-top: 18px; font-size: 15.5px; color: var(--muted); max-width: 70ch; }
@media (max-width: 720px) { .download__sheet { grid-template-columns: auto 1fr; } .download__sheet .button { grid-column: 1 / -1; justify-content: center; } }

/* ---------- FAQ ---------- */

.faq { padding-block: 0 var(--section-gap); }
.faq__list { margin-top: 24px; border-top: 2px solid var(--text); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-weight: 600; font-size: 17.5px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 13px; font-family: var(--mono); font-size: 20px; color: var(--accent-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > *:not(summary) { color: var(--muted); padding-bottom: 16px; max-width: 72ch; }
.faq details > p + p { margin-top: -6px; }

/* ---------- Legal and support pages ---------- */

.legal { max-width: 820px; padding-block: clamp(40px, 6vw, 72px) var(--section-gap); }
.legal h1 { font-size: clamp(32px, 4.4vw, 46px); line-height: 1.1; font-weight: 600; letter-spacing: -0.6px; margin-top: 8px; }
.legal__date { color: var(--muted); margin-top: 8px; font-family: var(--mono); font-size: 14.5px; }
.legal h2 { font-size: 22px; font-weight: 600; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--rule); }
.legal h3 { font-size: 18px; font-weight: 600; margin-top: 26px; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal li { margin-top: 6px; }
.legal__summary { background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--amber); border-radius: 2px; padding: 20px 24px; margin-top: 28px; }
.legal__summary h2 { margin-top: 0; padding-top: 0; border-top: 0; font-size: 18px; }
.legal__caps { font-size: 15.5px; }

.notfound { padding-block: clamp(80px, 14vw, 160px); max-width: 720px; }

/* ---------- Footer ---------- */

.site-footer { border-top: 2px solid var(--text); padding-block: 28px 36px; font-size: 15px; }
.site-footer .brand { color: var(--text); font-size: 17px; }
.site-footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer nav a { color: var(--muted); text-decoration: none; }
.site-footer nav a:hover, .site-footer nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent); }
.site-footer__legal { margin-top: 18px; color: var(--muted); font-size: 13.5px; font-family: var(--mono); }
