/* The Lean Creator — design system */
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"); size-adjust: 107%; ascent-override: 90%; }

:root {
  --bg: #FAF6EE; --surface: #FFFFFF; --surface-2: #F3EEE3;
  --ink: #1E2A24; --ink-muted: #4F5D56;
  --forest: #1F4D3A; --forest-10: rgba(31,77,58,.10); --forest-05: rgba(31,77,58,.05);
  --coral: #E86A4A; --coral-deep: #B5432A; --coral-10: rgba(232,106,74,.12);
  --line: rgba(31,77,58,.16);
  --shadow: 0 1px 2px rgba(30,42,36,.06), 0 6px 20px rgba(30,42,36,.06);
  --radius: 14px; --radius-sm: 8px;
  --font-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --measure: 68ch;
  --header-h: 60px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121A16; --surface: #1A241F; --surface-2: #202C26;
    --ink: #ECE6D8; --ink-muted: #B7B0A2;
    --forest: #8CCBA9; --forest-10: rgba(140,203,169,.14); --forest-05: rgba(140,203,169,.07);
    --coral: #F08A6E; --coral-deep: #F08A6E; --coral-10: rgba(240,138,110,.14);
    --line: rgba(236,230,216,.14);
    --shadow: none;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.65; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--coral-deep); }
:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--ink); letter-spacing: -.01em; font-variation-settings: "SOFT" 50, "opsz" 72; }
h1 { font-size: clamp(1.875rem, 1.4rem + 2.2vw, 2.875rem); line-height: 1.12; margin: .3em 0 .35em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.125rem); line-height: 1.2; margin: 2.2em 0 .6em; }
h3 { font-size: clamp(1.2rem, 1.1rem + .6vw, 1.45rem); line-height: 1.3; margin: 1.6em 0 .4em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ---------- header / nav */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); transition: transform .25s ease; }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-family: var(--font-head);
  font-weight: 700; font-size: 1.2rem; letter-spacing: -.01em; margin-right: auto; }
