/* ==========================================================================
   BulbBrief — main.css
   Premium consumer-editorial design. Warm off-white, charcoal type,
   soft golden accent. No frameworks.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #faf6ef;            /* warm off-white */
  --bg-raised: #fffdf9;     /* card surface */
  --bg-sunk: #f3ecdf;       /* inset / subtle panels */
  --ink: #23201b;           /* charcoal */
  --ink-soft: #524c42;      /* secondary text */
  --ink-faint: #6b6353;     /* tertiary / captions — darkened to meet WCAG AA (≥4.5:1 on off-white) */
  --line: #e7ddcb;          /* hairlines */
  --line-strong: #d8ccb4;

  --accent: #d98e04;        /* soft golden amber (decorative: bulb, buttons, glow) */
  --accent-deep: #8a5805;   /* amber for TEXT — meets WCAG AA (≥4.5:1) on off-white and amber-tint */
  --accent-soft: #f6e3b8;   /* amber tint backgrounds */
  --accent-glow: rgba(217, 142, 4, 0.16);
  --accent-ink: #2a2003;    /* dark text on amber fills (buttons, badges) */
  --info-border: #e6cd92;   /* border for amber-tint info surfaces */

  --good: #3f7d4f;
  --warn-bg: #fbf0e2;       /* warm caution surface */
  --warn-border: #e6c79b;
  --warn-ink: #6f4a13;      /* caution text — meets WCAG AA on --warn-bg */
  --danger: #9c3b2e;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(45, 36, 16, 0.05), 0 2px 8px rgba(45, 36, 16, 0.04);
  --shadow-md: 0 4px 14px rgba(45, 36, 16, 0.08), 0 10px 32px rgba(45, 36, 16, 0.06);
  --shadow-lg: 0 12px 40px rgba(45, 36, 16, 0.12);

  --maxw: 1080px;
  --maxw-prose: 720px;

  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", "Georgia", "Times New Roman", serif;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Offset in-page anchor targets so the sticky header doesn't cover them. */
:target, [id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Keep the footer at the bottom of the viewport on short pages (404, legal). */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }

img, svg { max-width: 100%; display: block; }

a { color: var(--accent-deep); text-underline-offset: 2px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.15;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1rem; }

:focus-visible {
  outline: 3px solid var(--accent-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.prose { max-width: var(--maxw-prose); }
.stack > * + * { margin-top: 1rem; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.1) blur(6px);
  position: sticky; top: 0; z-index: 40;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem;
  color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 26px; height: 26px; flex: none;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
.site-nav { display: flex; gap: 1.25rem; align-items: center; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.site-nav a:hover { color: var(--accent-deep); }
@media (max-width: 600px) {
  /* Keep navigation reachable on mobile rather than hiding it. */
  .site-header .wrap { flex-wrap: wrap; min-height: 0; padding-top: 0.5rem; padding-bottom: 0.5rem; gap: 0.5rem 1rem; }
  .site-nav { gap: 1rem; width: 100%; padding-bottom: 0.25rem; }
  .site-nav a { font-size: 0.9rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 3.5rem 0 2rem;
  overflow: hidden;
}
.hero::before {
  /* soft amber light-glow motif */
  content: "";
  position: absolute; inset: -30% 5% auto auto; right: -6%;
  width: 620px; height: 620px;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 2.75rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 3.5rem);
  margin: 0 0 1rem;
  max-width: 20ch;
  text-wrap: balance; /* avoid lone-word lines like "aisle." */
}
.hero .lede {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 1.5rem;
}

/* Hero visual (original SVG illustration; optional WebP photo slot) */
.hero-visual { position: relative; max-width: 300px; margin-left: auto; width: 100%; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; display: block; overflow: visible; }
.hero-visual .glow {
  position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%);
  width: 90%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 206, 105, 0.5), rgba(255, 206, 105, 0.1) 55%, transparent 72%);
  pointer-events: none; z-index: 0;
}
/* Optional hero photo: if an <img class="hero-photo"> is added, it shows and the
   illustration is hidden automatically — no markup surgery required. */
