/* The pages scripts/build-site.mjs makes (2026-10-16): Compare (one page per app, design F) and the
   Blog (design B, the user: "B"). Built on site.css; one accent. */

.crumb { display: block; margin-bottom: 16px; color: var(--muted); font: 600 14px/1 var(--body); text-decoration: none; }
.crumb:hover { color: var(--ink); }
.c-hero { padding: clamp(40px, 6vh, 72px) 0 0; }
.c-title { font: 800 clamp(3rem, 6.6vw, 6rem)/0.88 var(--display); text-transform: uppercase; text-wrap: balance; }
.c-hero .lead { margin-top: 20px; max-width: 56ch; }
.note { color: var(--muted); font-size: 14px; line-height: 1.6; }
.note a { color: var(--soft); }
.close { padding: clamp(48px, 6vw, 80px) 0; display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: center; }
.close span { color: var(--muted); font-size: 15px; }

/* A row of links that reads as a filter: the current one in ink, an ink line under it. */
.pick { margin-top: clamp(28px, 3.5vw, 40px); display: flex; align-items: baseline; gap: 6px 26px; flex-wrap: wrap; border-bottom: 1px solid var(--hair); }
.pick .lab { color: var(--muted); font: 600 14px/1 var(--body); margin-right: 4px; }
.pick a, .pick button { display: inline-block; padding: 12px 0 14px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--soft); text-decoration: none; font: 600 16px/1 var(--body); cursor: pointer; white-space: nowrap; }
.pick a:hover, .pick button:hover { color: var(--ink); }
.pick [aria-current], .pick [aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--ink); }

/* ─── Compare: the list (2026-10-22: one price, the grid, a page per app) ───────────── */
/* One plain section: AptCoach's one price, and AI that is never forced on anyone. */
.one-price { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(28px, 3.4vw, 44px); border-top: 1px solid var(--hair); display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 20px clamp(32px, 5vw, 88px); align-items: start; }
.one-price h2 { font: 800 clamp(2.4rem, 4.4vw, 4rem)/0.9 var(--display); text-transform: uppercase; text-wrap: balance; }
.one-price p { max-width: 58ch; color: var(--soft); font-size: clamp(1.05rem, 1.3vw, 1.2rem); line-height: 1.6; }
.one-price p + p { margin-top: 18px; }
.one-price b { color: var(--ink); font-weight: 600; }

