/* ==========================================================================
   TallyNexa — marketing site
   One stylesheet, no framework. Tokens first, then layout, then sections.

   The colour idea: four hues, one per pillar of the product, taken from the
   logo's four tally bars. Cobalt is the action colour and nothing else.
   Green and red are reserved for the direction of money inside product shots.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  color-scheme: light;

  /* surfaces */
  --bg:        #FBFBFD;
  --card:      #FFFFFF;
  --sunk:      #F2F4F8;
  --rule:      #E4E7EF;
  --rule-2:    #EDF0F5;

  /* ink — every level clears 4.5:1 on the darkest tint it lands on */
  --ink:       #0B1530;
  --ink-2:     #3B4760;
  --ink-3:     #5A6579;

  /* action */
  --brand:     #2B45E0;
  --brand-ink: #FFFFFF;
  --brand-hover:#1F36C4;
  --focus:     #2B45E0;

  /* the four pillars: strong (marks), tint (surfaces), ink (text on tint) */
  --mari:      #FFB930;  --mari-t:  #FFF3D9;  --mari-i:  #8A5300;
  --rose:      #FF7FAE;  --rose-t:  #FFE9F1;  --rose-i:  #B8285F;
  --lilac:     #9C86FF;  --lilac-t: #EFEBFF;  --lilac-i: #5B3FD6;
  --sky:       #5FB3FF;  --sky-t:   #E6F1FF;  --sky-i:   #0B63C4;

  /* money direction — product shots only */
  --good:      #0F7A45;  --good-t:  #E4F6EC;
  --crit:      #C2261D;  --crit-t:  #FDECEA;

  /* the one dark band */
  --night:     #0B1530;
  --night-2:   #141F3F;
  --night-ink: #F2F4FA;
  --night-ink-2:#B9C1D4;

  /* geometry */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-1: 0 1px 2px rgba(11,21,48,.06), 0 1px 1px rgba(11,21,48,.04);
  --shadow-2: 0 12px 32px -12px rgba(11,21,48,.18), 0 2px 6px rgba(11,21,48,.06);
  --shadow-3: 0 30px 60px -24px rgba(11,21,48,.28), 0 8px 18px -8px rgba(11,21,48,.10);

  /* type */
  /* Anek Latin + Mukta: both by Ek Type (Mumbai); both carry ₹ and tabular figures,
     and both have Devanagari siblings for the Hindi pages that come next. */
  --f-display: "Anek Latin", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --f-body:    "Mukta", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);

  --ease: cubic-bezier(.2,.7,.2,1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0A0F1E; --card: #111831; --sunk: #0E1428; --rule: #222C4A; --rule-2: #1A2340;
    --ink: #F2F4FA; --ink-2: #B9C1D4; --ink-3: #8D97AE;
    --brand: #8FA2FF; --brand-ink: #0A0F1E; --brand-hover: #A9B8FF; --focus: #A9B8FF;
    --mari-t: #2A2210; --mari-i: #FFC766;
    --rose-t: #2C1623; --rose-i: #FF8DB6;
    --lilac-t: #1D1838; --lilac-i: #B8A6FF;
    --sky-t: #0F2138; --sky-i: #7CC0FF;
    --good: #4ED39A; --good-t: #0E2A20; --crit: #FF7A70; --crit-t: #2E1515;
    --night: #060A16; --night-2: #111831;
    --shadow-1: 0 1px 2px rgba(0,0,0,.4);
    --shadow-2: 0 12px 32px -12px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.3);
    --shadow-3: 0 30px 60px -24px rgba(0,0,0,.7), 0 8px 18px -8px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A0F1E; --card: #111831; --sunk: #0E1428; --rule: #222C4A; --rule-2: #1A2340;
  --ink: #F2F4FA; --ink-2: #B9C1D4; --ink-3: #8D97AE;
  --brand: #8FA2FF; --brand-ink: #0A0F1E; --brand-hover: #A9B8FF; --focus: #A9B8FF;
  --mari-t: #2A2210; --mari-i: #FFC766;
  --rose-t: #2C1623; --rose-i: #FF8DB6;
  --lilac-t: #1D1838; --lilac-i: #B8A6FF;
  --sky-t: #0F2138; --sky-i: #7CC0FF;
  --good: #4ED39A; --good-t: #0E2A20; --crit: #FF7A70; --crit-t: #2E1515;
  --night: #060A16; --night-2: #111831;
  --shadow-1: 0 1px 2px rgba(0,0,0,.4);
  --shadow-2: 0 12px 32px -12px rgba(0,0,0,.6), 0 2px 6px rgba(0,0,0,.3);
  --shadow-3: 0 30px 60px -24px rgba(0,0,0,.7), 0 8px 18px -8px rgba(0,0,0,.4);
}

