/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-alt: #f4f4f4;
  --border: #e2e2e2;
  --text: #0a0a0a;
  --text-muted: #59595c;
  --accent: #15803d;
  --accent-dark: #14632f;
  --accent-contrast: #ffffff;
  --link: #15803d;

  --good: #15803d;
  --good-bg: #e7f6ec;
  --warn: #a15c07;
  --warn-bg: #fbf0da;
  --bad: #c23b2c;
  --bad-bg: #fbe4e0;
  --neutral-bg: #eeeeee;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 2px rgba(10, 10, 10, 0.05), 0 8px 24px -12px rgba(10, 10, 10, 0.14);

  --sans: "Manrope", "Inter", system-ui, -apple-system, sans-serif;
  --body-font: "Inter", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  /* "ink" tokens: the always-dark panels (hero, closing CTA, giant wordmark)
     stay dark regardless of site theme, so they carry their own fixed tokens. */
  --ink: #000000;
  --ink-text: #ffffff;
  --ink-text-muted: #9a9a9a;
  --ink-border: rgba(255, 255, 255, 0.14);
  --ink-accent: #22c55e;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --surface: #0d0d0d;
    --surface-alt: #161616;
    --border: #2a2a2a;
    --text: #ffffff;
    --text-muted: #a3a3a3;
    --accent: #22c55e;
    --accent-dark: #16a34a;
    --accent-contrast: #04170a;
    --link: #22c55e;
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.65);

    --good: #22c55e;
    --good-bg: #0f2617;
    --warn: #e0a940;
    --warn-bg: #2c2210;
    --bad: #f0776a;
    --bad-bg: #2c1512;
    --neutral-bg: #1a1a1a;
  }
}

:root[data-theme="dark"] {
  --bg: #000000;
  --surface: #0d0d0d;
  --surface-alt: #161616;
  --border: #2a2a2a;
  --text: #ffffff;
  --text-muted: #a3a3a3;
  --accent: #22c55e;
  --accent-dark: #16a34a;
  --accent-contrast: #04170a;
  --link: #22c55e;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.65);

  --good: #22c55e;
  --good-bg: #0f2617;
  --warn: #e0a940;
  --warn-bg: #2c2210;
  --bad: #f0776a;
  --bad-bg: #2c1512;
  --neutral-bg: #1a1a1a;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}

img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--sans); text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; color: var(--text); }
ul { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }

::selection { background: var(--accent); color: var(--accent-contrast); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--accent); color: var(--accent-contrast);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .7rem 1.2rem; border-radius: var(--radius-sm); font-weight: 700; font-size: .92rem;
  transition: transform .15s var(--ease-out), background .15s var(--ease-out), border-color .15s var(--ease-out);
}
.btn-primary { background: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-secondary { background: var(--surface-alt); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); text-decoration: none; }
.btn-ghost { color: var(--text-muted); border: 1px solid transparent; }
.btn-ghost:hover { color: var(--text); text-decoration: none; }

/* =============================================================
   4. Header
   ============================================================= */
.site-header { position: sticky; top: 0; z-index: 40; padding-block: 1rem; background: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.nav-pill {
  display: flex; align-items: center; gap: 1.5rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border); border-radius: 999px;
  padding: .5rem .8rem .5rem 1.1rem;
  box-shadow: var(--shadow-card);
  min-width: 0;
}
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--sans); font-weight: 800; font-size: 1.05rem; color: var(--text); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.brand-mark img { height: 24px; width: auto; max-width: none; display: block; flex-shrink: 0; }
.brand-mark img.mark-light { display: none; }
:root[data-theme="dark"] .brand-mark img.mark-dark { display: none; }
:root[data-theme="dark"] .brand-mark img.mark-light { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-mark img.mark-dark { display: none; }
  :root:not([data-theme="light"]) .brand-mark img.mark-light { display: block; }
}
.header-nav { display: flex; align-items: center; gap: 1.3rem; font-weight: 600; font-size: .88rem; }
.header-nav > a { color: var(--text-muted); white-space: nowrap; }
.header-nav > a:hover { color: var(--accent); text-decoration: none; }

