/* ─────────────────────────────────────────────────────────────────────────
   Digital Tap AI — janitor design system
   Navy ink, mint accent, serif display. The meter never stops.
   ───────────────────────────────────────────────────────────────────────── */
:root {
  --navy: #15263E;
  --dark: #0F1B2D;
  --mint: #2BD0A6;
  --mint-deep: #159E86;
  --mint-wash: #E4F7F1;
  --light: #F2F5F8;
  --ink: #1E2D3F;
  --slate: #52627A;
  --dim: #7E8DA2;
  --bord: #DDE4EC;
  --white: #FFFFFF;
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 14px;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--light);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mint-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── Type ── */
h1, h2, h3, .display { font-family: var(--display); color: var(--navy); font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.15; }
h3 { font-size: 1.15rem; line-height: 1.3; }
.eyebrow {
  font-family: var(--body); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--mint-deep);
  display: block; margin-bottom: 12px;
}
.lede { font-size: 1.15rem; color: var(--slate); max-width: 620px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242, 245, 248, 0.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--bord);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 1.1rem; color: var(--navy); }
.brand img { height: 26px; }
.brand .ai { color: var(--mint-deep); }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--slate); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--navy); text-decoration: none; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ── Buttons ── */
.btn {
  display: inline-block; font-weight: 700; font-size: 0.98rem;
  padding: 13px 24px; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-mint { background: var(--mint); color: var(--dark); }
.btn-mint:hover { box-shadow: 0 6px 18px rgba(43, 208, 166, 0.35); }
.btn-ghost { border-color: var(--bord); color: var(--navy); background: var(--white); }
.btn-ghost:hover { border-color: var(--mint); }
.btn-lg { padding: 16px 30px; font-size: 1.05rem; }
.on-dark .btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }

/* ── Sections ── */
.section { padding: 88px 0; }
.section-dark { background: var(--dark); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #B9C6D6; }
.section-white { background: var(--white); border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.center { text-align: center; }
.center .section-head { margin-left: auto; margin-right: auto; }

/* ── Hero ── */
.hero { padding: 84px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero .lede { margin: 22px 0 30px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 0.88rem; color: var(--dim); }
.tick {
  margin-top: 34px; font-size: 0.88rem; color: var(--slate);
  display: flex; align-items: baseline; gap: 8px;
}
.tick .num { color: var(--mint-deep); font-weight: 700; font-size: 1.05rem; }

/* ── Meter (signature) ── */
.meter {
  background: var(--navy); border-radius: var(--radius);
  padding: 30px 30px 26px; color: var(--white);
  box-shadow: 0 24px 60px rgba(15, 27, 45, 0.35);
}
.meter-label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9DB0C6; font-weight: 700; }
.meter-spend { font-family: var(--mono); font-size: 2.1rem; font-weight: 700; margin: 6px 0 4px; }
.meter input[type="range"] {
  width: 100%; margin: 14px 0 22px; accent-color: var(--mint); height: 6px; cursor: pointer;
}
.meter-rows { display: grid; gap: 0; }
.meter-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.12);
}
.meter-row .k { color: #9DB0C6; font-size: 0.92rem; }
.meter-row .v { font-family: var(--mono); font-weight: 700; font-size: 1.25rem; }
.v-waste { color: #FF9E9E; }
.v-keep { color: var(--mint); font-size: 1.55rem !important; }
.v-fee { color: #CFE0EC; }
.meter-fine { margin-top: 16px; font-size: 0.78rem; color: #7E8DA2; line-height: 1.5; }
.meter .btn { width: 100%; text-align: center; margin-top: 18px; }

/* ── Proof strip ── */
.proof { padding: 26px 0; background: var(--white); border-top: 1px solid var(--bord); border-bottom: 1px solid var(--bord); }
.proof .wrap { display: flex; gap: 14px 34px; align-items: center; flex-wrap: wrap; justify-content: center; }
.proof span { color: var(--dim); font-size: 0.9rem; }
.proof strong { color: var(--navy); }

/* ── Cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--bord); border-radius: var(--radius);
  padding: 26px; position: relative;
}
.card.accent { border-top: 4px solid var(--mint); }
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--slate); font-size: 0.95rem; }
.card .glyph {
  width: 40px; height: 40px; border-radius: 50%; background: var(--mint);
  display: flex; align-items: center; justify-content: center;
  color: var(--dark); font-weight: 800; font-size: 1.05rem;
}
.section-dark .card { background: #16304C; border-color: #24405F; }
.section-dark .card p { color: #B9C6D6; }

/* ── Contrast (tell vs fix) ── */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 800px) { .contrast { grid-template-columns: 1fr; } }
.contrast .pane { border-radius: var(--radius); padding: 34px; }
.pane-them { background: var(--white); border: 1px solid var(--bord); }
.pane-them h3 { color: var(--dim); }
.pane-us { background: var(--navy); }
.pane-us h3, .pane-us li { color: var(--white); }
.pane ul { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.pane li { padding-left: 28px; position: relative; color: var(--slate); font-size: 0.97rem; }
.pane-them li::before { content: "—"; position: absolute; left: 0; color: var(--dim); }
.pane-us li::before { content: "✓"; position: absolute; left: 0; color: var(--mint); font-weight: 800; }
.pane-us li { color: #D7E1EC; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--white); border: 1px solid var(--bord); border-radius: var(--radius); padding: 28px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--mono); font-weight: 700; color: var(--mint-deep);
  font-size: 0.9rem; letter-spacing: 0.08em;
}
.step h3 { margin: 10px 0 8px; }
.step p { color: var(--slate); font-size: 0.95rem; }

/* ── Platform chips ── */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  background: var(--white); border: 1px solid var(--bord); color: var(--ink);
}
.chip.live { background: var(--mint); border-color: var(--mint); color: var(--dark); }
.chip .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--dark); margin-right: 7px; vertical-align: 1px; }
.chips-note { margin-top: 14px; font-size: 0.85rem; color: var(--dim); }

/* ── Code block ── */
.code {
  background: var(--dark); color: #D7E1EC; border-radius: var(--radius);
  padding: 22px 24px; font-family: var(--mono); font-size: 0.83rem; line-height: 1.65;
  overflow-x: auto; white-space: pre;
}
.code .c { color: #5B7290; } .code .k { color: var(--mint); } .code .s { color: #A5D6FF; }

/* ── Pricing ── */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  background: var(--white); border: 1px solid var(--bord); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
}
.tier.featured { border: 2px solid var(--mint); box-shadow: 0 16px 44px rgba(43, 208, 166, 0.18); position: relative; }
.tier .flag {
  position: absolute; top: -13px; left: 28px; background: var(--mint); color: var(--dark);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px;
}
.tier h3 { font-size: 1.3rem; }
.tier .price { font-family: var(--display); font-size: 2.3rem; color: var(--navy); margin: 14px 0 2px; font-weight: 600; }
.tier .price small { font-size: 0.95rem; color: var(--slate); font-family: var(--body); font-weight: 500; }
.tier .sub { color: var(--slate); font-size: 0.92rem; min-height: 44px; }
.tier ul { list-style: none; margin: 22px 0 26px; display: grid; gap: 11px; flex: 1; }
.tier li { padding-left: 26px; position: relative; font-size: 0.94rem; color: var(--ink); }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--mint-deep); font-weight: 800; }
.tier li.dim { color: var(--dim); } .tier li.dim::before { content: "—"; color: var(--bord); }
.guarantee {
  margin-top: 30px; padding: 22px 26px; border-radius: var(--radius);
  background: var(--mint-wash); border: 1px solid #BFE9DC; color: var(--ink);
  display: flex; gap: 14px; align-items: flex-start; font-size: 0.97rem;
}
.guarantee strong { color: var(--mint-deep); }

