:root {
  --bg: #16200F;
  --bg2: #1E2B16;
  --bg3: #2C3E1F;
  --paper: #F7F3E8;
  --card: #223018;
  --card2: #2A3B1E;
  --line: #3A4D2A;
  --lime: #A8CF6B;
  --lime-hot: #C4E08A;
  --green: #6D9F34;
  --amber: #F9A825;
  --ink: #F2EFE4;
  --ink-2: #B9C4A6;
  --ink-3: #7E8C6A;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Space Grotesk", "Inter", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* keep anchor targets clear of the sticky nav */
[id] { scroll-margin-top: 84px; }

body {
  font-family: var(--sans);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(108, 159, 52, 0.16), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(249, 168, 37, 0.05), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(22, 32, 15, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.brand-sub {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); border-left: 1px solid var(--line);
  padding-left: 12px; margin-left: 2px;
}
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { background: var(--lime); color: #1B260E !important; padding: 9px 18px; border-radius: 8px; font-weight: 600 !important; font-size: 14px; text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 90px 0 80px; position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 60px; align-items: center; }
.hero-eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; color: var(--lime);
  margin-bottom: 26px; display: flex; align-items: center; gap: 12px;
}
.hero h1 {
  font-size: clamp(40px, 5.6vw, 66px);
  line-height: 1.02; font-weight: 700;
  letter-spacing: -0.035em; margin-bottom: 24px;
}
.hero h1 .gr {
  color: var(--lime);
  font-family: var(--mono); font-weight: 600; letter-spacing: -0.04em;
}
.tagline {
  font-family: var(--mono); font-size: 13.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2); margin: -2px 0 18px;
}
.tagline .gr { color: var(--lime); }
.hero p.lede { font-size: clamp(16px, 1.9vw, 19px); color: var(--ink-2); max-width: 500px; margin-bottom: 34px; }
.hero p.lede strong { color: var(--ink); font-weight: 600; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  border-radius: 10px; padding: 14px 26px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform 0.12s, box-shadow 0.12s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lime { background: var(--lime); color: #1B260E; box-shadow: 0 8px 24px -8px rgba(168, 207, 107, 0.5); }
.btn-line { border: 1.5px solid var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--ink-3); }
.hero-meta { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.hero-meta b { color: var(--ink-2); font-weight: 500; }

/* ---------- receipt ---------- */
.receipt-stage { display: flex; justify-content: center; position: relative; }
.receipt-stage::before {
  content: ""; position: absolute; inset: -12%;
  background: radial-gradient(60% 55% at 50% 45%, rgba(168, 207, 107, 0.13), transparent 70%);
  filter: blur(8px);
}
.receipt {
  position: relative;
  width: 320px;
  background: var(--paper);
  color: #232A18;
  border-radius: 6px;
  padding: 26px 24px 30px;
  transform: rotate(2.5deg);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.4),
    0 30px 60px -18px rgba(0,0,0,0.65),
    0 12px 26px -10px rgba(0,0,0,0.5);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
}
.receipt::before { /* perforation */
  content: "";
  position: absolute; top: -7px; left: 10px; right: 10px; height: 14px;
  background-image: radial-gradient(circle at 7px 0px, transparent 6px, var(--paper) 6px);
  background-size: 14px 14px;
  background-repeat: repeat-x;
}
.receipt .r-center { text-align: center; }
.receipt .r-head { font-size: 15px; font-weight: 700; letter-spacing: 0.08em; }
.receipt .r-sub { font-size: 10.5px; color: #6B7358; letter-spacing: 0.1em; }
.receipt hr {
  border: none; border-top: 1.5px dashed #B9B39B;
  margin: 10px 0;
}
.receipt .row { display: flex; justify-content: space-between; gap: 12px; }
.receipt .row .k { color: #6B7358; }
.receipt .row .v { font-weight: 600; text-align: right; }
.receipt .total .v { font-size: 16px; font-weight: 700; }
.receipt .r-zero .v { color: #3F7A1E; }
.receipt .stamp {
  position: absolute; left: 110px; bottom: 150px;
  border: 2.5px solid #3F7A1E; color: #3F7A1E;
  font-weight: 700; font-size: 11px; letter-spacing: 0.22em;
  padding: 5px 10px; transform: rotate(-8deg);
  border-radius: 4px; opacity: 0.85;
  background: rgba(168, 207, 107, 0.12);
}


/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 14px 0;
  background: rgba(34, 48, 24, 0.5);
}
.ticker-track {
  display: flex; gap: 48px; width: max-content;
  animation: tick 26s linear infinite;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.12em;
  color: var(--ink-2); white-space: nowrap;
}
.ticker-track span { display: inline-flex; align-items: center; gap: 48px; }
.ticker-track em { font-style: normal; color: var(--lime); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- big numbers (dark stripe band) ---------- */
.numbers {
  padding: 74px 0 64px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.numbers-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.number-cell { border-top: 2px solid var(--lime); padding-top: 22px; opacity: 0.92; }
.number-cell .big {
  font-family: var(--mono);
  font-size: clamp(44px, 6vw, 64px); font-weight: 600;
  letter-spacing: -0.05em; color: var(--ink); line-height: 1;
}
.number-cell .big .unit { font-size: 0.42em; color: var(--lime); letter-spacing: 0; margin-left: 0.22em; }
.number-cell .what { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); max-width: 280px; }

/* ---------- download cta ---------- */
.final { text-align: center; padding: 90px 0 100px; }
.final h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 12px; }
.final h2 .gr { color: var(--lime); }
.final p { color: var(--ink-2); margin-bottom: 30px; }
.final .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- shared section headers ---------- */
.section-kicker {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--lime); text-transform: uppercase; margin-bottom: 12px;
}
.section-title { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 40px; max-width: 640px; }

/* ---------- features: the paper ledger band ---------- */
.features {
  position: relative;
  padding: 88px 0 92px;
  background: linear-gradient(180deg, #E8E1CC 0%, #DED5BB 100%);
  color: #232A18;
}
.features::before, .features::after { /* torn receipt edges */
  content: ""; position: absolute; left: 0; right: 0; height: 9px;
  background:
    linear-gradient(45deg, #16200F 5.5px, transparent 5.5px) 0 0 / 14px 9px repeat-x,
    linear-gradient(-45deg, #16200F 5.5px, transparent 5.5px) 7px 0 / 14px 9px repeat-x;
}
.features::before { top: -9px; }
.features::after { bottom: -9px; transform: scaleY(-1); }
.features .section-kicker { color: #3F7A1E; }
.features .section-title { color: #1E2712; }
.flist { border-top: 1px solid #B9B295; }
.frow {
  display: grid; grid-template-columns: 56px 0.85fr 1.3fr; gap: 28px;
  padding: 26px 6px; border-bottom: 1px dashed #B9B295;
  align-items: center;
  transition: background 0.15s, padding-left 0.15s;
}
.frow:hover { background: rgba(63, 122, 30, 0.06); padding-left: 14px; }
.frow .ficon {
  width: 46px; height: 46px; border: 1.5px solid #3F7A1E; border-radius: 12px;
  color: #3F7A1E; display: flex; align-items: center; justify-content: center;
}
.frow .ficon svg { display: block; }
.frow h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; color: #232A18; }
.frow h3 .tag {
  display: inline-block; vertical-align: 3px; margin-left: 10px;
  font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.12em;
  color: #3A2C00; background: var(--amber); padding: 2.5px 8px; border-radius: 5px;
}
.frow p { font-size: 14.5px; color: #4F5844; }

/* final CTA gets the hero's glow treatment */
.final { position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 360px at 50% 0%, rgba(168, 207, 107, 0.13), transparent 70%);
}
.final .container { position: relative; }

/* ---------- "free means free" manifesto ---------- */
.different { padding: 84px 0 76px; }
.different .diff-lede { font-size: 16.5px; color: var(--ink-2); max-width: 680px; margin: -18px 0 40px; }
.diff-list { border-top: 1px solid var(--line); }
.diff-row {
  display: grid; grid-template-columns: 170px 1.15fr 1fr; gap: 30px;
  padding: 22px 6px; border-bottom: 1px solid var(--line); align-items: baseline;
}
.diff-label {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.diff-us { font-size: 15px; color: var(--ink); }
.diff-us .ok { color: var(--lime); font-weight: 700; margin-right: 8px; }
.diff-them { font-size: 14px; color: var(--ink-3); }
.diff-them .no { margin-right: 8px; opacity: 0.7; }
@media (max-width: 900px) {
  .diff-row { grid-template-columns: 1fr; gap: 8px; }
  .diff-label { order: -1; }
}

.article, .legal { padding-left: 24px; padding-right: 24px; }

/* ---------- switch band ---------- */
.switch {
  margin: 70px 0; border: 1px solid var(--line); border-radius: 18px;
  background:
    radial-gradient(500px 200px at 90% 0%, rgba(249, 168, 37, 0.09), transparent 65%),
    var(--card);
  padding: 44px 42px;
  display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap;
}
.switch .pump {
  font-family: var(--mono); font-size: 12px; color: var(--lime);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px;
  display: inline-flex; gap: 10px; align-items: center; margin-bottom: 16px;
}
.switch .pump .digits { color: var(--ink); font-size: 15px; letter-spacing: 0.14em; }
.switch h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.025em; margin-bottom: 8px; }
.switch h2 .gr { color: var(--lime); }
.switch p { color: var(--ink-2); font-size: 15px; max-width: 540px; }

/* ---------- faq ---------- */
.faq { max-width: 740px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 4px; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  font-weight: 600; font-size: 16.5px; cursor: pointer; letter-spacing: -0.01em;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--ink-3); font-size: 18px; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 12px; font-size: 14.5px; color: var(--ink-2); max-width: 620px; }

/* ---------- download cta ---------- */
.final { text-align: center; padding: 90px 0 100px; }
.final h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; letter-spacing: -0.03em; margin-bottom: 12px; }
.final h2 .gr { color: var(--lime); }
.final p { color: var(--ink-2); margin-bottom: 30px; }
.final .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- legal pages ---------- */
.legal { padding: 64px 0 80px; }
.legal h1 { font-size: 34px; letter-spacing: -0.03em; margin-bottom: 6px; font-weight: 700; }
.legal .updated { color: var(--ink-3); font-size: 13.5px; margin-bottom: 34px; font-family: var(--mono); }
.legal h2 { font-size: 19px; margin: 30px 0 10px; font-weight: 600; }
.legal p, .legal li { font-size: 15px; color: var(--ink-2); }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal a { color: var(--lime); }

.support-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 32px; text-align: center; max-width: 560px; margin: 0 auto 44px;
}
.support-card h2 { font-size: 20px; margin-bottom: 8px; font-weight: 600; }
.support-card a.btn { background: var(--lime); color: #1B260E; margin-top: 14px; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 34px 0; font-size: 13.5px; color: var(--ink-3); background: #16200F; }
.footer .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer a { color: var(--ink-2); text-decoration: none; margin-left: 18px; }
.footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 56px; }
  .receipt { transform: rotate(1.5deg); }
  .numbers-grid { grid-template-columns: 1fr; gap: 28px; }
  .frow { grid-template-columns: 52px 1fr; }
  .frow p { grid-column: 2; }
}
/* ≤900: mobile menu (two-row header) — shares the 900px breakpoint with
   the grid collapse. ≥901: single-row desktop nav.
   Tagline shows from 600px up; below that, row 1 (brand + CTA) gets tight. */
@media (max-width: 600px) { .brand-sub { display: none; } }
@media (max-width: 900px) {
  /* mobile menu: row 1 = brand + CTA (unchanged), row 2 = menu links */
  .nav .container { flex-wrap: wrap; row-gap: 14px; }
  .nav-links {
    order: 2; width: 100%; gap: 16px;
    justify-content: safe center;
    border-top: 1px solid var(--line);
    overflow-x: auto; scrollbar-width: none;
    padding: 8px 0 0; margin-left: -2px;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 13px; flex: none; }
  /* two-row header is taller — keep anchor jumps clear of it */
  [id] { scroll-margin-top: 128px; }
  .switch { padding: 32px 24px; }
}

/* store badges */
.store-badge { display: inline-block; line-height: 0; text-decoration: none; transition: transform 0.12s; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { display: block; }

/* ---------- hero receipt carousel ---------- */
.hero-w { transition: opacity 0.12s ease; }
.receipt-carousel { display: grid; width: 320px; position: relative; z-index: 1; }
/* static pile of receipts behind the carousel so crossfades never look empty */
.receipt-stack {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
}
.stack-paper {
  position: absolute; top: 50%; left: 50%;
  width: 320px; height: 400px;
  background: var(--paper);
  border-radius: 6px;
  box-shadow:
    0 1px 0 rgba(0,0,0,0.4),
    0 20px 44px -16px rgba(0,0,0,0.6);
  filter: brightness(0.78) saturate(0.85);
  opacity: 0.9;
}
.stack-paper::before { /* perforation, matches .receipt */
  content: ""; position: absolute; top: -7px; left: 10px; right: 10px; height: 14px;
  background-image: radial-gradient(circle at 7px 0px, transparent 6px, var(--paper) 6px);
  background-size: 14px 14px;
  background-repeat: repeat-x;
}
.stack-paper::after { /* ghost text lines */
  content: ""; position: absolute; top: 30px; left: 26px; right: 26px; height: 62%;
  background:
    linear-gradient(to right, rgba(35,42,24,0.22) 55%, rgba(35,42,24,0.10) 55%) 0 40px / 100% 2.5px no-repeat,
    repeating-linear-gradient(to bottom, rgba(35,42,24,0.16) 0 2.5px, transparent 2.5px 24px);
}
.stack-paper:nth-child(1) { transform: translate(-50%, -50%) rotate(-8deg) translate(-13px, 7px); opacity: 0.75; }
.stack-paper:nth-child(2) { transform: translate(-50%, -50%) rotate(7deg) translate(14px, 12px); opacity: 0.8; }
.stack-paper:nth-child(3) { transform: translate(-50%, -50%) rotate(3deg) translate(1px, 3px); }
.receipt-carousel .receipt { grid-area: 1 / 1; opacity: 0; animation: rcycle 26s infinite; }
.receipt-carousel .receipt:nth-child(2) { animation-delay: 6.5s; }
.receipt-carousel .receipt:nth-child(3) { animation-delay: 13s; }
.receipt-carousel .receipt:nth-child(4) { animation-delay: 19.5s; }
@keyframes rcycle {
  0%    { opacity: 0; transform: rotate(1deg) translateY(14px); }
  1%    { opacity: 1; transform: rotate(2.5deg) translateY(0); }
  25%   { opacity: 1; transform: rotate(2.5deg) translateY(0); }
  26.5% { opacity: 0; transform: rotate(4deg) translateY(-10px); }
  100%  { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .receipt-carousel .receipt { animation: none; }
  .receipt-carousel .receipt:first-child { opacity: 1; }
}

/* receipt style variants */
.style-classic { border-bottom-left-radius: 2px; border-bottom-right-radius: 2px; }
.style-classic::after { /* torn zigzag bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 9px;
  background:
    linear-gradient(45deg, transparent 5.5px, var(--paper) 5.5px) 0 0 / 14px 9px repeat-x,
    linear-gradient(-45deg, transparent 5.5px, var(--paper) 5.5px) 7px 0 / 14px 9px repeat-x;
}
.style-modern { background: #FDFCF6; border-radius: 4px; letter-spacing: 0.01em; }
.style-modern hr { border-top: 1px solid #D8D5C8; }
.style-modern::before { display: none; }  /* no perforation: the black band is the top edge */
.style-modern .r-band {
  background: #141414; color: #fff; margin: -26px -24px 8px; padding: 12px 0;
  font-weight: 700; font-size: 12.5px; letter-spacing: 0.22em; text-align: center;
  border-radius: 4px 4px 0 0;
}
.style-modern .r-spacer { height: 6px; }
.style-ledger { background: #EEF3E2; }
.style-ledger::before { background-image: radial-gradient(circle at 7px 0px, transparent 6px, #EEF3E2 6px); }
.style-ledger .row { justify-content: flex-start; gap: 6px; }
.style-ledger .dots {
  flex: 1; border-bottom: 2px dotted #A8B58C; transform: translateY(-4px);
}
.style-ledger .v { text-align: right; }
.style-ledger .total .v { text-decoration: underline; text-underline-offset: 3px; }
.style-vintage { background: #F2E8CF; }
.style-vintage::before { background-image: radial-gradient(circle at 7px 0px, transparent 6px, #F2E8CF 6px); }
.style-vintage .dbl {
  border-top: 3px double #B9AC86; margin: 10px 0;
}
.style-vintage .stamp { left: auto; right: 20px; bottom: 132px; border-color: #8A6D3B; color: #8A6D3B; background: rgba(138, 109, 59, 0.08); }
.style-vintage .barcode {
  height: 34px; margin: 14px 8px 8px;
  background: repeating-linear-gradient(90deg,
    #3A2F18 0 2px, transparent 2px 5px, #3A2F18 5px 6px, transparent 6px 11px,
    #3A2F18 11px 14px, transparent 14px 16px, #3A2F18 16px 17px, transparent 17px 22px);
}

/* ================= reads / article pages ================= */

/* hub cards */
.reads-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }

/* hub section headers (parallel to the article-head above) */
.reads-sec { margin-top: 84px; }
.reads-sec h2 {
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.12; margin: 10px 0 14px;
}
.reads-sec h2 .gr { color: var(--lime); font-family: var(--mono); font-weight: 600; }
.reads-sec > p { font-size: 16px; color: var(--ink-2); max-width: 660px; }
.reads-sec .reads-grid { margin-top: 34px; }

/* ---------- true cost per km calculator ---------- */
.calc {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--card); padding: 34px; margin-top: 30px;
}
.calc-form { display: flex; flex-direction: column; }
.calc-row {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 11px 2px; border-bottom: 1px solid var(--line);
}
.calc-row:first-child { border-top: 1px solid var(--line); }
.calc-row label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2);
}
.calc-row input {
  width: 150px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  color: var(--ink); font-family: var(--mono); font-size: 15px; padding: 8px 10px;
  text-align: right; outline: none; flex: none;
}
.calc-row input:focus { border-color: var(--lime); }
.calc-out {
  display: flex; flex-direction: column; justify-content: center;
  border-left: 1px solid var(--line); padding-left: 44px;
}
.calc-res { padding: 16px 0; border-bottom: 1px solid var(--line); }
.calc-res:first-child { padding-top: 6px; }
.calc-res:last-child { border-bottom: none; }
.calc-big {
  font-family: var(--mono); font-size: clamp(30px, 3.6vw, 42px); font-weight: 600;
  color: var(--lime); letter-spacing: -0.03em; line-height: 1.05;
}
.calc-big.dim { color: var(--ink); }
.calc-lab {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 6px;
}
.calc-note { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-top: 14px; }
@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; gap: 26px; padding: 24px; }
  .calc-out { border-left: none; padding-left: 0; border-top: 1px solid var(--line); }
  .calc-row input { width: 130px; }
}
.read-card {
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--card); padding: 26px 24px;
  text-decoration: none; color: var(--ink);
  transition: transform 0.15s, border-color 0.15s;
}
.read-card:hover { transform: translateY(-3px); border-color: var(--lime); }
.read-card .rc-kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: var(--lime); text-transform: uppercase; }
.read-card h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.read-card p { font-size: 14px; color: var(--ink-2); flex: 1; }
.read-card .rc-meta { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

/* article layout */
.article { max-width: 1120px; padding: 56px 0 30px; }
/* page frames are full-width like the homepage; body text keeps a
   readable measure (~75-90 chars/line) instead of stretching to 1120px */
.article .prose { max-width: 800px; }
.article-head { border-bottom: 1px solid var(--line); padding-bottom: 26px; margin-bottom: 34px; }
.article-head h1 {
  font-size: clamp(30px, 4.4vw, 44px); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.08; margin: 10px 0 16px;
}
.article-head h1 .gr { color: var(--lime); font-family: var(--mono); font-weight: 600; }
.article-head .lede { font-size: 17.5px; color: var(--ink-2); max-width: 640px; }
.article-head .meta { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 18px; }
.prose h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 44px 0 14px; }
.prose h2 .gr { color: var(--lime); }
.prose p { font-size: 16px; color: var(--ink-2); margin: 0 0 16px; }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose ul { margin: 0 0 16px 22px; }
.prose li { font-size: 15.5px; color: var(--ink-2); margin-bottom: 8px; }
.prose a { color: var(--lime); }

/* comparison table */
.cmp-wrap { overflow-x: auto; margin: 26px 0 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.cmp th, .cmp td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); border-bottom: 2px solid var(--line);
}
.cmp thead th:last-child { color: var(--lime); }
.cmp tbody tr:last-child td { border-bottom: none; }
.cmp td:first-child { color: var(--ink); font-weight: 500; }
.cmp td { color: var(--ink-2); }
.cmp td:last-child { color: var(--ink); background: rgba(168, 207, 107, 0.06); font-weight: 500; }
.cmp-note { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); margin-bottom: 8px; }

/* CTA band at the end of articles */
.share-band {
  margin: 54px 0 10px; border: 1px solid var(--line); border-radius: 18px;
  background:
    radial-gradient(500px 200px at 90% 0%, rgba(168, 207, 107, 0.1), transparent 65%),
    var(--card);
  padding: 36px 34px; text-align: center;
}
.share-band h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.share-band h2 .gr { color: var(--lime); }
.share-band p { color: var(--ink-2); margin-bottom: 24px; }
.share-band .btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- phone demo (2-tap fill-up animation) ---------- */
.demo-row { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin: 40px 0; }
.demo-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--lime); text-transform: uppercase; margin-bottom: 12px; }
.phone {
  width: 250px; margin: 0 auto; border-radius: 30px; border: 1.5px solid var(--line);
  background: var(--bg); padding: 30px 20px 22px; position: relative;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}
.phone::before { content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 70px; height: 6px; border-radius: 4px; background: var(--line); }
.ph-head { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; color: var(--ink-3); text-align: center; margin-bottom: 18px; }
.ph-row {
  display: flex; justify-content: space-between; align-items: baseline;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  padding: 11px 14px; margin-bottom: 10px; opacity: 0;
  font-family: var(--mono); font-size: 12px;
}
.ph-row span { color: var(--ink-3); letter-spacing: 0.08em; }
.ph-row b { color: var(--ink); font-size: 14px; font-weight: 600; }
.ph-save {
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: 0.18em;
  text-align: center; background: var(--lime); color: #1B260E;
  border-radius: 10px; padding: 12px 0; margin-top: 4px; opacity: 0;
}
.ph-result {
  margin-top: 12px; border: 1.5px dashed var(--lime); border-radius: 12px;
  padding: 12px 14px; opacity: 0;
}
.ph-result div { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; }
.ph-result div + div { margin-top: 6px; }
.ph-result span { color: var(--ink-3); letter-spacing: 0.08em; }
.ph-result b { color: var(--lime); font-weight: 600; }

/* one 8s loop; each element pops in, holds, and the loop resets */
.ph-row:nth-child(1) { animation: phA 8s infinite; }
.ph-row:nth-child(2) { animation: phB 8s infinite; }
.ph-row:nth-child(3) { animation: phC 8s infinite; }
.ph-save { animation: phD 8s infinite; }
.ph-result { animation: phE 8s infinite; }
@keyframes phA { 0% {opacity:0; transform: translateY(8px);} 4% {opacity:1; transform:none;} 88% {opacity:1;} 96% {opacity:0;} 100% {opacity:0;} }
@keyframes phB { 0%,10% {opacity:0; transform: translateY(8px);} 14% {opacity:1; transform:none;} 88% {opacity:1;} 96% {opacity:0;} 100% {opacity:0;} }
@keyframes phC { 0%,20% {opacity:0; transform: translateY(8px);} 24% {opacity:1; transform:none;} 88% {opacity:1;} 96% {opacity:0;} 100% {opacity:0;} }
@keyframes phD { 0%,30% {opacity:0;} 34% {opacity:1;} 38% {transform: scale(0.96);} 42% {transform:none;} 88% {opacity:1;} 96% {opacity:0;} 100% {opacity:0;} }
@keyframes phE { 0%,44% {opacity:0; transform: translateY(10px);} 50% {opacity:1; transform:none;} 88% {opacity:1;} 96% {opacity:0;} 100% {opacity:0;} }

/* ---------- import demo ---------- */
.imp { width: 320px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 24px 22px; }
.imp-file {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink);
  border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px;
}
.imp-file .ext { color: var(--lime); font-size: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 2px 6px; letter-spacing: 0.1em; }
.imp-bar { height: 8px; border-radius: 6px; background: var(--bg); overflow: hidden; }
.imp-bar i { display: block; height: 100%; width: 0; background: var(--lime); border-radius: 6px; animation: impbar 7s infinite; }
@keyframes impbar { 0% {width:0;} 6% {width:8%;} 26% {width:100%;} 88% {width:100%;} 96% {width:0;} 100% {width:0;} }
.imp-done {
  margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--lime);
  letter-spacing: 0.06em; opacity: 0; animation: impdone 7s infinite;
}
@keyframes impdone { 0%,28% {opacity:0;} 34% {opacity:1;} 88% {opacity:1;} 96% {opacity:0;} 100% {opacity:0;} }
.imp .r-zero { color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  .ph-row, .ph-save, .ph-result, .imp-bar i, .imp-done { animation: none; opacity: 1; }
  .imp-bar i { width: 100%; }
}

/* ---------- video slots ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 30px 0; }
.video-slot {
  aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card); margin: 0;
}
.video-slot iframe { width: 100%; height: 100%; border: 0; display: block; }
.vs-empty {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.vs-empty span { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.12em; text-transform: uppercase; }
.vs-play {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1.5px solid var(--lime); color: var(--lime);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; padding-left: 4px; margin-bottom: 4px;
}

@media (max-width: 900px) {
  .reads-grid { grid-template-columns: 1fr; }
  .demo-row { grid-template-columns: 1fr; gap: 28px; }
  .video-grid { grid-template-columns: 1fr; }
}

/* True end of file — wins over the .article (513) and .legal (310) padding shorthands. */
.article, .legal { padding-left: 24px; padding-right: 24px; }