.hero-photo { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.hero-visual:has(.hero-photo) .hero-art { display: none; }
.hero-visual .visual-card {
  position: relative; z-index: 1; margin-top: -0.5rem;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.15rem 1.25rem 1rem;
}
.hero-visual .visual-quote { font-family: var(--font-serif); font-size: 1rem; line-height: 1.4; color: var(--ink); margin: 0; }
.hero-visual .visual-quote strong { color: var(--accent-deep); }
.hero-visual .visual-spec {
  margin-top: 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--line);
  font-size: 0.82rem; color: var(--ink-faint);
  display: flex; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap;
}
.hero-visual .visual-spec strong { color: var(--accent-deep); font-family: var(--font-serif); }

@media (max-width: 860px) {
  /* Mobile: copy FIRST (eyebrow, headline, lede, CTA, trust), visual AFTER. */
  .hero-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .hero-visual { order: 2; max-width: 230px; margin: 0.5rem auto 0; }
  .hero-visual .visual-card { margin-top: -1rem; }
}
@media (max-width: 600px) {
  .hero { padding: 2rem 0 1.25rem; }
  .hero-visual { max-width: 200px; }
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 0.85rem;
}
.trust-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem;
  color: var(--ink-faint); font-size: 0.9rem; margin-top: 0.5rem;
}
.trust-row span { display: inline-flex; align-items: center; gap: 0.4rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
  min-height: 48px;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #e89c11, var(--accent));
  color: var(--accent-ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { color: var(--accent-ink); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: var(--bg-raised);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { color: var(--ink); border-color: var(--accent); }
.btn-ghost {
  background: transparent; color: var(--ink-soft); border-color: var(--line);
  padding: 0.6rem 1rem; font-size: 0.92rem; min-height: 40px;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}

/* ---------- Calculator ---------- */
.calc-section { padding: 1rem 0 3rem; }
.calc {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}
.calc h2 { font-size: 1.5rem; margin: 0 0 0.35rem; }
.calc .calc-sub { color: var(--ink-soft); margin: 0 0 1.5rem; }

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem 1.25rem;
}
@media (max-width: 560px) {
  .field-grid { grid-template-columns: 1fr; }
}
.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field.span-2 { grid-column: 1 / -1; }
.field label, .field .field-label {
  font-weight: 600; font-size: 0.95rem; color: var(--ink);
}
.field .hint { font-size: 0.82rem; color: var(--ink-faint); }

input[type="number"],
select {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.8rem;
  min-height: 48px;
  width: 100%;
}
input[type="number"]:focus, select:focus { border-color: var(--accent); }
input[aria-invalid="true"], select[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fdf3f0;
}

.dim-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 0.6rem; align-items: end; }
.unit-toggle {
  display: inline-flex; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); overflow: hidden; background: var(--bg);
}
.unit-toggle label {
  padding: 0.6rem 0.85rem; cursor: pointer; font-size: 0.9rem; font-weight: 600;
  color: var(--ink-soft); min-height: 48px; display: inline-flex; align-items: center;
}
.unit-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.unit-toggle input:checked + span { color: var(--accent-ink); }
.unit-toggle label:has(input:checked) { background: var(--accent-soft); }
.unit-toggle label:has(input:focus-visible) { outline: 3px solid var(--accent-deep); outline-offset: -3px; }

.error-msg {
  color: var(--danger); font-size: 0.84rem; font-weight: 600; min-height: 1em;
}

/* Field groups (Your room / Your fixtures / How you want it to feel) */
.field-group { border: 0; margin: 0 0 1.5rem; padding: 0; }
.field-group + .field-group { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.field-group > legend {
  padding: 0; margin-bottom: 0.9rem;
  font-family: var(--font-sans); font-weight: 700;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent-deep);
  display: flex; align-items: center; gap: 0.5rem;
}
.field-group > legend .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.4rem; height: 1.4rem; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 0.78rem; font-weight: 800;
}
.req-note { font-size: 0.82rem; color: var(--ink-faint); font-weight: 500; }
.req-mark { color: var(--danger); font-weight: 700; }

/* Progressive disclosure */
.advanced { margin-top: 0; border-top: 1px dashed var(--line-strong); padding-top: 0.5rem; }
.advanced > summary {
  cursor: pointer; font-weight: 600; color: var(--accent-deep);
  list-style: none; padding: 0.65rem 0; display: inline-flex; align-items: center; gap: 0.5rem;
}
.advanced > summary::-webkit-details-marker { display: none; }
.advanced > summary::before { content: "＋"; font-weight: 700; }
.advanced[open] > summary::before { content: "－"; }
.advanced .field-grid { margin-top: 0.75rem; }

