/* ==========================================================================
   Solar CCTV Camera — site stylesheet
   Theme: a day/night solar cycle. Night navy + sun amber + solar-cell blue.
   ========================================================================== */
:root {
  --night: #0b1324;
  --night-2: #13203b;
  --night-3: #1c2b4d;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e3e8f0;
  --bg: #f6f7fb;
  --paper: #ffffff;
  --sun: #f59e0b;
  --sun-2: #f97316;
  --sun-3: #fbbf24;
  --sun-soft: #fff6e6;
  --cell: #1d4ed8;
  --cell-2: #3b82f6;
  --cell-soft: #eaf1ff;
  --leaf: #15803d;
  --leaf-soft: #e8f7ee;
  --danger: #c2410c;
  --danger-soft: #fff1ea;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 28px rgba(15, 23, 42, .07);
  --shadow-lg: 0 20px 60px rgba(11, 19, 36, .18);
  --head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.7; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--cell); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sun-2); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--sun); color: var(--ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.ic { flex: none; vertical-align: middle; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .72em 1.25em; border-radius: 999px;
  font: 600 .95rem/1.2 var(--body); text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: linear-gradient(135deg, var(--sun-3), var(--sun-2)); color: #1a1205; box-shadow: 0 8px 24px rgba(249, 115, 22, .35); }
.btn-sun:hover { color: #1a1205; box-shadow: 0 12px 30px rgba(249, 115, 22, .45); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-ghost:hover { color: #fff; border-color: #fff; }
.btn-line { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-line:hover { border-color: var(--sun); color: var(--ink); }
.btn-lg { padding: .95em 1.6em; font-size: 1.02rem; }

/* ---------- Charge bar (reading/scroll progress styled as charging) ---------- */
.charge-bar { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.charge-bar span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--cell-2), var(--sun-3), var(--sun-2)); box-shadow: 0 0 12px rgba(251, 191, 36, .8); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(11, 19, 36, .72); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); transition: background .3s;
}
.site-header.is-scrolled { background: rgba(11, 19, 36, .94); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font: 600 1.18rem var(--head); letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand b { color: var(--sun-3); font-weight: 700; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff;
  background: linear-gradient(135deg, var(--sun-3), var(--sun-2)); box-shadow: 0 4px 14px rgba(249, 115, 22, .45); }
.brand-mark .ic { animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.site-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.site-nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav li { position: relative; }
.site-nav > ul > li > a { display: block; padding: 10px 14px; color: #dbe3f2; text-decoration: none; font-weight: 500; font-size: .95rem; border-radius: 10px; }
.site-nav > ul > li > a:hover, .site-nav > ul > li.is-active > a { color: #fff; background: rgba(255, 255, 255, .07); }
.sub-toggle { display: none; }
.sub {
  position: absolute; top: calc(100% + 8px); left: -8px; min-width: 270px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: .18s var(--ease);
}
.sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 500; }
.sub a .ic { color: var(--sun-2); }
.sub a:hover { background: var(--sun-soft); color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; }
.nav-cta { padding: .6em 1.05em; }

@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  /* backdrop-filter would make the header the containing block of the fixed menu */
  .site-header, .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--night); }
  .site-nav {
    position: fixed; top: 68px; left: 0; right: 0; bottom: 0; height: calc(100vh - 68px); height: calc(100dvh - 68px);
    background: var(--night); flex-direction: column; align-items: stretch; z-index: 49;
    padding: 12px 16px 40px; overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; margin: 0;
  }
  .site-nav.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
  .site-nav > ul { flex-direction: column; }
  .site-nav > ul > li { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .site-nav > ul > li > a { flex: 1; padding: 14px 6px; font-size: 1.05rem; }
  .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: #fff; cursor: pointer; }
  .sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; width: 100%;
    background: rgba(255, 255, 255, .04); margin-bottom: 10px; }
  .sub.is-open { display: block; }
  .sub a { color: #dbe3f2; }
  .sub a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .nav-cta { justify-content: center; margin-top: 16px; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   HOME HERO — scroll-driven sky: dawn -> noon -> dusk -> night
   --t (0..1) is set by site.js from the hero's scroll position.
   ========================================================================== */
.home-hero {
  --t: 0; position: relative; min-height: 200vh; background: var(--night); color: #e6ecf7;
}
.home-hero .stage { position: sticky; top: 0; height: 100vh; min-height: 640px; overflow: hidden; display: flex; align-items: center; }
.sky { position: absolute; inset: 0; }
.sky > i { position: absolute; inset: 0; transition: opacity .1s linear; }
.sky .dawn { background: linear-gradient(180deg, #1e2a55 0%, #6b4b8a 38%, #f2906b 72%, #ffcf8a 100%); opacity: calc(1 - var(--t) * 3); }
.sky .noon { background: linear-gradient(180deg, #2f6fd6 0%, #69a7f0 55%, #cfe6ff 100%); opacity: calc(1 - max(var(--t) - .33, .33 - var(--t)) * 4); }
.sky .dusk { background: linear-gradient(180deg, #1b1f4a 0%, #8a3d6b 45%, #f2703b 80%, #ffb15c 100%); opacity: calc(1 - max(var(--t) - .62, .62 - var(--t)) * 4.5); }
.sky .night { background: radial-gradient(1200px 600px at 70% 0%, #1f3266 0%, var(--night) 60%); opacity: calc((var(--t) - .62) * 3.4); }
.stars { position: absolute; inset: 0; opacity: calc((var(--t) - .65) * 3);
  background-image: radial-gradient(1.2px 1.2px at 20% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 20%, #fff 50%, transparent 51%),
  radial-gradient(1.4px 1.4px at 40% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 85% 45%, #fff 50%, transparent 51%),
  radial-gradient(1.2px 1.2px at 10% 60%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 55% 35%, #fff 50%, transparent 51%),
  radial-gradient(1.3px 1.3px at 93% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 30% 48%, #fff 50%, transparent 51%);
  animation: twinkle 4s ease-in-out infinite alternate; }
@keyframes twinkle { to { filter: brightness(.6); } }
.sun-arc { position: absolute; inset: 0; pointer-events: none; }
.sun-arc .orb {
  position: absolute; width: 110px; height: 110px; border-radius: 50%; left: 0; top: 0;
  background: radial-gradient(circle, #fff7d6 0%, #ffd36b 40%, #ffae34 70%, rgba(255, 174, 52, 0) 72%);
  box-shadow: 0 0 80px 30px rgba(255, 196, 80, .55); transform: translate(var(--sx, 10vw), var(--sy, 60vh));
  opacity: calc(1 - (var(--t) - .7) * 5);
}
.sun-arc .moon-orb { position: absolute; width: 56px; height: 56px; border-radius: 50%; right: 14%; top: 14%;
  background: radial-gradient(circle at 35% 35%, #fdfcf5, #d9dde8 60%, #aab2c5); box-shadow: 0 0 40px rgba(220, 230, 255, .45);
  opacity: calc((var(--t) - .72) * 4); }
.horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 26vh; min-height: 170px; }
.horizon svg { position: absolute; bottom: 0; width: 100%; height: 100%; }
.horizon .hill-1 { fill: color-mix(in srgb, #0d1a33 calc(var(--t) * 100%), #2f5d3a); }
.horizon .hill-2 { fill: color-mix(in srgb, #08111f calc(var(--t) * 100%), #1f4429); }
.hero-content { position: relative; z-index: 3; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; width: min(var(--wrap), 100% - 32px); padding-bottom: 12vh; }
.hero-copy h1 { color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.hero-copy h1 .grad { background: linear-gradient(90deg, #ffe08a, #ffb347, #ff8a3d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy .lede { font-size: 1.18rem; max-width: 36em; color: #f1f5ff; text-shadow: 0 1px 12px rgba(0, 0, 0, .3); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); margin-bottom: 18px; backdrop-filter: blur(6px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-clock { margin-top: 26px; display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; color: #fff; }
.hero-clock > span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: rgba(11, 19, 36, .35); backdrop-filter: blur(8px); }
.hero-clock b { font-family: var(--head); font-size: 1.05rem; }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 4; font-size: .8rem; color: #fff; opacity: calc(1 - var(--t) * 6);
  display: flex; flex-direction: column; align-items: center; gap: 6px; letter-spacing: .08em; text-transform: uppercase; }
.scroll-hint i { width: 22px; height: 36px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ""; position: absolute; left: 50%; top: 6px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(12px); } }

/* The camera rig illustration */
.rig { position: relative; justify-self: center; width: min(420px, 90%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
.rig svg { width: 100%; height: auto; overflow: visible; }
.rig .cell { fill: color-mix(in srgb, #4f8df7 calc(var(--charge, 0) * 100%), #1a3576); stroke: #fbbf24; stroke-opacity: calc(var(--charge, 0) * .9); stroke-width: 1.5; transition: fill .2s; }
.rig .glint { opacity: calc(var(--charge, 0) * .35); }
.rig .ir { fill: #ff4d4d; opacity: calc((var(--t) - .66) * 4); filter: drop-shadow(0 0 6px #ff3030); }
.rig .beam { opacity: calc((var(--t) - .7) * 2.2); transform-origin: 236px 268px; animation: sweep 5s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
.rig .flow { stroke-dasharray: 6 8; animation: flow 1s linear infinite; opacity: calc(var(--charge, 0)); }
@keyframes flow { to { stroke-dashoffset: -14; } }
.battery-hud { position: absolute; right: -6px; bottom: 8%; background: rgba(11, 19, 36, .78); color: #fff; border-radius: 14px; padding: 10px 14px;
  font-size: .82rem; backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .12); min-width: 150px; }
.battery-hud .bar { height: 8px; border-radius: 6px; background: rgba(255, 255, 255, .15); overflow: hidden; margin-top: 6px; }
.battery-hud .bar i { display: block; height: 100%; width: calc(var(--batt, 60) * 1%); background: linear-gradient(90deg, #22c55e, #a3e635); transition: width .2s; }
.battery-hud .state { display: flex; justify-content: space-between; gap: 10px; }
.battery-hud b { font-family: var(--head); }

@media (max-width: 900px) {
  .home-hero { min-height: 170vh; }
  .hero-content { grid-template-columns: 1fr; gap: 10px; padding-top: 40px; }
  .rig { width: min(290px, 70%); order: -1; }
  .battery-hud { right: -20px; }
  .hero-copy .lede { font-size: 1.05rem; }
  .hero-clock { display: none; }
  .scroll-hint { display: none; }
}
@media (max-height: 700px) and (max-width: 900px) { .rig { display: none; } }

/* ---------- Generic sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-dark { background: var(--night); color: #cdd6e6; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-soft { background: linear-gradient(180deg, #fff, var(--bg)); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-title { margin-bottom: 26px; }
.overline { display: inline-block; font: 600 .78rem var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--sun-2); margin-bottom: 10px; }
.section-dark .overline { color: var(--sun-3); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -60px; position: relative; z-index: 5; }
.stat { background: #fff; border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat b { display: block; font: 700 2.1rem/1 var(--head); color: var(--ink); }
.stat b small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.stat > span { font-size: .9rem; color: var(--muted); }
.stat b span { font: inherit; color: inherit; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); margin-top: 30px; } }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .card-grid, .card-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .card-grid, .card-grid.two, .card-grid.four { grid-template-columns: 1fr; } }
.card { background: #fff; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(15, 23, 42, .12); }
.card-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--night-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 20px 22px 24px; }
.card h3 { font-size: 1.12rem; margin: 8px 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card p { font-size: .94rem; color: var(--muted); margin: 0; }
.tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--sun-2); background: var(--sun-soft); padding: 3px 9px; border-radius: 999px; }

/* Tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-card { display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: var(--r); text-decoration: none; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); transition: .25s var(--ease); color: var(--text); }
.tool-card:hover { border-color: var(--sun); transform: translateY(-3px); color: var(--text); }
.tool-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; flex: none; color: #fff; background: linear-gradient(135deg, var(--cell-2), var(--cell)); }
.tool-card:nth-child(2n) .tool-ic { background: linear-gradient(135deg, var(--sun-3), var(--sun-2)); }
.tool-txt { display: flex; flex-direction: column; flex: 1; }
.tool-txt strong { color: var(--ink); font-family: var(--head); font-size: 1.06rem; }
.tool-txt span { font-size: .92rem; color: var(--muted); }
.tool-go { color: var(--sun-2); transition: transform .2s; }
.tool-card:hover .tool-go { transform: translateX(4px); }
.section-dark .tool-card { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .1); box-shadow: none; }
.section-dark .tool-txt strong { color: #fff; }
.section-dark .tool-txt span { color: #9fb0cc; }

/* Day cycle timeline (home) */
.cycle { position: relative; }
.cycle-chart { background: linear-gradient(180deg, #0f1b33, #0b1324); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r); padding: 26px; }
.cycle-chart svg { width: 100%; height: auto; display: block; }
.cycle-chart .grid line { stroke: rgba(255, 255, 255, .07); }
.cycle-chart .lbl { fill: #8ea0c0; font-size: 11px; font-family: var(--body); }
.cycle-chart .sunfill { fill: url(#sunGrad); opacity: .9; }
.cycle-chart .batt { fill: none; stroke: #4ade80; stroke-width: 3; stroke-linecap: round; stroke-dasharray: var(--len, 1200); stroke-dashoffset: calc(var(--len, 1200) * (1 - var(--draw, 0))); }
.cycle-chart .events circle { fill: var(--sun-3); opacity: var(--draw, 0); }
.cycle-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-size: .88rem; color: #9fb0cc; }
.cycle-legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.cycle-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 26px; }
.cycle-steps div { padding: 18px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.cycle-steps b { display: flex; align-items: center; gap: 8px; color: #fff; font-family: var(--head); margin-bottom: 4px; }
.cycle-steps b .ic { color: var(--sun-3); }
.cycle-steps p { font-size: .9rem; margin: 0; color: #9fb0cc; }
@media (max-width: 860px) { .cycle-steps { grid-template-columns: repeat(2, 1fr); } }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev > :first-child { order: 2; }
.split-media { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.split-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.split-media .float-badge { position: absolute; left: 16px; bottom: 16px; background: rgba(11, 19, 36, .82); color: #fff; padding: 10px 14px; border-radius: 12px; font-size: .85rem; backdrop-filter: blur(6px); display: flex; gap: 8px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.rev > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 18px 0; }
.checks li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--leaf-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 12 4 4 8-9'/%3E%3C/svg%3E") center/14px no-repeat; }

/* Picks strip */
.picks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .picks { grid-template-columns: 1fr; } }
.pick { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pick .badge { position: absolute; top: -12px; left: 22px; background: var(--ink); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; }
.pick.top .badge { background: linear-gradient(135deg, var(--sun-3), var(--sun-2)); color: #1a1205; }
.pick h3 { margin: 10px 0 4px; }
.pick .for { color: var(--muted); font-size: .92rem; margin-bottom: 14px; }
.pick ul { padding-left: 18px; margin: 0 0 18px; font-size: .93rem; }
.pick .btn { margin-top: auto; align-self: flex-start; }

/* Use-case tiles */
.uses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .uses { grid-template-columns: 1fr; } }
.use { position: relative; border-radius: var(--r); overflow: hidden; min-height: 240px; display: flex; align-items: flex-end; text-decoration: none; color: #fff; box-shadow: var(--shadow); }
.use img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.use::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 19, 36, 0) 30%, rgba(11, 19, 36, .88)); }
.use:hover img { transform: scale(1.07); }
.use span { position: relative; z-index: 2; padding: 20px; }
.use strong { display: flex; align-items: center; gap: 8px; font: 600 1.2rem var(--head); }
.use em { font-style: normal; font-size: .9rem; color: #d3dcec; }
.use:hover { color: #fff; }

/* FAQ (home + articles) */
.faq details { border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; margin-bottom: 12px; overflow: hidden; }
.faq summary { cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 600; color: var(--ink); list-style: none; position: relative; font-family: var(--head); font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--sun-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center/12px no-repeat; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 6px; }

/* CTA band */
.cta-band { padding: 0 0 80px; background: var(--bg); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 40px; border-radius: 24px; color: #cdd6e6;
  background: radial-gradient(600px 300px at 90% 0%, rgba(249, 115, 22, .35), transparent 60%), linear-gradient(135deg, var(--night-2), var(--night)); box-shadow: var(--shadow-lg); }
.cta-inner h2 { color: #fff; margin-bottom: 6px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-inner p { margin: 0; max-width: 40em; }
@media (max-width: 760px) { .cta-inner { flex-direction: column; align-items: flex-start; padding: 28px; } }

/* ---------- Article ---------- */
.article-hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 60%, #2a2f5a 100%); color: #cdd6e6; padding: 46px 0 56px; }
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.hero-sun { position: absolute; right: 8%; top: 120%; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 120, .9), rgba(249, 115, 22, .35) 45%, transparent 70%);
  animation: rise 2.4s var(--ease) .2s forwards; filter: blur(2px); }
@keyframes rise { to { top: -40px; } }
.article-hero-inner { position: relative; z-index: 2; max-width: 900px; margin-left: max(16px, calc((100% - var(--wrap)) / 2)); }
.article-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.1rem); margin: 10px 0 14px; }
.article-hero .lede { font-size: 1.15rem; color: #d7dfee; max-width: 46em; }
.kicker { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sun-3); }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .88rem; color: #9fb0cc; margin-top: 16px; }
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 14px; font-size: .85rem; }
.crumbs li { color: #9fb0cc; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: #5f7397; }
.crumbs a { color: #cdd6e6; text-decoration: none; }
.crumbs a:hover { color: var(--sun-3); }

.article-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 56px; padding: 48px 0 70px; justify-content: center; }
.toc-col { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; padding-right: 6px; }
.toc { margin-bottom: 26px; }
.toc-title { font: 700 .75rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc li a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .9rem; line-height: 1.4; }
.toc li a:hover { color: var(--ink); }
.toc li a.is-current { color: var(--ink); border-left-color: var(--sun-2); font-weight: 600; }
.side-tools a { display: flex; gap: 8px; align-items: center; padding: 7px 0; font-size: .9rem; color: var(--text); text-decoration: none; }
.side-tools a .ic { color: var(--sun-2); }
.side-tools a:hover { color: var(--sun-2); }
@media (max-width: 1020px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
  .toc-col { display: none; }
}

.prose { min-width: 0; }
.prose > * + h2 { margin-top: 1.9em; }
.prose h2 { scroll-margin-top: 90px; }
.prose h3 { margin-top: 1.6em; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--sun-2); }
.prose strong { color: var(--ink); }
.prose figure { margin: 0 0 1.6em; }
.prose figure img { border-radius: var(--r); width: 100%; }
.prose figcaption { font-size: .86rem; color: var(--muted); margin-top: 8px; }
.hero-figure img { box-shadow: var(--shadow); aspect-ratio: 3 / 2; object-fit: cover; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--sun); color: var(--ink); font-size: 1.08rem; }
.disclosure { font-size: .86rem; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 10px 14px; display: flex; gap: 8px; align-items: flex-start; }
.disclosure .ic { margin-top: 3px; color: var(--sun-2); }

.takeaways { background: linear-gradient(135deg, var(--sun-soft), #fff); border: 1px solid #fde3b5; border-radius: var(--r); padding: 22px 24px 10px; margin-bottom: 2em; }
.takeaways-title { display: flex; align-items: center; gap: 8px; font: 700 .8rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--sun-2); margin-bottom: 10px; }
.takeaways ul { margin: 0 0 .8em; }

/* Callouts */
.callout { border-radius: var(--r-sm); padding: 18px 20px 4px; margin: 1.6em 0; border: 1px solid var(--line); background: #fff; position: relative; }
.callout::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 4px 4px 0; background: var(--cell-2); }
.callout.tip::before { background: var(--leaf); }
.callout.warn::before { background: var(--sun-2); }
.callout.tip { background: var(--leaf-soft); border-color: #c7ead4; }
.callout.warn { background: var(--danger-soft); border-color: #ffd6c2; }
.callout.info { background: var(--cell-soft); border-color: #cfdcfb; }
.callout > strong:first-child { display: block; font-family: var(--head); margin-bottom: 4px; }

/* Tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; -webkit-overflow-scrolling: touch; }
.prose table, .table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
.prose th, .prose td, .table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th, .table thead th { background: var(--night); color: #fff; font-family: var(--head); font-weight: 600; font-size: .88rem; letter-spacing: .01em; }
.prose tbody tr:nth-child(even) { background: #fafbfd; }
.prose tbody tr:last-child td { border-bottom: 0; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0 !important; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 22px 58px; margin: 0; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 700 1rem var(--head); color: #1a1205; background: linear-gradient(135deg, var(--sun-3), var(--sun-2)); }
.steps > li::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps > li > strong:first-child { display: block; font-family: var(--head); font-size: 1.08rem; color: var(--ink); margin-bottom: 2px; }

/* Pros / cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.4em 0; }
.proscons > div { border-radius: var(--r-sm); padding: 18px 20px 6px; border: 1px solid var(--line); background: #fff; }
.proscons h4 { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 8px; }
.proscons .pros h4 { color: var(--leaf); }
.proscons .cons h4 { color: var(--danger); }
.proscons ul { list-style: none; padding: 0 !important; font-size: .94rem; }
.proscons li { padding-left: 22px; position: relative; }
.proscons .pros li::before { content: "+"; position: absolute; left: 2px; color: var(--leaf); font-weight: 700; }
.proscons .cons li::before { content: "–"; position: absolute; left: 2px; color: var(--danger); font-weight: 700; }
@media (max-width: 620px) { .proscons { grid-template-columns: 1fr; } }

/* Product cards (best cameras) */
.product { border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow); padding: 26px; margin: 1.8em 0; position: relative; }
.product .badge { display: inline-flex; gap: 6px; align-items: center; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--sun-soft); color: var(--sun-2); }
.product h3 { margin: 10px 0 6px; font-size: 1.4rem; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; padding: 0 !important; list-style: none; }
.spec-chips li { font-size: .82rem; padding: 4px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); margin: 0; }
.product .btn { margin-top: 6px; }

/* Key numbers inside articles */
.keyfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.4em 0 1.8em; }
.keyfacts div { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; }
.keyfacts b { display: block; font: 700 1.6rem/1.1 var(--head); color: var(--ink); }
.keyfacts span { font-size: .86rem; color: var(--muted); }
@media (max-width: 620px) { .keyfacts { grid-template-columns: 1fr 1fr; } }

.author-box { display: flex; gap: 14px; margin-top: 40px; padding: 20px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); font-size: .93rem; }
.author-box p { margin: 0 0 4px; }
.related { padding: 10px 0 70px; }

/* ---------- Tools UI ---------- */
.tool-top { margin-top: -30px; position: relative; z-index: 3; }
.tool-embed { margin: 1.8em 0; }
.tool-top .tool-embed { margin: 0; }
.tool { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; }
.tool-head { display: flex; align-items: center; gap: 12px; padding: 18px 24px; background: linear-gradient(135deg, var(--night-2), var(--night)); color: #fff; }
.tool-head .ic { color: var(--sun-3); }
.tool-head strong { font-family: var(--head); font-size: 1.1rem; }
.tool-head span { color: #9fb0cc; font-size: .88rem; margin-left: auto; }
.tool-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.tool-body.stack { grid-template-columns: 1fr; }
.tool-inputs { padding: 24px; border-right: 1px solid var(--line); }
.tool-out { padding: 24px; background: linear-gradient(180deg, #fbfcfe, #f3f6fb); min-width: 0; }
@media (max-width: 860px) { .tool-body { grid-template-columns: 1fr; } .tool-inputs { border-right: 0; border-bottom: 1px solid var(--line); } }
.field { margin-bottom: 16px; }
.field > label, .field > .lbl { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field > label output, .field .val { font-family: var(--head); color: var(--sun-2); font-weight: 700; }
.field small { display: block; color: var(--muted); font-size: .8rem; margin-top: 4px; line-height: 1.45; }
.field input[type=number], .field input[type=text], .field input[type=email], .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; font: 500 .95rem var(--body); color: var(--ink); background: #fff; transition: border-color .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px rgba(245, 158, 11, .18); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 480px) { .row3 { grid-template-columns: 1fr 1fr; } }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--sun-2) var(--fill, 50%), var(--line) var(--fill, 50%)); outline: none; margin: 8px 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--sun-2); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); cursor: grab; }
input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--sun-2); cursor: grab; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 8px 13px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .87rem; font-weight: 500; cursor: pointer; transition: .15s; background: #fff; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--sun); }
.chk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 480px) { .chk-grid { grid-template-columns: 1fr; } }
.chk { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; font-size: .9rem; background: #fff; line-height: 1.35; }
.chk input { margin-top: 3px; accent-color: var(--sun-2); }
.chk:has(input:checked) { border-color: var(--sun); background: var(--sun-soft); }
.chk em { display: block; font-style: normal; color: var(--muted); font-size: .78rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.btn-sm { padding: .5em .95em; font-size: .85rem; }

.result-hero { display: flex; align-items: center; gap: 18px; padding: 18px; border-radius: 16px; background: var(--night); color: #fff; margin-bottom: 16px; }
.result-hero .big { font: 700 2.6rem/1 var(--head); color: var(--sun-3); white-space: nowrap; }
.result-hero .big small { font-size: 1rem; color: #cdd6e6; font-weight: 500; }
.result-hero p { margin: 0; font-size: .92rem; color: #cdd6e6; }
.result-hero p strong { color: #fff; }
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.res { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.res b { display: block; font: 700 1.3rem/1.2 var(--head); color: var(--ink); }
.res span { font-size: .8rem; color: var(--muted); }
.verdict { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: .92rem; margin-bottom: 12px; }
.verdict .ic { margin-top: 2px; }
.verdict.ok { background: var(--leaf-soft); color: #14532d; }
.verdict.mid { background: var(--sun-soft); color: #7c2d12; }
.verdict.bad { background: var(--danger-soft); color: #7c2d12; }
.tool-out h4 { font-size: .95rem; margin: 16px 0 8px; }
.tool-out ul { padding-left: 18px; font-size: .92rem; margin: 0 0 10px; }
.chart { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.chart svg { display: block; width: 100%; height: auto; }
.chart .axis { stroke: var(--line); }
.chart text { font: 10px var(--body); fill: var(--muted); }
.bars { display: grid; gap: 8px; }
.bars .b { display: grid; grid-template-columns: 110px 1fr 70px; align-items: center; gap: 10px; font-size: .85rem; }
.bars .b i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--cell-2), var(--sun-2)); width: var(--w, 0); transition: width .5s var(--ease); }
.bars .b span:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.tool-note { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.plan-list { list-style: none; padding: 0 !important; }
.plan-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; margin: 0; }
.plan-list li b { color: var(--ink); }
.quiz-q { margin-bottom: 18px; }
.quiz-q > p { font-weight: 600; color: var(--ink); margin-bottom: 8px; font-size: .95rem; }
.gauge { position: relative; width: 180px; margin: 0 auto 10px; }
.gauge svg { width: 100%; }
.gauge .val { position: absolute; left: 0; right: 0; bottom: 6px; text-align: center; font: 700 2rem var(--head); color: var(--ink); }
.panel-viz { background: linear-gradient(180deg, #cfe3ff, #f3f8ff 70%); border-radius: 14px; border: 1px solid var(--line); }
.panel-viz svg { display: block; width: 100%; height: auto; }

/* ---------- Forms (contact) ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: var(--shadow); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.notice.ok { background: var(--leaf-soft); color: #14532d; }
.notice.err { background: var(--danger-soft); color: #7c2d12; }

/* ---------- Hubs ---------- */
.page-hero { background: linear-gradient(160deg, var(--night), var(--night-2)); color: #cdd6e6; padding: 56px 0 64px; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; }
.page-hero .lede { font-size: 1.15rem; max-width: 46em; color: #d7dfee; }
.hub-section { padding: 56px 0 10px; scroll-margin-top: 80px; }
.hub-section h2 { display: flex; align-items: center; gap: 10px; }
.hub-section h2 .ic { color: var(--sun-2); }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.filter-bar a { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .2); color: #fff; text-decoration: none; font-size: .9rem; }
.filter-bar a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.legal { max-width: 800px; margin: 0 auto; padding: 50px 0 80px; }
.sitemap-list { columns: 2; column-gap: 40px; }
@media (max-width: 700px) { .sitemap-list { columns: 1; } }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--night); color: #9fb0cc; padding: 70px 0 30px; font-size: .93rem; overflow: hidden; }
.footer-horizon { position: absolute; left: -10%; right: -10%; top: -280px; height: 400px; border-radius: 50%; background: radial-gradient(closest-side, rgba(249, 115, 22, .22), transparent); pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h2 { color: #fff; font-size: .95rem; letter-spacing: .02em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #cdd6e6; text-decoration: none; }
.site-footer a:hover { color: var(--sun-3); }
.footer-brand p { margin-top: 14px; max-width: 30em; }
.footer-mail { display: flex; align-items: center; gap: 8px; }
.footer-base { position: relative; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 44px; padding-top: 22px; font-size: .85rem; }
.footer-base p { margin: 0; }
.footer-base .muted { color: #6f82a3; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* 404 */
.err-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; background: radial-gradient(800px 400px at 50% 0%, #1f3266, var(--night)); color: #cdd6e6; }
.err-page h1 { color: #fff; }
.err-page .code { font: 700 clamp(5rem, 16vw, 9rem)/1 var(--head); background: linear-gradient(180deg, #ffe08a, #f97316); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Print: tool plans */
@media print {
  .site-header, .site-footer, .toc-col, .cta-band, .related, .charge-bar, .btn-row, .article-hero .meta-row { display: none !important; }
  body { background: #fff; }
  .tool { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .home-hero { min-height: 100vh; }
}

/* Tools embedded inside article prose keep their own typography */
.tool .tool-head strong { color: #fff; }
.prose .tool ul, .prose .tool ol { margin-bottom: 10px; }
.prose .tool li { margin-bottom: .25em; }
.prose .tool h4 { margin-top: 16px; }

/* Affiliate gear grid (<!--products:...--> in article bodies) */
.gear { margin: 1.8em 0; padding: 22px; border-radius: var(--r); background: linear-gradient(135deg, #fff, var(--sun-soft)); border: 1px solid #fde3b5; }
.gear-title { display: flex; align-items: center; gap: 8px; font: 700 .8rem var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--sun-2); margin-bottom: 14px; }
.gear-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gear-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px; display: flex; flex-direction: column; }
.gear-item h4 { font-size: 1rem; margin: 8px 0 4px; }
.gear-item .spec-chips { margin: 6px 0 10px; }
.gear-item .spec-chips li { font-size: .74rem; padding: 2px 8px; }
.gear-item p { font-size: .88rem; color: var(--muted); margin: 0 0 12px; }
.gear-item .btn { margin-top: auto; align-self: flex-start; }
.gear-note { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }
.gear-item .tag { align-self: flex-start; }
