/* ==========================================================================
   EthosAlgo — design system
   Mobile-first. No frameworks. No build step.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg:        #F2F5F9;
  --bg-2:      #E8EEF6;
  --surface:   #FFFFFF;
  --surface-2: #F7F9FC;

  --ink:       #0B1220;
  --ink-2:     #27334A;
  --muted:     #63718A;

  --line:      #DEE5EF;
  --line-2:    #EBF0F6;

  --brand:     #0E9E72;
  --brand-dk:  #0A7A58;
  --brand-lt:  #E7F6F0;
  --brand-ink: #063D2C;

  --steel:     #64748B;
  --gold:      #B98A2E;

  --dark:      #0B1220;
  --dark-2:    #101B2E;
  --dark-3:    #17253D;

  --discord:   #5865F2;
  --loss:      #CE3F3F;

  --r-xs: 8px;
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 24px;

  --sh-sm: 0 1px 2px rgba(11,18,32,.07), 0 1px 1px rgba(11,18,32,.04);
  --sh:    0 12px 28px -14px rgba(11,18,32,.22), 0 2px 6px rgba(11,18,32,.05);
  --sh-lg: 0 34px 70px -30px rgba(11,18,32,.35), 0 6px 18px -8px rgba(11,18,32,.12);

  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 108px);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Sora", var(--font);
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 6.2vw, 3.7rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 4.4vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
h4 { font-size: 1.02rem; }
p  { text-wrap: pretty; }
.lead { font-size: clamp(1.02rem, 2.1vw, 1.19rem); color: var(--muted); line-height: 1.7; }
strong { color: var(--ink); font-weight: 650; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1340px; }
section { padding-block: var(--section); position: relative; }
.section-sm { padding-block: clamp(40px, 6vw, 72px); }
.bg-surface { background: var(--surface); }
.bg-soft    { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.bg-dark    { background: var(--dark); color: #B9C6DA; }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: #fff; }
.bg-dark .lead { color: #93A3BD; }
.bg-dark strong { color: #fff; }

/* Grid and flex children default to min-width:auto, so one nowrap element (a
   frame title, a long number) can widen an entire column past the viewport.
   Every layout child is allowed to shrink instead. */
.grid > *, .hero-grid > *, .split > *, .plans > *, .steps > *,
.metrics > *, .stat-strip > *, .footer-grid > *, .header-inner > * { min-width: 0; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 26px); }
.g-2 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .g-2 { grid-template-columns: repeat(2, 1fr); } }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 268px), 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 + .lead { margin-top: 14px; }

