/* SkipCheap: Apple HIG. Clarity (system type, plain words), deference (content first, chrome recedes),
   depth (layers and motion only to show hierarchy), consistency (one radius scale, one accent), simplicity. */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --bg-3: #ececf0;
  --fg: #1d1d1f;
  --fg-2: #6e6e73;
  --line: #d2d2d7;
  --line-soft: #e8e8ed;
  --accent: #0066cc;
  --accent-bg: #e8f1fb;
  --stage-bar: #c7c7cc;
  --stage-lit: #8e8e93;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --max: 1080px;
  --nav-h: 52px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --bg-2: #1c1c1e; --bg-3: #2c2c2e; --fg: #f5f5f7; --fg-2: #a1a1a6;
    --line: #38383a; --line-soft: #2c2c2e; --accent: #2997ff; --accent-bg: #0b2540;
    --stage-bar: #636366; --stage-lit: #aeaeb2;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; z-index: 10; }

/* Global bar: recedes; translucent so content shows through. */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line-soft); }
.top .wrap { display: flex; align-items: center; gap: 4px 28px; min-height: var(--nav-h); flex-wrap: wrap; }
.brand { font-weight: 600; font-size: 18px; color: var(--fg); display: inline-flex; align-items: center; gap: 8px; letter-spacing: -0.02em; min-height: 44px; }
.brand:hover { text-decoration: none; }
.mark { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--accent); color: #fff; font-size: 15px; font-weight: 700; }
.nav { display: flex; gap: 0 22px; flex-wrap: wrap; font-size: 13px; margin-left: auto; }
.nav a { color: var(--fg-2); min-height: 44px; display: inline-flex; align-items: center; transition: color .15s ease; }
.nav a:hover { color: var(--fg); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }

main { padding-top: 40px; padding-bottom: 80px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 10px; font-size: 14px; color: var(--fg-2); }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; color: var(--fg-2); }
h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.07; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 10px; max-width: 20ch; text-wrap: balance; }
h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.022em; font-weight: 700; margin: 64px 0 14px; text-wrap: balance; }
h3 { font-size: 20px; letter-spacing: -0.015em; margin: 28px 0 8px; }
p, ul, ol { max-width: 72ch; }
.updated { color: var(--fg-2); font-size: 14px; margin: 0 0 24px; }
.lead { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; letter-spacing: -0.016em; max-width: 60ch; }
.lead strong { color: var(--accent); }
.note { color: var(--fg-2); font-size: 15px; border-left: 3px solid var(--line); padding-left: 14px; }
strong { font-weight: 600; }

/* Tables: quiet lines, first column sticky when they scroll sideways. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0; border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--bg); }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15px; }
caption { text-align: left; padding: 14px 16px 6px; color: var(--fg-2); font-size: 14px; max-width: 80ch; white-space: normal; }
th, td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line-soft); vertical-align: top; }
thead th { border-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--fg-2); font-weight: 600; white-space: nowrap; background: var(--bg-2); }
tbody th { font-weight: 600; white-space: nowrap; position: sticky; left: 0; background: var(--bg); z-index: 1; }
tbody tr:hover td, tbody tr:hover th { background: var(--bg-2); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
caption + thead th { border-top: 1px solid var(--line-soft); }

.facts { display: grid; border: 1px solid var(--line-soft); border-radius: var(--r-md); margin: 18px 0; max-width: 840px; overflow: hidden; }
.facts > div { display: grid; grid-template-columns: minmax(140px, 240px) 1fr; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line-soft); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--fg-2); font-size: 15px; }
.facts dd { margin: 0; }

.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; max-width: none; }
.cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; min-height: 112px; padding: 20px 22px; background: var(--bg-2); border-radius: var(--r-lg); color: var(--fg); transition: transform .2s ease, background .2s ease; }
.cards a:hover { text-decoration: none; transform: translateY(-2px); background: var(--bg-3); }
.card-title { font-weight: 600; font-size: 18px; letter-spacing: -0.015em; }
.card-text { color: var(--fg-2); font-size: 15px; }

/* Calculator: one raised surface; the answer is the largest thing in it. */
.calc { background: var(--bg-2); border-radius: var(--r-lg); padding: 28px; margin: 28px 0; }
.calc h2 { margin: 0 0 18px; font-size: 26px; }
.calc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 24px; align-items: end; }
.calc-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--fg-2); }
.calc-form label.check { grid-column: 1 / -1; flex-direction: row; align-items: flex-start; gap: 10px; color: var(--fg); font-size: 15px; min-height: 36px; padding-top: 4px; align-items: center; }
.calc-form input[type=number] { font: inherit; font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--fg); width: 100%; min-height: 48px; }
.calc-form input[type=range] { width: 100%; accent-color: var(--accent); min-height: 44px; }
.calc-form .suffix { display: flex; align-items: center; gap: 8px; color: var(--fg); }
.calc-form input[type=checkbox] { width: 22px; height: 22px; flex: none; margin: 0; accent-color: var(--accent); }
.calc-answer { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.35; letter-spacing: -0.018em; margin: 24px 0 0; max-width: 62ch; }
.calc-answer strong { color: var(--accent); }
.calc-scope { color: var(--fg-2); font-size: 14px; margin: 18px 0 0; max-width: 80ch; }
.calc .table-wrap { background: var(--bg); }
.calc-form fieldset.filters { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; display: grid; gap: 0; }
.filters legend { padding: 0; font-size: 14px; color: var(--fg-2); margin-bottom: 2px; }

