/* ==========================================================================
   BotdoTax — Marketing site styles
   Built on the app's "Ledger" design tokens (emerald accent on charcoal,
   Manrope + IBM Plex Mono, hairline grid lines, mono figures). Dark is the
   default, matching the signed-in workspace; light follows the OS setting or
   the theme toggle. Marketing surface: larger type and more air than the
   dense app shell, but the same lines, labels and status badges.
   ========================================================================== */

:root {
  --acc-h: 162; /* emerald accent hue */

  /* neutrals — charcoal (dark) */
  --bg-side: oklch(0.135 0.008 165);
  --bg-0: oklch(0.185 0.009 166);
  --bg-1: oklch(0.205 0.010 166);
  --bg-2: oklch(0.235 0.011 166);
  --bg-3: oklch(0.275 0.012 166);
  --line: oklch(1 0 0 / 0.085);
  --line-2: oklch(1 0 0 / 0.16);
  --txt-hi: oklch(0.97 0.006 164);
  --txt-mid: oklch(0.76 0.011 166);
  --txt-low: oklch(0.56 0.013 166);

  /* accent */
  --em: oklch(0.77 0.155 var(--acc-h));
  --em-bright: oklch(0.85 0.16 var(--acc-h));
  --em-dim: oklch(0.77 0.155 var(--acc-h) / 0.14);
  --on-em: oklch(0.16 0.02 165);
  --mark-stroke: oklch(0.135 0.008 165);

  --amber: oklch(0.81 0.13 80);
  --amber-t: oklch(0.81 0.13 80 / 0.14);
  --red: oklch(0.67 0.17 24);
  --red-t: oklch(0.67 0.17 24 / 0.14);
  --shadow: 0 30px 80px oklch(0 0 0 / 0.45);

  --sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --maxw: 1200px;

  color-scheme: dark;
}

