/* ============================================
   DODO AEGIES — Pricing page
   ============================================ */

/* ===== Hero ===== */
.pricing-hero {
  position: relative;
  padding: 64px 0 8px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 460px at 50% -8%, rgba(47,99,245,.10), transparent 62%),
    linear-gradient(180deg, #fff 0%, #f7f9fd 100%);
}
.pricing-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11,16,36,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,16,36,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
  pointer-events: none;
}
.pricing-hero .container { position: relative; }
.pricing-hero h1 { margin-top: 14px; font-size: clamp(34px, 4.6vw, 56px); }
.pricing-hero .lede { margin: 18px auto 0; text-align: center; }

/* ===== Billing toggle ===== */
.billing-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.billing-toggle {
  display: inline-flex;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.billing-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: 500 14px/1 var(--font-sans);
  color: var(--slate-2);
  padding: 10px 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, color .15s;
}
.billing-toggle button.on {
  background: var(--panel);
  color: #fff;
}
.billing-toggle button .save {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(22,163,74,.14);
  color: var(--ok);
}
.billing-toggle button.on .save { background: rgba(34,197,94,.22); color: #6ee7a0; }
.billing-note {
  font-size: 13px;
  color: var(--slate-3);
  font-family: var(--font-mono);
  letter-spacing: .02em;
}

/* ===== Product selector ===== */
.product-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.7);
  backdrop-filter: saturate(160%) blur(10px);
  position: sticky;
  top: var(--nav-h);
  z-index: 30;
}
.product-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}
.product-tabs::-webkit-scrollbar { display: none; }
.product-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--slate-2);
  font: 500 13.5px/1 var(--font-sans);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
}
.product-tab svg { width: 17px; height: 17px; color: var(--slate-3); transition: color .15s; }
.product-tab:hover { border-color: var(--brand-300); color: var(--ink); }
.product-tab.on {
  border-color: var(--brand-500);
  background: var(--brand-50);
  color: var(--brand-700);
  box-shadow: 0 0 0 1px var(--brand-500) inset;
}
.product-tab.on svg { color: var(--brand-600); }

/* ===== Selected product header ===== */
.prod-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 56px 0 8px;
}
.prod-head .ic {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--brand-50);
  color: var(--brand-600);
}
.prod-head .ic svg { width: 24px; height: 24px; }
.prod-head h2 { font-size: 28px; }
.prod-head p { color: var(--slate-2); margin-top: 4px; font-size: 15px; }

