/* Pricing page, from the approved design/pricing-mockup.html (Ledger). */
:root {
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --ink: #14181F;
  --muted: #5B6472;
  --line: #E3E6EB;
  --accent: #0F766E;
  --accent-chart: #0D9488;
  --accent-soft: #E7F3F1;
  --on-accent: #FFFFFF;
  --plan: #B45309;
  --dot: #9AA3AE;
  --shadow: 0 1px 2px rgba(20,24,31,.05), 0 6px 18px rgba(20,24,31,.06);
  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1114; --surface: #161A1F; --ink: #E8ECEF; --muted: #98A2AE; --line: #272D34;
    --accent: #1FA898; --accent-chart: #1FA898; --accent-soft: #11302C; --on-accent: #06201C;
    --plan: #F59E0B; --dot: #5F6873; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1114; --surface: #161A1F; --ink: #E8ECEF; --muted: #98A2AE; --line: #272D34;
  --accent: #1FA898; --accent-chart: #1FA898; --accent-soft: #11302C; --on-accent: #06201C;
  --plan: #F59E0B; --dot: #5F6873; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.25);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
.wrap {
  max-width: 1160px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
nav.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: inherit; text-decoration: none; }
.logo { width: 28px; height: 28px; border-radius: 7px; background: var(--accent); display: grid; place-items: center; }
.logo svg { width: 16px; height: 16px; }
nav.top .links { display: flex; gap: 20px; color: var(--muted); font-size: 14px; }
nav.top .links a { color: inherit; text-decoration: none; }
nav.top .links a[aria-current="page"] { color: var(--ink); font-weight: 500; }

header.hero {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center;
  padding-block: 32px 40px;
}
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h1 { font-size: clamp(30px, 4.4vw, 44px); line-height: 1.12; letter-spacing: -.02em; margin: 10px 0 14px; font-weight: 600; text-wrap: balance; }
.lede { color: var(--muted); font-size: 17px; max-width: 34em; margin: 0; }
.preview {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 16px 16px 10px; min-width: 0; margin: 0;
}
.preview-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.preview-head b { font-weight: 600; font-size: 14px; }
.preview-head span { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.preview svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); padding-top: 4px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.legend i.sw-dot { background: var(--dot); }
.legend i.sw-plan { background: var(--plan); border-radius: 1px; transform: rotate(45deg); }
.legend i.sw-trend { background: var(--accent-chart); height: 2px; border-radius: 0; vertical-align: 3px; }

.billing { display: flex; justify-content: center; align-items: center; gap: 12px; padding-block: 8px 28px; flex-wrap: wrap; }
.toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.toggle button {
  font: inherit; font-size: 14px; border: 0; background: transparent; color: var(--muted);
  padding: 7px 16px; border-radius: 999px; cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 500; }
.toggle button:focus-visible, .btn:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.save { font-size: 13px; color: var(--accent); font-weight: 500; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
/* Pre-launch, "Coming soon to the Chrome Web Store" takes two lines: every plan button gets that
   height so the feature lists line up (user decision 2026-11-18). Off once the store link exists. */
.plans.prelaunch .plan .btn { min-height: calc(2 * 1.55em + 22px); }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; display: flex; flex-direction: column; gap: 16px; position: relative; min-width: 0;
}
/* Every card has the same five rows (heading, price, note, button, list). On a subgrid they share
   heights across the row of cards, so a price that wraps ("Pricing coming soon" on Pro+ and
   Enterprise at 1280px) moves all four buttons together and they stay lined up (user report
   2026-11-19). Without subgrid support the cards keep the flex column above. */
@supports (grid-template-rows: subgrid) {
  .plan { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 16px; align-content: start; }
}
.plan .cta { display: flex; flex-direction: column; gap: 8px; }
.plan.featured { border: 1.5px solid var(--accent); box-shadow: var(--shadow); }
.tag {
  position: absolute; top: -11px; left: 22px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: var(--accent); color: var(--on-accent); padding: 3px 10px; border-radius: 999px;
}
.tag.soon { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.plan h3 { margin: 0; font-size: 18px; font-weight: 600; }
.plan .who { margin: 4px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; min-height: 3.2em; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price .amt { font-size: 36px; font-weight: 600; letter-spacing: -.02em; }
/* Pro+ and Enterprise: "Pricing coming soon" in the price's spot (PRICE_COMING_SOON), on the
   same line box as $0 and $29 so all four cards line up. */
.price .amt { line-height: 44px; }
.price .amt.tba { font-size: 24px; letter-spacing: -.015em; line-height: 30px; padding-block: 7px; } /* one line = the 44px box; wrapped, its lines stay close */
.price .per { color: var(--muted); font-size: 14px; }
.price-note { font-size: 13px; color: var(--muted); margin-top: -10px; min-height: 1.5em; }
.btn {
  /* Flex so the label sits in the middle when the button is taller than one line (pre-launch min-height). */
  display: flex; align-items: center; justify-content: center; text-align: center; font: inherit; font-size: 14px; font-weight: 500; text-decoration: none;
  padding: 10px 14px; border-radius: 9px; cursor: pointer; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-note { font-size: 12px; color: var(--muted); text-align: center; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 8px; align-items: start; }
.plan li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--accent); }

section.compare { padding-block: 64px 24px; }
h2 { font-size: 26px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 6px; text-wrap: balance; }
.sub { color: var(--muted); margin: 0 0 24px; }
.table-scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 14px; }
th, td { padding: 12px 16px; text-align: center; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); }
thead th { font-weight: 600; font-size: 14px; vertical-align: bottom; }
thead th small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
thead th.hl { color: var(--accent); }
td.hl { background: color-mix(in srgb, var(--accent-soft) 55%, var(--surface)); }
tr.group td {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); background: var(--bg); padding-block: 9px;
}
tr.group td:first-child { background: var(--bg); }
tbody tr:last-child td { border-bottom: 0; }
td .yes { width: 18px; height: 18px; color: var(--accent); vertical-align: middle; }
td .no { display: inline-block; width: 10px; height: 2px; background: var(--line); vertical-align: middle; border-radius: 2px; }
td .txt { font-size: 13px; }