/* ------------------------------------------------------------------ base -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 18px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-display); color: var(--ink); font-weight: 700; }
b, strong { font-weight: 600; }
.num, .fig { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" on; }
.mono { font-family: var(--f-mono); }
.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; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--mari); color: #0B1530; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--r-sm);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
section { position: relative; }
.section { padding: var(--section) 0; }
.section.alt { background: var(--sunk); }

/* ------------------------------------------------------------- type kit -- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 13px/1 var(--f-body); letter-spacing: .02em; color: var(--ink-2);
  background: var(--card); border: 1px solid var(--rule);
  padding: 7px 14px 7px 8px; border-radius: 999px;
}
.eyebrow .tick { display: inline-flex; gap: 2px; }
.eyebrow .tick i { width: 3px; height: 12px; border-radius: 2px; display: block; }
.eyebrow .tick i:nth-child(1){ background: var(--mari); }
.eyebrow .tick i:nth-child(2){ background: var(--rose); }
.eyebrow .tick i:nth-child(3){ background: var(--lilac); }
.eyebrow .tick i:nth-child(4){ background: var(--sky); }

.kicker {
  display: inline-block; font: 600 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 18px;
}
.kicker b { color: var(--brand); font-weight: 600; }

.h2 {
  font-size: clamp(2rem, 1.2rem + 3vw, 3.25rem);
  line-height: 1.04; letter-spacing: -.022em; font-weight: 700;
  font-stretch: 96%;
  max-width: 18ch; text-wrap: balance;
}
.lead {
  font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); line-height: 1.6;
  max-width: 60ch; margin-top: 18px; text-wrap: pretty;
}
.section-head { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 900px) {
  .section-head.split { grid-template-columns: 1.1fr .9fr; align-items: end; gap: 48px; }
  .section-head.split .lead { margin-top: 0; }
}

/* highlight marker under a word */
.mark { position: relative; white-space: nowrap; z-index: 0; }
.mark::after {
  content: ""; position: absolute; left: -.06em; right: -.06em; bottom: .06em; height: .3em;
  background: var(--mari); border-radius: 4px; z-index: -1; opacity: .9;
  transform-origin: left center;
}
.js .mark::after { transform: scaleX(0); animation: mark 900ms var(--ease) 350ms forwards; }
@keyframes mark { to { transform: scaleX(1); } }