.mobile-menu-btn {
  display: none; flex-shrink: 0;
  width: 34px; height: 34px; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--text);
}
.mobile-menu-btn:hover { background: var(--surface-alt); }
.mobile-nav-panel {
  position: absolute; top: calc(100% + .5rem); left: 0; right: 4.2rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-card); padding: .4rem;
  display: none; flex-direction: column; gap: .1rem;
  z-index: 45;
}
.mobile-nav-panel.is-open { display: flex; }
.mobile-nav-panel a { padding: .7rem .9rem; border-radius: 8px; color: var(--text); font-weight: 600; font-size: .92rem; }
.mobile-nav-panel a:hover { background: var(--surface-alt); text-decoration: none; }

@media (max-width: 719px) {
  .header-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .nav-pill { position: relative; padding-right: .5rem; }
}

.theme-toggle { flex-shrink: 0; }
.theme-toggle-track {
  position: relative; display: flex; align-items: center;
  width: 52px; height: 28px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.theme-toggle-thumb {
  position: absolute; left: 3px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s var(--ease-out), background .2s var(--ease-out);
}
.theme-toggle-thumb svg { width: 12px; height: 12px; }
.theme-toggle-thumb .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle-thumb { transform: translate(24px, -50%); }
:root[data-theme="dark"] .theme-toggle-thumb .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle-thumb .icon-moon { display: block; }

.breadcrumbs { padding-block: .85rem; font-size: .82rem; color: var(--text-muted); }
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* =============================================================
   5. Hero
   ============================================================= */
.hero {
  position: relative;
  overflow: clip;
  background: var(--ink);
  color: var(--ink-text);
  padding-block: 3.5rem 4rem;
  text-align: center;
}
.hero-glow {
  position: absolute;
  inset: -30% -10% -40% -10%;
  background:
    radial-gradient(48% 55% at 78% 12%, rgba(34, 197, 94, .28), transparent 70%),
    radial-gradient(40% 45% at 15% 85%, rgba(21, 128, 61, .22), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.hero-art {
  position: absolute;
  top: 50%; right: -6%;
  width: min(52vw, 460px); height: auto;
  transform: translateY(-50%);
  color: var(--ink-accent);
  opacity: .5;
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; margin-inline: auto; }
.hero-kicker { color: var(--ink-accent); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1rem; }
.hero h1 { display: flex; flex-direction: column; gap: .1em; font-size: clamp(2.1rem, 6vw, 3.6rem); line-height: 1.04; }
.hero-line { font-family: var(--sans); font-weight: 800; color: var(--ink-text); }
.hero-line--accent { font-family: var(--serif); font-weight: 600; font-style: italic; color: var(--ink-accent); letter-spacing: 0; }
.hero-sub { margin: 1.4rem auto 0; max-width: 56ch; color: var(--ink-text-muted); font-size: 1.08rem; }
.hero-actions { margin-top: 1.75rem; }
.btn-lg { padding: .9rem 1.7rem; font-size: 1rem; }
.hero-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.75rem 2.5rem; margin-top: 2.75rem; padding-top: 1.75rem; border-top: 1px solid var(--ink-border); }
.hero-stat { display: flex; flex-direction: column; align-items: center; }
.hero-stat dt { font-family: var(--sans); font-weight: 800; font-size: 1.6rem; color: var(--ink-text); }
.hero-stat dd { margin: .2rem 0 0; font-size: .82rem; color: var(--ink-text-muted); max-width: 16ch; }

@media (max-width: 719px) { .hero-art { display: none; } }

/* =============================================================
   6. Ad slots
   ============================================================= */
.ad-slot {
  margin-block: 1.25rem;
  min-height: 90px;
  display: block;
  width: 100%;
  padding-top: 1.5rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .78rem;
  background: var(--surface-alt);
  position: relative;
}
.ad-slot-label { position: absolute; top: 6px; left: 10px; text-transform: uppercase; letter-spacing: .05em; font-size: .68rem; opacity: .7; }
.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--infeed { min-height: 100px; }
.ad-slot .adsbygoogle, .mobile-anchor .adsbygoogle { display: block; width: 100%; min-height: 60px; }

/* =============================================================
   7. Tool section
   ============================================================= */
.tool-section { padding-block: 1rem 2rem; }
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: start; }

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.privacy-badge {
  margin-top: 1.25rem;
  font-size: .84rem;
  color: var(--text-muted);
  background: var(--surface-alt);
  border-radius: var(--radius-sm);
  padding: .7rem .9rem;
}

/* Presets */
.presets-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
.presets-label { font-weight: 700; font-size: .86rem; color: var(--text-muted); }
.preset-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.preset-chip {
  padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-alt); font-weight: 600; font-size: .84rem;
  transition: border-color .15s var(--ease-out), background .15s var(--ease-out);
}
.preset-chip:hover { border-color: var(--accent); background: var(--good-bg); }