/* ===== Plan grid ===== */
.plan-grid {
  margin-top: 32px;
  display: grid;
  gap: 20px;
  align-items: stretch;
}
.plan-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 760px; }
.plan-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0,1fr)); }
.plan-grid[data-count="4"] { grid-template-columns: repeat(4, minmax(0,1fr)); }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 24px;
}
.plan.featured {
  border-color: var(--brand-500);
  background: linear-gradient(180deg, #fff, #f5f8ff);
  box-shadow: var(--shadow-md);
}
.plan .ribbon {
  position: absolute; top: -11px; left: 24px;
  background: var(--brand-500); color: #fff;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  box-shadow: 0 6px 14px -4px rgba(47,99,245,.55);
}
.plan .tier {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--brand-600);
}
.plan h3 { font-size: 22px; margin-top: 6px; }
.plan .price { margin: 18px 0 4px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.plan .price .amt { font-size: 40px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.plan .price .amt.sm { font-size: 26px; }
.plan .price .unit { font-size: 13.5px; color: var(--slate-3); }
.plan .billed { font-size: 12.5px; color: var(--slate-3); min-height: 18px; }
.plan .billed s { color: var(--slate-4); }
.plan .desc { color: var(--slate-2); font-size: 13.5px; margin: 16px 0 18px; min-height: 38px; line-height: 1.5; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 11px; font-size: 13.5px; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; color: var(--slate-1); }
.plan ul li svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 3px; color: var(--brand-500); }
.plan ul li.muted { color: var(--slate-4); }
.plan ul li.muted svg { color: var(--slate-4); }
.plan .btn { margin-top: auto; justify-content: center; width: 100%; }

/* ===== Comparison table ===== */
.compare-wrap { margin-top: 96px; }
.compare-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.compare-head h2 { font-size: clamp(26px,3vw,38px); }
.compare-head p { color: var(--slate-2); margin-top: 14px; font-size: 16px; }

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.compare thead th {
  position: sticky;
  top: calc(var(--nav-h) + 58px);
  z-index: 20;
  background: var(--card);
  text-align: center;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: bottom;
}
.compare thead th:first-child { text-align: left; }
.compare thead .pname { font-size: 17px; font-weight: 600; color: var(--ink); }
.compare thead .pprice { font-family: var(--font-mono); font-size: 12px; color: var(--slate-3); margin-top: 4px; font-weight: 400; }
.compare thead th.hi { background: var(--brand-50); }
.compare thead th.hi .pname { color: var(--brand-700); }
.compare thead .pcta { margin-top: 12px; }

.compare .cat td {
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--slate-2);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.compare tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-2);
  text-align: center;
  color: var(--slate-1);
}
.compare tbody td:first-child { text-align: left; color: var(--slate-2); font-weight: 500; }
.compare tbody td.hi { background: rgba(47,99,245,.035); }
.compare tbody tr:hover td { background: var(--surface); }
.compare tbody tr:hover td.hi { background: rgba(47,99,245,.06); }
.compare .yes svg { width: 17px; height: 17px; color: var(--brand-500); }
.compare .no { color: var(--slate-4); }
.compare .val { font-size: 13px; }
.compare-foot {
  display: flex; gap: 12px; justify-content: center;
  margin-top: 28px;
}

.compare-scroll { overflow-x: auto; }
@media (max-width: 900px) {
  .compare { min-width: 720px; }
}

/* ===== FAQ ===== */
.faq-wrap { margin-top: 96px; }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 48px;
  margin-top: 40px;
}
.faq-item { padding: 4px 0 20px; border-bottom: 1px solid var(--line); }
.faq-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.faq-item p { color: var(--slate-2); font-size: 14px; line-height: 1.6; }

