/* ============================================================
   XplitX marketing v2 — "CLARO" (DESIGN.md §9)
   AZURE Sky body + ink bookends · floating pill nav · compact
   controls (medium/small buttons + icons) · bento features.
   Token values mirror src/styles/tokens.css (the app is upstream).
   ============================================================ */

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Sky (paper body) */
  --paper: #f3f7fc;
  --paper-alt: #eaf1f9;
  --card: #ffffff;
  --hairline: rgba(23, 43, 77, 0.12);
  --hairline-strong: rgba(23, 43, 77, 0.2);
  --text-hi: #16202b;
  --text-mid: #46586a;
  --text-low: #5d6e80;

  /* Ink (bookends) */
  --ink: #0b0f15;
  --ink-2: #0e141c;
  --ink-card: #141b24;
  --ink-hairline: rgba(190, 215, 245, 0.12);
  --ink-hairline-strong: rgba(190, 215, 245, 0.22);
  --ink-text: #ecf2f8;
  --ink-text-mid: #a3b3c4;

  /* Brand */
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-text: #1d5fd6;
  --brand-ink-accent: #5aa2ff;
  --brand-tint: rgba(37, 99, 235, 0.08);
  --pos: #136b33;
  --pos-ink: #34c77b;
  --neg: #c42418;
  --neg-ink: #f0605d;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-full: 999px;

  --shadow-card: 0 1px 2px rgba(15, 40, 80, 0.05), 0 12px 30px -18px rgba(15, 40, 80, 0.16);
  --shadow-pop: 0 10px 30px -8px rgba(15, 40, 80, 0.16), 0 32px 70px -20px rgba(15, 40, 80, 0.24);
  --shadow-float: 0 8px 24px -10px rgba(2, 8, 20, 0.5);
  --ring: 0 0 0 3px rgba(37, 99, 235, 0.4);

  --max: 1120px;
  --nav-h: 56px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  font-family: var(--font);
  color: var(--text-hi);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; }
a { color: var(--brand-text); }

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 1000;
  padding: 10px 16px; background: var(--brand); color: #fff;
  border-radius: var(--r-full); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; transition: top 140ms ease;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

/* ---------- Buttons (compact by default — professional scale) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  text-decoration: none; font-weight: 600; cursor: pointer;
  font-size: 0.88rem; padding: 8px 17px; border-radius: var(--r-full);
  border: 1px solid transparent; line-height: 1.4; white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.btn-md { padding: 10px 22px; font-size: 0.95rem; }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-hover); }
.btn-ghost-ink { color: var(--ink-text); border-color: var(--ink-hairline-strong); }
.btn-ghost-ink:hover { border-color: var(--brand-ink-accent); color: #fff; background: rgba(90, 162, 255, 0.08); }
.btn-outline { color: var(--brand-text); border-color: var(--hairline-strong); background: transparent; }
.btn-outline:hover { border-color: var(--brand); background: var(--brand-tint); }
.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---------- Nav: floating pill island ---------- */
.nav {
  position: fixed; top: 12px; left: 16px; right: 16px; z-index: 100;
  display: flex; justify-content: center; pointer-events: none;
}
.nav-shell {
  pointer-events: auto;
  width: 100%; max-width: 1040px;
  border-radius: 28px;
}
.nav-inner {
  display: flex; align-items: center; gap: 6px;
  height: var(--nav-h); padding: 0 8px 0 16px;
  border-radius: var(--r-full);
  color: var(--ink-text);
  background: rgba(13, 18, 26, 0.72);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  border: 1px solid var(--ink-hairline);
  box-shadow: var(--shadow-float);
  transition: background 200ms ease, border-color 200ms ease;
}
.nav.scrolled .nav-inner { background: rgba(11, 15, 21, 0.88); border-color: var(--ink-hairline-strong); }