/* --------------------------------------------------------------- buttons -- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 12px;
  font: 600 15.5px/1 var(--f-body); letter-spacing: -.005em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; white-space: nowrap;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease), color 180ms var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary .arrow { transition: transform 200ms var(--ease); }
.btn-primary:hover .arrow { transform: translateX(3px); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14.5px; border-radius: 10px; }
.btn-light { background: #FFFFFF; color: #0B1530; }
.btn-light:hover { background: #E9ECF5; }
.btn-outline-light { background: transparent; color: #F2F4FA; border-color: rgba(242,244,250,.28); }
.btn-outline-light:hover { border-color: rgba(242,244,250,.6); }

/* ------------------------------------------------------------------- nav -- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease);
}
.nav.scrolled { border-bottom-color: var(--rule); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo svg { width: 34px; height: 34px; }
.logo-word { font: 700 22px/1 var(--f-display); letter-spacing: -.02em; color: var(--ink); }
.logo-word span { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav-links a {
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px;
  padding: 8px 12px; border-radius: 8px; transition: color 150ms, background-color 150ms;
}
.nav-links a:hover { color: var(--ink); background: var(--sunk); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-cta .signin { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 8px 10px; }
.nav-cta .signin:hover { color: var(--ink); }
.theme-toggle, .menu-toggle {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--rule); background: var(--card);
  color: var(--ink-2); display: inline-grid; place-items: center; cursor: pointer; padding: 0;
}
.theme-toggle:hover, .menu-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-toggle svg, .menu-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.menu-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 960px) {
  .nav-links, .nav-cta .signin { display: none; }
  .menu-toggle { display: inline-grid; }
  .nav .wrap { gap: 12px; }
  .nav-cta .btn-sm { display: none; }
  .mobile-menu {
    display: block; position: fixed; inset: 72px 0 auto 0; z-index: 49;
    background: var(--bg); border-bottom: 1px solid var(--rule);
    padding: 12px var(--gutter) 24px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 0s linear 200ms;
  }
  .mobile-menu.open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
  .mobile-menu a:not(.btn) {
    display: block; padding: 14px 4px; font-size: 18px; font-weight: 500; text-decoration: none;
    border-bottom: 1px solid var(--rule-2); color: var(--ink);
  }
  .mobile-menu .btn { width: 100%; margin-top: 18px; }
}

/* ------------------------------------------------------------------ hero -- */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(40px, 5vw, 56px); align-items: center; }
@media (min-width: 1040px) { .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); } }

.hero h1 {
  margin-top: 24px;
  font-size: clamp(2.6rem, 1.3rem + 4.6vw, 4.5rem);
  line-height: .98; letter-spacing: -.03em; font-weight: 750;
  font-stretch: 96%;
  text-wrap: balance;
}
.hero .lead { font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); margin-top: 24px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 14.5px; }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 16px; height: 16px; color: var(--brand); flex: none; }

/* hero stage: tally pillars + floating product cards */
.stage {
  position: relative; border-radius: var(--r-xl); background: var(--sunk);
  min-height: 600px; isolation: isolate; overflow: hidden;
  border: 1px solid var(--rule-2);
}
.stage::before { /* ledger ruling */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
  opacity: .7;
}
.pillars { position: absolute; right: 6%; bottom: 0; width: 60%; height: 64%; z-index: -1; }
.pillars i {
  position: absolute; bottom: -24px; width: 17%; border-radius: 22px 22px 0 0;
  transform-origin: bottom;
}
.pillars i:nth-child(1) { left: 0;   height: 42%; background: var(--mari); }
.pillars i:nth-child(2) { left: 26%; height: 58%; background: var(--rose); }
.pillars i:nth-child(3) { left: 52%; height: 76%; background: var(--lilac); }
.pillars i:nth-child(4) { left: 78%; height: 94%; background: var(--sky); }
.pillars b { /* the crossing stroke: the fifth tally */
  position: absolute; left: -6%; right: -6%; top: 46%; height: 18px; border-radius: 12px;
  background: var(--brand); transform: rotate(-24deg); transform-origin: center;
  opacity: .95;
}
.js .pillars i { transform: scaleY(0); animation: rise 900ms var(--ease) forwards; }
.js .pillars i:nth-child(2) { animation-delay: 90ms; }
.js .pillars i:nth-child(3) { animation-delay: 180ms; }
.js .pillars i:nth-child(4) { animation-delay: 270ms; }
.js .pillars b { clip-path: inset(0 100% 0 0); animation: strike 700ms var(--ease) 700ms forwards; }
@keyframes rise { to { transform: scaleY(1); } }
@keyframes strike { to { clip-path: inset(0 0 0 0); } }

.float {
  position: absolute; background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-3);
  border: 1px solid var(--rule-2);
}
.js .float { opacity: 0; transform: translateY(14px); animation: floatIn 700ms var(--ease) forwards; }
@keyframes floatIn { to { opacity: 1; transform: none; } }

