/* YouPayThat. Bottle green receipt: warm off-white page, white cards, sage tints, one deep green. */
:root {
  --bg: #F8FAF7;
  --paper: #FFFFFF;
  --wash: #EDF4EE;
  --line: #D8E4DB;
  --ink: #182720;
  --muted: #516457;
  --soft: #5D7064;
  --green: #1C523F;
  --green-text: #1C523F;
  --panel: #1C523F;
  --on-green: #F7FBF7;
  --on-green-muted: #CEE8D4;
  --green-tint: #E3F0E6;
  --tile-fg: #1C523F;
  --bar-2: #A8C8B3;
  --warn: #8F5600;
  --band: #EDF4EE;
  --band-line: #D3E2D7;
  --stripe: #A6E6C6;
  --font-display: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --header-h: 72px;
  color-scheme: light;
}
:root[data-mode="dark"] {
  --bg: #121F19; --paper: #1A2A22; --wash: #22352B; --line: #2E4538; --ink: #F4F8F3; --muted: #B8CABD; --soft: #9FB3A6;
  --green: #267052; --green-text: #B7EBC8; --panel: #214C38; --on-green: #F4F8F3; --on-green-muted: #C9E6D3;
  --green-tint: #243F30; --tile-fg: #C9E6D3; --bar-2: #44614F; --warn: #E3A64B;
  --band: #172720; --band-line: #2E4538;
  color-scheme: dark;
}
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 2.4vw, 28px); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
a { color: inherit; }
img { max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; letter-spacing: -0.02em; line-height: 1.15; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.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)); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--green); color: var(--on-green); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top .wrap { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.logo { width: 34px; height: 41px; flex: none; }
.logo-body { fill: var(--green); }
.logo-line { fill: var(--stripe); }
.word { font: 600 22px var(--font-display); letter-spacing: -0.025em; }
.top-r { display: flex; align-items: center; gap: 6px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav > a, .nav > .dd > button { padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; border: 0; background: transparent; display: inline-flex; align-items: center; gap: 4px; }
.nav > a:hover, .nav > .dd > button:hover { color: var(--ink); }
.nav [aria-current="page"] { color: var(--ink); background: var(--wash); }
.cta { margin-left: 4px; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--green); color: var(--on-green); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.dd { position: relative; }
.dd-panel { position: absolute; top: calc(100% + 8px); left: -8px; width: 520px; padding: 10px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(17, 36, 28, 0.12); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.dd-panel a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 12px; text-decoration: none; }
.dd-panel a:hover { background: var(--wash); }
.dd-panel b { font-weight: 600; font-size: 15px; }
.dd-panel small { color: var(--soft); font-size: 13px; }
.icon-btn { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.mode .sun { display: none; }
:root[data-mode="dark"] .mode .moon { display: none; }
:root[data-mode="dark"] .mode .sun { display: block; }
.menu-btn { display: none; }
.sheet { border-top: 1px solid var(--line); background: var(--bg); max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet .wrap { padding-block: 12px 24px; display: grid; gap: 4px; }
.sheet a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 4px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.sheet .group { padding-top: 14px; }
.sheet .cta { justify-content: center; margin: 16px 0 0; height: 50px; border: 0; }
@media (max-width: 860px) {
  .nav, .top-r > .cta { display: none; }
  .menu-btn { display: grid; }
}

/* shared */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.checked { display: inline-flex; align-items: baseline; gap: 8px; font-size: 13px; color: var(--muted); }
.checked::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; transform: translateY(-1px); }
.lede { color: var(--muted); font-size: 17px; max-width: 46ch; margin: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--wash); }
.seg button { border: 0; background: transparent; padding: 0 14px; height: 38px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.seg.lg button { height: 42px; padding: 0 20px; font-size: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--green); color: var(--on-green); font-weight: 600; text-decoration: none; white-space: nowrap; }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip { height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 500; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.tile { width: 42px; height: 42px; border-radius: 12px; background: var(--green-tint); color: var(--tile-fg); display: grid; place-items: center; font: 600 14px var(--font-display); flex: none; letter-spacing: 0; }
.tile.sm { width: 32px; height: 32px; border-radius: 999px; font-size: 11px; }
.tile.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 19px; }
.band { background: var(--band); }
.band .tile { background: var(--paper); }
/* brand logos sit on a white chip in both modes so dark marks (GitHub, Notion, Vercel) stay visible */
.tile.logo, .band .tile.logo, .tile.pair { background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); }
.tile.logo img { width: 24px; height: 24px; object-fit: contain; display: block; }
.tile.lg.logo img { width: 32px; height: 32px; }
.tile.sm.logo img { width: 18px; height: 18px; }
.tile.pair { position: relative; }
.tile.pair img { position: absolute; width: 18px; height: 18px; object-fit: contain; }
.tile.pair img:first-child { left: 6px; top: 6px; }
.tile.pair img:last-child { right: 6px; bottom: 6px; }
.ad { display: grid; gap: 6px; justify-items: center; }
.ad > span { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.ad > div { width: 100%; max-width: 728px; height: 96px; border-radius: var(--r-sm); background: var(--wash); border: 1px dashed var(--line); }
.ad.box > div { max-width: 300px; height: 250px; }
.sec { padding-top: clamp(40px, 5vw, 64px); }
.sec-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.sec-h h2 { font-size: clamp(22px, 2.6vw, 28px); }
.sec-h a { font-weight: 600; font-size: 15px; }
.range { display: flex; align-items: center; gap: 14px; min-height: 44px; flex: 1 1 260px; }
.range span { font-weight: 600; }
.range input { flex: 1; min-width: 0; accent-color: var(--green); height: 44px; }
.range output { min-width: 40px; text-align: right; font: 600 20px var(--font-display); }
.controls { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); padding-block: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.note { font-size: 13px; color: var(--soft); margin: 0; padding-top: 10px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); padding-bottom: 18px; }
.crumbs a { color: var(--muted); }
.answer { margin: 18px 0 0; padding: 14px 16px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--band-line); font-size: 16px; max-width: 62ch; }
.answer b { font-weight: 600; }