.nav-brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.02rem; letter-spacing: -0.02em;
  color: inherit; text-decoration: none; margin-right: 10px;
}
.nav-brand img { width: 25px; height: 25px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  color: var(--ink-text-mid); text-decoration: none; font-weight: 500; font-size: 0.87rem;
  padding: 7px 12px; border-radius: var(--r-full);
  transition: color 160ms ease, background 160ms ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; background: rgba(190, 215, 245, 0.1); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.nav-burger {
  display: none; background: none; border: none;
  padding: 10px; cursor: pointer; border-radius: var(--r-full);
}
.nav-burger span {
  display: block; width: 20px; height: 2px; background: var(--ink-text);
  margin: 4.5px 0; border-radius: 2px; transition: transform 200ms ease, opacity 200ms ease;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  margin-top: 8px; padding: 12px;
  background: rgba(11, 15, 21, 0.94);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
  backdrop-filter: saturate(150%) blur(18px);
  border: 1px solid var(--ink-hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-float);
}
.nav-mobile a {
  color: var(--ink-text); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 11px 14px; border-radius: 12px;
}
.nav-mobile a:hover { background: rgba(190, 215, 245, 0.08); }
.nav-mobile .btn { margin-top: 6px; }
.nav-mobile.open { display: flex; }

/* ---------- Hero (ink + aurora + dot grid) ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(75% 55% at 85% -8%, rgba(59, 130, 246, 0.17), transparent 55%),
    radial-gradient(60% 55% at 2% 108%, rgba(37, 99, 235, 0.13), transparent 55%),
    linear-gradient(180deg, #0d1219 0%, var(--ink) 100%);
  color: var(--ink-text);
  padding: 148px 24px 100px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(163, 179, 196, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 20%, transparent 100%);
}
.hero-inner {
  position: relative;
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 64px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--ink-text-mid);
  border: 1px solid var(--ink-hairline); border-radius: var(--r-full);
  background: rgba(190, 215, 245, 0.05);
  padding: 6px 13px; margin-bottom: 24px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--pos-ink); box-shadow: 0 0 8px rgba(52, 199, 123, 0.8);
}
.hero h1 {
  font-size: clamp(2.5rem, 5.2vw, 3.9rem); font-weight: 800;
  letter-spacing: -0.035em; line-height: 1.05; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--brand-ink-accent); }
.hero-sub {
  font-size: 1.06rem; color: var(--ink-text-mid); max-width: 32rem; margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; }
.trust-row span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--ink-text-mid);
}
.trust-row svg { width: 13px; height: 13px; color: var(--pos-ink); flex-shrink: 0; }

/* Hero visual: straight-on product window + floating chips */
.hero-visual { position: relative; }
.hero-visual::before {
  content: ''; position: absolute; inset: -8% -6%;
  background: radial-gradient(55% 55% at 55% 45%, rgba(37, 99, 235, 0.28), transparent 70%);
  filter: blur(12px); pointer-events: none;
}
.mock-window {
  position: relative;
  background: var(--paper); border-radius: var(--r-md);
  box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(190, 215, 245, 0.16);
  overflow: hidden;
  color: var(--text-hi);
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  background: #e7eef7; padding: 9px 14px;
  border-bottom: 1px solid var(--hairline);
}
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: #c6d3e2; }
.mock-bar i {
  font-style: normal; margin-left: 12px; font-size: 0.7rem; color: var(--text-low);
  background: #f3f7fc; border-radius: 6px; padding: 3px 12px; flex: 1; text-align: center;
}
.mock-body { padding: 14px; }
.mock-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border: 1px solid var(--hairline); border-radius: 12px;
  overflow: hidden; margin-bottom: 12px;
}
.mock-cell {
  padding: 11px 13px; border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 2px;
}
.mock-cell:last-child { border-right: none; }
.mock-cell small {
  font-size: 0.56rem; font-weight: 600; letter-spacing: 0.06em; color: var(--text-low);
}
.mock-cell b {
  font-size: 0.95rem; font-weight: 700; color: var(--text-hi);
  font-variant-numeric: tabular-nums;
}
.pos { color: var(--pos) !important; }
.neg { color: var(--neg) !important; }

