/* /pricing (web/pricing.html), on top of app.css, site.css and home.css (the home page's design
   language: the tokens, the type, the buttons, the FAQ, the closing band and the footer).
   Mobile first. Only transform and opacity move; every answer area keeps its size. */

/* --- hero --------------------------------------------------------------------------------- */
.pricing-page .price-hero { padding: 32px 0 64px !important; }
@media (min-width: 1024px) { .pricing-page .price-hero { padding: 64px 0 96px !important; } }
.price-hero .crumbs ol { margin-bottom: 20px; }
.price-h1 { max-width: 15ch; font-size: clamp(2.4rem, 1.2rem + 5vw, 4.6rem); }
.price-h1 .ln { display: inline; }
.js .top-hero .price-h1 .ln { display: inline-block; }
.facts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 880px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.facts li { padding: 18px; border-radius: 18px; background: var(--navy-2); border: 1px solid var(--navy-line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.facts li:first-child { background: var(--lime); border-color: var(--lime); color: var(--navy); }
.facts b { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--on-navy); }
.facts li:first-child b { color: var(--navy); }
.facts li > span { font-size: .86rem; font-weight: 600; line-height: 1.4; color: var(--on-navy-2); }
.facts li:first-child > span { color: #2E3B12; }

/* --- the comparison ----------------------------------------------------------------------- */
.cmp-sec { background: var(--bg); }
.cmp { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 960px) { .cmp { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; } }
.cmp-in, .cmp-out { border-radius: 18px; padding: 24px; min-width: 0; }
@media (min-width: 1024px) { .cmp-in, .cmp-out { padding: 32px; } }
.cmp-in { background: var(--surface); border: 1px solid var(--line); }
.cmp-out { background: var(--navy); color: var(--on-navy); border: 1px solid var(--navy-line); }
@media (min-width: 960px) { .cmp-in { position: sticky; top: 88px; } }

.cmp-tabs { display: flex; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 24px; }
.cmp-tabs a { flex: 1; display: grid; place-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 700; color: var(--text-2); text-align: center; }
.cmp-tabs a[aria-selected=true], .cmp-tabs a[aria-current=true] { background: var(--navy); color: var(--lime); }
.cmp-form { display: flex; flex-direction: column; gap: 22px; }
.cmp-form .field { display: flex; flex-direction: column; gap: 6px; }
.cmp-form .f-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.cmp-form label { font-weight: 700; color: var(--text); }
.cmp-form output { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; }
.cmp-form small { font-size: 13px; color: var(--muted); line-height: 1.45; }
.cmp-form input[type=range] { width: 100%; height: 44px; margin: 0; accent-color: var(--navy); cursor: pointer; }
.cmp-form .money { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-strong, var(--line)); background: var(--surface); font-weight: 800; color: var(--text); }
.cmp-form .money:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.cmp-form .money input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 1.1rem; color: var(--text); padding: 12px 0; outline: none; box-shadow: none; }
.cmp-form label.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.cmp-form label.check input { width: 22px; height: 22px; accent-color: var(--navy); flex: none; }
.cmp-form .btn { align-self: flex-start; color: var(--navy); border-color: var(--line-strong, var(--line)); }

