/* Pricing page and checkout success page. Uses the tokens from styles.css. */
.pw-hero { padding-bottom: 20px; }
.pw-hero h1 { font-size: clamp(32px, 4.6vw, 48px); }
.pw-hero h1 em { font-style: normal; color: var(--accent); text-shadow: 0 0 26px rgba(130, 221, 209, .35); }

.pw-alert { max-width: 640px; margin: 0 auto 18px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink-soft); font-size: 14.5px; text-align: center; }
.pw-alert[hidden] { display: none; }

/* --- plan cards --- */
.pw-plans { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1040px; margin: 70px auto 0; align-items: stretch; }
.pw-card { position: relative; display: flex; flex-direction: column; padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.pw-card--best { border-color: var(--accent); background: linear-gradient(180deg, rgba(130, 221, 209, .10) 0%, var(--panel) 46%); box-shadow: 0 0 0 1px rgba(130, 221, 209, .25), 0 24px 60px rgba(0, 0, 0, .5), 0 0 60px rgba(130, 221, 209, .10); transform: translateY(-10px); }
.pw-ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); padding: 5px 13px; border-radius: 999px; background: var(--accent); color: #0b1714; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pw-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 18px; font-weight: 700; }
.pw-chip { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(130, 221, 209, .35); white-space: nowrap; }
.pw-chip--violet { background: var(--primary-soft); color: var(--indigo-bright); border-color: rgba(148, 169, 255, .35); }
.pw-price { display: flex; align-items: baseline; gap: 6px; margin-top: 18px; }
.pw-price strong { font-size: 46px; line-height: 1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.pw-price span { color: var(--muted); font-size: 15px; }
.pw-was { margin-top: 8px; min-height: 22px; color: var(--muted); font-size: 14px; }
.pw-was s { color: #8590a0; }
.pw-was b { color: var(--accent); }
.pw-desc { margin: 14px 0 20px; color: var(--ink-soft); font-size: 15px; }
.pw-card .btn { margin-top: auto; width: 100%; }
/* Premium trial button: teal-to-indigo pill, soft glow, slow light sheen. */
.pw-cta { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 100%; margin-top: auto; padding: 13px 22px; border: 0; border-radius: 999px; background: linear-gradient(100deg, #82ddd1 0%, #94a9ff 100%); color: #0b1714; text-decoration: none; text-align: center; box-shadow: 0 10px 30px rgba(130, 221, 209, .30), 0 0 0 1px rgba(255, 255, 255, .18) inset; transition: transform .16s var(--ease-out), box-shadow .2s var(--ease-out); }
.pw-cta:hover { box-shadow: 0 14px 38px rgba(130, 221, 209, .42), 0 0 0 1px rgba(255, 255, 255, .25) inset; }
.pw-cta:active { transform: scale(.98); }
.pw-cta:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.pw-cta b { display: inline-flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; }
.pw-cta b svg { width: 16px; height: 16px; }
.pw-cta small { font-size: 12.5px; font-weight: 600; opacity: .72; }
.pw-cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-18deg); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .pw-cta::after { animation: pw-sheen 4.8s ease-in-out 1.2s infinite; } }
@keyframes pw-sheen { 0% { left: -60%; } 28%, 100% { left: 130%; } }
.pw-fine { margin-top: 10px; color: var(--muted); font-size: 12.5px; text-align: center; }

/* --- hand-drawn "save more" arrow, pointing at the yearly card --- */
.pw-doodle { position: absolute; z-index: 2; top: -92px; left: calc(66.6% - 34px); width: 250px; height: 100px; pointer-events: none; color: var(--accent); }
.pw-doodle svg { position: absolute; left: 0; top: 14px; width: 118px; height: 86px; overflow: visible; filter: drop-shadow(0 0 6px rgba(130, 221, 209, .35)); }
.pw-doodle svg path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pw-doodle .pw-scribble { position: absolute; left: 112px; top: 0; transform: rotate(-6deg); font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", "Chalkboard SE", cursive; font-size: 24px; font-weight: 700; line-height: 1.05; white-space: nowrap; text-shadow: 0 0 18px rgba(130, 221, 209, .35); }
.pw-doodle .pw-scribble small { display: block; font-size: 15px; color: var(--ink-soft); margin-top: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .pw-doodle svg path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: pw-draw 1.1s .3s var(--ease-out) forwards; }
  @keyframes pw-draw { to { stroke-dashoffset: 0; } }
}

/* --- what you get --- */
.pw-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; max-width: 820px; margin: 0 auto; padding: 0; list-style: none; }
.pw-features li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); font-size: 15.5px; }
.pw-features svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent); }
.pw-features b { color: var(--ink); }

/* --- free vs pro --- */
.pw-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; }
.pw-tier { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: rgba(27, 33, 42, .74); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pw-tier h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; font-size: 20px; }
.pw-tier h3 > span:not(.pw-spark) { color: var(--muted); font-size: 14px; font-weight: 500; }
.pw-tier .pw-features { grid-template-columns: 1fr; max-width: none; }
.pw-tier--pro { border-color: var(--accent); box-shadow: 0 0 0 1px rgba(130, 221, 209, .2), 0 0 50px rgba(130, 221, 209, .08); }
.pw-spark { display: inline-flex; width: 20px; height: 20px; color: var(--accent); filter: drop-shadow(0 0 6px rgba(130, 221, 209, .5)); }
.pw-spark svg { width: 100%; height: 100%; }
.pw-tier--pro .pw-features svg { width: 16px; height: 16px; margin-top: 4px; filter: drop-shadow(0 0 4px rgba(130, 221, 209, .45)); }

