/* ============================================================
   KARANI — v4 "Open Ledger"
   Light, white & warm-paper theme · ledger book-lines · orbiting
   records around the phone · typewriter headline · spinning
   gradient CTA borders.
   Urbanist display · Inter body · Spline Sans Mono numbers
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  /* surfaces (light) */
  --bg: #fbf8f1;
  --bg-deep: #f4ede0;
  --card: #ffffff;
  --line: #e8e0cf;
  --rule: rgba(31, 42, 36, 0.07);   /* the ledger book-lines */

  /* ink */
  --ink: #1c2420;
  --ink-soft: #57615a;

  /* brand */
  --green: #0a5c43;
  --green-mid: #12876b;
  --green-soft: #0e7a5c;
  --amber: #e9a13b;
  --amber-soft: #f2c069;
  --clay: #c75b39;
  --clay-deep: #b04a28;

  /* whatsapp light (inside the phone only) */
  --wa-header: #0a5c43;
  --wa-screen: #f0e9dc;
  --wa-out: #d9fdd3;
  --wa-out-ink: #14351c;
  --wa-in: #ffffff;
  --wa-dim: #7e8a80;

  --font-display: "Urbanist", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Spline Sans Mono", "Courier New", monospace;

  --radius: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* rotating border angle (spinning conic-gradient CTA borders) */
@property --ba {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.02em;
}

h1 em, h2 em, h3 em { font-style: normal; }

::selection { background: var(--amber); color: #231708; }

:focus-visible {
  outline: 3px solid var(--green-mid);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- scroll progress ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--amber));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 300;
  pointer-events: none;
}

/* ---------- nav ---------- */
.nav {
  position: fixed;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: min(94vw, 680px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px 9px 20px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 100px;
  z-index: 200;
  box-shadow: 0 12px 36px -14px rgba(31, 42, 36, 0.22);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.wordmark-dot { color: var(--green-mid); }
.wordmark.small { font-size: 1.2rem; }

/* ---------- buttons + spinning gradient border ---------- */
.btn-border-wrap {
  position: relative;
  display: inline-flex;
  border-radius: 100px;
  padding: 2.5px;
  isolation: isolate;
}
.btn-border-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 100px;
  background: conic-gradient(from var(--ba), var(--green), var(--amber), var(--green-mid), var(--green));
  animation: spinBorder 3.2s linear infinite;
  z-index: -1;
}
@keyframes spinBorder { to { --ba: 360deg; } }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 26px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
  touch-action: manipulation;
}

.btn-primary {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 8px 22px -8px rgba(10, 92, 67, 0.55);
}
/* hover fill slides in from the left */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--green-soft);
  transform: translateX(-101%);
  transition: transform 0.4s var(--ease-out);
  z-index: 0;
}
.btn-primary:hover::after { transform: translateX(0); }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(10, 92, 67, 0.6);
}
.btn-primary:active { transform: translateY(0) scale(0.97); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; transform: none; }
/* keep the label above the slide fill */
.btn-primary { z-index: 0; }

.btn-small { padding: 9px 20px; font-size: 0.92rem; }

/* ---------- shared section bits ---------- */
.section-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 124px) clamp(20px, 5vw, 56px);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--green-mid);
  margin-bottom: 18px;
}
.kicker::before {
  content: "—";
  margin-right: 10px;
  color: var(--amber);
}

h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  margin-bottom: 18px;
}
h2 em { color: var(--green); }

.section-sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 52px;
}

/* ---------- scroll reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.delay-1 { transition-delay: 0.12s; }
.js .reveal.delay-2 { transition-delay: 0.22s; }

/* hero elements fade up after the typewriter */
.js .hero-fade {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.75s var(--ease-out) forwards;
}
.js .hf-1 { animation-delay: 0.1s; }
.js .hf-2 { animation-delay: 2.3s; }
.js .hf-3 { animation-delay: 2.6s; }
.js .hf-4 { animation-delay: 2.9s; }
.js .hf-5 { animation-delay: 3.15s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ============================================================
   HERO — light paper + ledger book-lines
   ============================================================ */
.hero {
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

/* the book lines: vertical ledger ruling across the hero,
   plus a warm radial wash top-right */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 8%, rgba(233, 161, 59, 0.14) 0%, transparent 46%),
    radial-gradient(circle at 8% 90%, rgba(18, 135, 107, 0.08) 0%, transparent 40%),
    repeating-linear-gradient(90deg, transparent 0 55px, var(--rule) 55px 56px);
}

.hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(100px, 13vh, 140px) clamp(20px, 5vw, 56px) clamp(56px, 7vw, 90px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}

/* dictionary entry */
.dict-entry {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-left: 3px solid var(--amber);
  padding-left: 16px;
  margin-bottom: 26px;
}
.dict-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--green);
  letter-spacing: 0.01em;
}
.dict-type {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
.dict-def {
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* headline — typewriter */
h1 {
  font-size: clamp(2.5rem, 4.8vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin-bottom: 20px;
  min-height: 3.1em;
}
.tw-line { display: block; min-height: 1.04em; }
.tw-2 { color: var(--green); }

.tw-cursor {
  display: inline-block;
  width: 4px;
  height: 0.85em;
  margin-left: 5px;
  vertical-align: -0.08em;
  background: var(--amber);
  border-radius: 2px;
  animation: blink 0.9s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 22px;
}
.hero-sub strong { color: var(--ink); }

/* pilot stamp */
.hero-stamp { margin-bottom: 24px; }
.pilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--clay-deep);
  border: 1.5px dashed rgba(199, 91, 57, 0.55);
  border-radius: 10px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.65);
  transform: rotate(-1.5deg);
}
.pilot-badge svg {
  width: 14px; height: 14px;
  color: var(--amber);
  animation: starTwinkle 3.2s ease-in-out infinite;
}
@keyframes starTwinkle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.82); }
}

/* waitlist form */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 470px;
}
.waitlist-form .wl-row {
  display: flex;
  gap: 10px;
}
.waitlist-form .wl-row input { flex: 1; min-width: 0; }
.waitlist-form .wl-phone { width: 100%; }
.waitlist-form input {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 14px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.waitlist-form input::placeholder { color: #9aa49d; }
.waitlist-form input:focus {
  outline: none;
  border-color: var(--green-mid);
  box-shadow: 0 0 0 4px rgba(18, 135, 107, 0.16);
}
.waitlist-form .btn-border-wrap { flex: none; }
.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 12px;
}
.form-note a { color: var(--green); }
.form-success {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green);
  padding: 12px 0;
}

/* ---------- hero demo: chips + orbit stage + phone ---------- */
.hero-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.chips {
  display: flex;
  gap: 6px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: 100px;
  position: relative;
  z-index: 4;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: transparent;
  border: none;
  border-radius: 100px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  touch-action: manipulation;
  white-space: nowrap;
}
.chip svg { width: 15px; height: 15px; flex: none; }
.chip:hover { color: var(--ink); }
.chip.active {
  background: var(--green);
  color: #f6f1e4;
  font-weight: 600;
}

/* the stage: orbits of money + documents around the phone */
.stage {
  position: relative;
  padding: 26px 0 18px;
  display: flex;
  justify-content: center;
}

.orbit {
  position: absolute;
  top: 50%; left: 50%;
  border: 1.5px dashed rgba(10, 92, 67, 0.16);
  border-radius: 50%;
  pointer-events: none;
}
.orbit-a {
  width: 470px; height: 470px;
  margin: -235px 0 0 -235px;
  animation: spin 44s linear infinite;
}
.orbit-b {
  width: 620px; height: 620px;
  margin: -310px 0 0 -310px;
  animation: spinRev 64s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinRev { to { transform: rotate(-360deg); } }

.ob {
  position: absolute;
  top: 50%; left: 50%;
}
.ob-1 { transform: rotate(210deg) translate(235px) rotate(-210deg); }
.ob-2 { transform: rotate(345deg) translate(235px) rotate(-345deg); }
.ob-3 { transform: rotate(150deg) translate(310px) rotate(-150deg); }
.ob-4 { transform: rotate(20deg) translate(310px) rotate(-20deg); }

/* keep badges upright while the orbit spins */
.ob-inner { display: inline-flex; transform: translate(-50%, -50%); }
.orbit-a .ob-inner { animation: innerA 44s linear infinite; }
.orbit-b .ob-inner { animation: innerB 64s linear infinite; }
@keyframes innerA {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}
@keyframes innerB {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.chip-money {
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--green);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 7px 13px;
  box-shadow: 0 10px 26px -10px rgba(31, 42, 36, 0.28);
  white-space: nowrap;
}
.chip-money::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-mid);
  align-self: center;
}
.chip-money.alt { color: var(--clay-deep); }
.chip-money.alt::before { background: var(--clay); }