/* Appliance categories */
.categories-wrap { display: flex; flex-direction: column; gap: .6rem; }
.appliance-category {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
.appliance-category summary {
  padding: .85rem 1rem;
  font-weight: 700;
  font-family: var(--sans);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  background: var(--surface-alt);
}
.appliance-category summary::-webkit-details-marker { display: none; }
.appliance-category summary::before { content: "▸"; margin-right: .55rem; color: var(--accent); transition: transform .15s var(--ease-out); }
.appliance-category[open] summary::before { transform: rotate(90deg); }
.cat-count { color: var(--accent-dark); font-weight: 700; margin-left: .25rem; }

.appliance-list { display: flex; flex-direction: column; }
.appliance-row {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .65rem 1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.appliance-row--custom { background: var(--surface-alt); }
.appliance-check { display: flex; align-items: center; gap: .65rem; flex: 1 1 240px; cursor: pointer; }
.appliance-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.appliance-name { font-weight: 600; font-size: .92rem; }
.appliance-watts { display: block; color: var(--text-muted); font-size: .78rem; font-weight: 500; }

.qty-stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-stepper button {
  width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
  background: var(--surface-alt); font-weight: 700; font-size: 1rem;
}
.qty-stepper button:hover { background: var(--good-bg); color: var(--accent-dark); }
.qty-stepper input {
  width: 42px; text-align: center; border: 0; border-inline: 1px solid var(--border);
  height: 30px; font: inherit; font-weight: 700; background: var(--surface); color: var(--text);
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Custom appliance form */
.custom-appliance { margin-top: 1rem; border: 1px dashed var(--border); border-radius: var(--radius-md); padding: .25rem .9rem; }
.custom-appliance summary { cursor: pointer; font-weight: 700; padding: .75rem 0; list-style: none; }
.custom-appliance summary::-webkit-details-marker { display: none; }
.custom-form { display: flex; flex-direction: column; gap: .75rem; padding-block: .5rem 1rem; }
.field { display: flex; flex-direction: column; gap: .3rem; font-size: .84rem; font-weight: 600; color: var(--text-muted); flex: 1; }
.field input, .field select {
  font: inherit; font-weight: 500; color: var(--text);
  padding: .6rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface);
}
.field input:focus, .field select:focus { border-color: var(--accent); }
.field-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.field-qty { max-width: 90px; }

/* =============================================================
   8. Results panel
   ============================================================= */
.results-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  position: static;
}
.results-panel h2 { font-size: 1.15rem; margin-bottom: 1rem; }

.runtime-goal { margin-bottom: 1.1rem; }
.runtime-label { display: block; font-weight: 700; font-size: .84rem; color: var(--text-muted); margin-bottom: .5rem; }
.runtime-chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.runtime-chips button {
  padding: .45rem .75rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface-alt); font-weight: 700; font-size: .82rem;
}
.runtime-chips button.is-active { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.field-inline-hours { flex-direction: row; align-items: center; gap: .5rem; }
.field-inline-hours span { white-space: nowrap; }
.field-inline-hours input { max-width: 90px; }

.results-headline { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.headline-figure { background: var(--surface-alt); border-radius: var(--radius-md); padding: .8rem .9rem; }
.headline-figure--primary { background: var(--good-bg); }
.headline-label { display: block; font-size: .74rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .02em; margin-bottom: .3rem; }
.headline-figure strong { font-family: var(--sans); font-size: 1.3rem; font-weight: 800; }

.recommendation {
  font-size: .9rem; font-weight: 600; padding: .8rem .95rem;
  border-radius: var(--radius-sm); background: var(--good-bg); color: var(--good);
  margin-bottom: 1.1rem;
}
.results-panel:not(.has-load-x) .recommendation {}

.ps-table { font-size: .82rem; }
.ps-table th { text-align: left; padding: .5rem .5rem; color: var(--text-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--border); }
.ps-table td { padding: .55rem .5rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.ps-table tr.is-recommended { background: var(--good-bg); }
.ps-label { font-weight: 700; }
.ps-note { display: block; color: var(--text-muted); font-weight: 500; font-size: .74rem; }
.fit-badge { display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-weight: 700; font-size: .72rem; white-space: nowrap; }
.fit-good { background: var(--good-bg); color: var(--good); }
.fit-warn { background: var(--warn-bg); color: var(--warn); }
.fit-bad { background: var(--bad-bg); color: var(--bad); }
.fit-neutral { background: var(--neutral-bg); color: var(--text-muted); }

.generator-note { margin-top: 1rem; font-size: .85rem; color: var(--text-muted); background: var(--surface-alt); border-radius: var(--radius-sm); padding: .8rem .9rem; }
.results-actions { display: flex; gap: .6rem; margin-top: 1.1rem; flex-wrap: wrap; }

.table-scroll { overflow-x: auto; }

/* =============================================================
   8b. Bento (Why WattReady)
   ============================================================= */
.bento { padding-block: 3rem 1rem; }
.bento-intro { max-width: 620px; margin-bottom: 1.75rem; }
.section-kicker { color: var(--accent-dark); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .5rem; }
.bento-intro h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.bento-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.bento-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow-card);
}
.bento-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--good-bg); color: var(--accent);
  margin-bottom: 1rem;
}
.bento-card h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.bento-card p { color: var(--text-muted); font-size: .92rem; }
.bento-card--wide { grid-column: 1 / -1; }