/* The one ranking table: the group that meets the filters first, every other priced service under a second header. */
.rank { margin-top: 20px; }
.rank .group th { position: static; background: var(--bg-2); color: var(--fg); font-size: 14px; font-weight: 600; white-space: normal; letter-spacing: -0.005em; padding: 10px 16px; border-top: 1px solid var(--line); }
.rank thead + tbody > .group:first-child th { border-top: 0; }
.rank .group:not(:first-child) th { border-top: 2px solid var(--line); }
.rank tr.rest td, .rank tr.rest th { color: var(--fg); }
.rank td .sub { display: block; color: var(--fg-2); font-size: 13px; margin-top: 2px; }
.rank td { min-width: 9ch; }

/* Why the default view looks the way it does: one quiet line under the opening paragraph, above the figure. */
.closest { color: var(--fg-2); font-size: 16px; max-width: 62ch; }
.stage-filters { color: var(--fg-2); font-size: 15px; margin: 6px 0 0; max-width: 72ch; }
.stage-filters strong { color: var(--fg); }
.home .closest, .home .stage-filters { margin-left: auto; margin-right: auto; text-align: center; }

.faq details { border-top: 1px solid var(--line); max-width: 840px; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--fg-2); font-size: 24px; font-weight: 300; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary h3 { display: block; font-size: 18px; margin: 0; }
.faq details p { margin: 0 0 16px; }

/* Home: a centered, product-page opening. */
.home h1, .home .updated, .home .lead { margin-left: auto; margin-right: auto; text-align: center; }
.home h1 { max-width: 22ch; font-size: clamp(34px, 5.6vw, 60px); margin-top: 8px; }
.home .lead { max-width: 54ch; }
.home .updated { margin-bottom: 20px; }

/* The price landscape. Reserved box (no layout shift); empty panel until the scene mounts; hidden with JS off. */
.stage { position: relative; margin: 28px 0; }
.stage-view { position: relative; height: clamp(300px, 34vw, 400px); border-radius: var(--r-lg); background: radial-gradient(120% 90% at 50% 0%, var(--bg-2), var(--bg-3)); overflow: hidden; }
.stage-view canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity .5s ease; }
.stage[data-state="ready"] canvas { opacity: 1; }
.stage[data-state="off"] { display: none; }
.stage-tip { position: absolute; left: 0; top: 0; z-index: 2; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; color: var(--fg); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line-soft); }
.stage-tip[data-lead="1"] { color: var(--accent); }
.stage figcaption { color: var(--fg-2); font-size: 14px; max-width: 80ch; margin: 12px auto 0; text-align: center; }

.foot { border-top: 1px solid var(--line-soft); background: var(--bg-2); color: var(--fg-2); font-size: 13px; padding: 28px 0 44px; }
.foot strong { color: var(--fg); }
.foot-grid { display: grid; gap: 18px 48px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.foot-about { margin: 0; max-width: 56ch; }
.foot-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0 16px; align-content: start; }
.foot-links a { color: var(--fg-2); min-height: 36px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--fg); }

@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  main { padding-top: 28px; }
  .wrap { padding: 0 16px; }
  h2 { margin-top: 48px; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .nav { margin-left: 0; flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; gap: 0 20px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { white-space: nowrap; }
  .top .wrap { gap: 0; }
  .calc { padding: 20px 16px; border-radius: var(--r-md); }
  th, td { padding: 10px 12px; }
  .stage-view { height: 300px; border-radius: var(--r-md); }
}
@media (max-width: 480px) {
  /* The figure never pushes the reason for its result off the first screens. */
  .stage { margin: 18px 0; }
  .stage-view { height: 240px; }
  .stage-tip { white-space: normal; max-width: 86%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