.r-k { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-2); min-height: 2.9em; }
.cmp-out .r-name { margin-top: 10px; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 800; letter-spacing: -.03em; color: var(--lime); }
.r-amount { margin-top: 6px; font-size: clamp(2.4rem, 1.9rem + 1.6vw, 3.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--on-navy); }
.r-amount small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--on-navy-2); }
.r-note { margin-top: 10px; color: var(--on-navy-2); }
.r-worth { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: rgba(198, 244, 50, .1); border: 1px solid rgba(198, 244, 50, .35); color: var(--on-navy); font-weight: 600; }
.cmp-out .btn { margin-top: 20px; }
.bars-h { margin: 28px 0 12px; padding-top: 20px; border-top: 1px solid var(--navy-line); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-navy-2); }
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.bar .bn { font-weight: 700; color: var(--on-navy); }
.bar .bc { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--on-navy); }
.bar .bt { grid-column: 1 / -1; display: block; height: 10px; border-radius: 999px; background: var(--navy-2); overflow: hidden; }
.bar .bt i { display: block; height: 100%; border-radius: 999px; background: var(--on-navy-2); transform-origin: 0 50%; transform: scaleX(var(--k, 0)); transition: transform .7s var(--ease-s); }
.bar .bd { grid-column: 1 / -1; font-size: 13px; color: var(--on-navy-2); line-height: 1.45; }
.bar.best .bn, .bar.best .bc { color: var(--lime); }
.bar.best .bt i { background: var(--lime); }
.bar.off .bn, .bar.off .bc { color: var(--on-navy-2); font-weight: 600; }
.js .cmp:not(.in) .bt i, .bars.grow .bt i { transform: scaleX(0); transition: none; }
.fine { margin-top: 16px; font-size: 13px; color: var(--muted); max-width: 70ch; }

/* --- the plan tables ---------------------------------------------------------------------- */
.plans-sec { background: var(--surface); border-top: 1px solid var(--line); }
.ptable-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); -webkit-overflow-scrolling: touch; }
.ptable-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ptable { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .94rem; }
.ptable.trades { min-width: 560px; }
.ptable caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ptable th, .ptable td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.45; }
.ptable thead th { background: var(--navy); color: var(--on-navy); vertical-align: bottom; }
.ptable thead td { background: var(--navy); }
.ptable thead th b { display: block; font-size: 1.05rem; }
.ptable thead th small { display: block; margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--on-navy-2); }
.ptable tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); color: var(--text); font-weight: 700; min-width: 150px; box-shadow: 1px 0 0 var(--line); }
.ptable thead td { position: sticky; left: 0; z-index: 2; }
.ptable td { color: var(--text-2); }
.ptable tr.same td { white-space: nowrap; }
.ptable tr.same td .icon { width: 16px; height: 16px; vertical-align: -3px; margin-right: 6px; color: var(--lime-deep); stroke-width: 2.4; }
.ptable tbody tr:last-child > * { border-bottom: 0; }
.notes { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; max-width: 80ch; }
.notes li { position: relative; padding-left: 18px; color: var(--text-2); font-size: .95rem; }
.notes li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-deep); }
.trades-head { margin-top: 88px; }
.plans-sec .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
@media (max-width: 480px) { .plans-sec .ctas .btn { width: 100%; } }

@media (prefers-color-scheme: dark) {
  .cmp-tabs a[aria-selected=true], .cmp-tabs a[aria-current=true] { background: var(--lime); color: var(--navy); }
  .plans-sec .navy-line { color: var(--on-navy) !important; border-color: var(--on-navy-2) !important; }
  .plans-sec .navy-line:hover { background: var(--navy-3) !important; }
  .cmp-form input[type=range] { accent-color: var(--lime); }
  .cmp-form .btn { color: var(--text); }
  .ptable tr.same td .icon, .notes li::before { color: var(--lime); background-color: var(--lime); }
  .ptable tr.same td .icon { background: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bar .bt i, .js .cmp:not(.in) .bt i, .bars.grow .bt i { transform: scaleX(var(--k, 0)) !important; transition: none !important; }
}
.still .bar .bt i { transform: scaleX(var(--k, 0)) !important; transition: none !important; }

/* --- the trades plans' Monthly / Yearly switch (pricing_page.py trades_switch) ------------------- */
.iv-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 16px; }
.iv-ctl { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); max-width: 100%; }
.iv-ctl[hidden] { display: none; }
.iv-ctl button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 700; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.iv-ctl button[aria-pressed=true] { background: var(--navy); color: var(--lime); }
.iv-ctl button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.iv-first { margin: 0; flex: 1 1 240px; font-weight: 700; color: var(--text); }
[data-iv][hidden] { display: none !important; }