.cmp { margin-top: clamp(72px, 9vw, 128px); }
.cmp h2, .vs h2 { font: 800 clamp(2rem, 3.4vw, 3rem)/0.95 var(--display); text-transform: uppercase; }
/* The switch: All apps, or AptCoach and one app. */
.chips { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips[hidden] { display: none; }
.chips button { height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--control); color: var(--soft); font: 600 14.5px/1 var(--body); cursor: pointer; white-space: nowrap; }
.chips button:hover { background: var(--control2); color: var(--ink); }
.chips button[aria-pressed="true"] { background: var(--ink); color: var(--ground); }
.legend { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 26px; color: var(--muted); font: 500 14px/1.2 var(--body); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend .gm { width: 18px; height: 18px; }

/* The grid: AptCoach's column on a lighter panel with its marks in the accent; a row lights with
   rounded ends, its words clear of the edge. */
.grid-wrap { position: relative; margin-top: 22px; }
.cmp-grid { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cmp-grid th, .cmp-grid td { padding: 18px 8px; border-top: 1px solid var(--hair); text-align: center; vertical-align: top; }
.cmp-grid .g-lab { width: 230px; }
.cmp-grid thead th { position: sticky; top: 76px; z-index: 2; background: var(--ground); border-top: 0; padding: 24px 8px 18px; vertical-align: bottom; font: 800 1.08rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; }
.cmp-grid thead a { color: var(--soft); text-decoration: none; text-wrap: balance; }
.cmp-grid thead a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.cmp-grid thead th.us { color: var(--ink); font-size: 1.35rem; box-shadow: inset 0 3px 0 var(--blaze); }
.cmp-grid th[scope=row], .cmp-grid tr.grp th { position: sticky; left: 0; z-index: 1; padding-left: 16px; text-align: left; background: var(--ground); }
.cmp-grid th[scope=row] { vertical-align: middle; color: var(--ink); font: 500 15.5px/1.3 var(--body); }
.cmp-grid tr.grp th, .cmp-grid tr.grp td { padding: 44px 8px 14px 16px; border-top: 0; color: var(--muted); font: 600 12.5px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; }
.cmp-grid tbody tr:first-child th, .cmp-grid tbody tr:first-child td { padding-top: 30px; }
.cmp-grid .us { background: var(--panel); }
.cmp-grid thead .us { border-radius: 16px 16px 0 0; }
.cmp-grid tbody tr:last-child .us { border-radius: 0 0 16px 16px; padding-bottom: 22px; }
.cmp-grid tbody tr:not(.grp):hover > * { background: var(--row); }
.cmp-grid tbody tr:not(.grp):hover > td.us { background: #22262f; }
.cmp-grid tbody tr:not(.grp):hover > th { border-radius: 14px 0 0 14px; }
.cmp-grid tbody tr:not(.grp):hover > td:last-child, .cmp-grid tbody tr:not(.grp):hover > td.end { border-radius: 0 14px 14px 0; }
.cmp-grid td small { display: block; margin-top: 8px; color: var(--muted); font: 500 12.5px/1.3 var(--body); overflow-wrap: anywhere; }
.cmp-grid td.us small { color: var(--ink); font-weight: 600; }
.gm { width: 24px; height: 24px; display: inline-block; vertical-align: top; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.g-in circle { fill: var(--ink); stroke: none; }
.g-in path { stroke: var(--ground); stroke-width: 2.6; }
.g-plan, .g-add { stroke: var(--soft); }
.g-plan path, .g-add path { stroke-width: 2.2; }
.g-part { stroke: var(--soft); }
.g-part path { fill: var(--soft); stroke: none; }
.g-no { stroke: #5a626f; stroke-width: 2.4; }
.g-ns { stroke: #4a515d; stroke-dasharray: 2.2 3.1; }
.cmp-grid td.us .g-in circle { fill: var(--blaze); }
.cmp-grid td.us .g-in path { stroke: var(--on-blaze); }
.cmp-grid td.us .g-plan, .cmp-grid td.us .g-add, .cmp-grid td.us .g-part { stroke: var(--blaze); }
.cmp-grid td.us .g-part path { fill: var(--blaze); }
/* AptCoach and one app (the switch): the two answers wide, the rest put away. */
.cmp-grid .off { display: none; }
.cmp-grid.one { max-width: 860px; }
.cmp-grid.one .g-lab { width: 38%; }
.grid-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: var(--ink); font: 600 16px/1 var(--body); text-decoration: none; }
.grid-more[hidden] { display: none; }
.grid-more svg { width: 18px; height: 18px; }
.grid-more:hover { text-decoration: underline; text-underline-offset: 4px; }

.vs { margin-top: clamp(80px, 9vw, 128px); }
.vs-list { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); }
.vs-list a { position: relative; display: flex; align-items: baseline; gap: 10px; padding: 20px 34px 20px 0; border-top: 1px solid var(--hair); text-decoration: none; }
.vs-list span { color: var(--muted); font: 600 12.5px/1 var(--body); letter-spacing: 0.06em; text-transform: uppercase; }
.vs-list b { color: var(--ink); font: 800 1.55rem/1 var(--display); text-transform: uppercase; }
.vs-list svg { position: absolute; top: 50%; right: 2px; width: 20px; height: 20px; margin-top: -10px; color: var(--muted); }
.vs-list a:hover b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.vs-list a:hover svg { color: var(--ink); }
.vs ~ .close { padding: clamp(56px, 7vw, 96px) 0 0; }
.vs ~ .srcs { margin: 28px 0 clamp(56px, 7vw, 96px); }

@media (max-width: 1240px) {
  .cmp-grid .g-lab { width: 180px; }
  .cmp-grid th, .cmp-grid td { padding-left: 4px; padding-right: 4px; }
  .cmp-grid th[scope=row], .cmp-grid tr.grp th { padding-left: 12px; }
  .cmp-grid thead th, .cmp-grid thead th.us { font-size: 0.98rem; }
  .cmp-grid td small { font-size: 12px; }
}
@media (max-width: 900px) {
  .one-price { grid-template-columns: minmax(0, 1fr); }
}
/* Under a laptop's width the grid scrolls sideways, the feature names staying put. */
@media (max-width: 1080px) {
  .grid-wrap { overflow-x: auto; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: thin; scrollbar-color: var(--control2) transparent; }
  .cmp-grid:not(.one) { min-width: 1000px; }
  .cmp-grid thead th { position: static; }
  .vs-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ─── Compare: one app ──────────────────────────────────────────────────────── */
.strong { margin-top: clamp(48px, 6vw, 80px); }
.kicker { color: var(--muted); font: 600 13px/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; }
.three { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.three li { padding-top: 20px; border-top: 3px solid var(--ink); display: grid; align-content: start; gap: 16px; }
.three h3 { font: 800 clamp(2rem, 3vw, 2.8rem)/0.92 var(--display); text-transform: uppercase; text-wrap: balance; }
.three p { font-size: 15px; line-height: 1.45; color: var(--muted); }
.three p.us { color: var(--ink); font-size: 17px; }
.three p b { display: block; margin-bottom: 3px; font: 600 12.5px/1 var(--body); letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.three p.us b { color: var(--soft); }
.glance { max-width: 1040px; margin-top: clamp(64px, 8vw, 104px); }
.glance h2 { font: 800 clamp(1.8rem, 3vw, 2.6rem)/1 var(--display); text-transform: uppercase; }
.glance table { width: 100%; margin-top: 18px; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-variant-numeric: tabular-nums; }
.glance col.f { width: 250px; }
.glance th, .glance td { text-align: left; vertical-align: middle; padding: 15px 22px; border-top: 1px solid var(--hair); }
.glance thead th { border-top: 0; padding: 14px 22px; vertical-align: bottom; font: 800 1.5rem/1 var(--display); text-transform: uppercase; }
.glance th[scope=row] { padding-left: 0; color: var(--soft); font: 500 15.5px/1.35 var(--body); }
.glance tr.grp th { padding: 30px 0 10px; border-top: 0; color: var(--muted); font: 600 12.5px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; }
.glance .usc { background: var(--panel); }
.glance thead th.usc { border-radius: 14px 14px 0 0; }
.glance tbody tr:last-child td.usc { border-radius: 0 0 14px 14px; }
.cellm { display: flex; align-items: center; gap: 10px; font: 500 15px/1.3 var(--body); color: var(--muted); }
.cellm svg { width: 20px; height: 20px; flex: none; }
.cellm .q { width: 20px; flex: none; text-align: center; font: 700 16px/20px var(--body); color: #5a626f; }
.cellm.ahead { color: var(--ink); font-weight: 600; }
.mk-ok { color: var(--blaze); stroke-width: 2.8; }
.mk-soft { color: var(--muted); stroke-width: 2.6; }
.mk-no { color: #5a626f; stroke-width: 2.4; }
.pr { font: 800 1.55rem/1 var(--display); color: var(--soft); letter-spacing: 0.01em; }
.pr.ahead { color: var(--ink); }
.pr small { display: block; margin-top: 5px; font: 500 12.5px/1.2 var(--body); color: var(--muted); letter-spacing: 0; }
.bothline { max-width: 1040px; margin-top: 22px; color: var(--soft); font-size: 16px; line-height: 1.55; }
.bothline b { color: var(--ink); font-weight: 600; }
.srcs { max-width: 1040px; margin-top: clamp(48px, 6vw, 72px); }
.srcs a { word-break: break-word; }

/* ─── Blog: the list (design B: the newest large, the rest two across) ────────── */
.top { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px clamp(28px, 5vw, 72px); padding: clamp(36px, 5vw, 64px) 0; border-bottom: 1px solid var(--hair); text-decoration: none; align-items: end; }
.top .k { color: var(--muted); font: 600 13px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; }
.top b { display: block; margin-top: 14px; color: var(--ink); font: 800 clamp(2.6rem, 5vw, 4.4rem)/0.9 var(--display); text-transform: uppercase; text-wrap: balance; }
.top p { color: var(--soft); font-size: 18px; line-height: 1.55; }
.top .go { margin-top: 18px; color: var(--ink); font: 600 16px/1 var(--body); display: inline-flex; gap: 8px; align-items: center; }
.top .go svg { width: 18px; height: 18px; }
.top:hover b { color: var(--blaze); }
.posts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 5vw, 72px); }
.posts a { display: block; padding: 22px 0; border-bottom: 1px solid var(--hair); text-decoration: none; }
.posts b { display: block; color: var(--ink); font: 800 1.55rem/1 var(--display); text-transform: uppercase; text-wrap: balance; }
.posts span { display: block; margin-top: 8px; color: var(--soft); font-size: 15.5px; }
.posts small { display: block; margin-top: 10px; color: var(--muted); font: 600 13px/1 var(--body); }
.posts a:hover b { color: var(--blaze); }
.posts [hidden], .top[hidden] { display: none; }

/* ─── Blog: a post (design B: the contents beside it) ────────────────────────── */
.p-head { padding: clamp(40px, 6vh, 72px) 0 clamp(24px, 3vw, 40px); max-width: 980px; }
.p-title { font: 800 clamp(2.5rem, 5.2vw, 4.6rem)/0.92 var(--display); text-transform: uppercase; text-wrap: balance; }
.p-meta { margin-top: 18px; color: var(--muted); font: 500 15px/1.4 var(--body); }
.two { display: grid; grid-template-columns: minmax(0, 700px) 280px; gap: clamp(40px, 6vw, 96px); align-items: start; }
.side { position: sticky; top: 100px; display: grid; gap: 28px; }
.side h2 { color: var(--muted); font: 600 13px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; }
.side ol { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.side ol a { display: block; padding: 8px 0 8px 14px; border-left: 2px solid var(--hair); color: var(--soft); text-decoration: none; font-size: 15px; line-height: 1.35; }
.side ol a:hover { color: var(--ink); }
.side ol a[aria-current] { border-left-color: var(--ink); color: var(--ink); }
.side .get b { display: block; color: var(--ink); font: 800 1.3rem/1 var(--display); text-transform: uppercase; }
.side .get span { display: block; margin: 6px 0 14px; color: var(--muted); font-size: 14.5px; }
.side .btn { height: 42px; padding: 0 18px; font-size: 17px; border-radius: 12px; }
.side .start { padding-top: 24px; border-top: 1px solid var(--hair); }
.side .start span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }

.prose { font-size: 18px; line-height: 1.7; color: var(--soft); }
.prose p { margin: 0 0 1.1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); }
.prose h2 { margin: 1.9em 0 0.6em; font: 800 clamp(1.8rem, 2.8vw, 2.4rem)/1 var(--display); text-transform: uppercase; color: var(--ink); scroll-margin-top: 96px; }
.prose h3 { margin: 1.6em 0 0.5em; color: var(--muted); font: 600 13px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; }
.prose ol, .prose ul { margin: 0 0 1.1em; padding: 0; list-style: none; display: grid; gap: 10px; }
.prose ol li { position: relative; padding-left: 44px; }
.prose ol li::before { content: attr(data-n); position: absolute; left: 0; top: 0.05em; width: 30px; color: var(--ink); font: 800 1.35rem/1.25 var(--display); text-align: right; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 9px; height: 2px; background: var(--muted); }
.form-band { margin: 26px 0 30px; padding: 20px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.form-band b { display: block; color: var(--ink); font: 800 1.45rem/1 var(--display); text-transform: uppercase; }
.form-band span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; line-height: 1.4; }
.form-band svg { width: 18px; height: 18px; }
.cta { margin: 24px 0 0; display: flex; align-items: center; gap: 14px 20px; flex-wrap: wrap; }
.cta span { color: var(--muted); font-size: 15px; }
.more { margin-top: clamp(56px, 7vw, 88px); }
.more h2 { font: 800 1.6rem/1 var(--display); text-transform: uppercase; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.more a { display: block; padding: 16px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink); font: 600 17px/1.35 var(--body); }
.more a small { display: block; margin-top: 4px; color: var(--muted); font: 500 14px/1.4 var(--body); }

/* ─── Narrower screens ──────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .side { position: static; grid-row: 1; }
  .side .get, .side .start { display: none; }
}
@media (max-width: 900px) {
  .three { grid-template-columns: minmax(0, 1fr); gap: 34px; }
}
@media (max-width: 760px) {
  .top, .posts { grid-template-columns: minmax(0, 1fr); }
  .prose { font-size: 17px; }
  /* The list: one win, one page a line; the switch scrolls on its own line; AptCoach and one app. */
  .vs-list { grid-template-columns: minmax(0, 1fr); }
  .chips { margin: 18px calc(var(--gutter) * -1) 0; padding: 0 var(--gutter); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .chips::-webkit-scrollbar { display: none; }
  .legend { gap: 8px 16px; font-size: 13px; }
  .cmp-grid .g-lab { width: 132px; }
  .cmp-grid.one .g-lab { width: 36%; }
  .cmp-grid th[scope=row] { font-size: 14px; }
  .cmp-grid th[scope=row], .cmp-grid tr.grp th { padding-left: 10px; }
  .cmp-grid th, .cmp-grid td { padding-top: 14px; padding-bottom: 14px; }
  .cmp-grid tr.grp th, .cmp-grid tr.grp td { padding-top: 32px; }
  .cmp-grid td small { font-size: 12px; }
  .one-price p { font-size: 17px; }
  /* The switch scrolls on its own line rather than wrapping into a block of names. */
  .pick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .pick::-webkit-scrollbar { display: none; }
  .pick .lab { display: none; }
  /* At a glance: each feature its own row, the two answers side by side under its name. */
  .glance table, .glance tbody, .glance tr, .glance th, .glance td { display: block; }
  .glance thead { display: none; }
  .glance tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 10px; padding: 14px 0; border-top: 1px solid var(--hair); }
  .glance tbody tr.grp { display: block; padding: 0; border: 0; }
  .glance tr.grp th { padding: 26px 0 4px; }
  .glance th, .glance td { border: 0; padding: 0; }
  .glance th[scope=row] { grid-column: 1 / -1; }
  .glance td { padding: 10px 12px; border-radius: 10px; }
  .glance td.usc, .glance tbody tr:last-child td.usc { border-radius: 10px; }
  .glance td::before { content: attr(data-who); display: block; margin-bottom: 6px; color: var(--muted); font: 600 12px/1 var(--body); letter-spacing: 0.04em; text-transform: uppercase; }
  .cellm { align-items: flex-start; font-size: 14.5px; }
  .pr { font-size: 1.2rem; }
}

/* A post's sources, under its words. */
.refs { margin-top: clamp(40px, 5vw, 64px); }
.refs h2 { font: 600 13px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.refs ul { margin-top: 12px; display: grid; gap: 8px; padding: 0; list-style: none; }
.refs li { font-size: 15px; line-height: 1.45; }
.refs a { color: var(--soft); }
.refs a:hover { color: var(--ink); }