/* ── FAQ ── */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--bord); padding: 20px 0; }
.faq summary { font-weight: 600; color: var(--navy); cursor: pointer; font-size: 1.02rem; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--mint-deep); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 12px; color: var(--slate); font-size: 0.97rem; }

/* ── CTA band ── */
.cta-band { background: var(--navy); border-radius: var(--radius); padding: 56px 48px; text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #B9C6D6; margin: 14px auto 28px; max-width: 540px; }

/* ── Footer ── */
.footer { background: var(--dark); color: #9DB0C6; padding: 56px 0 40px; margin-top: 88px; }
.footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: #9DB0C6; display: block; margin-bottom: 9px; font-size: 0.92rem; }
.footer a:hover { color: var(--mint); text-decoration: none; }
.footer .legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid #24405F; font-size: 0.82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ── Reveal on scroll ── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ── Plan comparison table (pricing) ── */
.compare { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--bord); border-radius: var(--radius); overflow: hidden; font-size: 0.92rem; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--bord); text-align: center; }
.compare td:first-child { text-align: left; color: var(--slate); }
.compare thead th { background: var(--navy); color: var(--white); font-family: var(--display); font-weight: 600; font-size: 1rem; }
.compare thead .cmp-price { display: block; font-family: var(--mono); font-size: 0.72rem; font-weight: 500; color: #9DE3D0; margin-top: 4px; letter-spacing: 0; }
.compare .cmp-feat { background: var(--mint-wash); font-weight: 600; color: var(--mint-deep); }
.compare thead .cmp-feat { background: var(--mint-deep); color: var(--white); }
.compare tbody tr:last-child td { border-bottom: none; }
@media (max-width: 720px) { .compare th, .compare td { padding: 10px 10px; font-size: 0.82rem; } }