/* ask card: the hero object, top of the stage */
.f-ask { top: 26px; left: 26px; right: 26px; padding: 18px 20px; animation-delay: 450ms !important; }
.ask-q { display: flex; gap: 10px; align-items: center; }
.ask-q p { margin: 0; font-weight: 600; font-size: 15.5px; min-height: 1.5em; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--brand); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ask-a { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--rule); font-size: 15px; color: var(--ink-2); line-height: 1.65; min-height: 78px; }
.ask-a p { margin: 0; }
.chip-fig {
  display: inline-block; padding: 0 6px; border-radius: 6px; margin: 0 1px;
  background: var(--lilac-t); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
  box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--lilac) 55%, transparent);
}
.ask-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 12px; font-size: 12.5px; color: var(--ink-3); }
.ask-foot .ok { display: inline-flex; align-items: center; gap: 6px; color: var(--good); font-weight: 600; }
.ask-foot .ok svg { width: 14px; height: 14px; }
.ask-a.fade { animation: fadeUp 420ms var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* sync provenance chip, floating over the pillars */
.f-sync { top: 300px; right: 26px; padding: 11px 14px; display: flex; gap: 11px; align-items: center; animation-delay: 650ms !important; }
.f-sync .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 4px var(--good-t); flex: none; }
.f-sync b { display: block; font-size: 13.5px; }
.f-sync span { display: block; font-size: 12.5px; color: var(--ink-3); }

/* cash runway mini card, bottom left */
.f-cash { left: 26px; bottom: 26px; width: 256px; padding: 14px 16px 12px; animation-delay: 800ms !important; }
.f-cash .lbl { font-size: 12.5px; color: var(--ink-3); display: flex; justify-content: space-between; }
.f-cash .big { font: 700 26px/1.1 var(--f-display); letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.f-cash .big small { font: 500 12px var(--f-body); color: var(--ink-3); letter-spacing: 0; }
.f-cash svg { width: 100%; height: 60px; margin-top: 8px; }
.f-cash .legend { display: flex; gap: 12px; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.f-cash .legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }

/* GST due chip, bottom right over the pillars */
.f-gst { right: 26px; bottom: 26px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; animation-delay: 950ms !important; }
.f-gst .cal { width: 34px; height: 34px; border-radius: 9px; background: var(--rose-t); color: var(--rose-i); display: grid; place-items: center; font: 700 15px/1 var(--f-display); flex: none; }
.f-gst b { display: block; }
.f-gst span { color: var(--ink-3); font-size: 12.5px; }

@media (max-width: 640px) {
  .stage { min-height: 0; padding: 18px; display: grid; gap: 12px; }
  .stage .float { position: relative; inset: auto; width: auto; max-width: none; }
  .f-gst, .f-sync { display: none !important; }
  .pillars { width: 88%; right: 6%; height: 60%; }
  .f-cash { margin-top: 140px; }
}

/* --------------------------------------------------------- compatibility -- */
.works {
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  padding: 22px 0; background: var(--bg);
}
.works .wrap { display: flex; align-items: center; gap: 20px 36px; flex-wrap: wrap; }
.works .lbl { font: 600 12.5px/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); flex: none; }
.works ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.works li { display: inline-flex; align-items: center; gap: 9px; font: 600 16px/1 var(--f-display); letter-spacing: -.02em; color: var(--ink-2); }
.works li i { width: 8px; height: 8px; border-radius: 2px; display: block; }

