/* ============================================================
   Design tokens
   Change the accent + font stack here and the whole site follows.
   ============================================================ */

:root {
  --bg:            #FBFBF9;
  --bg-alt:        #F4F4F0;
  --surface:       #FFFFFF;
  --surface-2:     #F7F7F4;
  --border:        #E4E3DD;
  --border-strong: #D3D2CA;
  --text:          #16181B;
  --text-muted:    #5C6470;
  --text-faint:    #696F78;
  --accent:        #06845B;
  --accent-soft:   #E4F5ED;
  --accent-text:   #056B4A;
  --warn:          #B45309;
  --warn-soft:     #FDF0DC;
  --star:          #E0A115;
  --shadow-sm:     0 1px 2px rgba(16,18,21,.05), 0 1px 3px rgba(16,18,21,.05);
  --shadow-md:     0 4px 6px -2px rgba(16,18,21,.05), 0 12px 24px -6px rgba(16,18,21,.08);
  --shadow-lg:     0 24px 48px -12px rgba(16,18,21,.14);
  --radius:        14px;
  --radius-sm:     9px;
  --radius-lg:     22px;
  --maxw:          1180px;
  --font-sans:     "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display:  "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  --font-mono:     ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

:root[data-theme="dark"] {
  --bg:            #0B0C0E;
  --bg-alt:        #101215;
  --surface:       #14161A;
  --surface-2:     #1A1D22;
  --border:        #262A30;
  --border-strong: #363B43;
  --text:          #E9EBEE;
  --text-muted:    #9AA2AD;
  --text-faint:    #7E8691;
  --accent:        #5BE49B;
  --accent-soft:   #12301F;
  --accent-text:   #5BE49B;
  --warn:          #F5B971;
  --warn-soft:     #2E2312;
  --star:          #F0BE4B;
  --shadow-sm:     0 1px 2px rgba(0,0,0,.4);
  --shadow-md:     0 4px 6px -2px rgba(0,0,0,.4), 0 12px 24px -6px rgba(0,0,0,.5);
  --shadow-lg:     0 24px 48px -12px rgba(0,0,0,.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #0B0C0E;
    --bg-alt:        #101215;
    --surface:       #14161A;
    --surface-2:     #1A1D22;
    --border:        #262A30;
    --border-strong: #363B43;
    --text:          #E9EBEE;
    --text-muted:    #9AA2AD;
    --text-faint:    #7E8691;
    --accent:        #5BE49B;
    --accent-soft:   #12301F;
    --accent-text:   #5BE49B;
    --warn:          #F5B971;
    --warn-soft:     #2E2312;
    --star:          #F0BE4B;
    --shadow-sm:     0 1px 2px rgba(0,0,0,.4);
    --shadow-md:     0 4px 6px -2px rgba(0,0,0,.4), 0 12px 24px -6px rgba(0,0,0,.5);
    --shadow-lg:     0 24px 48px -12px rgba(0,0,0,.6);
  }
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
svg { display: block; flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.wrap-narrow { max-width: 760px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.stack > * + * { margin-top: 1.1em; }

/* ---------- type ---------- */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.022em; font-weight: 650; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.18rem, 1.9vw, 1.42rem); }
h4 { font-size: 1.02rem; }
.display-serif { font-family: var(--font-display); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
p { text-wrap: pretty; }
.lead { font-size: clamp(1.06rem, 1.7vw, 1.28rem); color: var(--text-muted); line-height: 1.62; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .55; }
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); font-size: .86rem; }
.prose { max-width: 68ch; }
.prose p, .prose ul, .prose ol { color: var(--text-muted); }
.prose h2 { margin-top: 2.2em; margin-bottom: .5em; color: var(--text); }
.prose h3 { margin-top: 1.7em; margin-bottom: .4em; color: var(--text); }
.prose > * + * { margin-top: 1.05em; }
.prose ul, .prose ol { padding-left: 1.15em; }
.prose li + li { margin-top: .45em; }
.prose a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose strong { color: var(--text); font-weight: 620; }
.prose blockquote {
  border-left: 3px solid var(--accent); padding: 4px 0 4px 18px;
  color: var(--text); font-size: 1.05rem;
}
.prose code {
  font-family: var(--font-mono); font-size: .87em;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: .1em .38em; border-radius: 5px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 14px; height: 64px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 680; letter-spacing: -.03em; font-size: 1.06rem; flex-shrink: 0; }
.logo-mark {
  width: 27px; height: 27px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(145deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #0a7ea4));
  display: grid; place-items: center; color: #04150E; font-size: 14px; font-weight: 800;
}
:root[data-theme="dark"] .logo-mark { color: #04150E; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  padding: 7px 9px; border-radius: 8px; font-size: .92rem; font-weight: 500; color: var(--text-muted);
  transition: background .15s, color .15s;
}
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.is-active { color: var(--text); font-weight: 580; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); border-radius: 9px; cursor: pointer;
  color: var(--text-muted); transition: color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn span:not([hidden]) { display: grid; place-items: center; }
.nav a { white-space: nowrap; }
.nav-toggle { display: none; }

/* ---------- language switcher ---------- */
/* Two-letter codes rather than flags: a flag names a country, and Spanish is
   not Spain any more than English is England. */
.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-switch a, .lang-switch span {
  display: grid; place-items: center; min-width: 30px; height: 32px; padding: 0 6px;
  border-radius: 8px; font-size: .74rem; font-weight: 620; letter-spacing: .04em;
  color: var(--text-faint); text-decoration: none; border: 1px solid transparent;
}
.lang-switch a:hover { color: var(--text); background: var(--surface-2); }
.lang-switch span.is-active { color: var(--text); border-color: var(--border); }

@media (max-width: 1250px) {
  .nav {
    position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 10px 22px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s;
    max-height: calc(100dvh - 64px); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--border); border-radius: 0; font-size: 1rem; }
  .nav-toggle { display: grid; margin-left: auto; }
  .header-actions { margin-left: 0; }
  .lang-switch a, .lang-switch span { min-width: 26px; padding: 0 3px; font-size: .7rem; }
}

@media (max-width: 480px) {
  .logo > span:not(.logo-mark) { display: none; }
  .header-inner { gap: 10px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 19px; border-radius: 10px; font-weight: 580; font-size: .93rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--accent); color: #04150E; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); }
:root[data-theme="dark"] .btn-primary { color: #04150E; }
.btn-ghost { background: var(--surface); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-faint); }
.btn-sm { padding: 8px 14px; font-size: .86rem; border-radius: 9px; }
.btn-block { width: 100%; }

/* ---------- pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600;
  letter-spacing: .01em; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-muted);
  white-space: nowrap;
}
.pill-accent { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.pill-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 28%, transparent); }
.pill-free { background: var(--accent-soft); color: var(--accent-text); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }

/* ---------- rating ---------- */
.rating { display: inline-flex; align-items: center; gap: 6px; font-size: .87rem; font-weight: 550; }
.stars { display: inline-flex; gap: 1.5px; color: var(--star); }
.stars svg { width: 13px; height: 13px; }
.rating-count { color: var(--text-faint); font-weight: 450; font-variant-numeric: tabular-nums; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(60px, 9vw, 118px) clamp(40px, 6vw, 76px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -50% -20% auto -20%; height: 620px; z-index: -1;
  background: radial-gradient(60% 55% at 50% 40%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 72%);
  pointer-events: none;
}
.hero h1 { max-width: 15ch; }
.hero .lead { max-width: 56ch; margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--border); }
.hero-stat .n { font-size: 1.7rem; font-weight: 660; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-stat .l { font-size: .8rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .07em; font-weight: 550; }

/* ---------- grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: border-color .16s, box-shadow .16s, transform .16s;
  position: relative; display: flex; flex-direction: column;
}
a.card:hover, .card-link:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card h3 { font-size: 1.08rem; letter-spacing: -.015em; }
.card p { color: var(--text-muted); font-size: .93rem; margin-top: 8px; }
.card-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.cat-card { }
.cat-card .cat-icon {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); margin-bottom: 14px;
}
.cat-card .cat-icon svg { width: 19px; height: 19px; }
.cat-count { font-size: .8rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.arrow { color: var(--text-faint); transition: transform .16s, color .16s; display: inline-flex; }
.arrow svg, .link-arrow svg { width: 15px; height: 15px; }
a.card:hover .arrow { transform: translateX(3px); color: var(--accent-text); }

/* ---------- app card ---------- */
.app-card { }
.app-card .app-top { display: flex; align-items: flex-start; gap: 12px; }
.app-avatar {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center;
  font-weight: 700; font-size: 1rem; letter-spacing: -.02em;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-muted);
}
.app-card h3 { font-size: 1rem; line-height: 1.3; }
.app-dev { font-size: .8rem; color: var(--text-faint); }
.app-tagline { font-size: .9rem; color: var(--text-muted); margin-top: 12px; }
.app-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.pros-cons { display: grid; gap: 14px; margin-top: 16px; }
@media (min-width: 720px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pc-list { list-style: none; padding: 0; font-size: .875rem; }
.pc-list li { display: flex; gap: 8px; color: var(--text-muted); line-height: 1.5; }
.pc-list li + li { margin-top: 7px; }
.pc-list .ic { flex-shrink: 0; margin-top: 4px; width: 13px; height: 13px; }
.pc-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 650; margin-bottom: 9px; }
.pc-pro .pc-title { color: var(--accent-text); }
.pc-con .pc-title { color: var(--warn); }
.pc-pro .ic { color: var(--accent); }
.pc-con .ic { color: var(--warn); }
.best-for {
  margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border); font-size: .88rem; color: var(--text-muted);
}
.best-for b { color: var(--text); font-weight: 600; }

/* ranked list */
.ranked { display: grid; gap: 16px; }
.ranked .app-card { padding-top: 26px; }
.rank-no {
  position: absolute; top: -11px; left: 20px;
  min-width: 26px; height: 26px; padding-inline: 7px; border-radius: 8px;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
  background: var(--text); color: var(--bg); font-variant-numeric: tabular-nums;
}
.app-card[data-pick] { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.app-card[data-pick] .rank-no { background: var(--accent); color: #04150E; }

/* ---------- table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .9rem; min-width: 620px; }
thead th {
  text-align: left; font-size: .73rem; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-faint); font-weight: 650; padding: 13px 16px;
  border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap;
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-muted); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
td.strong { color: var(--text); font-weight: 570; }
td.num { font-variant-numeric: tabular-nums; }

/* ---------- filters (directory) ---------- */
.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  position: sticky; top: 76px; z-index: 20; box-shadow: var(--shadow-sm);
}
.field { position: relative; display: flex; align-items: center; }
.field svg { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--text-faint); pointer-events: none; }
.input, .select {
  background: var(--bg); border: 1px solid var(--border); border-radius: 9px;
  padding: 9px 12px; font-size: .9rem; color: var(--text); min-width: 0;
}
.input { padding-left: 33px; width: 240px; }
.select { cursor: pointer; padding-right: 30px; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-faint) 50%), linear-gradient(135deg, var(--text-faint) 50%, transparent 50%);
  background-position: calc(100% - 15px) 55%, calc(100% - 10px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.input:focus, .select:focus { outline: none; border-color: var(--accent); }
.filter-count { margin-left: auto; font-size: .84rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .filters { position: static; }
  .input { width: 100%; }
  .field { width: 100%; }
  .filter-count { margin-left: 0; width: 100%; }
}
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-faint); }

