/* rd-landing.css: the front page (landing.html) and the pricing page (pricing.html) on the light design (18 Nov 2026).
   Loaded AFTER redesign.css, which holds the tokens, the buttons, the tool and result cards, the menu, the footer and
   the cookie bar; this file adds only what those two pages need. Same decisions as redesign.css: Inter only (400 and
   600), ink #051036, text #1F2A44, helper #5B6780, one action colour #0B6FA4, sky #1B95D1 for charts only, no gradients,
   no glow, corners 8 and 10. Nothing here touches a page without <body class="rd rd-landing"> or "rd rd-pricing". */

/* ================================================================================================================
   THE FRONT PAGE
   ================================================================================================================ */
html.lp-leaving body { visibility: hidden; }
body.rd.rd-landing { padding-bottom: 0; }
.rd-landing .lp-head { padding: 20px 0 6px; }
.rd-landing h1.rd-title { font-size: 36px; letter-spacing: -.025em; }
.rd-landing .rd-sub { font-size: 17px; max-width: 760px; margin-top: 8px; }
.rd-landing .rd-tool { margin-top: 14px; }
.rd-landing .rd-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* The one call to action, under the live answer: the words are the server's (landing.html offer markers). */
.rd-landing .lp-cta { margin: var(--s4) 0 0; }
.rd-landing .lp-cta-in { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s4); }
.rd-landing .lp-signup, .rd-landing .lp-dash { display: flex; gap: var(--s4); align-items: center; justify-content: space-between; }
.rd-landing .lp-dash { display: none; }
html.da-in .rd-landing .lp-signup { display: none; }
html.da-in .rd-landing .lp-dash { display: flex; }
.rd-landing .lp-cta p { margin: 0; color: var(--text); font-size: 15px; max-width: 760px; }
.rd-landing .lp-cta p b { color: var(--ink); }
.rd-landing .lp-cta .rd-btn { flex: none; min-height: 44px; padding: 0 20px; }

/* Sections below the first screen */
.rd-landing .lp-sec { margin: 32px 0 0; scroll-margin-top: 72px; }
.rd-landing .lp-sec > h2, .rd-landing .lp-soldcard h2 { font-size: 22px; letter-spacing: -.015em; }
.rd-landing .lp-hub { margin: 14px 0 12px; }
.rd-landing .lp-hub .rd-hubtile { padding: 14px; }
.rd-landing .lp-hub .rd-hubtile b { font-size: 16px; margin-bottom: 2px; }
.rd-landing .lp-hub .rd-hubtile span { font-size: 14px; line-height: 1.4; display: block; }
.rd-landing .lp-more { margin: 0; font-size: 15px; color: var(--muted); }
.rd-landing .lp-more a { color: var(--action); }

.rd-landing .lp-soldcard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); align-items: center; padding: var(--s5); }
.rd-landing .lp-soldcard p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.rd-landing .lp-searchrow { display: flex; gap: var(--s2); }
.rd-landing .lp-q {
  flex: 1; min-width: 0; height: 44px; box-sizing: border-box; border: 1px solid var(--line-strong); border-radius: var(--r-input);
  background: #fff; color: var(--ink); font: 400 16px/1 var(--font); padding: 0 12px;
}
.rd-landing .lp-q:focus { outline: 3px solid rgba(27,149,209,.35); border-color: var(--action); }
.rd-landing .lp-searchrow .rd-btn { flex: none; min-height: 44px; }
.rd-landing .lp-browse { display: inline-block; margin-top: 10px; font-size: 15px; }
.rd-landing .lp-note { margin: 32px 0 40px; max-width: 860px; }

@media (max-width: 820px) {
  .rd-landing .rd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-landing h1.rd-title { font-size: 26px; }
  .rd-landing .rd-sub { font-size: 15px; }
  .rd-landing .lp-head { padding: 12px 0 2px; }
  .rd-landing .lp-signup, .rd-landing .lp-dash { flex-direction: column; align-items: stretch; gap: var(--s3); }
  .rd-landing .lp-cta .rd-btn { width: 100%; }
  .rd-landing .lp-sec { margin-top: 24px; }
  .rd-landing .lp-sec > h2, .rd-landing .lp-soldcard h2 { font-size: 20px; }
  .rd-landing .lp-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
  .rd-landing .lp-soldcard { grid-template-columns: 1fr; gap: var(--s3); padding: var(--s4); }
}
@media (max-width: 520px) {
  /* Phones: the nine calculators are two columns of names; the one line under each is on the calculator's own page. */
  .rd-landing .lp-hub .rd-hubtile span { display: none; }
  .rd-landing .lp-hub .rd-hubtile { padding: 12px; }
  .rd-landing .lp-hub .rd-hubtile b { font-size: 15px; margin: 0; }
  .rd-landing .lp-searchrow { flex-direction: column; }
}