/* ------------------------------------------------------------ definition -- */
.define { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 900px) { .define { grid-template-columns: .9fr 1.1fr; gap: 64px; } }
.define-body p { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.55; color: var(--ink-2); }
.define-body p:first-child { color: var(--ink); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 32px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.stat { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-md); padding: 18px; }
.stat b { display: block; font: 700 clamp(1.8rem, 1.4rem + 1.2vw, 2.4rem)/1 var(--f-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.stat:nth-child(1) b { color: var(--mari-i); }
.stat:nth-child(2) b { color: var(--rose-i); }
.stat:nth-child(3) b { color: var(--lilac-i); }
.stat:nth-child(4) b { color: var(--sky-i); }

/* ----------------------------------------------------------------- bento -- */
.bento { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(6, minmax(0,1fr)); }
  .tile.w3 { grid-column: span 3; }
  .tile.w2 { grid-column: span 2; }
  .tile.w4 { grid-column: span 4; }
}
.tile {
  position: relative; border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 30px);
  display: flex; flex-direction: column; min-height: 340px; overflow: hidden;
  background: var(--card); border: 1px solid var(--rule);
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease);
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.tile .tag {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
  font: 600 12px/1 var(--f-mono); letter-spacing: .07em; text-transform: uppercase;
  padding: 7px 10px; border-radius: 7px; background: var(--card); color: var(--ink-2);
}
.tile .tag i { width: 7px; height: 7px; border-radius: 2px; display: block; }
.tile h3 { font-size: clamp(1.35rem, 1.1rem + .8vw, 1.7rem); line-height: 1.12; letter-spacing: -.012em; margin-top: 18px; max-width: 22ch; text-wrap: balance; }
.tile > p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; margin: 10px 0 0; max-width: 46ch; }
.tile .viz { margin-top: auto; padding-top: 24px; }
.tile.mari  { background: var(--mari-t);  border-color: transparent; }
.tile.rose  { background: var(--rose-t);  border-color: transparent; }
.tile.lilac { background: var(--lilac-t); border-color: transparent; }
.tile.sky   { background: var(--sky-t);   border-color: transparent; }
.tile.mari .tag i  { background: var(--mari); }
.tile.rose .tag i  { background: var(--rose); }
.tile.lilac .tag i { background: var(--lilac); }
.tile.sky .tag i   { background: var(--sky); }
.tile.plain .tag { background: var(--sunk); }
.tile.plain .tag i { background: var(--brand); }
.tile.night { background: var(--night); border-color: transparent; color: var(--night-ink); }
.tile.night h3 { color: var(--night-ink); }
.tile.night > p { color: var(--night-ink-2); }
.tile.night .tag { background: var(--night-2); color: var(--night-ink-2); }
.tile.night .tag i { background: var(--mari); }
.soon {
  display: inline-block; margin-left: 6px; font: 600 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 6px; border-radius: 5px; background: var(--card); color: var(--ink-3); vertical-align: 3px;
}

/* mini UI inside tiles */
.mini { background: var(--card); border-radius: 14px; box-shadow: var(--shadow-1); padding: 14px 16px; font-size: 14px; }
.mini + .mini { margin-top: 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.row + .row { margin-top: 10px; }
.row .grow { flex: 1; min-width: 0; }
.row .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .sub { font-size: 12.5px; color: var(--ink-3); }
.row .amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.pill {
  display: inline-block; font: 600 11.5px/1 var(--f-body); padding: 5px 8px; border-radius: 6px; white-space: nowrap;
}
.pill.crit { background: var(--crit-t); color: var(--crit); }
.pill.warn { background: var(--mari-t); color: var(--mari-i); }
.pill.good { background: var(--good-t); color: var(--good); }
.pill.info { background: var(--sky-t); color: var(--sky-i); }
.age { display: flex; height: 10px; border-radius: 6px; overflow: hidden; gap: 2px; margin-top: 14px; }
.age i { display: block; height: 100%; }
.age-legend { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; font-variant-numeric: tabular-nums; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-grid span { aspect-ratio: 1; border-radius: 5px; background: var(--sunk); display: grid; place-items: center; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.cal-grid span.due { background: var(--rose); color: #3A0A1D; font-weight: 700; }
.cal-grid span.done { background: var(--rose-t); color: var(--rose-i); }
.cal-grid span.today { outline: 2px solid var(--ink); outline-offset: -2px; color: var(--ink); font-weight: 700; }

.code {
  font: 400 13px/1.65 var(--f-mono); background: var(--night-2); color: #C9D2EA; border-radius: 12px; padding: 14px 16px;
  overflow-x: auto; white-space: pre; border: 1px solid rgba(255,255,255,.06);
}
.code .k { color: #FFC766; } .code .s { color: #9FD4FF; } .code .c { color: #7F8AA6; }
.ai-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ai-logos span { font: 600 13px/1 var(--f-body); padding: 8px 11px; border-radius: 8px; background: var(--night-2); color: var(--night-ink); border: 1px solid rgba(255,255,255,.08); }

.bars-mini { display: flex; align-items: flex-end; gap: 6px; height: 96px; }
.bars-mini i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--sky); opacity: .35; }
.bars-mini i.hi { opacity: 1; }

/* ------------------------------------------------------------ how it works -- */
.flow { display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; } }
.step {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 28px; position: relative;
}
.step .n {
  counter-increment: step; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  font: 700 17px/1 var(--f-display); color: #0B1530;
}
.step:nth-child(1) .n { background: var(--mari); }
.step:nth-child(2) .n { background: var(--rose); }
.step:nth-child(3) .n { background: var(--sky); }
.step h3 { font-size: 1.35rem; letter-spacing: -.01em; margin-top: 18px; }
.step p { color: var(--ink-2); font-size: 15.5px; margin: 10px 0 0; }
.step .meta { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--rule); font: 500 13px/1.5 var(--f-mono); color: var(--ink-3); }

.pipe {
  margin: 20px 0 0; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--rule);
  padding: clamp(20px, 3vw, 32px); overflow-x: auto;
}
.pipe svg { min-width: 760px; width: 100%; height: auto; }
.pipe text { font-family: var(--f-body); }