/* Light palette — same values as the app's [data-theme="light"]. Applied when
   the OS prefers light and the visitor hasn't forced dark, or when the toggle
   forces light. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg-side: oklch(0.955 0.004 165);
    --bg-0: oklch(0.995 0.002 165);
    --bg-1: oklch(0.978 0.004 165);
    --bg-2: oklch(0.952 0.006 165);
    --bg-3: oklch(0.915 0.009 165);
    --line: oklch(0 0 0 / 0.09);
    --line-2: oklch(0 0 0 / 0.15);
    --txt-hi: oklch(0.27 0.013 165);
    --txt-mid: oklch(0.45 0.013 165);
    --txt-low: oklch(0.60 0.012 165);
    --em: oklch(0.57 0.14 var(--acc-h));
    --em-bright: oklch(0.49 0.15 var(--acc-h));
    --em-dim: oklch(0.57 0.14 var(--acc-h) / 0.11);
    --on-em: oklch(0.99 0.01 165);
    --mark-stroke: oklch(0.99 0.01 165);
    --amber: oklch(0.57 0.13 66);
    --amber-t: oklch(0.57 0.13 66 / 0.12);
    --red: oklch(0.53 0.19 25);
    --red-t: oklch(0.53 0.19 25 / 0.12);
    --shadow: 0 30px 70px oklch(0.3 0.02 165 / 0.16);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg-side: oklch(0.955 0.004 165);
  --bg-0: oklch(0.995 0.002 165);
  --bg-1: oklch(0.978 0.004 165);
  --bg-2: oklch(0.952 0.006 165);
  --bg-3: oklch(0.915 0.009 165);
  --line: oklch(0 0 0 / 0.09);
  --line-2: oklch(0 0 0 / 0.15);
  --txt-hi: oklch(0.27 0.013 165);
  --txt-mid: oklch(0.45 0.013 165);
  --txt-low: oklch(0.60 0.012 165);
  --em: oklch(0.57 0.14 var(--acc-h));
  --em-bright: oklch(0.49 0.15 var(--acc-h));
  --em-dim: oklch(0.57 0.14 var(--acc-h) / 0.11);
  --on-em: oklch(0.99 0.01 165);
  --mark-stroke: oklch(0.99 0.01 165);
  --amber: oklch(0.57 0.13 66);
  --amber-t: oklch(0.57 0.13 66 / 0.12);
  --red: oklch(0.53 0.19 25);
  --red-t: oklch(0.53 0.19 25 / 0.12);
  --shadow: 0 30px 70px oklch(0.3 0.02 165 / 0.16);
  color-scheme: light;
}

/* ===== Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--bg-0);
  color: var(--txt-hi);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
svg.ic {
  width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.7;
  fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none;
}
:focus-visible { outline: 2px solid var(--em); outline-offset: 2px; }

/* brand mark + wordmark */
.mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--em);
  display: flex; align-items: center; justify-content: center; flex: none; position: relative;
}
.mark::after {
  content: ""; position: absolute; inset: 0; border-radius: 8px;
  border: 1px solid oklch(0.92 0.13 var(--acc-h) / 0.5);
}
.mark svg {
  width: 16px; height: 16px; stroke: var(--mark-stroke); stroke-width: 2.8;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.brand { display: flex; align-items: center; gap: 11px; }
.wordmark { font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.wordmark b { color: var(--em-bright); }

/* eyebrow: mono, uppercase, glowing dot — the auth screen's .ab-eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--em-bright); font-weight: 500;
}
.eyebrow .d { width: 7px; height: 7px; border-radius: 50%; background: var(--em); box-shadow: 0 0 10px var(--em); }
.eyebrow .n { color: var(--txt-low); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 40px; padding: 0 16px; border-radius: 8px; font-family: var(--sans);
  font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--line-2); background: var(--bg-1); color: var(--txt-hi);
  transition: background .14s, filter .14s, border-color .14s;
}
.btn:hover { background: var(--bg-2); }
.btn.primary { background: var(--em); color: var(--on-em); border-color: transparent; font-weight: 800; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.lg { height: 48px; padding: 0 22px; font-size: 14.5px; border-radius: 9px; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.ticon {
  width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--txt-mid);
  background: none; cursor: pointer; flex: none;
}
.ticon:hover { color: var(--txt-hi); background: var(--bg-1); }
.ticon .i-sun { display: none; }
.is-light .ticon .i-sun { display: block; }
.is-light .ticon .i-moon { display: none; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg-0) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  font-size: 13.5px; font-weight: 600; color: var(--txt-mid);
  padding: 7px 12px; border-radius: 7px;
}
.nav__links a:hover { color: var(--txt-hi); background: var(--bg-1); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav__signin { font-size: 13.5px; font-weight: 700; color: var(--txt-mid); padding: 0 6px; }
.nav__signin:hover { color: var(--txt-hi); }

/* ===== Hero ===== */
.hero { position: relative; padding: 88px 0 0; overflow: hidden; }
/* the auth panel's grid + emerald glow, scaled up for the page */
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px; opacity: 0.7;
  mask-image: radial-gradient(90% 70% at 50% 0%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(90% 70% at 50% 0%, #000, transparent 78%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; max-width: 140vw;
  background: radial-gradient(closest-side, var(--em-dim), transparent);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; text-align: center; }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 68px); font-weight: 800; letter-spacing: -0.035em;
  line-height: 1.04; margin: 22px auto 0; max-width: 900px;
}
.hero h1 .g { color: var(--em-bright); }
.hero__sub {
  font-size: clamp(16px, 2vw, 18.5px); line-height: 1.6; color: var(--txt-mid);
  margin: 22px auto 0; max-width: 680px;
}
.hero__cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero__ticks {
  display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap; margin-top: 26px;
  font-size: 13px; font-weight: 600; color: var(--txt-mid);
}
.tick { display: inline-flex; align-items: center; gap: 9px; }
.tick .tk {
  width: 20px; height: 20px; border-radius: 6px; background: var(--em-dim);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.tick .tk svg { width: 12px; height: 12px; stroke: var(--em-bright); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Product shot: a recreated Ledger workspace ===== */
.shot { margin-top: 64px; position: relative; }
.frame {
  border: 1px solid var(--line-2); border-bottom: none; border-radius: 14px 14px 0 0;
  background: var(--bg-side); overflow: hidden; box-shadow: var(--shadow); text-align: left;
}
.frame__bar {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--bg-side);
}
.frame__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bg-3); }
.frame__url {
  margin: 0 auto; font-family: var(--mono); font-size: 11px; color: var(--txt-low);
  padding: 3px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-0);
}
.app { display: flex; font-size: 13px; min-height: 470px; }
.app__side { width: 210px; flex: none; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; background: var(--bg-side); }
.app__brand { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.app__brand .mark { width: 26px; height: 26px; border-radius: 7px; }
.app__brand .mark svg { width: 14px; height: 14px; }
.app__brand .wordmark { font-size: 14.5px; }
.navlabel {
  font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--txt-low);
  padding: 18px 16px 9px; font-weight: 700; display: flex; align-items: center; gap: 8px;
}
.navlabel::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.navitem {
  display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 16px;
  color: var(--txt-mid); font-size: 12.5px; font-weight: 600; border-left: 2px solid transparent;
}
.navitem.active { color: var(--em-bright); border-left-color: var(--em); background: linear-gradient(90deg, var(--em-dim), transparent); }
.navitem .count { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--txt-low); }
.navitem.active .count { color: var(--em-bright); }
.app__firm { margin-top: auto; border-top: 1px solid var(--line); padding: 13px 16px; display: flex; align-items: center; gap: 10px; }
.flogo { width: 30px; height: 30px; border-radius: 7px; background: var(--bg-2); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11px; flex: none; }
.app__firm .fn { font-size: 12px; font-weight: 700; }
.app__firm .fp { font-size: 9.5px; color: var(--txt-low); font-family: var(--mono); margin-top: 1px; }