.brand-mark { width: 30px; height: 30px; }
.site-nav { display: flex; gap: 4px; align-items: center; }
.site-nav a { text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; padding: 10px 12px; border-radius: 999px; }
.site-nav a:hover { background: var(--forest-10); color: var(--forest); }
.site-nav .nav-cta { background: var(--forest); color: #fff; font-weight: 600; }
.site-nav .nav-cta:hover { background: #163a2b; color: #fff; }
@media (prefers-color-scheme: dark) { .site-nav .nav-cta { color: #10201a; } .site-nav .nav-cta:hover { background: #a8dcc0; color: #10201a; } }
.nav-toggle { display: none; }
@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
  .nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: ""; transition: transform .2s; }
  .nav-toggle .bars::before { position: absolute; top: -7px; } .nav-toggle .bars::after { position: absolute; top: 7px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch;
    background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 12px; font-size: 1.05rem; }
  .site-nav .nav-cta { text-align: center; margin-top: 8px; }
}

/* ---------- buttons, chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: 999px; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary { background: var(--coral-deep); color: #fff; box-shadow: 0 2px 0 rgba(0,0,0,.08); }
.btn-primary:hover { background: #9c3822; color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(181,67,42,.25); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #1b1b1b; } .btn-primary:hover { background: #f6a48c; color: #1b1b1b; } }
.btn-ghost { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn-ghost:hover { background: var(--forest-10); }
.btn-pin { background: #E60023; color: #fff; min-height: 44px; font-size: .95rem; }
.btn-pin:hover { background: #ad081b; color: #fff; }
.chip { display: inline-block; font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .01em;
  background: var(--forest-10); color: var(--forest); padding: 4px 10px; border-radius: 999px; vertical-align: middle; line-height: 1.4; }
.cta { margin: 1.6em 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.cta-sub, .cta .cta-sub { font-size: .82rem; color: var(--ink-muted); }
@media (max-width: 599px) { .cta .btn, .pick-actions .btn, .product-cta .btn, .vs-panel .btn { width: 100%; } .cta { align-items: stretch; } }

/* ---------- article layout */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 20px; }
@media (min-width: 1100px) { .article-layout { grid-template-columns: minmax(0, 760px) 260px; justify-content: center; } }
.article { min-width: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--ink-muted); }
.breadcrumb a { color: var(--ink-muted); text-decoration: none; } .breadcrumb a:hover { color: var(--forest); text-decoration: underline; }
.dek { font-size: 1.15em; color: var(--ink-muted); margin: 0 0 .8em; max-width: 60ch; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .88rem; color: var(--ink-muted); }
.byline a { color: var(--ink); font-weight: 600; text-decoration: none; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--forest); color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .02em; }
@media (prefers-color-scheme: dark) { .avatar { color: #10201a; } }
.avatar-lg { width: 52px; height: 52px; font-size: 1rem; flex: none; }
.disclosure { display: flex; gap: 8px; align-items: flex-start; font-size: .85rem; color: var(--ink-muted); background: var(--surface-2);
  border-radius: var(--radius-sm); padding: 10px 12px; margin: 14px 0 22px; line-height: 1.5; }
.disclosure svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.prose { max-width: var(--measure); }
.prose > p, .prose li { overflow-wrap: anywhere; }
.prose ul, .prose ol { padding-left: 1.3em; } .prose li { margin: .35em 0; }
.prose li::marker { color: var(--forest); }
.prose blockquote { margin: 1.4em 0; padding: .2em 0 .2em 1em; border-left: 3px solid var(--coral); color: var(--ink-muted); font-style: italic; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.prose code { font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.prose h2 { padding-top: .2em; }
.prose figure { margin: 2em 0; } .prose figure img { border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 auto; max-height: 900px; width: auto; }
.prose figcaption { font-size: .82rem; color: var(--ink-muted); text-align: center; margin-top: 8px; }

/* ---------- table of contents */
.toc-rail { display: none; }
@media (min-width: 1100px) {
  .toc-rail { display: block; } .toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; padding-left: 4px; }
  .toc-inline { display: none; }
}
.toc-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--ink-muted); margin: 0 0 10px; }
.toc ol, .toc-inline ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li a { display: block; font-size: .88rem; line-height: 1.4; color: var(--ink-muted); text-decoration: none; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); }
.toc li a:hover { color: var(--forest); }
.toc li a.is-active { color: var(--forest); border-left-color: var(--coral); font-weight: 600; }
.toc-inline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin: 1.5em 0; }
.toc-inline summary { cursor: pointer; font-weight: 650; padding: 14px 18px; list-style: none; display: flex; justify-content: space-between; }
.toc-inline summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--forest); }
.toc-inline[open] summary::after { content: "–"; }
.toc-inline ol { padding: 0 18px 14px; } .toc-inline li a { display: block; padding: 7px 0; font-size: .95rem; text-decoration: none; border-top: 1px solid var(--line); }