/* ----------------------------------------------------------------- trust -- */
.night-band { background: var(--night); color: var(--night-ink); }
.night-band .h2, .night-band h3 { color: var(--night-ink); }
.night-band .lead { color: var(--night-ink-2); }
.night-band .kicker { color: var(--night-ink-2); }
.night-band .kicker b { color: var(--mari); }
.proof-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .proof-grid { grid-template-columns: 1.15fr .85fr; gap: 20px; } }
.answer {
  display: flex; flex-direction: column;
  background: var(--night-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px);
}
.answer .q { font: 600 1.15rem/1.4 var(--f-display); letter-spacing: -.02em; color: var(--night-ink); }
.answer .a { margin-top: 16px; color: var(--night-ink-2); font-size: 16.5px; line-height: 1.75; }
.v { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border-radius: 7px; font-weight: 600; color: #0B1530; font-variant-numeric: tabular-nums; white-space: nowrap; }
.v svg { width: 13px; height: 13px; }
.v.read { background: #B8F0D2; }
.v.derived { background: #CFC4FF; }
.v.unsup { background: #FFC9C4; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.legend-v { display: grid; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); }
.legend-v div { display: flex; gap: 12px; align-items: baseline; font-size: 14.5px; color: var(--night-ink-2); }
.legend-v .v { flex: none; min-width: 108px; justify-content: center; }
.promises { display: grid; gap: 12px; }
.promise { background: var(--night-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--r-md); padding: 20px 22px; display: flex; gap: 16px; }
.promise .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; color: #0B1530; }
.promise .ic svg { width: 19px; height: 19px; }
.promise:nth-child(1) .ic { background: var(--mari); }
.promise:nth-child(2) .ic { background: var(--rose); }
.promise:nth-child(3) .ic { background: var(--lilac); }
.promise:nth-child(4) .ic { background: var(--sky); }
.promise h3 { font-size: 1.05rem; letter-spacing: -.015em; font-family: var(--f-body); font-weight: 600; }
.promise p { margin: 4px 0 0; font-size: 14.5px; color: var(--night-ink-2); line-height: 1.55; }

/* -------------------------------------------------------------- personas -- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--sunk); border-radius: 12px; border: 1px solid var(--rule); flex-wrap: wrap; }
.tabs button {
  appearance: none; border: 0; background: transparent; color: var(--ink-2); cursor: pointer;
  font: 600 14.5px/1 var(--f-body); padding: 11px 16px; border-radius: 9px; min-height: 42px;
}
.tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-1); }
.panel { margin-top: 24px; display: grid; grid-template-columns: 1fr; gap: 24px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px); }
@media (min-width: 900px) { .panel { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; } }
.panel[hidden] { display: none; }
.panel h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.015em; line-height: 1.1; }
.panel .quote { font-size: 15px; color: var(--ink-3); margin-top: 10px; font-style: italic; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--brand); }
.checks b { color: var(--ink); }
.persona-viz { border-radius: var(--r-md); padding: 22px; }
.persona-viz.mari { background: var(--mari-t); }
.persona-viz.lilac { background: var(--lilac-t); }
.persona-viz.sky { background: var(--sky-t); }

/* ---------------------------------------------------------------- compare -- */
.cmp-wrap { border-radius: var(--r-lg); border: 1px solid var(--rule); background: var(--card); overflow: hidden; }
.cmp-scroll { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.cmp th, .cmp td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--rule-2); vertical-align: middle; }
.cmp thead th { font: 600 12.5px/1.3 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--sunk); }
.cmp thead th.us { color: var(--brand); }
.cmp td:first-child { font-weight: 600; }
.cmp td.cost { font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.cmp td.us { background: color-mix(in srgb, var(--sky-t) 60%, transparent); font-weight: 600; }
.cmp td.us svg { width: 18px; height: 18px; color: var(--brand); display: inline-block; vertical-align: -4px; margin-right: 6px; }
.cmp tfoot td { font-weight: 700; background: var(--sunk); border-bottom: 0; }
.cmp tfoot td.us { background: var(--brand); color: var(--brand-ink); }
.cmp-note { font-size: 13.5px; color: var(--ink-3); margin-top: 14px; max-width: 80ch; }

/* ---------------------------------------------------------------- pricing -- */
.bill-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--rule); margin-top: 24px; }
.bill-toggle button { appearance: none; border: 0; background: transparent; cursor: pointer; font: 600 14px/1 var(--f-body); color: var(--ink-2); padding: 10px 14px; border-radius: 9px; min-height: 40px; }
.bill-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.bill-toggle .save { font-size: 12px; color: var(--mari-i); margin-left: 4px; }
.bill-toggle button[aria-pressed="true"] .save { color: var(--mari); }
.prices { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
@media (min-width: 720px) { .prices { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1140px) { .prices { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.price {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 26px;
  display: flex; flex-direction: column; position: relative;
}
.price .bar { height: 6px; width: 44px; border-radius: 4px; margin-bottom: 20px; }
.price:nth-child(1) .bar { background: var(--sky); }
.price:nth-child(2) .bar { background: var(--lilac); }
.price:nth-child(3) .bar { background: var(--rose); }
.price:nth-child(4) .bar { background: var(--mari); }
.price h3 { font-size: 1.3rem; letter-spacing: -.02em; }
.price .for { font-size: 14px; color: var(--ink-3); margin-top: 4px; min-height: 2.8em; line-height: 1.4; }
.price .amt { font: 700 2.5rem/1 var(--f-display); letter-spacing: -.045em; margin-top: 18px; font-variant-numeric: tabular-nums; }
.price .amt small { font: 500 15px/1 var(--f-body); letter-spacing: 0; color: var(--ink-3); margin-left: 4px; }
.price .per { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; font-variant-numeric: tabular-nums; min-height: 1.4em; }
.price ul { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.price li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.price li svg { width: 17px; height: 17px; flex: none; color: var(--brand); margin-top: 2px; }
.price .btn { margin-top: auto; width: 100%; }
.price.best { border: 2px solid var(--ink); padding: 25px; }
.price.best .flag {
  position: absolute; top: -13px; left: 24px; font: 600 12px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  background: var(--ink); color: var(--bg); padding: 7px 10px; border-radius: 7px;
}
.price-note { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* ------------------------------------------------------------------- faq -- */
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } .faq-grid .section-head { position: sticky; top: 104px; align-self: start; } }
.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 600 1.12rem/1.4 var(--f-display); letter-spacing: -.015em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg);
  transition: transform 220ms var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--brand); }
.faq .ans { padding: 0 0 24px; color: var(--ink-2); font-size: 16px; line-height: 1.7; max-width: 68ch; }
.faq .ans p:last-child { margin-bottom: 0; }

/* ----------------------------------------------------------- early access -- */
.cta-band { padding: var(--section) 0; }
.cta-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--night); color: var(--night-ink);
  padding: clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1fr; gap: 36px; isolation: isolate;
}
@media (min-width: 960px) { .cta-card { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }
.cta-card .h2 { color: var(--night-ink); max-width: 14ch; }
.cta-card .lead { color: var(--night-ink-2); }
.cta-card .tallies { display: flex; align-items: flex-end; gap: 10px; height: 64px; margin-top: 36px; position: relative; }
.cta-card .tallies i { display: block; width: 22px; border-radius: 8px; }
.cta-card .tallies i:nth-child(1){ height: 40%; background: var(--mari); }
.cta-card .tallies i:nth-child(2){ height: 58%; background: var(--rose); }
.cta-card .tallies i:nth-child(3){ height: 78%; background: var(--lilac); }
.cta-card .tallies i:nth-child(4){ height: 100%; background: var(--sky); }
.cta-card .tallies b { position: absolute; left: -8px; width: 136px; top: 44%; height: 7px; border-radius: 6px; background: #FFFFFF; transform: rotate(-22deg); transform-origin: left center; }

.form { background: var(--card); color: var(--ink); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 30px); display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .form .two { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field select {
  width: 100%; height: 48px; border-radius: 11px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink);
  font: 400 16px/1 var(--f-body); padding: 0 14px; transition: border-color 150ms, box-shadow 150ms;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235A6579' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.field input:user-invalid { border-color: var(--crit); }
.field .hint { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.form .btn { width: 100%; height: 52px; }
.form .fine { font-size: 12.5px; color: var(--ink-3); margin: 0; text-align: center; }
.form-status { font-size: 14.5px; margin: 0; padding: 12px 14px; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: var(--good-t); color: var(--good); }
.form-status.err { display: block; background: var(--crit-t); color: var(--crit); }
.hp { position: absolute; left: -9999px; }

/* ---------------------------------------------------------------- footer -- */
footer { border-top: 1px solid var(--rule); padding: 56px 0 40px; font-size: 14.5px; color: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 800px) { .foot-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.foot-grid h4 { font: 600 12.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.foot-grid a { text-decoration: none; color: var(--ink-2); }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-about p { max-width: 38ch; margin-top: 14px; }
.legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule-2); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--ink-3); }
.legal span:last-child { margin-left: auto; }
@media (max-width: 700px) { .legal span:last-child { margin-left: 0; } }

/* ---------------------------------------------------------------- reveal -- */
.reveal-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal-on .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .reveal-on .reveal { opacity: 1; transform: none; }
  .caret { display: none; }
}

@media print {
  .nav, .mobile-menu, .cta-band, .theme-toggle { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ------------------------------------------------------------ Nexa AI -- */
/* Shared with MarketPing: Nexa's own surfaces (avatar, one headline word) carry
   the Nexa spectrum and nothing else does. The name stays a plain text token. */
:root { --nexa: linear-gradient(100deg, #22C55E 0%, #0EA5A4 100%); }
.nexa-av {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--nexa); color: #FFFFFF; display: inline-grid; place-items: center;
}
.nexa-av svg { width: 15px; height: 15px; }
.nexa-av.sm { width: 24px; height: 24px; }
.nexa-av.sm svg { width: 13px; height: 13px; }
.nexa-word {
  background: var(--nexa); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-fill-color: transparent;
}
.demo-note { color: var(--ink-3); font-weight: 400; }
.demo-line { margin: 18px 0 0; font-size: 13.5px; color: var(--ink-3); }
.nexa-family { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.nexa-family a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ask-a { transition: opacity 200ms var(--ease); }

/* provenance footer on the Nexa answer card */
.prov { margin-top: auto; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--night-ink-2); }
.prov-h { font: 600 11.5px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }
.prov-chip { padding: 5px 9px; border-radius: 7px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: var(--night-ink); }
.prov-sync { flex-basis: 100%; display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.prov-sync i { width: 8px; height: 8px; border-radius: 50%; background: #4ED39A; }

/* ------------------------------------------------------- small screens -- */
@media (max-width: 700px) {
  .pipe { display: none; }              /* the three step cards already carry it */
}
@media (max-width: 640px) {
  .cmp { min-width: 0; font-size: 14px; }
  .cmp th:nth-child(2), .cmp td:nth-child(2) { display: none; }   /* keep the TallyNexa column on screen */
  .cmp th, .cmp td { padding: 12px 10px; }
  .cmp td.us svg { display: none; }
  .cmp td.cost { white-space: normal; }
}