.app__main { flex: 1; min-width: 0; background: var(--bg-0); display: flex; flex-direction: column; }
.app__top { height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 20px; border-bottom: 1px solid var(--line-2); }
.app__top .ttl { font-weight: 700; font-size: 13.5px; }
.season { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--txt-mid); font-family: var(--mono); }
.season .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--em); box-shadow: 0 0 9px var(--em); }
.topsearch { margin-left: auto; display: flex; align-items: center; gap: 9px; height: 34px; width: 240px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; color: var(--txt-low); background: var(--bg-side); font-size: 12px; }
.topsearch .kbd { margin-left: auto; font-family: var(--mono); font-size: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 10.5px; color: var(--em-bright); flex: none; }

.pagehead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.pagehead h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; display: flex; align-items: center; gap: 11px; }
.ix { font-family: var(--mono); font-size: 11px; color: var(--em); font-weight: 500; border: 1px solid var(--em-dim); padding: 2px 7px; border-radius: 5px; }
.pagehead .sub { font-size: 10.5px; color: var(--txt-low); margin-top: 4px; font-family: var(--mono); letter-spacing: 0.02em; }
.pagehead .acts { display: flex; gap: 8px; }
.pagehead .btn { height: 32px; padding: 0 12px; font-size: 11.5px; gap: 7px; }
.pagehead .btn svg { width: 14px; height: 14px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stat { padding: 14px 20px; border-right: 1px solid var(--line); position: relative; }
.stat:last-child { border-right: none; }
.stat.lead::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--em); }
.stat .k { font-size: 9px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--txt-low); font-weight: 700; }
.stat .v { font-size: 25px; font-weight: 800; letter-spacing: -0.03em; margin-top: 9px; line-height: 1; font-family: var(--mono); }
.stat .dl { font-size: 10.5px; margin-top: 8px; font-weight: 600; color: var(--txt-mid); }
.stat .dl.up { color: var(--em-bright); }
.stat .dl.warn { color: var(--amber); }