.calc-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.form-error-summary {
  margin-top: 1rem; padding: 0.85rem 1rem;
  background: #fdf3f0; border: 1px solid #e7c3ba; border-radius: var(--radius-sm);
  color: var(--danger); font-size: 0.92rem;
}
.form-error-summary[hidden] { display: none; }

/* ---------- Results ---------- */
.results { margin-top: 2rem; }
.results[hidden] { display: none; }

/* Print-only footer line injected with the result card. print.css (media="print")
   re-enables it; without this screen rule it would show on screen too. */
.print-footer { display: none; }

.result-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.result-head {
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem) 1.25rem;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-glow), transparent 55%),
    var(--bg-raised);
  border-bottom: 1px solid var(--line);
}
.result-head .room-name { font-size: 1.5rem; margin: 0 0 0.2rem; }
.result-head .room-meta { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

.shopping-sentence {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  line-height: 1.4;
  margin: 1.1rem 0 0;
  color: var(--ink);
}
.shopping-sentence strong { color: var(--accent-deep); }

.result-body { padding: clamp(1.25rem, 3vw, 2rem); }

/* Eight specs laid out in complete rows so there are never empty cells:
   large desktop 4×2, tablet 2×4, narrow mobile 1×8. */
.spec-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
@media (max-width: 900px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .spec-grid { grid-template-columns: 1fr; } }
.spec {
  background: var(--bg-raised); padding: 1rem 1.1rem;
}
.spec dt {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-faint); font-weight: 700; margin-bottom: 0.3rem;
}
.spec dd { margin: 0; font-size: 1.15rem; font-weight: 600; font-family: var(--font-serif); }
.spec dd .sub { display: block; font-family: var(--font-sans); font-size: 0.8rem; font-weight: 500; color: var(--ink-faint); }

/* Kelvin strip */
.kelvin-strip { margin: 1.5rem 0 0.5rem; }
.kelvin-strip .bar {
  position: relative; height: 26px; border-radius: 999px; overflow: visible;
  background: linear-gradient(90deg, #ffb14e 0%, #ffd29a 25%, #fff4e0 45%, #f3f4ff 70%, #cfe0ff 100%);
  border: 1px solid var(--line-strong);
}
.kelvin-strip .marker {
  position: absolute; top: -6px; width: 3px; height: 38px;
  background: var(--ink); border-radius: 2px;
  transform: translateX(-50%);
}
.kelvin-strip .marker::after {
  content: attr(data-label);
  position: absolute; top: -1.6em; left: 50%; transform: translateX(-50%);
  font-size: 0.75rem; font-weight: 700; color: var(--ink); white-space: nowrap;
}
.kelvin-strip .scale {
  display: flex; justify-content: space-between;
  font-size: 0.72rem; color: var(--ink-faint); margin-top: 0.4rem;
}
/* First hint under the Kelvin strip (dimmer advice) gets breathing room. */
.dimmer-note { margin-top: 1rem; }

/* Task light + sub cards */
.sub-card {
  margin-top: 1.5rem; padding: 1.25rem;
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); background: var(--bg-sunk);
}
.sub-card h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }
.sub-card .specline { font-size: 0.95rem; color: var(--ink-soft); margin: 0.5rem 0 0; }

.note-list, .avoid-list { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.note-list li, .avoid-list li { margin-bottom: 0.4rem; }

.callout {
  margin-top: 1.5rem; padding: 1rem 1.1rem;
  border-radius: var(--radius-sm); font-size: 0.95rem;
}
.callout.info { background: var(--accent-soft); border: 1px solid var(--info-border); }
.callout.warn { background: var(--warn-bg); border: 1px solid var(--warn-border); color: var(--warn-ink); }

.avoid-card { margin-top: 1.5rem; }
.avoid-card h3 { color: var(--danger); font-size: 1.1rem; margin: 0 0 0.4rem; }

/* Explanation (why) */
.why { margin-top: 1.5rem; }
.why summary { cursor: pointer; font-weight: 600; color: var(--accent-deep); }
.why table { width: 100%; border-collapse: collapse; margin-top: 0.75rem; font-size: 0.92rem; }
.why th, .why td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
.why th { color: var(--ink-faint); font-weight: 600; }

/* Result actions — clear primary / secondary / tertiary hierarchy */
.result-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.75rem;
  padding-top: 1.25rem; border-top: 1px solid var(--line);
}
.result-actions .btn-ghost { padding: 0.6rem 0.9rem; }
/* On wide screens, push tertiary actions to the right; collapses cleanly on wrap. */
.action-divider { flex: 1 1 0.5rem; min-width: 0; }
@media (max-width: 620px) { .action-divider { display: none; } }