.mock-panel {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 12px;
  overflow: hidden;
}
.mock-panel-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--hairline);
  font-size: 0.8rem; font-weight: 700;
}
.mock-panel-head i { font-style: normal; font-size: 0.66rem; font-weight: 600; color: var(--brand-text); }
.mock-row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-bottom: 1px solid rgba(23, 43, 77, 0.08);
}
.mock-ava {
  width: 25px; height: 25px; border-radius: 50%; background: var(--brand);
  color: #fff; font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mock-who { font-size: 0.83rem; font-weight: 600; flex: 1; color: var(--text-hi); }
.mock-who i { font-style: normal; font-weight: 400; font-size: 0.7rem; color: var(--text-low); margin-left: 4px; }
.mock-row b { font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.mock-settle {
  margin: 11px 14px; text-align: center; background: var(--brand); color: #fff;
  font-size: 0.82rem; font-weight: 600; padding: 8px; border-radius: var(--r-full);
}

.float-chip {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: 13px; padding: 9px 13px;
  box-shadow: var(--shadow-pop);
  color: var(--text-hi);
}
.float-chip .fc-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
}
.float-chip .fc-icon svg { width: 14px; height: 14px; }
.float-chip small { display: block; font-size: 0.62rem; font-weight: 600; letter-spacing: 0.04em; color: var(--text-low); text-transform: uppercase; }
.float-chip b { font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.chip-scan { top: -20px; right: -12px; }
.chip-scan .fc-icon { background: rgba(19, 107, 51, 0.1); color: var(--pos); }
.chip-settle { bottom: -18px; left: -14px; }
.chip-settle .fc-icon { background: var(--brand-tint); color: var(--brand-text); }

/* ---------- Use-case strip (paper) ---------- */
.uses {
  padding: 30px 24px; border-bottom: 1px solid var(--hairline);
}
.uses-inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
}
.uses-label { font-size: 0.82rem; font-weight: 600; color: var(--text-low); margin-right: 6px; }
.use-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-full);
  padding: 7px 14px; font-size: 0.84rem; font-weight: 600; color: var(--text-mid);
}
.use-pill svg { width: 14px; height: 14px; color: var(--brand-text); flex-shrink: 0; }

/* ---------- Sections (paper) ---------- */
.section { padding: 84px 24px; }
.section-alt { background: var(--paper-alt); }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-narrow { max-width: 760px; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 44px; }
.kicker {
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brand-text); margin-bottom: 10px;
}
.section h2 {
  font-size: clamp(1.65rem, 3.2vw, 2.3rem); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.12; margin-bottom: 12px;
}
.section-sub { color: var(--text-mid); font-size: 1rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 22px; box-shadow: var(--shadow-card);
  transition: border-color 180ms ease, transform 180ms ease;
}
.step:hover { border-color: rgba(37, 99, 235, 0.35); transform: translateY(-2px); }
.step-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.step-n {
  display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center;
  background: var(--brand-tint); color: var(--brand-text);
  font-weight: 800; font-size: 0.85rem; border-radius: 9px; flex-shrink: 0;
}
.step h3 { font-size: 1.02rem; font-weight: 700; }
.step p { color: var(--text-mid); font-size: 0.9rem; }

/* Features — bento grid */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.b-card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-md);
  padding: 22px; box-shadow: var(--shadow-card);
  transition: border-color 180ms ease, transform 180ms ease;
  display: flex; flex-direction: column;
}
.b-card:hover { border-color: rgba(37, 99, 235, 0.35); transform: translateY(-2px); }
.b-lg { grid-column: span 2; }
.f-icon {
  display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center;
  background: var(--brand-tint); color: var(--brand-text);
  border-radius: 9px; margin-bottom: 12px; flex-shrink: 0;
}
.f-icon svg { width: 16px; height: 16px; }
.b-card h3 { font-size: 0.98rem; font-weight: 700; margin-bottom: 6px; }
.b-card p { color: var(--text-mid); font-size: 0.88rem; }