.chip-stamp {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  background: #ffffff;
  border: 2px solid var(--green);
  border-radius: 8px;
  padding: 5px 11px;
  rotate: -6deg;
  box-shadow: 0 10px 26px -10px rgba(31, 42, 36, 0.28);
  white-space: nowrap;
}

.chip-doc {
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.74rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 13px;
  box-shadow: 0 10px 26px -10px rgba(31, 42, 36, 0.28);
  white-space: nowrap;
}
.chip-doc svg { width: 15px; height: 15px; color: var(--clay-deep); }

/* the phone — chunky frame, light WhatsApp */
.phone {
  position: relative;
  z-index: 3;
  width: min(330px, 86vw);
  border: 9px solid #202823;
  border-radius: 44px;
  background: var(--wa-screen);
  overflow: hidden;
  box-shadow:
    0 44px 90px -30px rgba(31, 42, 36, 0.45),
    0 16px 40px -18px rgba(10, 92, 67, 0.35);
  animation: phoneFloat 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes phoneFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.phone-notch {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 104px; height: 20px;
  background: #202823;
  border-radius: 100px;
  z-index: 3;
}

.wa-header {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--wa-header);
  padding: 36px 16px 12px;
}
.wa-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--green);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-title { display: flex; flex-direction: column; line-height: 1.25; }
.wa-name { color: #ffffff; font-weight: 600; font-size: 0.98rem; }
.wa-status { color: rgba(255, 255, 255, 0.72); font-size: 0.76rem; }

.wa-screen {
  height: 380px;
  padding: 14px 12px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  background:
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(31, 42, 36, 0.04) 39px 40px),
    var(--wa-screen);
  overflow: hidden;
}

.bubble {
  max-width: 84%;
  padding: 8px 10px 6px;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--ink);
  position: relative;
  animation: bubbleIn 0.32s var(--ease-out);
  word-wrap: break-word;
  box-shadow: 0 1px 2px rgba(31, 42, 36, 0.1);
}
@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.bubble.out {
  align-self: flex-end;
  background: var(--wa-out);
  color: var(--wa-out-ink);
  border-top-right-radius: 3px;
}
.bubble.in {
  align-self: flex-start;
  background: var(--wa-in);
  border-top-left-radius: 3px;
}
.bubble .time {
  display: inline-block;
  font-size: 0.62rem;
  color: var(--wa-dim);
  margin-left: 8px;
  float: right;
  margin-top: 8px;
}
.fwd-label {
  display: block;
  font-size: 0.7rem;
  font-style: italic;
  color: var(--wa-dim);
  margin-bottom: 3px;
}

/* PDF document card inside chat */
.doc-card {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #f6efe2;
  border: 1px solid #e5dcc8;
  border-radius: 8px;
  padding: 9px 10px;
  margin-top: 6px;
  position: relative;
  overflow: hidden;
}
.doc-card.shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(233, 161, 59, 0.22) 50%, transparent 62%);
  transform: translateX(-110%);
  animation: docShine 2.2s ease-out 0.35s;
}
@keyframes docShine { to { transform: translateX(110%); } }
.doc-icon {
  flex: none;
  width: 34px; height: 40px;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doc-meta { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.doc-name { font-weight: 600; font-size: 0.8rem; color: var(--ink); font-family: var(--font-mono); }
.doc-sub { font-size: 0.7rem; color: var(--ink-soft); }

/* typing dots */
.typing { display: inline-flex; gap: 4px; padding: 4px 2px; }
.typing i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--wa-dim);
  animation: typingDot 1.1s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.18s; }
.typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.wa-inputbar {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ece4d4;
  padding: 10px 14px 14px;
  color: var(--wa-dim);
}
.wa-plus, .wa-mic { width: 20px; height: 20px; flex: none; }
.wa-input {
  flex: 1;
  background: #ffffff;
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 0.84rem;
  color: var(--wa-dim);
}

.replay {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 8px 18px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  touch-action: manipulation;
  position: relative;
  z-index: 4;
}
.replay svg { width: 13px; height: 13px; }
.replay:hover {
  color: var(--green);
  border-color: var(--green-mid);
}

/* ============================================================
   TRADES TICKER — light strip with fade masks
   ============================================================ */