@media (min-width: 720px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
  .bento-grid { grid-template-columns: repeat(4, 1fr); }
  .bento-card--wide { grid-column: span 2; }
}

/* =============================================================
   8c. Closing CTA band
   ============================================================= */
.cta-band { background: var(--ink); color: var(--ink-text); margin-top: 2.5rem; }
.cta-band-inner { padding-block: 3.5rem; text-align: center; max-width: 640px; margin-inline: auto; }
.cta-band h2 { font-family: var(--sans); font-weight: 800; color: var(--ink-text); font-size: clamp(1.6rem, 4vw, 2.3rem); }
.cta-band h2 em { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--ink-accent); }
.cta-band p { margin-top: .85rem; color: var(--ink-text-muted); }
.cta-band .btn-primary { margin-top: 1.5rem; }

/* =============================================================
   8d. Giant wordmark
   ============================================================= */
.giant-wordmark {
  background: var(--ink);
  color: var(--ink-text);
  overflow: hidden;
  border-top: 1px solid var(--ink-border);
}
.giant-wordmark span {
  display: block;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(4rem, 16vw, 11rem);
  line-height: .82;
  letter-spacing: -.03em;
  color: var(--ink-text);
  opacity: .92;
  padding-block: .1em .04em;
  white-space: nowrap;
}

/* =============================================================
   9. Content sections
   ============================================================= */
.content-section { padding-block: 2rem; max-width: 820px; }
.content-section h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3.2vw, 2rem); margin-bottom: .9rem; }
.content-section h3 { font-size: 1.15rem; margin-top: 1.4rem; margin-bottom: .5rem; }
.content-section p { margin-bottom: .9rem; color: var(--text); }
.content-section p:last-child { margin-bottom: 0; }
.steps-list { display: flex; flex-direction: column; gap: .9rem; counter-reset: step; }
.steps-list li { padding-left: 2.2rem; position: relative; }
.steps-list li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--accent); color: var(--accent-contrast);
  font-weight: 800; font-size: .82rem;
  display: flex; align-items: center; justify-content: center;
}
.disclaimer-inline { font-size: .84rem; color: var(--text-muted); background: var(--surface-alt); padding: .9rem 1rem; border-radius: var(--radius-sm); }
.about-section { border-top: 1px solid var(--border); padding-top: 2rem; }

/* =============================================================
   9b. Article body + category/guides cards
   ============================================================= */