/* Mini visualizations inside the two large bento cards */
.b-viz { margin-top: auto; padding-top: 18px; }
.viz-rows { border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
.viz-row {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 12px; border-bottom: 1px solid rgba(23, 43, 77, 0.07);
  background: var(--paper);
}
.viz-row:last-child { border-bottom: none; }
.viz-ava {
  width: 22px; height: 22px; border-radius: 50%; background: var(--brand);
  color: #fff; font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.viz-ava.alt { background: #4f46a3; }
.viz-row > span:not(.viz-ava) { flex: 1; font-size: 0.78rem; font-weight: 600; color: var(--text-mid); }
.viz-row b { font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.viz-badge {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px; padding: 6px 12px; border-radius: var(--r-full);
  background: rgba(19, 107, 51, 0.08); color: var(--pos);
  font-size: 0.76rem; font-weight: 700;
}
.viz-badge svg { width: 12px; height: 12px; }
.viz-split { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.viz-total {
  padding: 7px 13px; border-radius: 11px; background: var(--text-hi); color: #fff;
  font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.viz-arrow { color: var(--text-low); }
.viz-arrow svg { width: 14px; height: 14px; }
.viz-part {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--hairline); border-radius: var(--r-full);
  background: var(--paper); padding: 5px 11px 5px 6px;
  font-size: 0.78rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-hi);
}

/* Pricing */
.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  align-items: stretch;
}
.plan {
  position: relative; background: var(--card); border: 1px solid var(--hairline);
  border-radius: var(--r-lg); padding: 26px 24px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column;
}
.plan-featured {
  border: 1.5px solid var(--brand); box-shadow: var(--shadow-pop);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.045), rgba(37, 99, 235, 0)) , var(--card);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 13px; border-radius: var(--r-full); white-space: nowrap;
}
.plan h3 {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--text-low); margin-bottom: 10px;
}
.plan-featured h3 { color: var(--brand-text); }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price b {
  font-size: 2.15rem; font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; color: var(--text-hi);
}
.plan-price span { color: var(--text-low); font-size: 0.86rem; }
.plan-alt { font-size: 0.8rem; color: var(--text-low); margin-top: 2px; }
.plan ul { list-style: none; margin: 18px 0 22px; flex: 1; }
.plan li {
  padding: 7px 0 7px 24px; font-size: 0.88rem; color: var(--text-mid);
  border-bottom: 1px solid rgba(23, 43, 77, 0.06);
  background: no-repeat left 9px url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%232563eb" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg>');
  background-size: 14px 14px;
}
.plan li:last-child { border-bottom: none; }
.plan .btn { width: 100%; }
.plans-note { margin-top: 24px; font-size: 0.82rem; color: var(--text-low); text-align: center; }

/* Security */
.security { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.security .kicker, .security h2 { text-align: left; }
.sec-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sec-list li {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 13px;
  padding: 13px 16px; font-size: 0.9rem; color: var(--text-mid);
  box-shadow: var(--shadow-card);
}
.sec-list b { color: var(--text-hi); }
.sec-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0; margin-top: 1px;
  background: var(--brand-tint); color: var(--brand-text);
}
.sec-icon svg { width: 15px; height: 15px; }

/* FAQ */
#faq details {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-md);
  margin-top: 10px; box-shadow: var(--shadow-card); overflow: hidden;
  transition: border-color 180ms ease;
}
#faq details:hover { border-color: rgba(37, 99, 235, 0.3); }
#faq summary {
  cursor: pointer; font-weight: 600; font-size: 0.95rem; padding: 16px 48px 16px 20px;
  list-style: none; position: relative; color: var(--text-hi);
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after {
  content: ''; position: absolute; right: 18px; top: 50%;
  width: 16px; height: 16px; transform: translateY(-50%) rotate(0deg);
  background: no-repeat center url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%231d5fd6" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M6 9l6 6 6-6"/></svg>');
  transition: transform 200ms ease;
}
#faq details[open] summary::after { transform: translateY(-50%) rotate(180deg); }
#faq details p { padding: 0 20px 16px; color: var(--text-mid); font-size: 0.92rem; }

/* CTA band (ink) */
.cta-band {
  background:
    radial-gradient(80% 70% at 50% -20%, rgba(59, 130, 246, 0.18), transparent 60%),
    var(--ink);
  color: var(--ink-text); text-align: center; padding: 92px 24px;
}
.cta-band h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.12; margin-bottom: 26px;
}
.cta-band .btn { margin-bottom: 14px; }
.cta-band .trust-row { justify-content: center; }

/* Footer (ink) */
.footer {
  background: var(--ink); color: var(--ink-text);
  border-top: 1px solid var(--ink-hairline); padding: 56px 24px 28px;
}
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px;
}
.footer .nav-brand { margin-right: 0; }
.footer .nav-brand img { width: 26px; height: 26px; border-radius: 7px; }
.footer-brand p { color: var(--ink-text-mid); font-size: 0.88rem; margin-top: 12px; max-width: 22rem; }
.footer-col h4 {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-text-mid); margin-bottom: 13px;
}
.footer-col a {
  display: block; color: var(--ink-text); text-decoration: none;
  font-size: 0.9rem; margin-bottom: 9px;
}
.footer-col a:hover { color: var(--brand-ink-accent); }
.footer-base {
  max-width: var(--max); margin: 40px auto 0; padding-top: 20px;
  border-top: 1px solid var(--ink-hairline);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 0.8rem; color: var(--ink-text-mid);
}
.footer-base a { color: var(--ink-text-mid); text-decoration: none; }
.footer-base a:hover { color: var(--ink-text); }
.footer-base-links { display: flex; gap: 16px; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 140px 24px 80px; }
.legal h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 6px; }
.legal .legal-date { color: var(--text-low); font-size: 0.86rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.15rem; font-weight: 700; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--text-mid); font-size: 0.95rem; margin-bottom: 10px; }
.legal ul { padding-left: 22px; }