section.waitlist { padding-block: 48px 8px; }
.wl {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px;
}
form { display: grid; gap: 14px; }
label.field { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
input[type="email"] {
  font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 9px; border: 1px solid var(--line);
  background: var(--bg); color: var(--ink);
}
fieldset { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; font-size: 14px; }
legend { font-size: 13px; color: var(--muted); margin-bottom: 8px; padding: 0; }
fieldset label { display: flex; gap: 8px; align-items: flex-start; }
fieldset input { accent-color: var(--accent); margin-top: 4px; }
.thanks { color: var(--accent); font-weight: 500; font-size: 14px; }
.wl .sub { margin: 0; }
.wl-error { color: var(--plan); font-size: 14px; }
.btn:disabled { opacity: .6; cursor: default; }
.wl-noscript { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
/* Spam trap: off screen, not display:none (some bots skip hidden fields). */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

section.faq { padding-block: 56px 32px; max-width: 760px; }
details { border-bottom: 1px solid var(--line); padding-block: 14px; }
summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--muted); font-size: 18px; line-height: 1; }
details[open] summary::after { content: "\2013"; }
details p { color: var(--muted); margin: 10px 0 0; max-width: 62ch; }

footer { border-top: 1px solid var(--line); padding-block: 24px 40px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1000px) {
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
}
@media (max-width: 760px) {
  header.hero { grid-template-columns: 1fr; gap: 28px; }
  .wl { grid-template-columns: 1fr; }
  nav.top .links { display: none; }
}
@media (max-width: 560px) {
  .plans { grid-template-columns: 1fr; }
  .plan .who { min-height: 0; }
  fieldset { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .plan { transition: transform .15s ease; }
  .plan:hover { transform: translateY(-2px); }
}
section.faq .contact { margin-top: 28px; color: var(--muted); font-size: 15px; }
section.faq .contact a { color: inherit; }
footer a { color: inherit; }
section.faq .placeholder { color: var(--ink); background: var(--accent-soft, #e6f4f1); padding: 0 4px; border-radius: 4px; }