.article-banner {
  width: 100%; height: auto; aspect-ratio: 1200 / 630;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  margin-bottom: 1.5rem; object-fit: cover;
}
.category-banner {
  width: 100%; max-width: 640px; height: auto; aspect-ratio: 1200 / 630;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  margin: 0 auto 1.5rem; display: block; object-fit: cover;
}
.article-body h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.3rem, 2.8vw, 1.6rem); margin-top: 2rem; margin-bottom: .8rem; }
.article-body p { margin-bottom: 1rem; }
.article-body a { text-decoration: underline; text-underline-offset: 2px; }
.article-list { margin: 0 0 1.2rem; padding-left: 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.article-list li { color: var(--text); }
.article-list--bullet { list-style: disc; }
.article-list:not(.article-list--bullet) { list-style: decimal; }
.article-glossary { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.2rem; }
.article-glossary-item dt { font-weight: 700; font-family: var(--sans); margin-bottom: .2rem; }
.article-glossary-item dd { color: var(--text-muted); }
.article-table { font-size: .88rem; }
.article-table th { text-align: left; padding: .55rem .6rem; background: var(--surface-alt); font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.article-table td { padding: .6rem .6rem; border-bottom: 1px solid var(--border); }
.article-table tr:first-child th:first-child { border-top-left-radius: var(--radius-sm); }
.article-table tr:first-child th:last-child { border-top-right-radius: var(--radius-sm); }

.tools-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.tool-link-card {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.4rem; box-shadow: var(--shadow-card);
  transition: transform .15s var(--ease-out), border-color .15s var(--ease-out);
}
.tool-link-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.tool-link-card h3 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--text); }
.tool-link-card p { color: var(--text-muted); font-size: .88rem; margin-bottom: .8rem; flex: 1; }
.tool-link-cta { font-weight: 700; font-size: .85rem; color: var(--accent); }
.tool-link-card .bento-icon { margin-bottom: .9rem; }

@media (min-width: 720px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }

/* =============================================================
   10. FAQ
   ============================================================= */
.faq-list { display: flex; flex-direction: column; gap: .6rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); padding: 0 1rem; }
.faq-item summary { padding: 1rem 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 1rem; color: var(--text-muted); }

/* =============================================================
   11. Legal / simple pages
   ============================================================= */
.legal-page { padding-block: 2.5rem 3rem; max-width: 760px; }
.legal-page h1 { font-size: clamp(1.7rem, 4vw, 2.2rem); margin-bottom: .5rem; }
.legal-updated { color: var(--text-muted); font-size: .85rem; margin-bottom: 1.6rem; }
.legal-page h2 { font-size: 1.2rem; margin-top: 1.6rem; margin-bottom: .6rem; }
.legal-page p, .legal-page li { color: var(--text); margin-bottom: .8rem; }
.legal-page ul { list-style: disc; padding-left: 1.3rem; }
.legal-page li { margin-bottom: .4rem; }
.todo-note { font-size: .8rem; color: var(--warn); background: var(--warn-bg); padding: .6rem .8rem; border-radius: var(--radius-sm); margin-bottom: 1rem; }

/* =============================================================
   12. Footer
   ============================================================= */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 2rem; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 1.75rem; padding-block: 2.25rem; }
.footer-brand { display: flex; flex-direction: column; gap: .5rem; }
.footer-brand .brand-mark img { height: 22px; }
.footer-brand > span:not(.brand-mark) { font-family: var(--sans); font-weight: 800; }
.footer-brand p { color: var(--text-muted); font-size: .84rem; max-width: 40ch; }
.footer-links-group h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: .7rem; }
.footer-links-group { display: flex; flex-direction: column; gap: .5rem; font-size: .88rem; }
.footer-links-group a { color: var(--text); font-weight: 500; }
.footer-links-group a:hover { color: var(--accent); }

.mobile-anchor {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--surface); border-top: 1px solid var(--border);
  min-height: 60px; display: flex; align-items: center; justify-content: center;
  padding: .5rem 2.5rem;
}
.mobile-anchor-close {
  position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--surface-alt);
  display: flex; align-items: center; justify-content: center; font-size: .8rem;
}
@media (min-width: 960px) { .mobile-anchor { display: none; } }

/* =============================================================
   13. Responsive
   ============================================================= */
@media (min-width: 720px) {
  .field-inline-hours { margin-left: auto; }
  .runtime-goal { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
  .runtime-label { margin-bottom: 0; }
}

@media (min-width: 960px) {
  .tool-grid { grid-template-columns: 1.15fr 0.85fr; }
  .results-panel { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (min-width: 1280px) {
  .hero { padding-block: 3.25rem 2rem; }
}