/* ===== Final CTA ===== */
.pricing-cta {
  margin: 96px 0 0;
  background: var(--panel);
  border-radius: var(--r-xl);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pricing-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 300px at 50% -20%, rgba(47,99,245,.45), transparent 60%);
  pointer-events: none;
}
.pricing-cta h2 { color: #fff; position: relative; font-size: clamp(26px,3vw,38px); }
.pricing-cta p { color: #aeb4c5; position: relative; margin: 14px auto 0; max-width: 52ch; }
.pricing-cta .ctas { position: relative; margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .plan-grid[data-count="3"],
  .plan-grid[data-count="4"] { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .plan-grid[data-count="2"],
  .plan-grid[data-count="3"],
  .plan-grid[data-count="4"] { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .pricing-cta { padding: 44px 22px; }
}

/* ============================================
   Plans v2 (2026-10): cards toggles, calculator, coins
   ============================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.hero-calc-link { margin-top: 18px; font-size: 15px; }
.hero-calc-link a { color: var(--brand-600); font-weight: 500; text-decoration: none; }
.hero-calc-link a:hover { text-decoration: underline; }
.plans-section { padding: 28px 0 8px; }
.plans-section .billing-bar { margin: 0 0 28px; }
.pricing-note {
  text-align: center; margin-top: 24px; font-size: 13px;
  font-family: var(--font-mono); color: var(--slate-3);
}

/* ----- Savings calculator ----- */
.calc-section { padding-top: 72px; }
.calc {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 24px;
  align-items: start;
}
.calc-form, .calc-result {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.calc-form h3 { font-size: 18px; margin-bottom: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--slate-1); margin-bottom: 8px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; align-items: center; }
.field-row input[type="range"] { width: 100%; accent-color: var(--brand-500); }
.calc input[type="number"] {
  width: 100%;
  font: 500 14px/1 var(--font-mono);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 9px 10px;
}
.calc input[type="number"]:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 1px; }
.calc-toggles { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.calc-toggles .billing-toggle button { padding: 8px 16px; }
.calc-advanced summary, .calc-how summary {
  cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--brand-600);
}
.adv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.adv-grid label { font-size: 12.5px; color: var(--slate-2); display: grid; gap: 6px; }

.calc-headline { display: grid; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.calc-headline .lbl, .calc-plan .lbl, .bars-title {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--slate-3);
}
.calc-headline .big {
  font-size: clamp(44px, 6vw, 64px); font-weight: 600; letter-spacing: -.04em; line-height: 1;
  color: var(--ok);
}
.calc-headline .sub { font-size: 16px; color: var(--slate-1); }
.calc-plan { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.calc-plan .lbl { flex-basis: 100%; }
.calc-plan strong { font-size: 18px; }
.calc-plan .note { flex-basis: 100%; font-size: 13px; color: var(--slate-2); }
.mono { font-family: var(--font-mono); }

.bars { display: grid; gap: 10px; padding: 18px 0; }
.bar-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 13.5px; }
.bar-name { color: var(--slate-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 12px; background: var(--surface); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--slate-4); transition: width .25s ease; }
.bar-row.dodo .bar-fill { background: var(--brand-500); }
.bar-row.dodo .bar-name, .bar-row.dodo .bar-val { color: var(--brand-600); font-weight: 600; }
.bar-val { font-family: var(--font-mono); font-size: 12.5px; color: var(--slate-1); white-space: nowrap; }

.calc-savings { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; font-size: 13.5px; }
.calc-savings li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--slate-2); }
.calc-savings strong { color: var(--ink); font-weight: 600; }
.calc-how { margin-bottom: 18px; }
.how-block { margin-top: 14px; }
.how-head { display: flex; justify-content: space-between; font-weight: 600; font-size: 13.5px; }
.how-block ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 4px; }
.how-block li { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--slate-2); }
.how-sources { margin-top: 14px; font-size: 12px; color: var(--slate-3); }
.how-sources a { color: var(--brand-600); }
.calc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.calc-disclaimer { margin-top: 14px; font-size: 12px; line-height: 1.5; color: var(--slate-3); }

/* ----- Coins ----- */
.coins-section { padding-top: 88px; }
.coins-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.coins-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.coins-card h4 { font-size: 16px; margin-bottom: 14px; }
.coins-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 13.5px; }
.coins-list li { display: flex; justify-content: space-between; gap: 12px; color: var(--slate-2); border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.coins-list strong { color: var(--ink); font-weight: 600; text-align: right; }
.packs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pack {
  display: grid; gap: 4px; padding: 16px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); text-align: center;
}
.pack-coins { font-family: var(--font-mono); font-size: 12px; color: var(--slate-3); }
.pack-price { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.pack-alt { font-size: 12px; color: var(--slate-3); }
.coins-note { margin-top: 16px; font-size: 13.5px; line-height: 1.55; color: var(--slate-2); }

@media (max-width: 900px) {
  .calc { grid-template-columns: 1fr; }
  .coins-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .calc-form, .calc-result, .coins-card { padding: 20px; }
  .bar-row { grid-template-columns: 80px minmax(0, 1fr) auto; gap: 8px; }
  .packs { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: 1fr; }
  .plans-section .billing-bar { flex-direction: column; }
}

/* The comparison table lives in an overflow-x scroller, which makes it the
   sticky containing block: the old `top: nav-h + 58px` then pushed the
   header down over the first rows. Keep the header in normal flow. */
.compare-scroll .compare thead th { position: static; }
.compare-scroll { -webkit-overflow-scrolling: touch; }