/* Retailer search: a separate, clearly-labelled secondary section (not endorsements) */
.retailer-row {
  margin-top: 1.5rem; padding: 1rem 1.1rem;
  background: var(--bg-sunk); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.retailer-row .label { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 0.5rem; }
.retailer-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.copy-flash {
  font-size: 0.85rem; color: var(--good); font-weight: 600;
  opacity: 0; transition: opacity 0.2s ease;
}
.copy-flash.show { opacity: 1; }

/* Disclaimer block */
.safety {
  margin-top: 2rem; padding: 1.25rem 1.4rem;
  background: var(--bg-sunk); border: 1px solid var(--line); border-radius: var(--radius);
}
.safety h3 { font-size: 1.05rem; margin: 0 0 0.5rem; }
.safety ul { margin: 0; padding-left: 1.2rem; font-size: 0.93rem; color: var(--ink-soft); }
.safety li { margin-bottom: 0.35rem; }

/* ---------- Generic sections ---------- */
.section { padding: 3rem 0; }
.section.alt { background: var(--bg-sunk); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0 0 0.5rem; }
.section .section-intro { color: var(--ink-soft); max-width: 60ch; margin: 0 0 1.75rem; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.feature h3 { font-size: 1.15rem; margin: 0.5rem 0 0.35rem; display: flex; align-items: center; gap: 0.5rem; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.feature .ico { color: var(--accent-deep); font-size: 1.4rem; }

/* 300px minimum yields balanced rows (3×2) for the six homepage guide cards. */
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.link-card {
  display: block; padding: 1.1rem 1.25rem; text-decoration: none;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: border-color 0.15s, box-shadow 0.15s, transform 0.08s;
  color: var(--ink);
}
.link-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); color: var(--ink); transform: translateY(-2px); }
.link-card .lc-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.1rem; margin-bottom: 0.25rem; }
.link-card .lc-desc { color: var(--ink-soft); font-size: 0.9rem; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-sunk);
  padding: 2.5rem 0 3rem;
  margin-top: 3rem;
  font-size: 0.92rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { font-family: var(--font-sans); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); margin: 0 0 0.75rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.45rem; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; }
.footer-grid a:hover { color: var(--accent-deep); }
.footer-brand p { color: var(--ink-faint); max-width: 32ch; }
.footer-legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 0.85rem; }

/* ---------- Editorial / guide pages ---------- */
.article { padding: 2.5rem 0 1rem; }
.breadcrumbs { font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 1.25rem; }
/* Underline links that sit inside text blocks so they are distinguishable
   without relying on color alone (WCAG 1.4.1). */
.breadcrumbs a { color: var(--ink-soft); text-decoration: underline; }
.breadcrumbs a:hover { color: var(--accent-deep); }
.article-body p a, .article-body li a, .section-intro a, .answer-box a {
  text-decoration: underline;
}
.article h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 0 0.75rem; max-width: 22ch; text-wrap: balance; }
.article .dek { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; margin: 0 0 1.5rem; }
.article-body { max-width: var(--maxw-prose); }
.article-body h2 { font-size: 1.5rem; margin: 2rem 0 0.6rem; }
.article-body h3 { font-size: 1.2rem; margin: 1.5rem 0 0.5rem; }
.article-body p, .article-body li { color: var(--ink-soft); }
.article-body ul, .article-body ol { padding-left: 1.3rem; }
.article-body li { margin-bottom: 0.5rem; }

.answer-box {
  background: var(--accent-soft); border: 1px solid var(--info-border);
  border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 0 0 1.75rem;
}
.answer-box .answer-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--accent-deep); margin-bottom: 0.4rem; }
.answer-box p { color: var(--ink); font-size: 1.08rem; margin: 0; }

.rec-table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: 0.95rem; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rec-table caption { text-align: left; font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 0.5rem; caption-side: top; }
.rec-table th, .rec-table td { padding: 0.7rem 0.85rem; text-align: left; border-bottom: 1px solid var(--line); }
.rec-table thead th { background: var(--bg-sunk); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-faint); }
.rec-table tr:last-child td { border-bottom: none; }
@media (max-width: 480px) {
  /* Compact the at-a-glance tables so the densest one (kitchen) fits without
     horizontal scrolling on small phones. */
  .rec-table { font-size: 0.88rem; }
  .rec-table th, .rec-table td { padding: 0.55rem 0.5rem; }
}