/* ---------- picks (quick verdict) */
.box-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 750; color: var(--forest); margin: 0 0 10px; }
.picks { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 8px; margin: 1.4em 0; box-shadow: var(--shadow); max-width: 760px; }
.picks ol { list-style: none; margin: 0; padding: 0; }
.pick { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.pick:first-child { border-top: 0; padding-top: 4px; }
.pick-rank { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--forest); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
@media (prefers-color-scheme: dark) { .pick-rank { color: #10201a; } }
.pick:first-child .pick-rank { background: var(--coral-deep); }
.pick-main { min-width: 0; flex: 1; }
.pick-name { margin: 0; font-weight: 750; font-size: 1.1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pick-price { margin: 2px 0 0; font-size: .9rem; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pick-why { margin: 6px 0 10px; font-size: .97rem; }
.pick-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.pick-jump { font-size: .9rem; }
.picks-note { font-size: .8rem; color: var(--ink-muted); margin: 6px 0 10px; border-top: 1px dashed var(--line); padding-top: 10px; }

/* ---------- versus */
.versus { display: grid; gap: 14px; margin: 1.4em 0; }
@media (min-width: 640px) { .versus { grid-template-columns: 1fr 1fr; } }
.vs-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.vs-panel:first-child { border-top: 4px solid var(--forest); } .vs-panel:last-child { border-top: 4px solid var(--coral); }
.vs-title { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin: 0 0 6px; }
.vs-panel ul { padding-left: 1.1em; margin: 0 0 16px; flex: 1; font-size: .97rem; }
.vs-panel .btn { align-self: flex-start; }

/* ---------- product card */
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 1.2em 0 1.6em; box-shadow: var(--shadow); }
.product-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.product-name { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; }
.product-price { margin: 4px 0 12px; color: var(--ink-muted); font-size: .95rem; font-variant-numeric: tabular-nums; }
.fact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 0 0 14px; }
.fact-grid > div { background: var(--surface); padding: 10px 12px; }
.fact-grid > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fact-grid dt { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-muted); font-weight: 650; }
.fact-grid dd { margin: 2px 0 0; font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; }
.product-body p { margin: .5em 0; font-size: .98rem; }
.product-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; }

/* ---------- pros / cons */
.proscons { display: grid; gap: 14px; margin: 1.4em 0; }
@media (min-width: 640px) { .proscons { grid-template-columns: 1fr 1fr; } }
.pc { border-radius: var(--radius); padding: 16px 18px; }
.pc-pros { background: var(--forest-05); border: 1px solid var(--forest-10); }
.pc-cons { background: var(--coral-10); border: 1px solid rgba(181,67,42,.18); }
.pc-title { margin: 0 0 6px; font-weight: 750; }
.pc ul { margin: 0; padding-left: 1.1em; font-size: .97rem; }
.pc-pros li::marker { content: "✓  "; color: var(--forest); font-weight: 700; }
.pc-cons li::marker { content: "–  "; color: var(--coral-deep); font-weight: 700; }

/* ---------- callouts */
.callout, .box-verdict { border-radius: var(--radius); padding: 16px 18px; margin: 1.6em 0; }
.callout > :last-child, .box-verdict > :last-child { margin-bottom: 0; }
.callout p:first-of-type { margin-top: 0; }
.callout-tip { background: var(--forest-05); border-left: 4px solid var(--forest); }
.callout-watch { background: var(--coral-10); border-left: 4px solid var(--coral-deep); }
.callout-watch .box-label { color: var(--coral-deep); }
.callout-note { background: var(--surface-2); border-left: 4px solid var(--ink-muted); }
.box-verdict { background: var(--surface); border: 2px solid var(--forest); }

/* ---------- tables */
.table-wrap { margin: 1.6em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  -webkit-overflow-scrolling: touch; box-shadow: var(--shadow); max-width: 100%; }
@media (min-width: 1100px) { .prose .table-wrap { width: min(860px, calc(100vw - 340px)); } }
table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .92rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); min-width: 120px; }
thead th { background: var(--forest); color: #fff; font-weight: 650; font-size: .85rem; position: sticky; top: 0; }
@media (prefers-color-scheme: dark) { thead th { color: #10201a; } }
tbody th { font-weight: 650; background: var(--surface); position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
thead th:first-child { position: sticky; left: 0; z-index: 2; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:nth-child(even) td { background: var(--forest-05); }
.table-hint { font-size: .8rem; color: var(--ink-muted); margin: -1.2em 0 1.4em; }

/* ---------- FAQ */
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 650; position: relative; font-size: 1.05rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.5rem; color: var(--forest); }
details.faq[open] summary::after { content: "–"; }
details.faq > div { padding: 0 0 12px; } details.faq > div p:first-child { margin-top: 0; }

/* ---------- pin save */
.pin-save { display: grid; grid-template-columns: 140px 1fr; gap: 18px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px; margin: 2em 0; }
.pin-save img { border-radius: 10px; }
.pin-save p { margin: .3em 0 .8em; font-size: .97rem; }
@media (max-width: 480px) { .pin-save { grid-template-columns: 100px 1fr; } }

/* ---------- update log, author box */
.small-h { font-size: 1.1rem; margin: 2.5em 0 .5em; }
.update-log ul { font-size: .9rem; color: var(--ink-muted); padding-left: 1.1em; }
.author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin: 2em 0 1em; font-size: .93rem; max-width: var(--measure); }
.author-box p { margin: 0 0 .4em; } .author-name { font-weight: 750; font-size: 1rem; }

/* ---------- sticky CTA (mobile) */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(0,0,0,.08); transform: translateY(calc(100% + 40px)); visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
.sticky-cta.is-visible { transform: none; visibility: visible; transition: transform .25s ease; }
.sticky-cta p { margin: 0; flex: 1; font-size: .85rem; line-height: 1.3; color: var(--ink-muted); }
.sticky-cta p strong { display: block; color: var(--ink); font-size: .98rem; }
.sticky-cta .btn { min-height: 44px; padding: 10px 16px; font-size: .95rem; white-space: nowrap; }
.sticky-close { border: 0; background: transparent; font-size: 1.5rem; line-height: 1; color: var(--ink-muted); width: 36px; height: 44px; cursor: pointer; }
@media (min-width: 900px) { .sticky-cta { left: auto; right: 20px; bottom: 20px; border: 1px solid var(--line); border-radius: 16px; max-width: 460px; padding: 12px 12px 12px 18px; } }

/* ---------- cards / related */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(30,42,36,.12); color: var(--ink); }
.card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card-body { padding: 14px 16px 18px; }
.card-cat { margin: 0 0 4px; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--coral-deep); }
.card h3 { margin: 0 0 6px; font-size: 1.15rem; }
.card p { margin: 0; font-size: .92rem; color: var(--ink-muted); line-height: 1.5; }
.related { padding-top: 24px; padding-bottom: 56px; } .related h2 { margin-top: .5em; }

/* ---------- home */
.hero { padding: 36px 0 28px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr 1fr; padding: 24px 0; } }
.hero h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.6rem); margin: .1em 0 .3em; }
.hero .lede { font-size: 1.15em; color: var(--ink-muted); max-width: 34em; margin: 0 0 1.2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art img { border-radius: 22px; box-shadow: var(--shadow); }
.eyebrow { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; color: var(--coral-deep); margin: 0; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.trust-strip li { font-size: .85rem; background: var(--surface); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; }
.trust-strip li::before { content: "✓ "; color: var(--forest); font-weight: 700; }
.section { padding: 44px 0; } .section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 16px; margin-bottom: 18px; }
.section-head > a { white-space: nowrap; font-weight: 650; }
.section-head h2 { margin: 0; } .section-head p { margin: 4px 0 0; color: var(--ink-muted); }
.personas { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.persona { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: var(--shadow); }
.persona h3 { margin: 0; font-size: 1.15rem; } .persona .budget { font-size: .8rem; font-weight: 650; color: var(--coral-deep); }
.persona p { margin: 0; font-size: .93rem; color: var(--ink-muted); flex: 1; }
.persona a { font-weight: 650; font-size: .95rem; }
.tool-cards { display: grid; gap: 16px; }
@media (min-width: 760px) { .tool-cards { grid-template-columns: 1fr 1fr; } }
.tool-card { background: var(--forest); color: #F4EFE4; border-radius: 20px; padding: 26px; text-decoration: none; display: block; position: relative; overflow: hidden; }
.tool-card:nth-child(2) { background: var(--coral-deep); }
.tool-card h3 { color: #fff; margin: 0 0 6px; font-size: 1.45rem; } .tool-card p { margin: 0 0 14px; opacity: .92; }
.tool-card span { font-weight: 700; } .tool-card:hover { color: #fff; transform: translateY(-2px); }
@media (prefers-color-scheme: dark) { .tool-card { background: #24493a; } .tool-card:nth-child(2) { background: #7d3423; } }
.page-plain { max-width: 760px; padding-top: 28px; padding-bottom: 56px; }

/* ---------- interactive tools */
.tool { background: var(--surface); border: 2px solid var(--forest); border-radius: 18px; padding: 20px; margin: 2em 0; }
@media (min-width: 1100px) { .prose .tool { width: min(860px, calc(100vw - 340px)); } }
.tool-intro > :first-child { margin-top: 0; } .tool-intro p { font-size: .97rem; }
.tool-title { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin: 0 0 4px; }
.tool-form { display: grid; gap: 14px; margin: 14px 0; }
@media (min-width: 640px) { .tool-form { grid-template-columns: 1fr 1fr; } }
.tool label { display: block; font-weight: 650; font-size: .92rem; margin-bottom: 6px; }
.tool input[type="number"], .tool select { width: 100%; min-height: 46px; padding: 8px 12px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius-sm); }
.tool input[type="range"] { width: 100%; accent-color: var(--coral-deep); }
.tool .hint { font-size: .8rem; color: var(--ink-muted); margin-top: 4px; }
.tool .tool-results { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.result .badge { display: table; margin: 4px 0 2px; }
.result { display: grid; grid-template-columns: 28px 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.result:first-child { border-color: var(--forest); background: var(--forest-05); }
.result-rank { font-family: var(--font-head); font-weight: 700; color: var(--forest); }
.result-name { font-weight: 700; } .result-plan { font-size: .82rem; color: var(--ink-muted); display: block; font-weight: 500; }
.result-cost { font-weight: 750; font-size: 1.15rem; text-align: right; font-variant-numeric: tabular-nums; }
.result-cost small { display: block; font-size: .75rem; font-weight: 500; color: var(--ink-muted); }
.result-cta { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .82rem; color: var(--ink-muted); }
.result-cta a { font-weight: 650; font-size: .9rem; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--coral-10); color: var(--coral-deep); margin-left: 6px; vertical-align: middle; }
.tool-foot { font-size: .8rem; color: var(--ink-muted); margin: 12px 0 0; }
.quiz-q { margin: 0 0 10px; font-weight: 700; font-size: 1.1rem; }
.quiz-progress { height: 6px; background: var(--forest-10); border-radius: 999px; overflow: hidden; margin: 6px 0 16px; }
.quiz-progress span { display: block; height: 100%; background: var(--coral-deep); transition: width .25s ease; }
.quiz-options { display: grid; gap: 10px; }
.quiz-options button { text-align: left; min-height: 52px; padding: 12px 16px; font: inherit; font-weight: 550; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.quiz-options button:hover, .quiz-options button:focus-visible { border-color: var(--forest); background: var(--forest-05); }
.quiz-result h3 { margin-top: 0; } .quiz-alt { font-size: .93rem; color: var(--ink-muted); }
.linkish { background: none; border: 0; color: var(--forest); font: inherit; text-decoration: underline; cursor: pointer; padding: 8px 0; }

/* ---------- footer */
.site-footer { background: #17251e; color: #DCD5C6; margin-top: 40px; padding: 44px 0 20px; font-size: .92rem; }
.site-footer a { color: #DCD5C6; text-decoration: none; display: block; padding: 6px 0; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-head); font-size: 1.3rem; color: #fff; margin: 0 0 6px; font-weight: 700; }
.footer-note { margin: 0 0 10px; color: #B9B2A3; max-width: 46ch; } .small { font-size: .82rem; }
.footer-h { font-weight: 700; color: #fff; margin: 0 0 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 28px; padding-top: 16px; font-size: .82rem; color: #9A9384; }
.footer-bottom a { display: inline; }

/* ---------- cookie consent (only shown when Google Analytics is enabled) */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; max-width: 720px; margin: 0 auto; }
.consent p { margin: 0; flex: 1 1 260px; font-size: .9rem; line-height: 1.45; }
.consent-actions { display: flex; gap: 8px; }
.consent .btn { min-height: 44px; padding: 8px 18px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .sticky-cta, .toc-rail, .related, .site-footer { display: none; } }
