/* pricing.css — TASK_79 pricing v2 (Precision). Visual spec: Pricing v2.dc.html.
   Public marketing surface — warm-paper palette, Geist. Tokens only, no raw hex
   below :root. */

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

:root {
  --bg: #F7F5F0;
  --card: #ffffff;
  --border: #e8e8e5;
  --border-soft: #f0f0ee;
  --seg-track: #efede7;
  --ink: #1a1a18;
  --body: #3a3a37;
  --muted: #6b6b67;
  --faint: #9a9a96;
  --tick-off: #c9c9c4;
  --brand: #1B4F72;
  --brand-dark: #163f5b;
  --brand-wash: rgba(27, 79, 114, .04);
  --green: #1F8A5B;
  --green-wash: rgba(31, 138, 91, .12);
  --strap: #7E8FA1;
  --low-amber: #b45309;
  --low-red: #b91c1c;
  --low-wash: rgba(180, 83, 9, .08);
  --shadow-seg: 0 1px 2px rgba(0, 0, 0, .08);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 13px; border-radius: 5px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card);
  font: 500 11.5px/1 'Geist', sans-serif; color: var(--body);
  transition: filter 80ms ease-out, background 120ms ease-out;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { text-decoration: none; background: var(--brand-wash); color: var(--body); }
.btn-outline--brand { border-color: var(--brand); background: var(--brand-wash); color: var(--brand); font-weight: 600; }
.btn-outline--brand:hover { color: var(--brand-dark); }
.btn:focus-visible, .seg-btn:focus-visible, .faq-q:focus-visible, .trial-strip__cta:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}

/* ── Topbar ── */
.topbar {
  height: 56px; background: var(--card); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 28px; gap: 18px;
}
.topbar-spacer { flex: 1; }
.nav-link { font: 500 12px/1 'Geist', sans-serif; color: var(--muted); }
.nav-link--current { font-weight: 600; color: var(--ink); }

/* Canonical Senshin lockup (light theme) */
.ss-lockup { display: inline-flex; align-items: center; }
.ss-lockup:hover { text-decoration: none; }
.ss-lockup--topbar { gap: 10px; }
.ss-lockup__mark { flex-shrink: 0; display: block; }
.ss-lockup__text { display: flex; flex-direction: column; align-items: stretch; line-height: 1; }
.ss-lockup__word { font: 700 15px/1 'Geist', sans-serif; color: var(--brand); letter-spacing: -.015em; }
.ss-lockup__strap {
  font: 600 6px/1 'Geist', sans-serif; color: var(--strap); text-transform: uppercase;
  letter-spacing: .14em; display: flex; justify-content: space-between;
  align-items: baseline; white-space: nowrap; width: 100%; margin-top: 3px;
}
.ss-lockup__strap-dot { opacity: .6; }

/* ── Layout ── */
.wrap { width: 1060px; max-width: 96%; margin: 0 auto; padding: 52px 0 70px; }