/* footer */
footer { margin-top: 96px; background: var(--band); border-top: 1px solid var(--band-line); }
footer .wrap { padding-block: 36px 40px; display: grid; gap: 32px; }
.foot-cols { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(140px, 1fr)); gap: 28px; }
.foot-cols h3 { font: 600 13px var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); padding-bottom: 8px; }
.foot-cols a { display: block; text-decoration: none; padding: 5px 0; color: var(--ink); font-size: 15px; }
.foot-cols p { margin: 12px 0 0; color: var(--muted); font-size: 14px; max-width: 36ch; }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--band-line); color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-cols > div:first-child { grid-column: 1 / -1; } }

/* home */
.hero { padding-block: clamp(28px, 3.6vw, 48px) clamp(24px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; }
.hero h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 600; max-width: 13ch; }
.hero h1 em, .page-h h1 em { font-style: normal; color: var(--green-text); }
.hero-side { display: grid; gap: 14px; flex: 1 1 320px; max-width: 440px; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 24px 16px; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.builder { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 40px; }
.list { flex: 999 1 560px; min-width: 0; }
.list-h { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.list-h h2 { font-size: 20px; }
.list-h span { color: var(--soft); font-size: 14px; }
.row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; column-gap: 14px; row-gap: 12px; align-items: center; padding-block: 16px; border-bottom: 1px solid var(--line); }
.row-name { min-width: 0; }
.row-name b { display: block; font-weight: 600; }
.row-name a { text-decoration: none; }
.row-name a:hover { text-decoration: underline; }
.row-name span, .row-cost span { display: block; font-size: 13px; color: var(--soft); }
.row-cost { text-align: right; }
.row-cost b { font: 600 18px var(--font-display); letter-spacing: -0.01em; }
.row-ctl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-ctl select { height: 42px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--paper); font-size: 14px; max-width: 100%; }
.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--wash); }
.stepper button { width: 42px; height: 42px; border: 0; background: transparent; border-radius: 999px; font-size: 19px; }
.stepper output { min-width: 66px; text-align: center; font-size: 14px; font-weight: 500; }
.date { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 4px 0 14px; border-radius: 999px; background: var(--wash); font-size: 13px; color: var(--muted); }
.date input { height: 34px; border: 0; border-radius: 999px; padding: 0 10px; background: var(--paper); font-size: 13px; }
.ghost { height: 42px; padding: 0 14px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 13px; font-weight: 600; }
.x { width: 42px; height: 42px; margin-left: auto; border: 0; background: transparent; border-radius: 999px; color: var(--soft); display: grid; place-items: center; }
.empty { padding: 32px 0 20px; text-align: center; color: var(--soft); display: grid; gap: 6px; justify-items: center; }
.empty b { font: 600 22px var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.empty span { font-size: 15px; max-width: 40ch; }
.add { padding-top: 18px; display: grid; gap: 12px; }
.search { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 18px; border-radius: 999px; background: var(--wash); }
.search input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; font-size: 16px; }
.search input:focus { outline: none; }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--green); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.quick button { height: 42px; padding: 0 14px 0 5px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-size: 14px; font-weight: 500; }
.aside { flex: 1 1 320px; min-width: 0; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 16px); display: grid; gap: 16px; }
.total { border-radius: var(--r-lg); background: var(--panel); color: var(--on-green); padding: 24px; }
.total .eyebrow { color: var(--on-green-muted); }
.big { font: 600 clamp(38px, 4.2vw, 50px)/1.05 var(--font-display); letter-spacing: -0.03em; padding-top: 8px; }
.total small { color: var(--on-green-muted); font-size: 14px; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.2); }
.pair b { display: block; font: 600 19px var(--font-display); }
.pair span { font-size: 13px; color: var(--on-green-muted); }
.team { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 14px; }
.team .stepper { background: rgba(0,0,0,0.2); }
.team .stepper button { color: var(--on-green); }
.renew { border-radius: var(--r-lg); background: var(--wash); padding: 18px 20px; }
.renew-h { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; font-size: 12px; color: var(--soft); }
.renew-row { display: flex; align-items: center; gap: 14px; padding-block: 10px; border-top: 1px solid var(--line); }
.cal { width: 44px; text-align: center; line-height: 1.1; flex: none; }
.cal small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-text); }
.cal b { font: 600 20px var(--font-display); }
.renew-row .who2 { flex: 1; min-width: 0; }
.renew-row .who2 b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.renew-row .who2 span { font-size: 12px; color: var(--soft); }
.renew-row > b { font-size: 14px; font-weight: 600; }
.insight { display: flex; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.insight i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-top: 8px; flex: none; }
.insight i.warn { background: var(--warn); }
.insight b { display: block; font-size: 15px; }
.insight span { font-size: 14px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.actions .btn { flex: 1 1 auto; padding: 0 18px; font-size: 15px; }
.flash { padding: 12px 16px; border-radius: var(--r-md); background: var(--green-tint); font-size: 14px; font-weight: 500; }
.mbar { display: none; }
@media (max-width: 899px) {
  .aside { position: static; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
  .mbar > div { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 20px; background: var(--ink); color: var(--bg); }
  .mbar small { display: block; font-size: 12px; opacity: 0.78; }
  .mbar b { font: 600 21px var(--font-display); }
  .mbar a { height: 44px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 999px; background: var(--green); color: var(--on-green); text-decoration: none; font-weight: 600; font-size: 14px; flex: none; }
  .has-mbar footer { padding-bottom: 96px; }
}
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); column-gap: 32px; }
.cats a, .links a { display: flex; align-items: center; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); text-decoration: none; min-height: 44px; }
.cats a > span:nth-child(2), .links a > span:nth-child(2) { flex: 1; min-width: 0; }
.cats b, .links b { display: block; font-weight: 600; }
.cats small, .links small { display: block; font-size: 13px; color: var(--soft); }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 32px; }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 40px; padding-block: clamp(32px, 4vw, 48px); }
.why div { display: grid; gap: 6px; align-content: start; }
.why h3 { font-size: 19px; }
.why p { margin: 0; color: var(--muted); }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; }
.post-card { display: grid; gap: 6px; padding-block: 20px; border-bottom: 1px solid var(--line); text-decoration: none; align-content: start; }
.post-card .eyebrow { color: var(--green-text); }
.post-card h3 { font-size: 19px; line-height: 1.25; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; }
.post-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