/* ---------- Eyebrow / chips ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-dk); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--brand); border-radius: 2px; }
.bg-dark .eyebrow { color: #3FD6A3; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; color: var(--ink-2);
  box-shadow: var(--sh-sm);
}
/* cards and plans are column flex containers — keep chips hugging their text */
.card > .chip, .plan > .chip { align-self: flex-start; }
.chip-brand { background: var(--brand-lt); border-color: rgba(14,158,114,.22); color: var(--brand-ink); box-shadow: none; }
.chip-dark  { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.14); color: #D6E0EE; box-shadow: none; }
.chip-free  { background: #FFF6E2; border-color: #F0DFB4; color: #7A5A12; box-shadow: none; }
.chip-soon  { background: #EEF1FF; border-color: #D8DEFF; color: #3B44A8; box-shadow: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.dot-live { box-shadow: 0 0 0 0 rgba(14,158,114,.55); animation: pulse 2.4s infinite; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(14,158,114,.5); }
  70%  { box-shadow: 0 0 0 9px rgba(14,158,114,0); }
  100% { box-shadow: 0 0 0 0 rgba(14,158,114,0); }
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 24px;
  background: var(--btn-bg); color: var(--btn-fg); border: 1px solid var(--btn-bd);
  border-radius: 999px; font-weight: 650; font-size: .96rem; letter-spacing: -.01em;
  cursor: pointer; text-align: center;
  transition: transform .18s ease, box-shadow .22s ease, background-color .18s ease, border-color .18s ease;
  box-shadow: var(--sh-sm);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }
.btn-primary { --btn-bg: var(--brand); box-shadow: 0 10px 22px -10px rgba(14,158,114,.75); }
.btn-primary:hover { --btn-bg: var(--brand-dk); box-shadow: 0 16px 30px -12px rgba(14,158,114,.7); }
.btn-discord { --btn-bg: var(--discord); box-shadow: 0 10px 22px -12px rgba(88,101,242,.8); }
.btn-discord:hover { --btn-bg: #4752D6; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); box-shadow: none; }
.btn-ghost:hover { --btn-bg: var(--surface); --btn-bd: #C9D4E3; }
.bg-dark .btn-ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.22); }
.bg-dark .btn-ghost:hover { --btn-bg: rgba(255,255,255,.08); --btn-bd: rgba(255,255,255,.4); }
.btn-light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn-lg { min-height: 56px; padding: 15px 30px; font-size: 1.01rem; }
.btn-block { width: 100%; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* "Coming soon" affordance: still clickable, routes to Discord */
.btn-soon { position: relative; }
.btn-soon::after {
  content: "Soon"; position: absolute; top: -9px; right: -6px;
  font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: var(--gold); color: #fff; padding: 3px 7px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}

/* ---------- Announcement bar ---------- */
.announce {
  background: linear-gradient(90deg, var(--dark), var(--dark-3) 55%, var(--brand-dk));
  color: #DCE6F2; font-size: .83rem; text-align: center;
  padding: 9px var(--gutter); line-height: 1.45;
}
.announce strong { color: #fff; }
.announce a { color: #fff; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.announce .hide-xs { display: none; }
@media (min-width: 620px) { .announce .hide-xs { display: inline; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
/* The blur lives on a pseudo-element: a filter on the header itself would become
   the containing block for the fixed-position mobile drawer inside it. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 22px -18px rgba(11,18,32,.5); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }

.brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: var(--sh-sm); }
.brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem;
  letter-spacing: .02em; color: var(--ink); line-height: 1;
}
.brand-name span { color: var(--brand); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); cursor: pointer;
  position: relative; z-index: 57; /* stays above the open drawer so the X is tappable */
}
.nav-toggle span { position: relative; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; transition: background-color .2s; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 19px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, top .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

.nav {
  position: fixed; inset: 0 0 0 auto; width: min(86vw, 340px);
  background: var(--surface); border-left: 1px solid var(--line);
  padding: 92px 24px 32px; display: flex; flex-direction: column; gap: 4px;
  transform: translateX(102%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--sh-lg); z-index: 55; overflow-y: auto;
}
.nav.is-open { transform: translateX(0); }
.nav > a {
  padding: 14px 12px; border-radius: 12px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.nav > a:hover { background: var(--surface-2); }
.nav > a[aria-current="page"] { color: var(--brand-dk); }
.nav .nav-cta { margin-top: 18px; border-bottom: 0; color: #fff; }
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(11,18,32,.42); backdrop-filter: blur(2px);
  opacity: 0; pointer-events: none; transition: opacity .3s ease; z-index: 50;
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
body.nav-open { overflow: hidden; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav {
    position: static; width: auto; transform: none; box-shadow: none; border: 0;
    padding: 0; flex-direction: row; align-items: center; gap: 4px; background: transparent; overflow: visible;
  }
  .nav > a { padding: 9px 14px; border-bottom: 0; font-size: .95rem; font-weight: 550; color: var(--ink-2); }
  .nav > a:hover { color: var(--ink); background: transparent; }
  .nav > a[aria-current="page"] { color: var(--ink); font-weight: 700; }
  .nav .nav-cta { margin-top: 0; margin-left: 10px; min-height: 44px; padding: 10px 20px; font-size: .9rem; }
  .nav-backdrop { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(44px, 7vw, 84px) clamp(48px, 7vw, 92px); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 480px at 78% -8%, rgba(14,158,114,.14), transparent 62%),
    radial-gradient(700px 420px at 4% 0%, rgba(88,101,242,.10), transparent 60%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bg) 58%, var(--bg) 100%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45;
  background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}
.hero-grid { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: 1.02fr .98fr; } }
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--brand) 10%, #14B98A 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { max-width: 56ch; }
.hero .btn-group { margin-top: 30px; }
.hero-note { margin-top: 18px; font-size: .86rem; color: var(--muted); display: flex; align-items: baseline; gap: 9px; }
.hero-note .dot { position: relative; top: -2px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }

/* ---------- Platform frame (screenshot presentation) ---------- */
.frame {
  background: linear-gradient(180deg, #FFFFFF, #F4F7FB);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh);
  overflow: hidden;
  position: relative;
}
.frame-lg { box-shadow: var(--sh-lg); }
/* never stretch a frame to a taller sibling — it would leave dead white space */
.grid > .frame, .split > .split-media > .frame { align-self: start; }
.frame-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #FBFCFE, #F2F5F9);
  overflow: hidden; /* keeps the title ellipsised instead of stretching the card */
}
.frame-dots { display: flex; gap: 6px; flex: none; }
.frame-dots i { width: 9px; height: 9px; border-radius: 50%; background: #D7DEE9; display: block; }
.frame-dots i:first-child { background: #E5A3A3; }
.frame-dots i:nth-child(2) { background: #E9CE9A; }
.frame-dots i:nth-child(3) { background: #A9D8BE; }
.frame-title {
  font-family: var(--font-mono); font-size: .72rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0; /* without this a nowrap flex item widens the whole page on phones */
}
.frame-media { position: relative; background: #fff; }
.frame-media img { width: 100%; display: block; }
.frame-media.crop-top img { object-fit: cover; object-position: top center; }
.frame-caption {
  padding: 12px 16px; border-top: 1px solid var(--line-2); background: var(--surface);
  font-size: .83rem; color: var(--muted);
}

/* zoom affordance */
.zoomable { cursor: zoom-in; }
.zoomable::after {
  content: "⤢ Tap to enlarge"; position: absolute; right: 10px; bottom: 10px;
  background: rgba(11,18,32,.78); color: #fff; font-size: .7rem; font-weight: 600;
  padding: 5px 10px; border-radius: 999px; opacity: 0; transition: opacity .22s ease;
  pointer-events: none; backdrop-filter: blur(4px);
}
.frame:hover .zoomable::after, .zoomable:focus-within::after { opacity: 1; }
@media (hover: none) { .zoomable::after { opacity: .9; } }

/* fixed-ratio media boxes keep long screenshots tidy on phones */
.ratio-wide  { aspect-ratio: 16 / 9;  overflow: hidden; }
.ratio-chart { aspect-ratio: 16 / 8.6; overflow: hidden; }
.ratio-equity{ aspect-ratio: 16 / 5.2; overflow: hidden; }
.ratio-report{ aspect-ratio: 16 / 8.15; overflow: hidden; }
.ratio-wide img, .ratio-chart img, .ratio-equity img, .ratio-report img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
@media (max-width: 720px) {
  .ratio-chart { aspect-ratio: 4 / 3.1; }
  .ratio-chart img { object-position: 62% center; object-fit: cover; }
  /* the control-panel shots must keep the panel itself in frame on phones */
  .ratio-chart.crop-panel img { object-position: 92% center; }
  .ratio-equity { aspect-ratio: 16 / 7; }
  .ratio-report { aspect-ratio: 16 / 10; }
  .ratio-report img { object-position: left top; }
}

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm);
}
@media (min-width: 760px) { .stat-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-strip .stat { background: var(--surface); padding: 20px 18px; }
.stat-val {
  font-family: var(--font-display); font-weight: 800; color: var(--ink);
  font-size: clamp(1.32rem, 3.4vw, 1.72rem); letter-spacing: -.02em; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat-val.pos { color: var(--brand-dk); }
.stat-lbl { font-size: .78rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(20px, 3vw, 28px); box-shadow: var(--sh-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%; display: flex; flex-direction: column;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--sh); border-color: #CFDBE9; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: .94rem; color: var(--muted); }
.card .card-foot { margin-top: auto; padding-top: 18px; }
.card-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; color: var(--brand-dk); font-size: .92rem; }
.card-link svg { transition: transform .2s ease; }
.card-hover:hover .card-link svg { transform: translateX(4px); }

.icon-box {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-lt); color: var(--brand-dk); margin-bottom: 16px; flex: none;
}
.icon-box svg { width: 22px; height: 22px; }
.icon-box.alt { background: #EEF1FF; color: #4650CE; }
.icon-box.warm { background: #FFF4E3; color: #8A6212; }
.bg-dark .card { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.1); box-shadow: none; }
.bg-dark .card p { color: #93A3BD; }
.bg-dark .icon-box { background: rgba(63,214,163,.14); color: #3FD6A3; }

/* feature list */
.ticks { list-style: none; padding: 0; display: grid; gap: 11px; }
.ticks li { position: relative; padding-left: 30px; font-size: .94rem; color: var(--ink-2); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 19px; height: 19px; border-radius: 50%;
  background: var(--brand-lt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A7A58' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.ticks.on-dark li { color: #C3D0E2; }
.ticks.on-dark li::before { background-color: rgba(63,214,163,.16); }
.ticks.muted li::before {
  background: #EFF2F7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C9AAF' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='5' y1='12' x2='19' y2='12'/%3E%3C/svg%3E") center/11px no-repeat;
}
.ticks.muted li { color: var(--muted); }

/* ---------- Split rows (indicator / strategy blocks) ---------- */
.split { display: grid; gap: clamp(26px, 4vw, 52px); align-items: center; }
@media (min-width: 950px) {
  .split { grid-template-columns: 1fr 1.12fr; }
  .split.reverse .split-media { order: -1; }
  .split.reverse { grid-template-columns: 1.12fr 1fr; }
  .split.wide-media { grid-template-columns: 1fr 1.32fr; }
  .split.reverse.wide-media { grid-template-columns: 1.32fr 1fr; }
}
.split + .split { margin-top: clamp(48px, 7vw, 92px); }
.split-body h3 { font-size: clamp(1.45rem, 3.4vw, 1.95rem); margin-bottom: 14px; }
.split-body .lead { margin-bottom: 20px; font-size: 1rem; }

/* number badge */
.num-badge {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: .82rem; font-weight: 700;
  margin-bottom: 14px;
}

/* ---------- Metric grid (strategy results) ---------- */
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-2); border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line-2); }
@media (min-width: 560px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
/* inside a card the container is narrow even on a wide screen — keep two columns */
.card .metrics { grid-template-columns: repeat(2, 1fr); }
.metrics .m { background: var(--surface); padding: 14px 14px 15px; }
.metrics .m-val { font-family: var(--font-display); font-weight: 750; font-size: 1.12rem; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.metrics .m-val.pos { color: var(--brand-dk); }
.metrics .m-val.neg { color: var(--loss); }
.metrics .m-lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-top: 3px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding-top: 22px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700; color: var(--brand-dk);
  position: absolute; top: -11px; left: 0; background: var(--bg); padding-right: 10px;
}
.bg-surface .step::before { background: var(--surface); }
.step h4 { margin-bottom: 7px; }
.step p { font-size: .9rem; color: var(--muted); }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 22px; align-items: start; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px); box-shadow: var(--sh-sm); position: relative;
  display: flex; flex-direction: column; height: 100%;
}
.plan-featured {
  border-color: rgba(14,158,114,.4);
  box-shadow: 0 28px 60px -32px rgba(14,158,114,.55), var(--sh-sm);
}
@media (min-width: 900px) { .plan-featured { transform: scale(1.035); z-index: 2; } }
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: .7rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px;
  white-space: nowrap; box-shadow: 0 8px 18px -8px rgba(14,158,114,.9);
}
.plan-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.plan-desc { font-size: .89rem; color: var(--muted); margin-top: 6px; min-height: 42px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 18px 0 4px; }
.plan-price .amount { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 6vw, 2.9rem); color: var(--ink); letter-spacing: -.035em; line-height: 1; }
.plan-price .per { font-size: .9rem; color: var(--muted); font-weight: 550; }
.plan-sub { font-size: .8rem; color: var(--muted); margin-bottom: 22px; }
.plan .ticks { margin: 22px 0; }
.plan .btn { margin-top: auto; }
.plan-foot { margin-top: 14px; font-size: .78rem; color: var(--muted); text-align: center; }

/* comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-sm); -webkit-overflow-scrolling: touch; }
table.cmp { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .92rem; }
table.cmp th, table.cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line-2); }
table.cmp thead th { background: var(--surface-2); font-family: var(--font-display); font-size: .85rem; color: var(--ink); white-space: nowrap; }
table.cmp td:not(:first-child), table.cmp th:not(:first-child) { text-align: center; width: 132px; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp .yes { color: var(--brand-dk); font-weight: 700; }
table.cmp .no  { color: #B6C0CE; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 840px; margin-inline: auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 4px 18px; box-shadow: var(--sh-sm); transition: border-color .2s ease;
}
.faq details[open] { border-color: #CBDCD4; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 34px 16px 0; position: relative;
  font-weight: 650; color: var(--ink); font-size: .99rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--steel); border-bottom: 2px solid var(--steel);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq .faq-body { padding: 0 0 18px; color: var(--muted); font-size: .94rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--dark); }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(760px 340px at 82% 8%, rgba(14,158,114,.30), transparent 60%),
              radial-gradient(620px 300px at 6% 96%, rgba(88,101,242,.24), transparent 62%);
}
.cta-band > .container { position: relative; }
/* the band paints itself dark, so it needs the same text treatment as .bg-dark */
.cta-band { color: #B9C6DA; }
.cta-band h2, .cta-band h3 { color: #fff; }
.cta-band .lead { color: #93A3BD; }
.cta-band strong { color: #fff; }
.cta-band .eyebrow { color: #3FD6A3; }
.cta-band .btn-ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.3); }
.cta-band .btn-ghost:hover { --btn-bg: rgba(255,255,255,.1); --btn-bd: rgba(255,255,255,.48); }
.cta-inner { text-align: center; max-width: 720px; margin-inline: auto; }
.cta-inner .btn-group { justify-content: center; margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #8A9AB3; padding-block: clamp(44px, 6vw, 68px) 28px; font-size: .9rem; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer h5 { color: #fff; font-family: var(--font-display); font-size: .84rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.site-footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 9px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 34ch; font-size: .88rem; line-height: 1.65; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 38px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .8rem; }
.disclaimer { font-size: .76rem; line-height: 1.65; color: #6E7E96; margin-top: 22px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-sm); background: rgba(255,255,255,.025); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 16px;
  background: rgba(8,13,23,.92); backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: 10px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.7); object-fit: contain; }
.lightbox figcaption { color: #B9C6DA; font-size: .84rem; text-align: center; margin-top: 14px; }
.lightbox-close {
  position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lightbox-hint { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #7A8AA3; font-size: .78rem; }
@media (max-width: 720px) { .lightbox img { max-height: 70vh; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.22,.8,.3,1), transform .7s cubic-bezier(.22,.8,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Misc ---------- */
.marquee-strip { border-block: 1px solid var(--line); background: var(--surface); padding-block: 16px; }
.marquee-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 26px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.marquee-row span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

.page-hero { padding-block: clamp(42px, 6vw, 76px) clamp(30px, 4vw, 46px); background: linear-gradient(180deg, #fff, var(--bg)); border-bottom: 1px solid var(--line); }
.crumbs { font-size: .82rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--brand-dk); }

.note {
  font-size: .8rem; color: var(--muted); background: var(--surface-2);
  border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 13px 16px;
}
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hr { height: 1px; background: var(--line); border: 0; margin-block: clamp(36px, 5vw, 60px); }
.text-center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 38px; }
.anchor { scroll-margin-top: 92px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