.ticker {
  background: #ffffff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 15px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.ticker-track {
  display: inline-flex;
  white-space: nowrap;
  animation: tickerMove 36s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerMove {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker-track span {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--green);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
}
.ticker-track b {
  color: var(--amber);
  font-style: normal;
  font-size: 0.85rem;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { background: var(--bg); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 30px;
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
}
.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 26px 48px -18px rgba(10, 92, 67, 0.28);
}

.card-num {
  position: absolute;
  top: 20px; right: 22px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--amber);
  letter-spacing: 0.1em;
}

.card h3 {
  font-size: 1.38rem;
  margin: 20px 0 10px;
}
.card h3 em { color: var(--green); }
.card p { color: var(--ink-soft); font-size: 0.96rem; }

/* mini chat inside cards */
.card-chat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background:
    repeating-linear-gradient(90deg, transparent 0 35px, rgba(31, 42, 36, 0.035) 35px 36px),
    var(--bg-deep);
  border-radius: 14px;
  padding: 14px;
  min-height: 128px;
  justify-content: center;
}
.mini-bubble {
  max-width: 92%;
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 8px 11px;
  border-radius: 10px;
}
.mini-bubble.out {
  align-self: flex-end;
  background: var(--wa-out);
  color: var(--wa-out-ink);
  border-top-right-radius: 3px;
}
.mini-bubble.in {
  align-self: flex-start;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-top-left-radius: 3px;
}
/* pop in when the card scrolls into view */
.js .card .mini-bubble { opacity: 0; transform: translateY(10px) scale(0.96); }
.js .card.visible .mini-bubble {
  animation: bubbleIn 0.4s var(--ease-out) forwards;
}
.js .card.visible .mini-bubble:nth-child(1) { animation-delay: 0.35s; }
.js .card.visible .mini-bubble:nth-child(2) { animation-delay: 0.95s; }

.mini-doc {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  background: rgba(10, 92, 67, 0.08);
  border-radius: 7px;
  padding: 4px 8px;
  margin-top: 5px;
}
.mini-doc svg { width: 13px; height: 13px; }
.mini-doc.plain { margin-top: 0; }
.fwd {
  display: block;
  font-size: 0.68rem;
  font-style: italic;
  opacity: 0.75;
  margin-bottom: 3px;
}

/* ============================================================
   RECORDS (warm paper)
   ============================================================ */
.records {
  background:
    repeating-linear-gradient(90deg, transparent 0 55px, rgba(31, 42, 36, 0.045) 55px 56px),
    var(--bg-deep);
}

.records-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

.records-copy p { color: var(--ink-soft); margin-bottom: 16px; max-width: 480px; }

.import-note {
  border: 1.5px solid rgba(233, 161, 59, 0.8);
  background: rgba(233, 161, 59, 0.12);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 0.94rem;
  margin-top: 26px;
}
.import-note strong { color: var(--ink); }

/* dashboard mockup */
.dash {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 34px 70px -26px rgba(31, 42, 36, 0.3);
}
.dash-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
}
.dash-chrome i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.dash-chrome i:nth-child(1) { background: var(--clay); }
.dash-chrome i:nth-child(2) { background: var(--amber); }
.dash-chrome i:nth-child(3) { background: var(--green-mid); }
.dash-url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
}

.dash-body { padding: 22px; }

.dash-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
}
.dash-head h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.22rem;
}
.dash-month {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.tile {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.tile-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}
.dot.clay { background: var(--clay); }
.dot.green { background: var(--green-mid); }
.dot.ink { background: var(--ink); }

.tile-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.6vw, 1.18rem);
  font-variant-numeric: tabular-nums;
  margin: 4px 0 2px;
  white-space: nowrap;
}
.tile-sub { font-size: 0.72rem; color: var(--ink-soft); }

.meter { margin-bottom: 18px; }
.meter-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.meter-label b {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.meter-track {
  height: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 100px;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--green-mid), var(--green));
  transition: width 1.3s var(--ease-out) 0.4s;
}
.dash.counted .meter-fill { width: 75%; }

.dash-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 16px;
}

