/* EcomVital public site (ecomvital.com): home, products, privacy, terms.
   Same type and colour family as the app (paper, ink, profit green), dressed for a product site. */
:root {
  --paper: #F6F5F1; --paper-2: #EEECE6; --card: #FFFFFF; --ink: #0B0D12; --ink-2: #252A33; --muted: #5E6470; --faint: #8B909A;
  --rule: #E2DFD7; --rule-2: #D2CEC4;
  --profit: #1F6F5C; --profit-2: #2E8C74; --profit-soft: #E3F0EB; --loss: #B3402A; --spend: #3A4E7A; --revenue: #9A9484;
  --hero-ink: #0B0D12; --hero-text: #F4F3EF; --hero-muted: #A7ACB6; --hero-rule: #232833;
  --shadow: 0 1px 2px rgba(11, 13, 18, .04), 0 12px 32px rgba(11, 13, 18, .07);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1116; --paper-2: #141820; --card: #171B23; --ink: #F1EFEA; --ink-2: #D9D6CF; --muted: #A0A6B0; --faint: #7C828C;
    --rule: #262B35; --rule-2: #313744; --profit: #4DB394; --profit-2: #6FC7AB; --profit-soft: #15302A;
    --loss: #E07A62; --spend: #8DA2D4; --revenue: #A9A396;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  --paper: #0E1116; --paper-2: #141820; --card: #171B23; --ink: #F1EFEA; --ink-2: #D9D6CF; --muted: #A0A6B0; --faint: #7C828C;
  --rule: #262B35; --rule-2: #313744; --profit: #4DB394; --profit-2: #6FC7AB; --profit-soft: #15302A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 "Instrument Sans", -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img, svg { max-width: 100%; }
.num, .mono { font-family: "IBM Plex Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid transparent; }
.topbar.scrolled { border-bottom-color: var(--rule); }
.topbar.on-dark { background: color-mix(in srgb, var(--hero-ink) 82%, transparent); color: var(--hero-text); }
.topbar.on-dark.scrolled { border-bottom-color: var(--hero-rule); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.015em; text-decoration: none; }
.logo-tile { width: 32px; height: 32px; border-radius: 8px; background: #0B0D12; display: grid; place-items: center; flex: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.logo-tile i { width: 21px; height: 16px; background: #fff; -webkit-mask: url(/static/brand/ev-mark.svg) center/contain no-repeat;
  mask: url(/static/brand/ev-mark.svg) center/contain no-repeat; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14.5px; font-weight: 500; }
.nav-links a { text-decoration: none; opacity: .72; transition: opacity .15s; }
.nav-links a:hover, .nav-links a.on { opacity: 1; }
.nav-links .btn { opacity: 1; }
@media (max-width: 860px) { .nav-links .hide-md { display: none; } .nav-links { gap: 18px; } }
@media (max-width: 480px) { .nav-links .hide-sm { display: none; } .logo { font-size: 17px; gap: 8px; } .nav-links { gap: 12px; font-size: 14px; } .nav-links .btn.sm { padding: 8px 11px; font-size: 13.5px; } }

/* ---------- buttons, tags ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 10px; background: var(--ink); color: var(--paper) !important;
  text-decoration: none; font-weight: 600; font-size: 15px; border: 0; cursor: pointer; font-family: inherit; line-height: 1.2; white-space: nowrap;
  transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(11, 13, 18, .18); }
.btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 9px; }
.btn.green { background: var(--profit); color: #fff !important; }
.btn.light { background: #F4F3EF; color: #0B0D12 !important; }
.btn.ghost { background: transparent; color: inherit !important; box-shadow: inset 0 0 0 1px var(--rule-2); }
.on-dark .btn.ghost, .hero .btn.ghost { box-shadow: inset 0 0 0 1px var(--hero-rule); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(2px); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px "IBM Plex Mono", monospace; letter-spacing: .08em;
  text-transform: uppercase; color: var(--profit); }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; padding: 5px 12px 5px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--hero-rule); color: var(--hero-muted); text-decoration: none; }
.pill b { font: 600 11px "IBM Plex Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: #0B0D12; background: #7FD1B5;
  border-radius: 999px; padding: 2px 8px; }

/* ---------- hero (dark ink band) ---------- */
.hero-band { background: var(--hero-ink); color: var(--hero-text); position: relative; overflow: hidden; margin-top: -68px; padding-top: 68px; }
.hero-band::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--hero-rule) 1px, transparent 1px), linear-gradient(90deg, var(--hero-rule) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 30%, #000 20%, transparent 75%); }
.hero-band::after { content: ""; position: absolute; width: 720px; height: 720px; right: -160px; top: -260px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(77, 179, 148, .22), transparent); }
.hero { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; padding: 72px 0 96px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.03; letter-spacing: -.035em; margin: 22px 0 20px; font-weight: 700; }
.hero h1 em { font-style: normal; color: #7FD1B5; }
.hero .lead { font-size: 19px; line-height: 1.55; color: var(--hero-muted); max-width: 540px; margin: 0; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero .fine { margin-top: 18px; font-size: 13.5px; color: var(--hero-muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero .fine span::before { content: "✓"; color: #7FD1B5; margin-right: 6px; font-weight: 700; }
@media (max-width: 960px) { .hero { grid-template-columns: 1fr; gap: 44px; padding: 48px 0 72px; } }

/* product window in the hero */
.window { background: #F7F6F2; color: #0B0D12; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
  overflow: hidden; font-size: 13px; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #ECEAE4; border-bottom: 1px solid #DEDAD1; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D3CFC5; }
.window-bar span { margin-left: 10px; font: 500 12px "IBM Plex Mono", monospace; color: #6B707A; }
.window-body { padding: 18px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { background: #fff; border: 1px solid #E5E2DA; border-radius: 10px; padding: 10px 12px; }
.kpi small { display: block; font-size: 11px; color: #6B707A; }
.kpi b { display: block; font: 600 17px "IBM Plex Mono", monospace; letter-spacing: -.02em; margin-top: 2px; }
.kpi b.g { color: #1F6F5C; }
@media (max-width: 520px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
.ledger { background: #fff; border: 1px solid #E5E2DA; border-radius: 10px; padding: 14px 14px 12px; }
.ledger-h { display: flex; justify-content: space-between; font-size: 12px; color: #6B707A; margin-bottom: 10px; }
.wf { display: grid; gap: 8px; }
.wf-row { display: grid; grid-template-columns: 88px 1fr 64px; gap: 10px; align-items: center; font-size: 12.5px; }
.wf-track { position: relative; height: 16px; display: flex; }
.wf-track .s { height: 100%; background: #9A9484; border-radius: 4px 0 0 4px; }
.wf-track .h { height: 100%; border: 1px solid #CFCAC0; border-left: 0; border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(135deg, #D8D4CA 0 3px, transparent 3px 7px); }
.wf-track .s.net { background: #1F6F5C; border-radius: 4px; }
.wf-row .num { text-align: right; }
.wf-total { border-top: 1px dashed #DEDAD1; padding-top: 8px; font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: 104px 0; }
.section.tint { background: var(--paper-2); }
.section.tight { padding: 72px 0; }
.head { max-width: 720px; margin-bottom: 52px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head.center .eyebrow::after { content: ""; width: 18px; height: 1px; background: currentColor; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.03em; margin: 14px 0 16px; font-weight: 700; }
h3 { font-size: 19px; letter-spacing: -.015em; margin: 0 0 8px; line-height: 1.3; }
.sub { font-size: 18px; color: var(--muted); margin: 0; }
@media (max-width: 700px) { .section { padding: 72px 0; } .head { margin-bottom: 36px; } }

/* problem strip */
.problems { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.problems div { background: var(--card); padding: 28px; }
.problems b { display: block; font-size: 17px; margin-bottom: 6px; letter-spacing: -.01em; }
.problems p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .problems { grid-template-columns: 1fr; } }

/* product grid */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pgrid .pcard:first-child { grid-column: 1 / -1; }
@media (max-width: 960px) { .pgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pgrid { grid-template-columns: 1fr; } }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 26px; text-decoration: none; box-shadow: var(--shadow); transition: transform .18s, border-color .18s; }
.pcard:hover { transform: translateY(-3px); border-color: var(--rule-2); }
.pcard p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.pcard .more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--profit); }
.ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--profit-soft); color: var(--profit); margin-bottom: 18px; }
.ico svg { width: 22px; height: 22px; }
.pcard ul { margin: 0 0 18px; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; }
.pcard ul li { display: flex; gap: 8px; }
.pcard ul li::before { content: "✓"; color: var(--profit); font-weight: 700; }
.pcard.hero-card { flex-direction: row; gap: 28px; align-items: stretch; }
.pcard.hero-card > div:first-child { flex: 1; display: flex; flex-direction: column; }
.pcard.hero-card .mini { flex: 1.1; }
@media (max-width: 960px) { .pcard.hero-card { flex-direction: column; } }
.mini { background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; padding: 14px; display: grid; gap: 8px; align-content: start; }
:root .mini .wf-row { color: var(--ink); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; position: relative; }
.step::before { counter-increment: step; content: "0" counter(step); font: 600 13px "IBM Plex Mono", monospace; color: var(--profit);
  display: block; margin-bottom: 14px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chips span { font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--rule); }

/* trust / security */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 960px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .trust { grid-template-columns: 1fr; } }
.trust div { border-top: 2px solid var(--ink); padding-top: 18px; }
.trust p { margin: 0; color: var(--muted); font-size: 15px; }

/* founder story */
.story { display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; gap: 28px; } }
.founder { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.avatar { width: 64px; height: 64px; border-radius: 16px; background: var(--ink); color: var(--paper); display: grid; place-items: center;
  font: 600 20px "IBM Plex Mono", monospace; margin-bottom: 14px; }
.founder b { display: block; font-size: 17px; }
.founder span { color: var(--muted); font-size: 14px; }
blockquote { margin: 0 0 22px; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; letter-spacing: -.02em; font-weight: 600; }
.story p { color: var(--muted); font-size: 16.5px; }

/* access form band */
.cta-band { background: var(--hero-ink); color: var(--hero-text); border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -300px;
  background: radial-gradient(closest-side, rgba(77, 179, 148, .22), transparent); pointer-events: none; }
.cta-band h2 { color: var(--hero-text); }
.cta-band .sub { color: var(--hero-muted); }
.cta-band .list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; color: var(--hero-text); }
.cta-band .list li::before { content: "✓"; color: #7FD1B5; margin-right: 10px; font-weight: 700; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 32px 22px; gap: 32px; border-radius: 18px; } }
.interest { position: relative; z-index: 1; display: grid; gap: 14px; background: #fff; color: #0B0D12; border-radius: 16px; padding: 24px; }
.interest .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .interest .row { grid-template-columns: 1fr; } }
.interest label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; color: #3A3F48; }
.interest input, .interest select, .interest textarea { font: inherit; font-weight: 400; font-size: 15px; padding: 11px 12px; border: 1px solid #DAD6CC;
  border-radius: 9px; background: #FBFAF7; color: #0B0D12; width: 100%; }
.interest input:focus, .interest select:focus, .interest textarea:focus { outline: 2px solid #1F6F5C; outline-offset: 0; border-color: transparent; }
.interest .btn { justify-content: center; width: 100%; padding: 13px; }
.interest .hp { position: absolute; left: -9999px; }
#msg.ok { color: #1F6F5C; font-weight: 600; }
#msg.err { color: #B3402A; }

/* products page */
.phead { padding: 56px 0 24px; }
.phead h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.035em; margin: 14px 0 16px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { font-size: 14px; font-weight: 500; padding: 8px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--rule);
  text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.jump a:hover { border-color: var(--rule-2); }
.jump a svg { width: 16px; height: 16px; color: var(--profit); }
.prod { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding: 72px 0; border-top: 1px solid var(--rule); scroll-margin-top: 80px; }
.prod:nth-of-type(even) .prod-copy { order: 2; }
@media (max-width: 900px) { .prod { grid-template-columns: 1fr; gap: 32px; padding: 56px 0; } .prod:nth-of-type(even) .prod-copy { order: 0; } }
.prod h2 { font-size: clamp(28px, 3.4vw, 38px); }
.prod .sub { font-size: 17px; }
.feat { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.feat li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15.5px; }
.feat li::before { content: "✓"; color: var(--profit); font-weight: 700; }
.feat li b { font-weight: 600; }
.feat li span { color: var(--muted); }
.shot { background: var(--card); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; font-size: 13px; }
.shot-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: var(--paper-2);
  font-weight: 600; font-size: 13px; }
.shot-bar small { font: 500 11.5px "IBM Plex Mono", monospace; color: var(--faint); }
.shot-body { padding: 14px 16px; display: grid; gap: 8px; }
.trow { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.trow:last-child { border-bottom: 0; }
.trow .num { text-align: right; }
.trow small { color: var(--faint); display: block; font-size: 12px; }
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--rule);
  white-space: nowrap; justify-self: start; }
.badge.g { background: var(--profit-soft); border-color: transparent; color: var(--profit); }
.badge.o { background: #FBEBDD; border-color: transparent; color: #9A4B12; }
.badge.r { background: #F7E1DB; border-color: transparent; color: #9C3420; }
.badge.b { background: #E2E8F5; border-color: transparent; color: #33497A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.o { background: #3A2716; color: #F0B37E; }
  :root:not([data-theme="light"]) .badge.r { background: #3A1D17; color: #F09A86; } :root:not([data-theme="light"]) .badge.b { background: #1C2538; color: #A8BBE6; } }
.mail { display: grid; gap: 4px; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 10px; background: var(--paper); }
.mail b { font-size: 13.5px; }
.mail span { color: var(--muted); font-size: 12.5px; }
.tl { display: grid; gap: 0; }
.tl div { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; padding: 7px 0; font-size: 13px; }
.tl i { width: 10px; height: 10px; border-radius: 50%; background: var(--rule-2); margin-top: 5px; }
.tl i.g { background: var(--profit); }
.tl small { color: var(--faint); font-family: "IBM Plex Mono", monospace; font-size: 11.5px; }
.sizes { width: 100%; border-collapse: collapse; font-size: 13px; }
.sizes th, .sizes td { padding: 8px 10px; border-bottom: 1px solid var(--rule); text-align: center; }
.sizes th { font-weight: 600; color: var(--muted); font-size: 12px; }
.sizes td:first-child, .sizes th:first-child { text-align: left; font-weight: 600; color: var(--ink); }

/* ---------- legal pages ---------- */
main.legal { max-width: 760px; padding: 48px 0 88px; }
.legal h1 { font-size: clamp(32px, 4vw, 44px); letter-spacing: -.03em; margin: 0 0 8px; line-height: 1.1; }
.legal h2 { font-size: 22px; margin: 40px 0 10px; letter-spacing: -.015em; }
.legal p, .legal li { color: var(--ink-2); }
.legal .meta { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 12px 0; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.legal th { font-weight: 600; background: var(--paper-2); }
.legal a { color: var(--profit); }
.legal .box { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 20px; margin: 20px 0; }

/* ---------- footer ---------- */
footer { background: var(--hero-ink); color: var(--hero-muted); padding: 64px 0 36px; margin-top: 0; font-size: 14.5px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { footer .cols { grid-template-columns: 1fr; } }
footer .logo { color: var(--hero-text); }
footer h4 { color: var(--hero-text); font-size: 13px; font-weight: 600; margin: 0 0 14px; letter-spacing: .02em; }
footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--hero-text); }
footer .company { margin-top: 16px; line-height: 1.65; }
.nw { white-space: nowrap; }
footer .base { border-top: 1px solid var(--hero-rule); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; font-size: 13px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