.panel-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.panel-h .t { font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.panel-h .t .n { font-family: var(--mono); color: var(--em); font-weight: 500; letter-spacing: 0; }
.panel-h .t .muted { color: var(--txt-low); font-weight: 500; letter-spacing: 0; }
.panel-h .more { color: var(--txt-low); font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }

/* ledger tables (app + marketing cards) */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th {
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--txt-low);
  font-weight: 700; text-align: left; padding: 9px 16px; border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line); background: var(--bg-side); white-space: nowrap;
}
.tbl th:last-child, .tbl td:last-child { border-right: none; }
.tbl th.r, .tbl td.r { text-align: right; }
.tbl td { padding: 0 16px; height: 44px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); font-size: 12px; color: var(--txt-mid); white-space: nowrap; }
.tbl tbody tr:last-child td { border-bottom: none; }
.cli { display: flex; align-items: center; gap: 10px; }
.ci { width: 26px; height: 26px; border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 800; color: #fff; flex: none; background: oklch(0.7 0.15 var(--h, 162)); }
.cn { color: var(--txt-hi); font-weight: 700; font-size: 12.5px; }
.csub { color: var(--txt-low); font-size: 9.5px; font-family: var(--mono); margin-top: 1px; }
.ent { font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--em-bright); }
.mfig { font-family: var(--mono); font-size: 11.5px; color: var(--txt-mid); }
.ava-s { width: 24px; height: 24px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: var(--em-bright); }
.prog { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.prog .bar { width: 46px; height: 5px; background: var(--bg-3); overflow: hidden; border-radius: 1px; }
.prog .bar i { display: block; height: 100%; background: var(--em); }
.prog .pct { font-family: var(--mono); font-size: 11px; width: 30px; text-align: right; }

/* status badges — square dot + label, same classes as the app */
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge .bd { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.b-prog { color: var(--amber); } .b-prog .bd { background: var(--amber); animation: badge-pulse 1.2s ease-in-out infinite; }
.b-rev { color: var(--em-bright); } .b-rev .bd { background: var(--em); box-shadow: 0 0 7px var(--em); }
.b-wait { color: var(--txt-low); } .b-wait .bd { background: var(--txt-low); }
.b-file { color: var(--red); } .b-file .bd { background: var(--red); }
.b-done { color: var(--em-bright); } .b-done .bd { background: var(--em); }
.b-link { color: var(--txt-mid); } .b-link .bd { background: transparent; border: 1.5px solid var(--em); }
@keyframes badge-pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--amber); } 50% { opacity: .4; box-shadow: 0 0 7px 0 var(--amber); } }
@media (prefers-reduced-motion: reduce) { .b-prog .bd { animation: none; } html { scroll-behavior: auto; } }