/* page headers */
.page-h { padding-block: clamp(24px, 3.4vw, 44px) clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 48px; }
.page-h > div:first-child { flex: 1 1 520px; min-width: 0; }
.page-h h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; max-width: 20ch; }
.who { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; }
.who div { font-size: 14px; color: var(--muted); line-height: 1.45; }
.who a { color: var(--muted); }

/* tool page */
.cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 40px 48px; padding-top: 32px; }
.main { flex: 999 1 620px; min-width: 0; display: grid; gap: 48px; }
.side { flex: 1 1 280px; min-width: 0; display: grid; gap: 20px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 88px); }
@media (max-width: 899px) { .side { position: static; } }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 24px; }
.tier { border-top: 3px solid var(--ink); padding-top: 14px; display: grid; gap: 4px; align-content: start; }
.tier.pick { border-top-color: var(--green); }
.tier-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 26px; }
.tier h3 { font-size: 20px; }
.badge { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--green-tint); color: var(--green-text); white-space: nowrap; }
.tier .price { font: 600 30px var(--font-display); letter-spacing: -0.02em; padding-top: 4px; }
.tier small { font-size: 13px; color: var(--soft); }
.sum { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: 14px; }
.sum div { display: flex; justify-content: space-between; gap: 8px; }
.sum div span:first-child { color: var(--muted); }
.sum div.tot { padding-top: 6px; border-top: 1px solid var(--line); font-weight: 600; }
.sum div.tot span:first-child { color: var(--ink); }
.tier ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.tier li::before { content: "·"; margin-right: 6px; color: var(--green-text); font-weight: 700; }
.punch { border-radius: var(--r-lg); background: var(--band); padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.punch b { display: block; font: 600 20px var(--font-display); letter-spacing: -0.02em; }
.punch span { font-size: 14px; color: var(--muted); }
.lines > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.lines > div > div { flex: 1 1 340px; min-width: 0; }
.lines p { margin: 0; font-size: 14px; color: var(--muted); }
details { border-bottom: 1px solid var(--line); }
summary { min-height: 44px; padding-block: 14px; font-weight: 600; cursor: pointer; }
details p { margin: 0 0 14px; color: var(--muted); max-width: 70ch; }
.try { border-radius: var(--r-lg); background: var(--band); padding: 22px; display: grid; gap: 12px; }
.try p { margin: 0; }
.try small { font-size: 12px; color: var(--muted); }
.try .btn { white-space: normal; text-align: center; height: auto; min-height: 50px; padding-block: 12px; }
.more { display: grid; }
.more a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; gap: 12px; }
.more .eyebrow { padding-bottom: 6px; }