/* ---------- Reveal on scroll (JS adds html.js + .in) ---------- */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 500ms ease, transform 500ms ease; }
html.js .reveal.in { opacity: 1; transform: none; }
html.js .reveal-2 { transition-delay: 70ms; }
html.js .reveal-3 { transition-delay: 140ms; }
html.js .reveal-4 { transition-delay: 210ms; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 52px; }
  .hero { padding-top: 130px; }
  .mock-window { max-width: 560px; }
  .chip-scan { right: 0; }
  .chip-settle { left: 0; }
  .steps { grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .b-lg { grid-column: span 2; }
  .plans { grid-template-columns: 1fr 1fr; }
  .security { grid-template-columns: 1fr; gap: 28px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .nav-links, .nav-cta .btn-ghost-ink { display: none; }
  .nav-burger { display: block; }
  .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .b-lg { grid-column: span 1; }
  .plans { grid-template-columns: 1fr; }
  .plan-featured { order: -1; }
  .section { padding: 60px 20px; }
  .hero { padding: 116px 20px 72px; }
  .mock-strip { grid-template-columns: repeat(2, 1fr); }
  .mock-cell:nth-child(2) { border-right: none; }
  .mock-cell:nth-child(1), .mock-cell:nth-child(2) { border-bottom: 1px solid var(--hairline); }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .nav-cta { display: none; }
  .nav { left: 10px; right: 10px; }
  .float-chip { display: none; }
}

/* ============================================================
   v2.1 "RICO" additions (S32) — richer hero, product tour,
   manifesto band, comparison table, pricing toggle.
   ============================================================ */

/* Hero aurora blobs (slow drift, transform-only) */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.blob-1 {
  width: 540px; height: 540px; right: -150px; top: -190px;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.38), rgba(37, 99, 235, 0.06) 70%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.blob-2 {
  width: 440px; height: 440px; left: -170px; bottom: -170px;
  background: radial-gradient(circle at 60% 40%, rgba(90, 162, 255, 0.26), rgba(37, 99, 235, 0.04) 70%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
@keyframes drift-a { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 42px) scale(1.12); } }
@keyframes drift-b { from { transform: translate(0, 0) scale(1); } to { transform: translate(52px, -30px) scale(1.08); } }

/* Gradient sheen on the hero accent line */
.hero h1 em {
  background: linear-gradient(92deg, #5aa2ff 0%, #8cc6ff 55%, #5aa2ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Hero mock: two-panel body + mini category chart */
.hero-visual { perspective: 1100px; }
.mock-window { transition: transform 160ms ease-out; will-change: transform; }
.mock-duo { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; align-items: stretch; }
.mock-chart {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 10px 12px 12px; display: flex; flex-direction: column;
}
.mock-chart-title {
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-low); margin-bottom: 10px;
}
.mbar-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mbar-row:last-child { margin-bottom: 0; }
.mbar-row small { width: 40px; font-size: 0.6rem; font-weight: 600; color: var(--text-mid); }
.mbar { flex: 1; height: 7px; border-radius: 99px; background: rgba(23, 43, 77, 0.08); overflow: hidden; }
.mbar i {
  display: block; height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, #2563eb, #5aa2ff);
  transform-origin: left; animation: bar-grow 900ms 350ms cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.mbar-row b { width: 34px; text-align: right; font-size: 0.6rem; font-variant-numeric: tabular-nums; color: var(--text-hi); }
.w-88 { width: 88%; } .w-64 { width: 64%; } .w-46 { width: 46%; } .w-30 { width: 30%; } .w-18 { width: 18%; }
@keyframes bar-grow { from { transform: scaleX(0); } }

/* Cycling activity toast inside the mock */
.mock-toast {
  position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 10px);
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text-hi); color: #fff;
  font-size: 0.72rem; font-weight: 600; padding: 8px 15px; border-radius: var(--r-full);
  box-shadow: var(--shadow-pop); white-space: nowrap; max-width: 92%;
  opacity: 0; transition: opacity 350ms ease, transform 350ms ease; pointer-events: none;
}
.mock-toast.show { opacity: 1; transform: translate(-50%, 0); }
.mock-toast::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
  background: var(--pos-ink); box-shadow: 0 0 6px rgba(52, 199, 123, 0.8);
}