.app__split { display: grid; grid-template-columns: 1fr 280px; flex: 1; }
.app__split > div:first-child { border-right: 1px solid var(--line); min-width: 0; overflow: hidden; }
.dlrow { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.dlrow .day { font-family: var(--mono); text-align: center; flex: none; width: 38px; }
.dlrow .d1 { font-size: 16px; font-weight: 600; line-height: 1; }
.dlrow .d2 { font-size: 8.5px; color: var(--em-bright); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 3px; }
.dlrow .dn { font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.dlrow .ds { font-size: 9.5px; color: var(--txt-low); font-family: var(--mono); margin-top: 2px; }
.dlrow .due { margin-left: auto; font-family: var(--mono); font-size: 10.5px; font-weight: 600; color: var(--txt-mid); }
.dlrow .due.soon { color: var(--amber); } .dlrow .due.crit { color: var(--red); }

.chatdock { border-top: 1px solid var(--line-2); background: var(--bg-side); padding: 12px 20px 14px; }
.chat-lab { font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--em-bright); display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.chat-lab .pd { width: 6px; height: 6px; border-radius: 50%; background: var(--em); box-shadow: 0 0 8px var(--em); }
.chat-lab .meta { margin-left: auto; font-family: var(--mono); color: var(--txt-low); letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 10px; }
.composer { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line-2); border-left: 2px solid var(--em); background: var(--bg-0); padding: 0 10px 0 14px; height: 46px; font-family: var(--mono); font-size: 12px; color: var(--txt-low); }
.composer .pre { color: var(--em); font-weight: 600; }
.composer .send { margin-left: auto; display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; background: var(--em); color: var(--on-em); font-weight: 700; font-size: 11px; border-radius: 6px; font-family: var(--sans); }
.composer .send svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Forms strip ===== */
.forms { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); background: var(--bg-side); }
.forms__inner { display: flex; align-items: center; gap: 28px; padding: 22px 24px; flex-wrap: wrap; justify-content: center; }
.forms__label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--txt-low); }
.forms__list { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.fchip { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--txt-mid); border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 10px; background: var(--bg-0); }
.fchip.e { color: var(--em-bright); border-color: color-mix(in oklch, var(--em) 45%, transparent); }

/* ===== Sections ===== */
.section { padding: 104px 0; border-bottom: 1px solid var(--line); }
.section.alt { background: var(--bg-side); }
.section-head { max-width: 720px; }
.section-head.c { margin: 0 auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-top: 16px; }
.section-head h2 .g { color: var(--em-bright); }
.section-head p { font-size: 16.5px; line-height: 1.65; color: var(--txt-mid); margin-top: 18px; }

/* feature grid: one bordered ledger, cells divided by hairlines */
.feat-grid {
  margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--bg-0);
}
.feat { padding: 30px 28px 32px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.feat:nth-child(3n) { border-right: none; }
.feat:nth-last-child(-n+3) { border-bottom: none; }
.feat__top { display: flex; align-items: center; justify-content: space-between; }
.feat__icon { width: 38px; height: 38px; border-radius: 9px; background: var(--em-dim); color: var(--em-bright); display: flex; align-items: center; justify-content: center; }
.feat__icon svg { width: 19px; height: 19px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.feat__ix { font-family: var(--mono); font-size: 11px; color: var(--txt-low); }
.feat h3 { font-size: 17px; font-weight: 800; letter-spacing: -0.015em; margin-top: 22px; }
.feat p { font-size: 14px; line-height: 1.65; color: var(--txt-mid); margin-top: 9px; }

/* lifecycle */
.flow { margin-top: 56px; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--bg-0); }
.flow__step { padding: 26px 22px 28px; border-right: 1px solid var(--line); position: relative; }
.flow__step:last-child { border-right: none; }
.flow__step::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: transparent; }
.flow__step.on::before { background: var(--em); }
.flow__n { font-family: var(--mono); font-size: 11px; color: var(--txt-low); }
.flow__step .badge { margin-top: 18px; font-size: 13px; }
.flow__step p { font-size: 13.5px; line-height: 1.6; color: var(--txt-mid); margin-top: 12px; }
.flow__note { margin-top: 18px; font-family: var(--mono); font-size: 12px; color: var(--txt-low); display: flex; gap: 8px; align-items: center; }
.flow__note .badge { font-family: var(--sans); }