/* --- trial timeline --- */
.pw-timeline { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto; padding: 0; list-style: none; counter-reset: none; }
.pw-timeline::before { content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 11px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--indigo-bright) 66%, var(--line)); }
.pw-timeline li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.pw-dot { position: relative; z-index: 1; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--indigo-bright); background: var(--bg); }
.pw-timeline li.is-now .pw-dot { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 6px rgba(130, 221, 209, .15); }
.pw-timeline li:last-child .pw-dot { border-color: var(--muted); }
.pw-timeline b { margin-top: 8px; font-size: 15px; }
.pw-timeline span:not(.pw-dot) { color: var(--muted); font-size: 14px; max-width: 220px; }
.pw-timeline-note { margin-top: 26px; text-align: center; color: var(--muted); font-size: 14.5px; }

/* success page key box */
.pw-key { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; max-width: 640px; margin: 24px auto 0; padding: 14px; border: 1px dashed var(--accent); border-radius: 14px; background: var(--accent-soft); }
.pw-key code { font-size: 14px; word-break: break-all; color: var(--ink); text-align: left; }
.pw-note { margin-top: 10px !important; color: var(--muted); font-size: 14px !important; }
.pw-timeline--dates { margin-top: 34px; }

@media (max-width: 900px) {
  .pw-plans { grid-template-columns: 1fr; max-width: 460px; margin-top: 40px; gap: 26px; }
  .pw-card--best { transform: none; order: -1; }
  .pw-doodle { display: none; }
  .pw-features { grid-template-columns: 1fr; }
  .pw-compare { grid-template-columns: 1fr; max-width: 460px; }
  .pw-timeline { grid-template-columns: 1fr; gap: 22px; max-width: 420px; }
  .pw-timeline::before { left: 11px; right: auto; top: 12px; bottom: 12px; width: 2px; height: auto; background: linear-gradient(180deg, var(--accent), var(--indigo-bright) 66%, var(--line)); }
  .pw-timeline li { display: grid; grid-template-columns: 24px 1fr; column-gap: 14px; row-gap: 2px; text-align: left; align-items: start; }
  .pw-timeline li .pw-dot { grid-row: span 2; }
  .pw-timeline b { margin-top: 1px; }
}

/* ---------- r22: /pricing moved to the v2 shell (body.v2). ----------
   The checkout success page (api/success.js) still loads styles.css and keeps the rules above as they were.
   On /pricing the old tokens are mapped to the v2 ones, so .pw-cta, .pw-alert and .pw-timeline keep working,
   and the Pro accent is the blue of the crown mark instead of mint. */
body.v2.page-pricing {
  --bg: var(--h-bg); --panel: var(--h-panel-2); --line: var(--h-line);
  --ink: var(--h-ink); --ink-soft: var(--h-ink-soft); --muted: var(--h-muted);
  --accent: #94a9ff; --accent-soft: rgba(148, 169, 255, .12); --primary-soft: rgba(148, 169, 255, .12);
  --indigo-bright: #bcd0ff; --ease-out: var(--h-ease-out);
}
body.v2.page-pricing .pw-cta { background: linear-gradient(180deg, #5a72ee 0%, var(--h-blue-deep) 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 30px -10px rgba(67, 91, 216, .9); }
body.v2.page-pricing .pw-cta:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), var(--h-glow-blue); }
body.v2.page-pricing .pw-cta b svg { width: 18px; height: 18px; }
body.v2.page-pricing .pw-alert { margin-bottom: 28px; }
body.v2.page-pricing .h-pricing-top { padding-top: clamp(40px, 6vw, 80px); }
body.v2.page-pricing .h-pricing-top .h-title { font-size: var(--h-fs-h1); }
body.v2.page-pricing .h-pricing-reopen { margin: 24px 0 0; text-align: center; }
body.v2.page-pricing .h-pricing-trial { padding-top: clamp(48px, 6vw, 88px); }
body.v2.page-pricing .h-pricing-trial .pw-timeline { margin-top: 8px; }
body.v2.page-pricing .h-pricing-trial .pw-timeline-note { margin-top: 22px; }
/* the stage's Pro accent follows the crown (blue); mint stays the owl's feet colour */
body.v2.page-pricing .pw2 { --pw2-teal: #94a9ff; --pw2-teal-glow: rgba(148, 169, 255, .35); --pw2-teal-ring: rgba(148, 169, 255, .18); }
body.v2.page-pricing .pw2-details > .h-section { padding-block: clamp(40px, 5vw, 72px); }
body.v2.page-pricing .pw2-details > .h-pricing-top { padding-top: clamp(40px, 6vw, 80px); }
body.v2.page-pricing .h-pricing-trial .h-title { font-size: var(--h-fs-h3); }
body.v2.page-pricing .h-pricing-trial .h-lower-head { margin-bottom: 28px; }
body.v2.page-pricing #faq .h-pricing-faq { margin-top: 0; }