.bars-title, .dash-docs-title {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin-bottom: 10px;
}
.bars-plot {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  height: 110px;
  padding: 0 6px;
}
.bar-group {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 100%;
}
.bar {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.9s var(--ease-out);
}
.dash.counted .bar { transform: scaleY(1); }
.dash.counted .bar-group:nth-child(1) .bar { transition-delay: 0.25s; }
.dash.counted .bar-group:nth-child(2) .bar { transition-delay: 0.45s; }
.dash.counted .bar-group:nth-child(3) .bar { transition-delay: 0.65s; }
.bar.quoted { background: var(--clay); }
.bar.invoiced { background: var(--green-mid); }
.bars-x {
  display: flex;
  gap: 18px;
  padding: 6px 6px 0;
  border-top: 1px solid var(--line);
  margin-top: 2px;
}
.bars-x span {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
}
.legend {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--ink-soft);
}

.dash-docs { min-width: 0; }
.doc-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.8rem;
}
.doc-row:last-child { border-bottom: none; }
.js .dash .doc-row { opacity: 0; transform: translateX(14px); }
.js .dash.counted .doc-row {
  animation: rowIn 0.45s var(--ease-out) forwards;
}
.js .dash.counted .doc-row:nth-child(2) { animation-delay: 0.5s; }
.js .dash.counted .doc-row:nth-child(3) { animation-delay: 0.65s; }
.js .dash.counted .doc-row:nth-child(4) { animation-delay: 0.8s; }
.js .dash.counted .doc-row:nth-child(5) { animation-delay: 0.95s; }
@keyframes rowIn { to { opacity: 1; transform: none; } }

.doc-id {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.72rem;
  color: var(--green);
  white-space: nowrap;
}
.doc-who {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}
.doc-amt {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 0.76rem;
  white-space: nowrap;
}

/* rubber stamps */
.stamp {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  border: 1.5px solid currentColor;
  border-radius: 6px;
  padding: 2px 7px;
  transform: rotate(-3deg);
  white-space: nowrap;
}
.stamp.green { color: var(--green); }
.js .dash .stamp { opacity: 0; }
.js .dash.counted .stamp {
  animation: stampIn 0.4s cubic-bezier(0.3, 1.6, 0.5, 1) forwards;
}
.js .dash.counted .doc-row:nth-child(2) .stamp { animation-delay: 0.85s; }
.js .dash.counted .doc-row:nth-child(3) .stamp { animation-delay: 1.0s; }
.js .dash.counted .doc-row:nth-child(4) .stamp { animation-delay: 1.15s; }
.js .dash.counted .doc-row:nth-child(5) .stamp { animation-delay: 1.3s; }
@keyframes stampIn {
  from { opacity: 0; transform: rotate(-10deg) scale(1.7); }
  to { opacity: 1; transform: rotate(-3deg) scale(1); }
}

/* ============================================================
   ROOTS
   ============================================================ */
.roots { background: var(--bg); position: relative; overflow: hidden; }
.roots::before {
  content: "";
  position: absolute;
  top: -10%; right: -15%;
  width: 50vw; height: 50vw;
  max-width: 700px; max-height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(233, 161, 59, 0.12) 0%,
    rgba(18, 135, 107, 0.05) 45%,
    transparent 70%);
  pointer-events: none;
}

.roots-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.roots-copy p {
  color: var(--ink-soft);
  margin-bottom: 18px;
  max-width: 560px;
}
.roots-copy p em { color: var(--ink); }

.manifesto {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink) !important;
}
.manifesto em {
  font-style: italic;
  color: var(--green) !important;
}

.roots-meta {
  font-size: 0.88rem;
  margin-top: 10px;
}
.roots-meta a { color: var(--green); }

/* the ledger card */
.ledger-card {
  position: relative;
  background: #fffdf6;
  color: var(--ink);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  padding: 40px 30px 34px;
  transform: rotate(-2deg);
  box-shadow: 0 30px 60px -18px rgba(31, 42, 36, 0.3);
  max-width: 360px;
  margin: 0 auto;
}
/* torn receipt bottom edge */
.ledger-card::after {
  content: "";
  position: absolute;
  top: 100%; left: 0; right: 0;
  height: 11px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='11' viewBox='0 0 16 11' preserveAspectRatio='none'%3E%3Cpath d='M0 0 L8 11 L16 0 Z' fill='%23fffdf6'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 16px 11px;
  filter: drop-shadow(0 3px 2px rgba(31, 42, 36, 0.12));
}