/* split rows: copy + product card */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.split.rev .split__copy { order: 2; }
.split__copy h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; margin-top: 16px; }
.split__copy > p { font-size: 16px; line-height: 1.65; color: var(--txt-mid); margin-top: 16px; }
.ticks { list-style: none; margin-top: 24px; display: grid; gap: 13px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 600; }
.ticks .tk { width: 22px; height: 22px; border-radius: 6px; background: var(--em-dim); display: flex; align-items: center; justify-content: center; flex: none; }
.ticks .tk svg { width: 13px; height: 13px; stroke: var(--em-bright); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.card { border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-0); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.card__head { display: flex; align-items: center; gap: 10px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--bg-side); }
.card__head .t { font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.card__head .t .n { font-family: var(--mono); color: var(--em); font-weight: 500; letter-spacing: 0; }
.card__head .r { margin-left: auto; }
.card__scroll { overflow-x: auto; }

/* review card: scan with field overlay + extracted fields */
.review { display: grid; grid-template-columns: 1fr 1fr; }
.scan { padding: 18px; border-right: 1px solid var(--line); background: var(--bg-1); }
.paper { position: relative; background: oklch(0.985 0.003 90); border-radius: 4px; padding: 12px; color: oklch(0.3 0.01 165); font-size: 8px; font-family: var(--mono); overflow: hidden; }
.paper .ph { font-weight: 600; font-size: 9px; border-bottom: 1px solid oklch(0.3 0.01 165 / 0.35); padding-bottom: 5px; display: flex; justify-content: space-between; }
.paper .pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 8px; }
.paper .bx { border: 1px solid oklch(0.3 0.01 165 / 0.3); padding: 4px 5px; line-height: 1.35; min-width: 0; }
.paper .bx b { display: block; font-weight: 600; font-size: 8.5px; color: oklch(0.2 0.01 165); }
.paper .bx.hit { border: 1.5px solid var(--em); background: oklch(0.77 0.155 162 / 0.16); box-shadow: 0 0 0 3px oklch(0.77 0.155 162 / 0.14); }
.fields { padding: 6px 0; }
.field { display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-bottom: 1px solid var(--line); font-size: 12px; }
.field:last-child { border-bottom: none; }
.field .fk { color: var(--txt-mid); flex: 1; min-width: 0; }
.field .fk small { display: block; font-family: var(--mono); font-size: 9.5px; color: var(--txt-low); }
.field .fv { font-family: var(--mono); font-weight: 600; color: var(--txt-hi); }
.field .cf { font-family: var(--mono); font-size: 10px; color: var(--em-bright); width: 34px; text-align: right; }
.field .cf.lo { color: var(--amber); }
.field.on { background: var(--em-dim); box-shadow: inset 2px 0 0 var(--em); }

/* client portal card */
.portal { padding: 22px; }
.ptop { display: flex; align-items: center; gap: 12px; }
.ptop .ftext .fname { font-weight: 800; font-size: 14px; }
.ptop .ftext .fby { font-size: 10.5px; color: var(--txt-low); font-family: var(--mono); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.ptop .ftext .fby b { color: var(--em-bright); }
.ptop .ftext .fby svg { width: 11px; height: 11px; stroke: var(--em-bright); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ptop .enc { margin-left: auto; font-size: 10.5px; font-weight: 700; color: var(--em-bright); display: flex; align-items: center; gap: 6px; border: 1px solid color-mix(in oklch, var(--em) 40%, transparent); padding: 4px 9px; border-radius: 999px; }
.ptop .enc svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pdrop { margin-top: 18px; border: 1.5px dashed var(--line-2); border-radius: 10px; padding: 26px 16px; text-align: center; background: var(--bg-1); }
.pdrop .ui { width: 40px; height: 40px; border-radius: 10px; background: var(--em-dim); color: var(--em-bright); display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.pdrop .ui svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.pdrop .pt { font-weight: 800; font-size: 14px; margin-top: 12px; }
.pdrop .ps { font-size: 11px; color: var(--txt-low); font-family: var(--mono); margin-top: 4px; }
.checklist { margin-top: 16px; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.chk { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.chk:last-child { border-bottom: none; }
.chk .cb { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); display: flex; align-items: center; justify-content: center; flex: none; }
.chk .cb svg { width: 11px; height: 11px; stroke: var(--on-em); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chk.done .cb { background: var(--em); border-color: var(--em); }
.chk.done .lbl { color: var(--txt-mid); text-decoration: line-through; text-decoration-color: var(--txt-low); }
.chk .m { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--txt-low); }

/* lead sheet card */
.sheet .tbl td { height: 38px; }
.sheet .grp td { background: var(--bg-1); color: var(--txt-hi); font-weight: 800; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; height: 32px; }
.sheet .sub td { color: var(--txt-low); font-family: var(--mono); font-size: 11px; }
.sheet .fx { font-family: var(--mono); font-size: 10.5px; color: var(--em-bright); }
.sheet .blank { display: inline-block; width: 70px; height: 18px; border: 1px dashed var(--line-2); border-radius: 3px; vertical-align: middle; }

/* security grid */
.sec-grid { margin-top: 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sec { border: 1px solid var(--line-2); border-radius: 12px; padding: 26px; background: var(--bg-0); }
.sec__icon { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg-1); color: var(--em-bright); display: flex; align-items: center; justify-content: center; }
.sec__icon svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.sec h3 { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; margin-top: 18px; }
.sec p { font-size: 13.5px; line-height: 1.65; color: var(--txt-mid); margin-top: 8px; }

/* metrics strip */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--bg-0); }
.metric { padding: 26px 26px; border-right: 1px solid var(--line); position: relative; }
.metric:last-child { border-right: none; }
.metric:first-child::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--em); }
.metric .k { font-size: 10px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--txt-low); font-weight: 700; }
.metric .v { font-family: var(--mono); font-size: 36px; font-weight: 600; letter-spacing: -0.03em; margin-top: 12px; line-height: 1; }
.metric .d { font-size: 12.5px; color: var(--txt-mid); margin-top: 10px; font-weight: 600; }