/* compare */
.versus { text-align: center; padding-block: clamp(24px, 3.4vw, 44px) clamp(24px, 3vw, 36px); display: grid; justify-items: center; gap: 14px; }
.versus h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; max-width: 22ch; }
.versus h1 em { font-style: normal; color: var(--green-text); }
.versus .lede { text-align: center; }
.vs { display: flex; align-items: center; gap: 12px; }
.vs > span { font-size: 13px; color: var(--soft); }
.verdict { text-align: center; padding-block: 32px; display: grid; gap: 6px; justify-items: center; }
.verdict p { margin: 0; font: 600 clamp(20px, 2.6vw, 28px)/1.25 var(--font-display); letter-spacing: -0.02em; max-width: 34ch; }
.pairrow { padding-block: 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.pairrow-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.pairrow-h h2 { font-size: 20px; }
.pairrow-h span { font-size: 14px; color: var(--muted); }
.barline { display: grid; grid-template-columns: 200px minmax(0, 1fr) 104px; align-items: center; gap: 12px; }
.barline .lab { font-size: 14px; min-width: 0; }
.barline .lab span { color: var(--soft); }
.track { height: 22px; border-radius: 999px; background: var(--wash); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 999px; background: var(--green); }
.track i.b { background: var(--bar-2); }
.barline > b { text-align: right; font-weight: 600; }
@media (max-width: 560px) {
  .barline { grid-template-columns: minmax(0, 1fr) auto; }
  .barline .track { grid-column: 1 / -1; grid-row: 2; }
}
.picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px 48px; }
.picks h2 { font-size: 22px; padding-bottom: 8px; }
.picks p { margin: 0; padding-block: 10px; border-bottom: 1px solid var(--line); }
.callout { margin-top: 40px; border-radius: var(--r-lg); background: var(--band); padding: 26px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.callout b { display: block; font: 600 clamp(20px, 2.4vw, 26px) var(--font-display); letter-spacing: -0.02em; }
.callout span { font-size: 15px; color: var(--muted); }

/* category list */
.clist a { display: grid; grid-template-columns: 26px 42px minmax(0, 1fr) minmax(90px, 260px) 150px; align-items: center; gap: 14px; padding-block: 16px; border-bottom: 1px solid var(--line); text-decoration: none; }
.clist .rank { font-size: 13px; color: var(--soft); }
.clist b { display: block; font-weight: 600; }
.clist small { display: block; font-size: 13px; color: var(--soft); }
.clist .track { height: 10px; }
.clist .cost { text-align: right; }
.clist .cost b { font: 600 17px var(--font-display); }
@media (max-width: 680px) {
  .clist a { grid-template-columns: 22px 42px minmax(0, 1fr) auto; }
  .clist .track { grid-column: 3 / -1; grid-row: 2; }
  .clist .cost { grid-column: 4; grid-row: 1; }
}
.tips { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 40px; }
.tips h3 { font-size: 18px; padding-bottom: 6px; }
.tips p { margin: 0; color: var(--muted); }

/* articles */
.article { max-width: 720px; margin: 0 auto; }
.article-h { padding-block: clamp(24px, 3.4vw, 44px) clamp(24px, 3vw, 36px); }
.article-h h1 { font-size: clamp(30px, 4.4vw, 48px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 600; }
.article-h .lede { margin-top: 16px; max-width: 60ch; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 16px; font-size: 14px; color: var(--muted); }
.prose { font-size: 18px; line-height: 1.7; padding-top: 28px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin-top: 1.9em; }
.prose h3 { font-size: 20px; margin-top: 1.6em; }
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose a { color: var(--green-text); text-underline-offset: 3px; }
.prose strong { font-weight: 600; }
.prose .tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.prose th, .prose td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 600; background: var(--wash); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose td.r, .prose th.r { text-align: right; }
.prose .key { padding: 18px 20px; border-radius: var(--r-md); background: var(--band); }
.prose .key p { margin: 0; }
.prose .src { font-size: 14px; color: var(--soft); }
.static { max-width: 720px; }
.static .prose { padding-top: 8px; }

@media (prefers-reduced-motion: no-preference) {
  .track i { transition: width 0.25s ease; }
  html { scroll-behavior: smooth; }
}

/* freshness disclaimer */
.fresh { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 20px; padding: 12px 16px; border: 1px solid var(--band-line); border-radius: 12px; font-size: 14px; color: var(--ink); }
.fresh a { color: var(--green-text, var(--green)); font-weight: 600; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #2FA36B; box-shadow: 0 0 0 0 rgba(47,163,107,.5); animation: pulse 2.4s ease-out infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47,163,107,.45); } 70% { box-shadow: 0 0 0 8px rgba(47,163,107,0); } 100% { box-shadow: 0 0 0 0 rgba(47,163,107,0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* cross-browser hardening: Safari / iOS / Firefox */
html { -webkit-tap-highlight-color: transparent; }
button, a, input, select, label { touch-action: manipulation; }
.row-ctl select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23516457' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px; text-overflow: ellipsis; }
:root[data-mode="dark"] .row-ctl select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23B8CABD' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.search input { -webkit-appearance: none; appearance: none; border-radius: 0; }
.search input::-webkit-search-decoration, .search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.date input { -webkit-appearance: none; appearance: none; min-width: 124px; display: inline-flex; align-items: center; color: var(--ink); line-height: 34px; }
.date input::-webkit-date-and-time-value { text-align: left; margin: 0; }
.date input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.7; }
:root[data-mode="dark"] .date input::-webkit-calendar-picker-indicator { filter: invert(1); }
.stepper button, .x, .icon-btn, .chip, .seg button, .ghost, .quick button { color: var(--ink); }
.x { color: var(--soft); }
.seg button { color: var(--muted); }
.seg button[aria-pressed="true"] { color: var(--ink); }
.chip[aria-pressed="true"] { color: var(--bg); }
/* iOS zooms into any field under 16px; keep fields at 16px on touch screens */
@media (pointer: coarse), (max-width: 899px) {
  .row-ctl select, .date input, .search input { font-size: 16px; }
  .date { font-size: 14px; }
  .date input { min-width: 136px; }
}
@media (max-width: 860px) {
  .logo { width: 30px; height: 36px; }
  .word { font-size: 20px; }
  :root { --header-h: 64px; }
}
/* hover only where a real pointer exists, so taps don't leave stuck states on phones */
@media (hover: none) {
  .nav > a:hover, .nav > .dd > button:hover { color: var(--muted); }
  .dd-panel a:hover { background: transparent; }
  .row-name a:hover { text-decoration: none; }
  .post-card:hover h3 { text-decoration: none; }
}
.picks .full { border-bottom: 0; padding-top: 6px; }
.picks .full a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--green-text); text-underline-offset: 3px; }
.add { grid-template-columns: minmax(0, 1fr); }
.search { min-width: 0; }
.search input::placeholder { text-overflow: ellipsis; }
.presets { align-items: center; }
.presets-l { font-size: 13px; color: var(--soft); padding: 0 2px 0 6px; }
.chip.own[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--on-green); }