/* ── Hero ── */
.hero { text-align: center; margin-bottom: 14px; }
.hero h1 { font: 800 34px/1.2 'Geist', sans-serif; letter-spacing: -.02em; margin-bottom: 10px; }
.hero-sub { font: 400 14px/1.6 'Geist', sans-serif; color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ── Meter row: pill + segmented toggle + VAT note ── */
.meter-row {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin-bottom: 36px; flex-wrap: wrap;
}
.pill {
  display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 13px;
  border-radius: 15px; background: var(--card); border: 1px solid var(--border);
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.pill-label { font: 600 11px/1 'Geist', sans-serif; color: var(--ink); }
.pill-count { color: var(--brand); font-weight: 700; }
.pill-count .tick { display: inline-block; }
/* Low-stock (≤10 left): amber-red emphasis. Static — no urgency animation. */
.pill--low { border-color: var(--low-amber); background: var(--low-wash); }
.pill--low .pill-dot { background: var(--low-red); }
.pill--low .pill-count { color: var(--low-red); }
/* Brief count tick when the live number drops */
@keyframes spot-tick { 0% { transform: translateY(-4px); opacity: .2; } 100% { transform: translateY(0); opacity: 1; } }
.pill-count .tick { animation: spot-tick 160ms ease-out; }

.seg { display: flex; gap: 2px; background: var(--seg-track); border-radius: 6px; padding: 2px; }
.seg-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 12px;
  border: none; border-radius: 5px; background: transparent; cursor: pointer;
  font: 600 11px/1 'Geist', sans-serif; color: var(--muted);
}
.seg-btn--on { background: var(--card); color: var(--brand); box-shadow: var(--shadow-seg); }
.chip-free {
  display: inline-flex; align-items: center; height: 15px; padding: 0 6px;
  border-radius: 8px; background: var(--green-wash); color: var(--green);
  font: 700 8.5px/1 'Geist', sans-serif;
}
.vat-note { font: 400 10px/1 'Geist', sans-serif; color: var(--faint); }

/* ── Trial strip (path in — not a plan card) ── */
.trial-strip {
  max-width: 640px; margin: 0 auto 28px; padding: 18px 22px 20px;
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  text-align: center;
}
.trial-strip__title {
  font: 700 13px/1.3 'Geist', sans-serif; color: var(--ink); letter-spacing: -.01em;
  margin-bottom: 8px;
}
.trial-strip__body {
  font: 400 12px/1.6 'Geist', sans-serif; color: var(--muted);
  margin: 0 auto 14px; max-width: 520px;
}
.trial-strip__cta { max-width: 280px; margin: 0 auto; }
.btn-card--brand { border-color: var(--brand); color: var(--brand); background: var(--brand-wash); font-weight: 600; }
.btn-card--brand:hover { color: var(--brand-dark); border-color: var(--brand); }

/* ── Paid cards ── */
.cards {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
  margin-bottom: 14px; align-items: stretch;
}
.cards--two { grid-template-columns: 1fr 1fr; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px;
  padding: 22px 24px; position: relative; display: flex; flex-direction: column;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}
.card:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.card-badge {
  position: absolute; top: -9px; left: 22px; display: inline-flex; align-items: center;
  height: 18px; padding: 0 9px; border-radius: 9px; background: var(--brand);
  color: var(--card); font: 700 8.5px/1 'Geist', sans-serif; letter-spacing: .08em;
}
.plan-kicker {
  font: 600 10px/1 'Geist', sans-serif; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 10px;
}
.price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; min-height: 32px; }
.price { font: 800 32px/1 'Geist', sans-serif; letter-spacing: -.02em; }
.price--contact { font-size: 32px; }
.price-per { font: 500 11px/1 'Geist', sans-serif; color: var(--faint); }
/* min-height (≈2 lines) keeps every description the same height so the CTA
   buttons line up across cards. Previously `flex:1` let the shorter card's
   description stretch to fill the row, shoving its button downward. Any spare
   card height now collects harmlessly below the feature list, not above the button. */
.card-desc { font: 400 11px/1.55 'Geist', sans-serif; color: var(--muted); margin-bottom: 16px; min-height: 34px; }
.btn-card {
  height: 32px; border-radius: 6px; width: 100%; margin-bottom: 16px;
  font: 600 12px/1 'Geist', sans-serif;
}
.btn-card--primary { background: var(--brand); border: none; color: var(--card); }
.btn-card--primary:hover { filter: brightness(1.08); background: var(--brand); color: var(--card); }
.btn-card--outline { background: var(--card); border: 1px solid var(--border); color: var(--body); }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.ticks li {
  font: 400 11px/1.5 'Geist', sans-serif; color: var(--body);
  display: flex; gap: 8px;
}
.ticks li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── WHY ── */
.why { margin: 56px auto 0; text-align: center; max-width: 660px; }
.why h2 { font: 800 24px/1.35 'Geist', sans-serif; letter-spacing: -.015em; margin-bottom: 14px; }
.why p { font: 400 13px/1.7 'Geist', sans-serif; color: var(--muted); max-width: 600px; margin: 0 auto; }
.why strong { font-weight: 600; color: var(--green); }