/* final CTA */
.cta { position: relative; overflow: hidden; border: 1px solid var(--line-2); border-radius: 16px; background: var(--bg-side); padding: 72px 32px; text-align: center; }
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px; opacity: 0.6;
  mask-image: radial-gradient(70% 90% at 50% 100%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 90% at 50% 100%, #000, transparent 75%);
}
.cta::after { content: ""; position: absolute; bottom: -260px; left: 50%; transform: translateX(-50%); width: 760px; height: 520px; max-width: 160%; background: radial-gradient(closest-side, var(--em-dim), transparent); }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 16px auto 0; max-width: 720px; }
.cta h2 .g { color: var(--em-bright); }
.cta p { font-size: 16.5px; color: var(--txt-mid); margin: 16px auto 0; max-width: 560px; line-height: 1.6; }
.cta .hero__cta { margin-top: 30px; }
.cta__note { font-family: var(--mono); font-size: 12px; color: var(--txt-low); margin-top: 20px !important; }

/* ===== Footer ===== */
.footer { padding: 64px 0 36px; background: var(--bg-side); border-top: 1px solid var(--line-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer__brand p { font-size: 13.5px; line-height: 1.65; color: var(--txt-mid); margin-top: 16px; max-width: 320px; }
.footer__col h4 { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; font-weight: 700; color: var(--txt-low); margin-bottom: 14px; }
.footer__col a { display: block; font-size: 13.5px; font-weight: 600; color: var(--txt-mid); padding: 5px 0; }
.footer__col a:hover { color: var(--em-bright); }
.footer__bottom { margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--txt-low); font-family: var(--mono); }

/* ===== Legal / support pages ===== */
.legal-hero { position: relative; padding: 76px 0 44px; border-bottom: 1px solid var(--line-2); background: var(--bg-side); overflow: hidden; }
.legal-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px; opacity: 0.6;
  mask-image: radial-gradient(80% 120% at 85% 0%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(80% 120% at 85% 0%, #000, transparent 70%);
}
.legal-hero .wrap { position: relative; }
.legal-hero h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; margin-top: 16px; }
.legal-hero p { margin-top: 16px; max-width: 620px; color: var(--txt-mid); line-height: 1.65; font-size: 16px; }
.legal-hero .updated { margin-top: 18px; font-size: 12px; color: var(--txt-low); font-family: var(--mono); }
.legal { padding: 64px 0 104px; }
.legal__inner { max-width: 760px; margin: 0 auto; }
.toc { border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-1); padding: 22px 24px; margin-bottom: 52px; }
.toc h2 { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: var(--txt-low); margin-bottom: 14px; }
.toc ol { list-style: none; counter-reset: toc; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 12px; font-size: 14px; font-weight: 600; color: var(--txt-mid); padding: 3px 0; }
.toc a:hover { color: var(--em-bright); }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 12px; color: var(--em); font-weight: 500; padding-top: 1px; }
.legal__section { scroll-margin-top: 90px; margin-top: 48px; }
.legal__section:first-of-type { margin-top: 0; }
.legal__section > h2, .legal__contact h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.legal__section h3 { font-size: 15.5px; font-weight: 800; margin-top: 26px; }
.legal__section p, .legal__contact p { margin-top: 14px; line-height: 1.75; color: var(--txt-mid); }
.legal__section ul, .support__list { margin-top: 14px; list-style: none; display: grid; gap: 10px; }
.legal__section ul li, .support__list li { position: relative; padding-left: 24px; line-height: 1.65; color: var(--txt-mid); }
.legal__section ul li::before, .support__list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--em); }
.legal a { color: var(--em-bright); font-weight: 700; }
.legal strong { color: var(--txt-hi); font-weight: 700; }
.legal__callout { margin-top: 18px; border: 1px solid color-mix(in oklch, var(--amber) 45%, transparent); background: var(--amber-t); border-radius: 10px; padding: 14px 16px; font-size: 14px; line-height: 1.6; color: var(--txt-hi); }
.legal__contact { scroll-margin-top: 90px; margin-top: 56px; border: 1px solid var(--line-2); border-left: 2px solid var(--em); border-radius: 12px; background: var(--bg-1); padding: 26px 28px; }
.legal__contact--first { margin-top: 0; margin-bottom: 52px; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .app__split { grid-template-columns: 1fr; }
  .app__split > div:last-child { display: none; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split.rev .split__copy { order: 0; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .feat:nth-child(3n) { border-right: 1px solid var(--line); }
  .feat:nth-child(2n) { border-right: none; }
  .feat:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .feat:nth-last-child(-n+2) { border-bottom: none; }
  .flow { grid-template-columns: repeat(3, 1fr); }
  .flow__step { border-bottom: 1px solid var(--line); }
  .flow__step:nth-child(3) { border-right: none; }
  .flow__step:nth-child(n+4) { border-bottom: none; }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .app__side { display: none; }
  .topsearch { display: none; }
  .stats, .metrics { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2), .metric:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2), .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav__signin { display: none; }
  .nav__actions .btn { height: 36px; padding: 0 12px; font-size: 12.5px; }
  .hero { padding-top: 56px; }
  .hero .eyebrow { font-size: 10.5px; letter-spacing: 0.08em; }
  .hero__cta .btn { width: 100%; }
  .shot { margin-top: 44px; }
  .app { min-height: 0; }
  .pagehead { flex-direction: column; align-items: flex-start; }
  .app .hide-sm, .tbl .hide-sm { display: none; }
  .chatdock .composer .q { display: none; }
  .section { padding: 72px 0; }
  .feat-grid, .flow, .sec-grid { grid-template-columns: 1fr; }
  .feat, .flow__step { border-right: none !important; border-bottom: 1px solid var(--line) !important; }
  .feat:last-child, .flow__step:last-child { border-bottom: none !important; }
  .review { grid-template-columns: 1fr; }
  .scan { border-right: none; border-bottom: 1px solid var(--line); }
  .metric .v { font-size: 28px; }
  .metric { padding: 20px; }
  .cta { padding: 52px 20px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .toc ol { grid-template-columns: 1fr; }
  .legal__contact { padding: 22px 20px; }
}