/* ---------- Product tour (alternating rows) ---------- */
.tour { display: grid; gap: 72px; }
.tour-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.tour-row.rev .tour-copy { order: 2; }
.tour-row.rev .tour-visual { order: 1; }
.tour-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--brand-text);
  background: var(--brand-tint); border-radius: var(--r-full); padding: 5px 12px;
}
.tour-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); font-weight: 800; letter-spacing: -0.02em; margin: 12px 0 10px; }
.tour-copy > p { color: var(--text-mid); font-size: 0.97rem; margin-bottom: 16px; max-width: 30rem; }
.tour-list { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.tour-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 0.9rem; color: var(--text-mid); }
.tour-list svg { width: 15px; height: 15px; color: var(--pos); flex-shrink: 0; margin-top: 3px; }
.tour-visual { position: relative; }
.tour-card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-md);
  box-shadow: var(--shadow-pop); padding: 18px;
}

/* Tour visual 1 — settle flow */
.flow-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid rgba(23, 43, 77, 0.07);
}
.flow-row > span:not(.flow-ava) { flex: 1; font-size: 0.88rem; font-weight: 600; color: var(--text-hi); }
.flow-row span i { font-style: normal; font-weight: 400; font-size: 0.76rem; color: var(--text-low); margin-left: 5px; }
.flow-row b { font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.flow-ava {
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand);
  color: #fff; font-size: 0.7rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.flow-ava.alt { background: #4f46a3; }
.flow-ava.alt2 { background: #0e7490; }
.flow-mid { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 0; }
.flow-mid svg { width: 15px; height: 15px; color: var(--brand-text); }
.flow-mid span {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--brand-text); background: var(--brand-tint); border-radius: var(--r-full); padding: 4px 12px;
}
.flow-result {
  display: flex; align-items: center; gap: 9px;
  background: rgba(19, 107, 51, 0.08); border-radius: 11px; padding: 12px 14px;
  font-size: 0.88rem; font-weight: 700; color: var(--pos);
}
.flow-result svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Tour visual 2 — receipt + OCR extraction */
.receipt-scene { position: relative; min-height: 320px; }
.receipt-card {
  width: min(240px, 62%); margin: 0 auto;
  background: #fff; border: 1px solid var(--hairline); border-radius: 10px;
  box-shadow: var(--shadow-pop); padding: 18px 16px 22px;
  transform: rotate(-2.5deg);
}
.receipt-card h5 {
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  text-align: center; margin-bottom: 4px; color: var(--text-hi);
}
.receipt-card .r-sub { font-size: 0.62rem; color: var(--text-low); text-align: center; margin-bottom: 12px; }
.rl { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rl span { display: block; height: 7px; border-radius: 99px; background: rgba(23, 43, 77, 0.1); }
.rl .a { width: 55%; } .rl .a.a2 { width: 44%; } .rl .a.a3 { width: 38%; } .rl .b { width: 18%; }
.r-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px dashed var(--hairline-strong); margin-top: 12px; padding-top: 10px;
  font-size: 0.8rem; font-weight: 800; color: var(--text-hi); font-variant-numeric: tabular-nums;
}
.extract-card {
  position: absolute; right: 0; bottom: -6px; z-index: 2;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 13px;
  box-shadow: var(--shadow-pop); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 8px; min-width: 200px;
}
.extract-card .x-title {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-low);
}
.x-row { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--text-mid); }
.x-row svg { width: 13px; height: 13px; color: var(--pos); flex-shrink: 0; }
.x-row b { margin-left: auto; color: var(--text-hi); font-variant-numeric: tabular-nums; }