.stamp-corner {
  position: absolute;
  top: -14px; right: -10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  border: 2px solid var(--green);
  border-radius: 8px;
  padding: 6px 12px;
  transform: rotate(7deg);
  background: #fffdf6;
  box-shadow: 0 6px 18px rgba(31, 42, 36, 0.15);
}

.ledger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed #ddd3b8;
  font-family: var(--font-mono);
  font-size: 0.88rem;
}
.ledger-row strong svg {
  width: 18px; height: 18px;
  color: var(--green);
  display: block;
}
.ledger-row.total {
  border-bottom: none;
  padding-top: 16px;
  font-weight: 600;
}
.ledger-row.total strong {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--clay-deep);
  white-space: nowrap;
}

/* tick animation when scrolled into view */
.js .ledger-row strong { opacity: 0; transform: scale(0.4); }
.js .ledger-card.ticked .ledger-row strong {
  animation: tickIn 0.45s cubic-bezier(0.3, 1.7, 0.5, 1) forwards;
}
.js .ledger-card.ticked .ledger-row:nth-child(2) strong { animation-delay: 0.25s; }
.js .ledger-card.ticked .ledger-row:nth-child(3) strong { animation-delay: 0.65s; }
.js .ledger-card.ticked .ledger-row:nth-child(4) strong { animation-delay: 1.05s; }
.js .ledger-card.ticked .ledger-row.total strong { animation-delay: 1.55s; }
@keyframes tickIn { to { opacity: 1; transform: scale(1); } }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta {
  position: relative;
  background:
    radial-gradient(circle at 50% 120%, rgba(18, 135, 107, 0.14) 0%, transparent 55%),
    repeating-linear-gradient(90deg, transparent 0 55px, rgba(31, 42, 36, 0.045) 55px 56px),
    var(--bg-deep);
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.cta-inner { position: relative; }
.cta h2 em { color: var(--green); }
.cta p {
  color: var(--ink-soft);
  max-width: 480px;
  margin: 0 auto 30px;
}
.cta .waitlist-form { margin: 0 auto; justify-content: center; }
.cta .form-note { text-align: center; }

/* ---------- footer ---------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: #ffffff;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.86rem;
  padding: 26px clamp(20px, 5vw, 56px);
}
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--green); }

/* ---------- legal page (privacy.html) ---------- */
.legal { color: var(--ink); }
.legal h1, .legal h2 { color: var(--ink); }
.legal a { color: var(--green); }
body.legal-page { padding-top: 70px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1120px) {
  .orbit-b { display: none; }
  .ob-3, .ob-4 { display: none; }
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: 110px; }
  .hero-demo { order: 2; }
  h1 { min-height: 0; }
  .records-inner, .roots-inner { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .dash-split { grid-template-columns: 1fr; }
  .roots-mark { order: 2; margin-top: 14px; }
  .orbit-a { width: 420px; height: 420px; margin: -210px 0 0 -210px; }
  .ob-1 { transform: rotate(210deg) translate(210px) rotate(-210deg); }
  .ob-2 { transform: rotate(345deg) translate(210px) rotate(-345deg); }
}

@media (max-width: 560px) {
  .waitlist-form .wl-row { flex-direction: column; }
  .waitlist-form .btn { width: 100%; }
  .waitlist-form .btn-border-wrap { display: flex; }
  .chips { flex-wrap: wrap; justify-content: center; border-radius: 20px; }
  .wa-screen { height: 330px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile:last-child { grid-column: span 2; }
  .nav { width: calc(100vw - 20px); top: 10px; }
  .footer { justify-content: center; text-align: center; }
  .ledger-card { max-width: 320px; }
  .doc-row { grid-template-columns: auto 1fr auto; }
  .doc-amt { display: none; }
  .orbit-a { display: none; }
  .ob-1, .ob-2 { display: none; }
}

/* ============================================================
   REDUCED MOTION — full content, no choreography
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-delay: 0s !important;
  }
  .js .reveal, .js .hero-fade, .js .card .mini-bubble,
  .js .dash .doc-row, .js .dash .stamp, .js .ledger-row strong {
    opacity: 1 !important;
    transform: none !important;
  }
  .phone { animation: none; }
  .ticker-track { animation: none; }
  .orbit, .ob-inner { animation: none !important; }
  .btn-border-wrap::before { animation: none; }
  .dash .meter-fill { width: 75%; transition: none; }
  .bar { transform: scaleY(1); transition: none; }
  .tw-cursor { display: none; }
}