.faq { margin-top: 2rem; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0.25rem 1rem; margin-bottom: 0.75rem; background: var(--bg-raised);
}
.faq summary { cursor: pointer; font-weight: 600; padding: 0.75rem 0; color: var(--ink); }
.faq details[open] summary { color: var(--accent-deep); }
.faq details p { padding-bottom: 0.75rem; margin: 0; }

.cta-band {
  margin: 2.5rem 0; padding: 1.75rem; text-align: center;
  background:
    radial-gradient(120% 140% at 50% 0%, var(--accent-glow), transparent 60%),
    var(--bg-raised);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.cta-band h2 { margin: 0 0 0.5rem; }
.cta-band p { color: var(--ink-soft); margin: 0 0 1.1rem; }
.cta-band.align-left { text-align: left; }

.mistakes { background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 1.5rem 0; }
.mistakes h3 { margin: 0 0 0.5rem; color: var(--warn-ink); }
.mistakes ul { margin: 0; padding-left: 1.2rem; }
.mistakes li { color: var(--warn-ink); }

/* Simple page (about/privacy/terms/404) */
.simple-page { padding: 3rem 0; }
.simple-page .article-body { max-width: var(--maxw-prose); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Homepage v2 additions: sample preview, value props, bulb-box decoder,
   avoid-the-wrong-bulb, standalone Kelvin band.
   ========================================================================== */

/* Sample / placeholder result before calculating */
.result-sample {
  margin-top: 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 100% 0%, var(--accent-glow), transparent 55%),
    var(--bg-raised);
  padding: 1.5rem clamp(1.25rem, 3vw, 2rem);
}
.result-sample[hidden] { display: none; }
.result-sample .sample-tag {
  display: inline-block; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; font-weight: 700; color: var(--ink-faint);
  margin-bottom: 0.6rem;
}
.result-sample .sample-sentence {
  font-family: var(--font-serif); font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  line-height: 1.4; margin: 0 0 0.75rem; color: var(--ink);
}
.result-sample .sample-sentence strong { color: var(--accent-deep); }
.result-sample .sample-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.result-sample .chip {
  font-size: 0.78rem; font-weight: 600; color: var(--ink-soft);
  background: var(--bg-sunk); border: 1px solid var(--line);
  padding: 0.3rem 0.65rem; border-radius: 999px;
}

/* Three value props */
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 760px) { .value-grid { grid-template-columns: 1fr; } }
.value {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.value .ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.6rem; height: 2.6rem; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-deep);
  font-size: 1.3rem; margin-bottom: 0.75rem;
}
.value h3 { font-size: 1.15rem; margin: 0 0 0.35rem; }
.value p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }

/* ---------- The bulb box, decoded ---------- */
.decoder-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; align-items: center;
}
@media (max-width: 820px) { .decoder-grid { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Stylized (non-trademarked) bulb package */
.pkg {
  position: relative;
  background: linear-gradient(160deg, #fffaf0, #fbf1dd);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1.25rem 1.25rem 1.4rem;
  max-width: 360px; margin: 0 auto; width: 100%;
}
.pkg::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  box-shadow: inset 0 0 0 4px rgba(255,255,255,0.5); pointer-events: none;
}
.pkg .pkg-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.pkg .pkg-brand { font-family: var(--font-serif); font-weight: 700; font-size: 1rem; color: var(--ink); }
.pkg .pkg-flag {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink); padding: 0.2rem 0.5rem; border-radius: 6px;
}
.pkg .pkg-bulb { display: flex; justify-content: center; padding: 0.5rem 0 0.75rem; }
.pkg .pkg-bulb svg { width: 96px; height: auto; }
.pkg .pkg-headline { text-align: center; font-family: var(--font-serif); font-size: 1.5rem; color: var(--ink); }
.pkg .pkg-headline span { display: block; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.pkg .pkg-facts {
  margin-top: 0.9rem; border-top: 2px solid var(--ink);
  font-family: var(--font-sans);
}
.pkg .pkg-facts .fact-title { font-weight: 800; font-size: 0.74rem; letter-spacing: 0.05em; padding: 0.35rem 0; border-bottom: 1px solid var(--line-strong); }
.pkg .pkg-facts dl { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 0; }
.pkg .pkg-facts dt, .pkg .pkg-facts dd { padding: 0.3rem 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; margin: 0; }
.pkg .pkg-facts dt { color: var(--ink-soft); }
.pkg .pkg-facts dd { text-align: right; font-weight: 700; color: var(--ink); }

/* Spec callouts that translate each number */
.decoder-list { display: grid; gap: 0.6rem; margin: 0; padding: 0; }
.decoder-item {
  display: grid; grid-template-columns: auto 1fr; gap: 0.85rem; align-items: start;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 0.85rem 1rem;
}
.decoder-item .d-spec {
  font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem;
  color: var(--accent-deep); white-space: nowrap;
  min-width: 5.5rem;
}
.decoder-item .d-q { font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.decoder-item .d-a { color: var(--ink-soft); font-size: 0.9rem; margin: 0.1rem 0 0; }
.decoder-translate {
  margin-top: 1.25rem; padding: 1rem 1.1rem;
  background: var(--accent-soft); border: 1px solid var(--info-border); border-radius: var(--radius-sm);
}
.decoder-translate .arrow { font-weight: 800; color: var(--accent-deep); }
.decoder-translate p { margin: 0.4rem 0 0; font-family: var(--font-serif); font-size: 1.05rem; color: var(--ink); }
.decoder-cta { margin-top: 1.25rem; }

/* ---------- Avoid the wrong bulb ---------- */
.avoid-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 820px) { .avoid-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .avoid-grid { grid-template-columns: 1fr; } }
.avoid-item {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-left: 4px solid var(--danger); border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
}
.avoid-item h3 { font-size: 1.02rem; margin: 0 0 0.3rem; display: flex; align-items: baseline; gap: 0.5rem; }
.avoid-item h3 .x { color: var(--danger); font-weight: 800; }
.avoid-item p { color: var(--ink-soft); font-size: 0.9rem; margin: 0; }
.avoid-item .fix { color: var(--good); font-size: 0.88rem; margin: 0.45rem 0 0; font-weight: 600; }

/* Standalone Kelvin band on homepage */
.kelvin-band { max-width: 760px; }
.kelvin-band .bar {
  height: 30px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: linear-gradient(90deg, #ffb14e 0%, #ffd29a 25%, #fff4e0 45%, #f3f4ff 70%, #cfe0ff 100%);
}
.kelvin-band .ticks { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.8rem; color: var(--ink-soft); }
.kelvin-band .ticks span b { display: block; color: var(--ink); font-family: var(--font-serif); }

/* Guide index */
.guide-index-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 1.25rem; }
.guide-index-grid.two-up { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
/* Room-by-room guides: deliberate 4 / 2 / 1 columns for the four room cards.
   auto-fit would seat three on the first desktop row and orphan the fourth. */
.guide-index-grid.room-guide-grid { grid-template-columns: 1fr; }
@media (min-width: 620px) {
  .guide-index-grid.room-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1080px) {
  .guide-index-grid.room-guide-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.guide-cat { margin-top: 2.75rem; }
.guide-cat h2 {
  font-size: 1.35rem; margin: 0 0 1.1rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

/* Image-led guide cards (used on the guide index) */
.guide-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  text-decoration: none; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease;
}
.guide-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--ink); }
.guide-card:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 2px; }
.card-media {
  display: block; aspect-ratio: 3 / 2; overflow: hidden;
  /* Attractive fallback shown if an image is ever absent. */
  background: linear-gradient(135deg, #f7e6bd, #efcd86);
  border-bottom: 1px solid var(--line);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.guide-card:hover .card-media img { transform: scale(1.03); }
.card-body { display: flex; flex-direction: column; gap: 0.28rem; padding: 1rem 1.15rem 1.2rem; }
.card-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
  font-weight: 700; color: var(--accent-deep);
}
.guide-card .lc-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.18rem; }
.guide-card .lc-desc { color: var(--ink-soft); font-size: 0.9rem; }
.card-cta { margin-top: 0.45rem; font-size: 0.85rem; font-weight: 700; color: var(--accent-deep); }
.card-cta span { transition: transform 0.15s ease; display: inline-block; }
.guide-card:hover .card-cta span { transform: translateX(3px); }

/* Reduced motion: no card lift or image zoom */
@media (prefers-reduced-motion: reduce) {
  .guide-card:hover { transform: none; }
  .guide-card:hover .card-media img { transform: none; }
  .guide-card:hover .card-cta span { transform: none; }
}

/* Editorial banner figure at the top of guide articles */
.guide-hero {
  margin: 0 0 1.5rem; max-width: var(--maxw-prose);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  background: linear-gradient(135deg, #f7e6bd, #efcd86);
}
.guide-hero img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 16 / 6; object-fit: cover;
  max-height: 200px; /* keep the immediate answer high on the page */
}
@media (max-width: 560px) {
  .guide-hero img { aspect-ratio: 16 / 8; max-height: 170px; }
}
/* Comparison infographics sit AFTER the Quick Answer and are shown at full
   article width (no side gutters) so their labels stay readable. The image is
   information-dense, so it may be taller than the room-guide banners. */
.guide-hero.is-compare { display: block; background: transparent; }
.guide-hero.is-compare img {
  width: 100%; height: auto;
  aspect-ratio: 3 / 2;     /* full 3:2 image — no crop, no distortion */
  max-height: none; object-fit: cover;
}

/* ---- Per-image focal point hooks ----
   Each guide image carries a .focal-<room> class. Adjust an image's crop
   independently by changing its --focal here (object-position). Default: centered.
   Keep important fixtures inside the central safe area when cropped to a banner. */
.card-media img, .guide-hero img { object-position: var(--focal, 50% 50%); }
.focal-bedroom              { --focal: 50% 50%; }
.focal-bathroom             { --focal: 50% 50%; }
.focal-kitchen              { --focal: 50% 50%; }
.focal-living-room          { --focal: 50% 50%; }
.focal-2700k-vs-3000k       { --focal: 50% 50%; }
.focal-soft-white-vs-daylight { --focal: 50% 50%; }

/* ==========================================================================
   Amazon shopping section (affiliate) — restrained, premium, no Amazon branding
   ========================================================================== */
.shop-section {
  margin-top: 1.5rem; padding: 1.5rem clamp(1.1rem, 3vw, 1.75rem);
  border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: var(--radius); background: var(--bg-raised);
}
.shop-section h3 { font-size: 1.25rem; margin: 0 0 0.4rem; }
.shop-intro { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 1rem; }
.shop-spec { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.shop-spec .chip {
  font-size: 0.8rem; font-weight: 600; color: var(--ink-soft);
  background: var(--bg-sunk); border: 1px solid var(--line);
  padding: 0.3rem 0.65rem; border-radius: 999px;
}
.shop-actions { margin: 0.25rem 0 0.75rem; }
.shop-actions .btn { min-height: 48px; }
.ext { font-size: 0.85em; }
.shop-disclosure { font-size: 0.82rem; color: var(--ink-faint); margin: 0 0 1.1rem; }
.shop-disclosure a { color: var(--accent-deep); }
.shop-verify { border-top: 1px solid var(--line); padding-top: 1rem; }
.shop-verify h4 { font-size: 1rem; margin: 0 0 0.5rem; }
.verify-list { margin: 0; padding-left: 1.2rem; color: var(--ink-soft); font-size: 0.92rem; }
.verify-list li { margin-bottom: 0.35rem; }

/* Curated product cards (only rendered from approved, compatible entries) */
.shop-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1.1rem; }
.shop-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1rem; background: var(--bg-sunk); display: flex; flex-direction: column;
}
.shop-card .match-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; color: var(--accent-deep); }
.shop-card-title { font-size: 1.05rem; margin: 0.3rem 0 0.1rem; font-family: var(--font-serif); }
.shop-card-brand { font-size: 0.85rem; color: var(--ink-faint); margin: 0 0 0.5rem; }
.shop-card-reason { font-size: 0.88rem; color: var(--ink-soft); margin: 0.5rem 0; }
.shop-card .btn { margin-top: auto; }
.card-verified { display: block; font-size: 0.78rem; color: var(--ink-faint); margin-top: 0.5rem; }

/* Site-wide Amazon Associate statement in footers */
.footer-affiliate { margin-top: 0.75rem; color: var(--ink-faint); font-size: 0.82rem; }
.footer-affiliate a { color: var(--ink-soft); text-decoration: underline; }
.shop-card-pack { font-size: 0.82rem; color: var(--ink-faint); margin: 0.25rem 0 0.75rem; font-weight: 600; }