/* ================================================================================================================
   THE PRICING PAGE (pricing.html, <body class="rd rd-pricing" data-app-page="1">)
   A restyle only: the markup and the page's script are as they were. The page was written in the dark theme's colour
   names (--navy-900, --gold-300, --ivory-100 ...) and its script writes some of them into inline styles, so those names
   are kept and pointed at the light palette on the page's own body; every rule below then reads in light colours with
   no change to the script. Plan cards, the price table, the trial promise, the checkout buttons and the switch panel
   keep their layout; the gold gradients become the one action colour.
   ================================================================================================================ */
.rd-pricing {
  --navy-950: var(--page); --navy-900: #fff; --navy-850: #fff; --navy-800: var(--page);
  --navy-line: var(--line); --navy-600: var(--line-strong);
  --gold-300: var(--action); --gold-400: var(--action); --gold-500: var(--action); --gold-glow: transparent;
  --ivory-100: var(--ink); --slate-400: var(--muted); --slate-500: var(--muted);
  --emerald-400: var(--good); --rose-400: var(--bad);
  --radius-lg: 10px;
}
body.rd.rd-pricing { padding-bottom: 0; }
.rd-pricing *, .rd-pricing *::before, .rd-pricing *::after { box-sizing: border-box; }
.rd-pricing .hidden { display: none !important; }
.rd-pricing .wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.rd-pricing a { color: var(--action); }
.rd-pricing header.page { padding: 28px 0 4px; text-align: center; }
.rd-pricing header.page h1 { font-size: 32px; letter-spacing: -.02em; margin: 0 0 8px; }
.rd-pricing header.page p { color: var(--muted); max-width: 680px; line-height: 1.55; margin: 0 auto; font-size: 16px; }

/* Plans: four across on a desktop, then two, then one. */
.rd-pricing .plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: var(--s4); margin: 28px 0 var(--s4); }
.rd-pricing .plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px 20px; display: flex; flex-direction: column; position: relative; }
.rd-pricing .plan.featured { border-color: var(--action); box-shadow: inset 0 0 0 1px var(--action); }
.rd-pricing .plan.current { border-color: var(--good); box-shadow: inset 0 0 0 1px var(--good); }
.rd-pricing .plan.trialing { border-color: var(--action); }
.rd-pricing .plan.featured::before, .rd-pricing .plan.trialing::before, .rd-pricing .plan.current::before {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  padding: 3px 12px; border-radius: 999px; white-space: nowrap; background-image: none;
}
.rd-pricing .plan.featured::before { content: "MOST POPULAR"; background: var(--ink); }
.rd-pricing .plan.trialing::before { content: "FREE TRIAL"; background: var(--action); }
.rd-pricing .plan.current::before { content: "YOUR PLAN"; background: var(--good); }
.rd-pricing .plan h2 { font-size: 19px; margin: 0 0 2px; }
.rd-pricing .page-h2 { font-size: 24px; margin: 32px 0 0; text-align: center; }
.rd-pricing .plan .price { font-size: 32px; font-weight: 600; color: var(--ink); margin: 8px 0 2px; letter-spacing: -.02em; }
.rd-pricing .plan .price span { font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.rd-pricing .plan .tag { font-size: 13px; color: var(--muted); margin: 6px 0 14px; line-height: 1.5; min-height: 38px; }
.rd-pricing .plan ul { list-style: none; margin: 0 0 20px; padding: 0; flex: 1; }
.rd-pricing .plan li { padding: 7px 0; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line); line-height: 1.5; }
.rd-pricing .plan li:last-child { border-bottom: none; }
.rd-pricing .plan li b { color: var(--ink); font-weight: 600; }
.rd-pricing .plan li::before { content: "\2713\00a0\00a0"; color: var(--good); font-weight: 600; }
/* A limit is not a benefit, so it gets no tick. */
.rd-pricing .plan li.limit::before { content: "-\00a0\00a0"; color: var(--muted); }
.rd-pricing .plan li.inherit { color: var(--ink); font-weight: 600; border-bottom: none; padding-bottom: 2px; }
.rd-pricing .plan li.inherit::before { content: ""; }