/* Tour visual 3 — heatmap + insight chip */
.heat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.heat-head span { font-size: 0.78rem; font-weight: 700; color: var(--text-hi); }
.heat-head i { font-style: normal; font-size: 0.66rem; font-weight: 600; color: var(--brand-text); }
.heat-grid { display: grid; grid-template-columns: 44px repeat(12, 1fr); gap: 4px; align-items: center; }
.heat-grid small { font-size: 0.6rem; font-weight: 600; color: var(--text-mid); }
.hc { aspect-ratio: 1; border-radius: 3px; background: rgba(37, 99, 235, 0.07); }
.h1x { background: rgba(37, 99, 235, 0.18); }
.h2x { background: rgba(37, 99, 235, 0.36); }
.h3x { background: rgba(37, 99, 235, 0.58); }
.h4x { background: rgba(37, 99, 235, 0.88); }
.chip-insight { position: absolute; right: -8px; bottom: -18px; }
.chip-insight .fc-icon { background: var(--brand-tint); color: var(--brand-text); }

/* ---------- Manifesto band (ink) + ledger stats ---------- */
.manifesto {
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 80% at 85% 20%, rgba(59, 130, 246, 0.14), transparent 60%),
    var(--ink);
  color: var(--ink-text); padding: 84px 24px;
}
.manifesto-mark {
  position: absolute; right: -70px; top: 50%; transform: translateY(-50%) rotate(8deg);
  width: 400px; height: 400px; opacity: 0.06; pointer-events: none;
}
.manifesto-inner { position: relative; max-width: var(--max); margin: 0 auto; }
.manifesto blockquote {
  font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.18; max-width: 26ch;
}
.manifesto blockquote em { font-style: normal; color: var(--brand-ink-accent); }
.manifesto .mani-sub { color: var(--ink-text-mid); font-size: 0.98rem; margin-top: 14px; max-width: 40rem; }
.mani-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink-hairline); border-radius: var(--r-md);
  background: rgba(190, 215, 245, 0.04); margin-top: 40px; overflow: hidden;
}
.stat-cell { padding: 18px 20px; border-right: 1px solid var(--ink-hairline); }
.stat-cell:last-child { border-right: none; }
.stat-cell b { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat-cell b em { font-style: normal; color: var(--brand-ink-accent); }
.stat-cell span { font-size: 0.8rem; color: var(--ink-text-mid); }

/* ---------- Comparison table ---------- */
.compare-wrap {
  overflow-x: auto; margin-top: 8px;
  border: 1px solid var(--hairline); border-radius: var(--r-md);
  background: var(--card); box-shadow: var(--shadow-card);
}
.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 0.9rem; }
.compare th, .compare td {
  padding: 12px 18px; text-align: center;
  border-bottom: 1px solid rgba(23, 43, 77, 0.07);
}
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: none; }
.compare th[scope="row"], .compare td:first-child {
  text-align: left; font-weight: 500; color: var(--text-mid);
}
.compare thead th {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-low); background: var(--paper);
}
.compare .col-x { background: rgba(37, 99, 235, 0.05); }
.compare thead th.col-x { color: var(--brand-text); }
.compare .yes svg { width: 16px; height: 16px; color: var(--pos); display: inline-block; }
.compare .no { color: var(--text-low); }

/* ---------- Pricing billing toggle ---------- */
.bill-toggle {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--r-full);
  padding: 3px; margin-top: 20px;
}
.bill-toggle button {
  border: none; background: transparent; font: inherit; cursor: pointer;
  font-size: 0.84rem; font-weight: 600; color: var(--text-mid);
  padding: 6px 16px; border-radius: var(--r-full);
  transition: background 160ms ease, color 160ms ease;
}
.bill-toggle button.on { background: var(--brand); color: #fff; }
.bill-toggle .save { font-size: 0.68rem; font-weight: 700; color: var(--pos); margin: 0 8px 0 2px; }

/* ---------- v2.1 responsive ---------- */
@media (max-width: 980px) {
  .tour { gap: 52px; }
  .tour-row { grid-template-columns: 1fr; gap: 26px; }
  .tour-row.rev .tour-copy { order: 0; }
  .tour-row.rev .tour-visual { order: 1; }
  .mani-stats { grid-template-columns: 1fr 1fr; }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid var(--ink-hairline); }
  .manifesto-mark { width: 300px; height: 300px; right: -110px; }
}
@media (max-width: 780px) {
  .mock-duo { grid-template-columns: 1fr; }
  .extract-card { right: -4px; }
  .chip-insight { right: 0; }
  .heat-grid { grid-template-columns: 36px repeat(12, 1fr); gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .mock-toast { opacity: 0 !important; }
}