/* ---------- callouts ---------- */
.callout {
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  background: var(--surface); border-radius: var(--radius-sm);
  padding: 18px 20px; font-size: .93rem; color: var(--text-muted);
}
.callout b, .callout strong { color: var(--text); }
.callout-warn { border-left-color: var(--warn); }

/* ---------- criteria list ---------- */
.criteria { display: grid; gap: 2px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--border); }
.criterion { background: var(--surface); padding: 20px 22px; }
.criterion h3 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; font-size: 1.02rem; }
.criterion .n { font-size: .74rem; color: var(--accent-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.criterion p { color: var(--text-muted); font-size: .92rem; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative;
  font-weight: 570; font-size: 1.01rem; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 1.8px solid var(--text-faint); border-bottom: 1.8px solid var(--text-faint);
  transform: translateY(-70%) rotate(45deg); transition: transform .18s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .faq-body { padding-bottom: 20px; color: var(--text-muted); font-size: .95rem; max-width: 72ch; }

/* ---------- CTA band ---------- */
.band {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 52px); position: relative; overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset: auto -10% -70% -10%; height: 300px;
  background: radial-gradient(50% 60% at 50% 50%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.band > * { position: relative; }

/* ---------- newsletter form ---------- */
.subscribe { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 20px; max-width: 460px; }
.subscribe input[type="email"] {
  flex: 1 1 220px; background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 11px 14px; font-size: .93rem;
}
.subscribe input[type="email"]:focus { outline: none; border-color: var(--accent); }
.form-note { font-size: .8rem; color: var(--text-faint); margin-top: 10px; }
.form-ok { display: none; color: var(--accent-text); font-size: .92rem; font-weight: 550; margin-top: 12px; flex-basis: 100%; }
.form-fail { color: var(--warn); }
.form-fail a { text-decoration: underline; }

/* ---------- breadcrumb ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: .83rem; color: var(--text-faint); padding-top: 26px; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- TOC ---------- */
.toc { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); font-size: .9rem; }
.toc .toc-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-faint); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; counter-reset: t; }
.toc li { counter-increment: t; }
.toc li + li { margin-top: 7px; }
.toc a { color: var(--text-muted); display: flex; gap: 9px; }
.toc a::before { content: counter(t, decimal-leading-zero); color: var(--text-faint); font-variant-numeric: tabular-nums; font-size: .78rem; }
.toc a:hover { color: var(--accent-text); }

/* ---------- calculator ---------- */
.calc { display: grid; gap: 20px; }
@media (min-width: 860px) { .calc { grid-template-columns: 1fr 1fr; align-items: start; } }
.calc-field { margin-bottom: 16px; }
.calc-field label { display: flex; justify-content: space-between; align-items: baseline; font-size: .88rem; font-weight: 550; margin-bottom: 7px; }
.calc-field label .v { font-variant-numeric: tabular-nums; color: var(--accent-text); font-weight: 650; }
.calc-field input[type="range"] { width: 100%; accent-color: var(--accent); }
.calc-field input[type="number"] {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 9px 12px; font-size: .95rem;
}
.calc-out { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.calc-row { background: var(--surface); padding: 15px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-row .k { font-size: .89rem; color: var(--text-muted); }
.calc-row .v { font-size: 1.06rem; font-weight: 640; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.calc-row.hero-row { background: var(--accent-soft); }
.calc-row.hero-row .v { color: var(--accent-text); font-size: 1.5rem; }
.calc-row.hero-row .k { color: var(--accent-text); font-weight: 550; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-alt); margin-top: 40px; }
.footer-grid { display: grid; gap: 34px; padding-block: 52px 34px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.footer-brand { max-width: 300px; }
.footer-brand p { font-size: .89rem; color: var(--text-muted); margin-top: 12px; }
.footer-col .col-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-faint); margin-bottom: 13px; }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 9px; font-size: .89rem; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-block: 20px 26px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: .81rem; color: var(--text-faint);
}
.disclosure { font-size: .8rem; color: var(--text-faint); max-width: 74ch; line-height: 1.6; }

/* ---------- misc ---------- */
.divider { height: 1px; background: var(--border); border: 0; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: #04150E;
  padding: 9px 16px; border-radius: 0 0 9px 9px; font-weight: 600; transition: top .15s;
}
.skip-link:focus { top: 0; }
.section-head { max-width: 62ch; margin-bottom: 30px; }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 12px; color: var(--text-muted); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 560; font-size: .92rem; color: var(--accent-text); }
.link-arrow:hover { gap: 9px; }
.updated { font-size: .8rem; color: var(--text-faint); display: inline-flex; align-items: center; gap: 6px; }
.updated::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- app detail ---------- */
.app-hero { display: grid; gap: 26px; align-items: start; }
@media (min-width: 900px) { .app-hero { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 40px; } }
.app-facts dl { display: grid; gap: 1px; margin-top: 14px; }
.app-facts dl > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.app-facts dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.app-facts dt { font-size: .86rem; color: var(--text-muted); }
.app-facts dd { font-size: .93rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- cookie consent ---------- */
/* Both choices are the same size and equally reachable. A "refuse" that is
   harder to find than "accept" is not freely given consent. */
.consent {
  position: fixed; inset: auto 0 0 0; z-index: 100;
  background: var(--surface); border-top: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  animation: consent-in .22s ease-out;
}
@keyframes consent-in { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .consent { animation: none; } }
.consent-inner {
  max-width: var(--maxw); margin-inline: auto; padding: 18px 22px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.consent-text {
  flex: 1 1 340px; font-size: .9rem; color: var(--text-muted); margin: 0; line-height: 1.55;
}
.consent-text a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-actions .btn { min-width: 104px; }
@media (max-width: 560px) {
  .consent-actions { width: 100%; }
  .consent-actions .btn { flex: 1; }
}
/* A button that reads as a link, for the footer's "change your mind" control. */
.linkish {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--text-muted); font-size: inherit; text-align: left;
}
.linkish:hover { color: var(--text); text-decoration: underline; }