/* Buttons: the filled one is the action colour, the other an outline. Full width inside the plan and extras cards only. */
.rd-pricing .btn { text-align: center; border-radius: var(--r-input); min-height: 40px; font-weight: 600; font-family: var(--font); }
.rd-pricing .plan .btn, .rd-pricing .card .btn { width: 100%; }
.rd-pricing .btn-gold { background: var(--action); border: 1px solid var(--action); color: #fff; background-image: none; }
.rd-pricing .btn-gold:hover { background: var(--action-dark); border-color: var(--action-dark); color: #fff; }
.rd-pricing .btn-ghost { background: #fff; border: 1px solid var(--line-strong); color: var(--ink); }
.rd-pricing .btn-ghost:hover { border-color: var(--muted); color: var(--ink); }
.rd-pricing .btn[disabled] { opacity: .55; cursor: default; }
.rd-pricing .btn-note { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 8px 0 0; text-align: center; }

.rd-pricing .trial-promo { max-width: 680px; margin: 16px auto 0; padding: 12px 18px; border: 1px solid var(--tint-line); border-radius: var(--r-card); background: var(--tint); font-size: 15px; line-height: 1.55; color: var(--text); }
.rd-pricing .trial-promo b { color: var(--ink); }
.rd-pricing .early { display: inline-block; background: var(--good-tint); border: 1px solid var(--good); color: var(--good); border-radius: 999px; padding: 6px 16px; font-size: 13px; font-weight: 600; margin-top: 14px; }

.rd-pricing .extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: var(--s4); margin: 24px 0 10px; }
.rd-pricing .card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; display: flex; flex-direction: column; }
.rd-pricing .card.addon { border-color: var(--action); }
.rd-pricing .card h3 { font-size: 17px; margin: 0 0 4px; }
.rd-pricing .card .price { font-size: 26px; font-weight: 600; color: var(--ink); margin: 6px 0 2px; }
.rd-pricing .card .price span { font-size: 14px; color: var(--muted); font-weight: 400; }
.rd-pricing .card p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 8px 0 14px; }
.rd-pricing .card ul { list-style: none; margin: 0 0 16px; padding: 0; flex: 1; }
.rd-pricing .card li { padding: 6px 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.rd-pricing .card li b { color: var(--ink); font-weight: 600; }
.rd-pricing .packs { display: flex; flex-direction: column; gap: var(--s2); }
.rd-pricing .credits-off { margin: 0; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: var(--r-card); font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
.rd-pricing .note-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px 24px; margin: 16px 0 24px; }
.rd-pricing .note-panel h2, .rd-pricing .note-panel h3 { font-size: 17px; margin: 0 0 8px; }
.rd-pricing .note-panel p { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0 0 8px; }
.rd-pricing .note-panel p:last-child { margin-bottom: 0; }
.rd-pricing .note-panel p b { color: var(--ink); }
.rd-pricing .faq { margin: 28px 0 56px; }
.rd-pricing .faq .page-h2 { margin: 0 0 4px; text-align: left; }
.rd-pricing .faq h3 { font-size: 17px; margin: 22px 0 6px; }
.rd-pricing .faq p { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 0; }
.rd-pricing .faq p b { color: var(--ink); }
.rd-pricing #payStatus { text-align: center; font-size: 14px; color: var(--bad); min-height: 20px; margin-top: 8px; line-height: 1.6; }

/* The plan-switch answer: the server has said "you already pay for a plan, here is how to move". */
.rd-pricing .switch-panel { max-width: 620px; margin: 6px auto 0; background: #fff; border: 1px solid var(--action); border-radius: var(--r-card); padding: 18px 20px; text-align: left; }
.rd-pricing .switch-panel p { font-size: 15px; color: var(--text); line-height: 1.55; margin: 0 0 12px; }
.rd-pricing .switch-panel .btn { width: auto; }
.rd-pricing .switch-panel .btn-note { text-align: left; margin-top: 10px; }
.rd-pricing .switch-panel h3 { font-size: 17px; margin: 0 0 8px; }
.rd-pricing .change-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 0 0 14px; }
.rd-pricing .change-sum div { background: var(--page); border: 1px solid var(--line); border-radius: var(--r-input); padding: 10px 14px; }
.rd-pricing .change-sum dt { font-size: 12px; color: var(--muted); margin: 0 0 2px; }
.rd-pricing .change-sum dd { margin: 0; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.rd-pricing .change-sum dd span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.rd-pricing .change-warn { border: 1px solid var(--bad); background: var(--bad-tint); border-radius: var(--r-input); padding: 12px 14px; margin: 0 0 14px; }
.rd-pricing .change-warn p { margin: 0 0 8px; }
.rd-pricing .change-warn label { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink); cursor: pointer; }
.rd-pricing .change-warn input { margin-top: 3px; }
.rd-pricing .change-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rd-pricing .switch-panel .change-error { color: var(--bad); }
.rd-pricing .plan .booked { font-size: 13px; color: var(--action); text-align: center; margin: 0 0 8px; }
.rd-pricing .loading { color: var(--muted); font-size: 15px; text-align: center; padding: 40px 0; }

/* The plan grid's place while it is being drawn: the same shape as a real card, and a floor on the grid's height, so nothing below moves. */
.rd-pricing #planGrid { min-height: 700px; }
.rd-pricing .plan.skeleton { min-height: 640px; background: #fff; }
.rd-pricing .plan.skeleton i { display: block; height: 14px; border-radius: 7px; background: var(--page); margin: 0 0 12px; }
.rd-pricing .plan.skeleton i.w40 { width: 40%; height: 20px; }
.rd-pricing .plan.skeleton i.w60 { width: 60%; height: 34px; margin-bottom: 18px; }
.rd-pricing .plan.skeleton i.w90 { width: 90%; }
.rd-pricing .plan.skeleton i.w75 { width: 75%; }
.rd-pricing .plan.skeleton i.w50 { width: 50%; }

/* The per-item price table: a real table on a wide screen, stacked rows on a phone. */
.rd-pricing .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.rd-pricing .price-table { width: 100%; border-collapse: collapse; margin: 10px 0 6px; font-size: 14px; }
.rd-pricing .price-table th, .rd-pricing .price-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.rd-pricing .price-table thead th { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.rd-pricing .price-table tbody th { color: var(--ink); font-weight: 600; }
.rd-pricing .price-table td { color: var(--muted); }
.rd-pricing .price-table td b { color: var(--ink); font-weight: 600; }
.rd-pricing .price-table .na { color: var(--bad); }
.rd-pricing .linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--action); text-decoration: underline; cursor: pointer; }
.rd-pricing .card-notes { font-size: 13px; color: var(--muted); line-height: 1.55; margin: -8px 0 14px; }

/* Back from sign-up with a plan chosen, and the chosen card. */
.rd-pricing .continue-banner { max-width: 620px; margin: 24px auto 0; background: #fff; border: 1px solid var(--action); border-radius: var(--r-card); padding: 14px 20px; text-align: center; font-size: 15px; line-height: 1.55; color: var(--text); }
.rd-pricing .continue-banner .continue-note { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.rd-pricing .plan.chosen, .rd-pricing .card.chosen { border-color: var(--action); box-shadow: 0 0 0 3px rgba(27,149,209,.35); }
.rd-pricing .chosen .btn:focus-visible, .rd-pricing .chosen .btn:focus { outline: 3px solid rgba(27,149,209,.6); outline-offset: 3px; }

/* The account's own trial banner (js/trial-banner.js, base rules in app-shell.css): light, and the gold gradient button becomes the action colour. */
.rd-pricing .trial-banner { border-color: var(--tint-line); background: var(--tint); color: var(--text); border-radius: var(--r-card); }
.rd-pricing .trial-banner.trial-ended { border-color: var(--line-strong); background: #fff; }
.rd-pricing .trial-banner.trial-grace { border-color: var(--bad); background: var(--bad-tint); }
.rd-pricing .trial-banner-text b { font-weight: 600; color: var(--ink); }
.rd-pricing .trial-banner-text span { color: var(--muted); font-size: 13px; }
.rd-pricing .trial-banner-cta { background: var(--action); background-image: none; color: #fff; border-radius: var(--r-input); font-weight: 600; }

@media (max-width: 768px) { .rd-pricing .linklike { min-height: 44px; display: inline-flex; align-items: center; } }
@media (max-width: 640px) {
  .rd-pricing .wrap { padding: 0 16px; }
  .rd-pricing .price-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .rd-pricing .price-table, .rd-pricing .price-table tbody, .rd-pricing .price-table tr, .rd-pricing .price-table th, .rd-pricing .price-table td { display: block; width: 100%; }
  .rd-pricing .price-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .rd-pricing .price-table th, .rd-pricing .price-table td { border: 0; padding: 2px 0; }
  .rd-pricing .price-table td::before { content: attr(data-label) ": "; color: var(--muted); font-size: 13px; }
}
@media (max-width: 520px) {
  .rd-pricing header.page h1 { font-size: 26px; }
  .rd-pricing .plan .tag { min-height: 0; }
  .rd-pricing #planGrid { min-height: 0; }
  .rd-pricing .plan.skeleton { min-height: 420px; }
}