/* ── Comparison table ── */
.cmp { margin: 44px 0; }
.cmp h2 { font: 700 18px/1.3 'Geist', sans-serif; letter-spacing: -.01em; margin-bottom: 6px; }
.cmp-intro { font: 400 12px/1.6 'Geist', sans-serif; color: var(--muted); margin-bottom: 14px; }
.cmp-scroll { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: 9px; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp-table thead th {
  padding: 9px 18px; background: var(--bg); border-bottom: 1px solid var(--border);
  font: 600 9px/1 'Geist', sans-serif; color: var(--faint); letter-spacing: .08em;
  text-transform: uppercase; text-align: center;
}
.cmp-table thead th:first-child { text-align: left; width: 36%; }
.cmp-table td { padding: 9px 18px; border-bottom: 1px solid var(--border-soft); text-align: center; }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table td:first-child { font: 500 11px/1.4 'Geist', sans-serif; color: var(--body); text-align: left; }
.c-tick { font: 700 10.5px/1 'Geist', sans-serif; color: var(--green); }
.c-dash { font: 500 10.5px/1 'Geist', sans-serif; color: var(--tick-off); }
.c-txt { font: 500 10.5px/1 'Geist', sans-serif; color: var(--body); }

/* ── FAQ ── */
.faq { max-width: 640px; margin: 0 auto; }
.faq h2 { font: 700 18px/1.3 'Geist', sans-serif; letter-spacing: -.01em; margin-bottom: 14px; text-align: center; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 8px; }
.faq-item h3 { margin: 0; }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 18px;
  background: transparent; border: none; cursor: pointer; text-align: left;
  font: 600 12px/1.4 'Geist', sans-serif; color: var(--ink); border-radius: 8px;
}
.faq-q .faq-sym { margin-left: auto; font: 500 14px/1 'Geist', sans-serif; color: var(--faint); }
.faq-a { font: 400 11.5px/1.7 'Geist', sans-serif; color: var(--muted); padding: 0 38px 13px 18px; }

/* ── Footer ── */
.foot {
  border-top: 1px solid var(--border); background: var(--card); padding: 22px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.foot-lockup { opacity: .8; }
.foot-links { font: 400 10px/1 'Geist', sans-serif; color: var(--faint); }
.foot-links a { color: var(--faint); text-decoration: underline; text-underline-offset: 2px; }
.foot-links a:hover { color: var(--brand); }

/* ── Tablet (≤900px): cards stack, free strip stacks ── */
@media (max-width: 900px) {
  .cards, .cards--two { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
}

/* ── Mobile (≤640px) ── */
@media (max-width: 640px) {
  .topbar { padding: 0 16px; gap: 12px; }
  .wrap { padding: 36px 0 48px; }
  .hero h1 { font-size: 26px; }
}

/* ── Narrow phones (≤400px): keep the whole topbar, incl. Sign in, on screen (POCKET-008) ── */
@media (max-width: 400px) {
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar .btn { padding-left: 10px; padding-right: 10px; }
  .ss-lockup--topbar { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill-count .tick { animation: none; }
  .card, .btn { transition: none; }
}

/* TASK_83 — subscribe-first: trial as a quiet text link under each CTA */
.card-trial-link { text-align: center; margin: 8px 0 14px; }
.card-trial-link a { font: 600 11px/1 'Geist', sans-serif; color: var(--brand); text-decoration: none; }
.card-trial-link a:hover { text-decoration: underline; }
.checkout-msg { text-align: center; font: 500 13px/1.5 'Geist', sans-serif; color: var(--brand); margin: 4px auto 8px; max-width: 520px; padding: 0 16px; }

/* POCKET-015: a link inside running text needs a cue other than colour */
.cmp-intro a{text-decoration:underline;text-underline-offset:2px}
