/* =========================================================
   NPOD Energy – design system for /energy/ (range + product pages)
   File: /energy/energy.css
   Principles: calm neutral canvas, white surfaces, hairline borders,
   typography-led hierarchy, green only where it means "act" or "on".
   ========================================================= */

:root {
  --canvas:   #F3F4F1;
  --surface:  #FFFFFF;
  --sunken:   #F7F8F6;
  --line:     #E5E7E2;
  --line-2:   #D6D9D3;
  --ink:      #111613;
  --ink-2:    #39413C;
  --muted:    #5F6762;
  --faint:    #8A918C;
  --green:    #0B7A55;
  --green-2:  #096647;
  --green-ink:#0A5C40;
  --mint:     #E7F2EC;
  --lime:     #8EE5BF;
  --deep:     radial-gradient(120% 140% at 100% 0%, rgba(36,196,128,0.32) 0%, rgba(36,196,128,0) 46%), linear-gradient(115deg, #08120E 0%, #0B231A 48%, #0D3A29 100%);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --site-header-h: 84px;   /* height of the fixed site header (header.php) */
}

html { scroll-behavior: smooth; }
body { margin: 0; }
.ess-page, .ess-page *, .ess-page *::before, .ess-page *::after,
.ess-overlay, .ess-overlay * { box-sizing: border-box; }
.ess-page { background: var(--canvas); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; overflow-x: clip; padding-top: var(--site-header-h); }
.ess-page h1, .ess-page h2, .ess-page h3, .ess-page p, .ess-page dl, .ess-page dd, .ess-page ul, .ess-page figure { margin: 0; padding: 0; }
.ess-page ul { list-style: none; }
.ess-page img { max-width: 100%; display: block; }
.ess-page a { color: inherit; text-decoration: none; }
.ess-page button { font-family: var(--font); cursor: pointer; color: inherit; }
.ess-page [hidden], .ess-overlay [hidden] { display: none !important; }
.ess-page :focus-visible, .ess-overlay :focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.block { margin-top: 72px; }
.block-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.block-head h2, .h2 { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.block-head p, .sub { font-size: 15px; color: var(--muted); margin-top: 6px; max-width: 620px; }
.surface { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.muted { color: var(--muted); }
.tbc { color: #93600A; font-style: italic; font-weight: 500; }

/* ── Buttons ─────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--r-sm); font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; border: 1px solid transparent; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; cursor: pointer; font-family: var(--font); text-decoration: none; }
.btn i { font-size: 13px; }
.ess-page .btn-buy, .ess-overlay .btn-buy { background: var(--green); color: #fff; }
.ess-page .btn-buy:hover, .ess-overlay .btn-buy:hover { background: var(--green-2); }
.ess-page .btn-dark { background: var(--ink); color: #fff; }
.ess-page .btn-dark:hover { background: #2A322D; }
.ess-page .btn-light, .ess-overlay .btn-light { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.ess-page .btn-light:hover, .ess-overlay .btn-light:hover { border-color: var(--ink); }
.ess-page .btn-white { background: #fff; color: var(--ink); }
.ess-page .btn-white:hover { background: #E9EEEA; }
.ess-page .btn-glass { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.22); }
.ess-page .btn-glass:hover { background: rgba(255,255,255,0.14); }
.btn-lg { min-height: 50px; padding: 0 22px; font-size: 15px; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 13.5px; }
.btn-block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; background: none; border: 0; padding: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.link i { font-size: 11px; transition: transform .15s; }
.link:hover { color: var(--green); }
.link:hover i { transform: translateX(2px); }
.ess-page .link-green { color: var(--green); }

/* ── Breadcrumb ──────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); }
.ess-page .crumbs a { color: var(--muted); }
.ess-page .crumbs a:hover { color: var(--ink); }
.crumbs i { font-size: 9px; }
.crumbs span { color: var(--ink); font-weight: 500; }

/* ── Range hero ──────────────────────────────────────── */
.hero { padding-top: 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; padding: 24px 0; }
.hero-copy h1 { font-size: clamp(38px, 4.6vw, 56px); line-height: 1.04; font-weight: 600; letter-spacing: -0.04em; color: var(--ink); max-width: 560px; }
.hero-copy h1 em { font-style: normal; color: var(--green); }
.hero-lead { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 500px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 0; margin-top: 6px; }
.facts li { padding: 0 20px; border-left: 1px solid var(--line-2); }
.facts li:first-child { padding-left: 0; border-left: 0; }
.facts b { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.facts span { font-size: 13px; color: var(--muted); }

/* hero illustration */
.hero-art { position: relative; margin: 0; }
.scene-svg { display: block; width: 100%; height: auto; }
.scene-chip { position: absolute; display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.92); border: 1px solid var(--line); border-radius: 12px; padding: 9px 13px; font-size: 12.5px; line-height: 1.3; backdrop-filter: blur(6px); }
.scene-chip strong { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.scene-chip span { color: var(--muted); }
.chip-grid { top: 6%; left: 2%; }
.chip-run { top: 6%; right: 2%; }
.chip-ess { bottom: 6%; right: 4%; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-red { background: #D92D20; box-shadow: 0 0 0 4px rgba(217,45,32,0.12); }
.dot-green { background: #12B76A; box-shadow: 0 0 0 4px rgba(18,183,106,0.16); }
.scene-svg .flow { stroke-dasharray: 8 10; animation: essFlow 1.2s linear infinite; }
@keyframes essFlow { to { stroke-dashoffset: -36; } }
.scene-svg .pulse { animation: essPulse 1.8s ease-in-out infinite; }
@keyframes essPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.scene-svg .grid-x { animation: essPulse 2.4s ease-in-out infinite; }
.scene-svg .led circle:nth-child(odd) { animation: essPulse 1.4s ease-in-out infinite; }
.scene-svg .gear { transform-origin: 545px 356px; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── On-page tabs bar ────────────────────────────────── */
.tabs-bar { margin-top: 32px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; }
.tabs-bar nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; }
.tabs-bar nav::-webkit-scrollbar { display: none; }
.ess-page .tabs-bar nav a { padding: 9px 14px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.ess-page .tabs-bar nav a:hover { background: var(--sunken); color: var(--ink); }
.tabs-bar-actions { display: flex; gap: 6px; flex: none; }

/* ── Promo banner (dark) ─────────────────────────────── */
.promo { position: relative; overflow: hidden; margin-top: 20px; border-radius: var(--r-lg); background: var(--deep); color: #fff; padding: 36px 40px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.final .promo { position: relative; overflow: hidden; margin-top: 20px; border-radius: var(--r-lg); background: none; color: #fff; padding: 36px 40px 0px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.promo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 0 calc(100% - 1px), rgba(255,255,255,0.06) 0) 0 0 / 100% 28px; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 100%); mask-image: linear-gradient(90deg, transparent 30%, #000 100%); pointer-events: none; }
.promo > * { position: relative; z-index: 1; }
.promo-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #B9D6C9; margin-bottom: 10px; }
.promo h2 { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; }
.promo p { color: #C9DDD3; margin-top: 8px; max-width: 480px; }
.promo .hero-ctas { margin-top: 22px; }
.promo-figure { text-align: right; padding-right: 8px; }
.promo-figure b { display: block; font-size: clamp(56px, 7vw, 92px); line-height: 0.95; font-weight: 600; letter-spacing: -0.05em; background: linear-gradient(180deg, #FFFFFF 30%, #8EE5BF 140%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.promo-figure span { display: block; margin-top: 8px; font-size: 14px; color: #B9D6C9; }

/* ── Segmented control ───────────────────────────────── */
.seg { display: inline-flex; gap: 2px; padding: 3px; background: #E9EBE6; border-radius: 11px; }
.seg button { min-height: 34px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: background .15s, color .15s; }
.seg button:hover { color: var(--ink); }
.seg button.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(17,22,19,0.08), 0 0 0 1px rgba(17,22,19,0.04); }

/* ── Product cards ───────────────────────────────────── */
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 10px; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.pcard:hover { border-color: var(--line-2); box-shadow: 0 12px 32px -12px rgba(17,22,19,0.14); }
.pcard[hidden] { display: none; }
.pcard.is-compared { border-color: var(--green); box-shadow: 0 0 0 3px rgba(11,122,85,0.12); }
.pcard-media { position: relative; width: 100%; height: 210px; border: 0; border-radius: 14px; background: var(--sunken); display: flex; align-items: center; justify-content: center; padding: 18px; cursor: zoom-in; }
.pcard-media img { max-height: 172px; width: auto; object-fit: contain; transition: transform .35s ease; }
.pcard-media svg { transition: transform .35s ease; }
.pcard:hover .pcard-media img, .pcard:hover .pcard-media svg { transform: scale(1.035); }
.pcard-tag { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 500; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }
.pcard-tag.is-hot { color: var(--green-ink); background: var(--mint); border-color: transparent; }
.pcard-body { padding: 14px 10px 6px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard-body h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; }
.pcard-sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.pcard-specs { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pcard-specs div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.pcard-specs dt { color: var(--muted); }
.pcard-specs dd { font-weight: 500; text-align: right; }
.pcard-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.pcard-price strong { font-size: 15px; font-weight: 600; }
.pcard-price span { font-size: 12.5px; color: var(--muted); }
.pcard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pcard-links { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 2px; }
.pcard-links .link { font-size: 13px; font-weight: 500; color: var(--muted); }
.pcard-links .link:hover { color: var(--ink); }
.cmp { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); cursor: pointer; min-height: 36px; }
.cmp input { width: 16px; height: 16px; margin: 0; accent-color: var(--green); }
.note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* ── Model finder ────────────────────────────────────── */
.finder { padding: 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 32px; align-items: stretch; }
.finder h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.finder p { color: var(--muted); margin-top: 6px; max-width: 440px; }
.field-label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin: 22px 0 8px; }
.load-input { display: flex; align-items: center; max-width: 320px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.load-input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,22,19,0.06); }
.load-input input { flex: 1; min-width: 0; height: 50px; padding: 0 14px; border: 0; background: transparent; font-family: var(--font); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.load-input input:focus { outline: none; }
.load-input span { padding: 0 14px; color: var(--muted); font-size: 14px; }
.presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.preset { min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; font-weight: 500; color: var(--ink-2); transition: all .15s; }
.preset:hover { border-color: var(--ink); color: var(--ink); }
.preset.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.finder-result { background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.finder-result .kicker { font-size: 12.5px; color: var(--muted); }
.rec-name { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.rec-sub { font-size: 14px; color: var(--muted); }
.meter { height: 6px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--green); border-radius: 4px; transition: width .4s ease; }
.meter-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; }
.rec-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.fine { font-size: 12px; color: var(--faint); }

/* ── List rows / accordion (why, FAQ, checklist) ─────── */
.list { overflow: hidden; }
.acc + .acc, .row + .row { border-top: 1px solid var(--line); }
.acc-head { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 18px 22px; background: none; border: 0; text-align: left; font-size: 15.5px; font-weight: 500; color: var(--ink); min-height: 60px; transition: background .15s; }
.acc-head:hover { background: var(--sunken); }
.ring { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; color: transparent; font-size: 10px; transition: all .2s; }
.acc.open .ring, .ring.is-on { border-color: var(--green); background: var(--green); color: #fff; }
.acc-meta { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.acc-meta b { color: var(--green); font-weight: 600; }
.chev { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; transition: transform .25s, background .15s; }
.acc.open .chev { transform: rotate(180deg); background: var(--sunken); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.acc-body p { padding: 0 22px 20px 58px; color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 760px; }
.acc.no-ring .acc-head { grid-template-columns: minmax(0, 1fr) auto; }
.acc.no-ring .acc-body p { padding-left: 22px; }

/* simple rows (use cases) */
.rows-2 { display: grid; grid-template-columns: 1fr 1fr; }
.rows-2 .row { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--line); }
.rows-2 .row:nth-child(-n+2) { border-top: 0; }
.rows-2 .row:nth-child(odd) { border-right: 1px solid var(--line); }
.row-icon { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--sunken); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--ink-2); font-size: 14px; }
.row-text { flex: 1; min-width: 0; }
.row-text strong { display: block; font-size: 15px; font-weight: 500; }
.row-text span { display: block; font-size: 13px; color: var(--muted); }
.row-meta { font-size: 13px; color: var(--ink-2); font-weight: 500; white-space: nowrap; background: var(--sunken); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; }

/* ── Spec table ──────────────────────────────────────── */
.table-tools { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.table-tools strong { color: var(--ink); font-weight: 600; }
.table-box { overflow-x: auto; }
.table-box table { width: 100%; min-width: 1120px; border-collapse: separate; border-spacing: 0; font-size: 14px; text-align: left; }
.table-box th, .table-box td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-box thead th { font-size: 14px; font-weight: 600; color: var(--ink); background: var(--sunken); }
.table-box thead th small { display: block; font-weight: 400; font-size: 12px; color: var(--faint); }
.table-box tbody th { position: sticky; left: 0; z-index: 1; background: var(--surface); font-weight: 500; color: var(--muted); min-width: 190px; }
.table-box thead th:first-child { position: sticky; left: 0; z-index: 2; }
.table-box tbody td { color: var(--ink); }
.table-box tbody tr:hover td, .table-box tbody tr:hover th { background: #FAFBF9; }
.table-box tfoot td, .table-box tfoot th { border-bottom: 0; background: var(--surface); }
.table-box .is-hidden { display: none; }
.table-box tr:first-child th:first-child { border-top-left-radius: var(--r-lg); }
.table-box tr:first-child th:last-child { border-top-right-radius: var(--r-lg); }

/* ── Steps (how to buy) ──────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { padding: 26px; display: flex; flex-direction: column; gap: 8px; }
.step + .step { border-left: 1px solid var(--line); }
.step-no { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.01em; }
.step p { font-size: 14px; color: var(--muted); flex: 1; }

/* ── Certifications ──────────────────────────────────── */
.certs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.ess-page .cert { padding: 18px 16px; display: flex; flex-direction: column; gap: 3px; transition: background .15s; }
.ess-page .cert:hover { background: var(--sunken); }
.cert + .cert { border-left: 1px solid var(--line); }
.cert i { color: var(--green); font-size: 14px; margin-bottom: 8px; }
.cert strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.cert span { font-size: 12px; color: var(--muted); line-height: 1.35; }

/* ── Inline bar (brochure, BSS) ──────────────────────── */
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 14px 14px 14px 18px; }
.bar-icon { width: 40px; height: 40px; flex: none; border-radius: 11px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.bar-text { flex: 1 1 280px; font-size: 14.5px; color: var(--ink-2); }
.bar-text strong { color: var(--ink); font-weight: 600; }

/* ── Business cards ──────────────────────────────────── */
.biz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.biz-card { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.biz-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.biz-card p { font-size: 14px; color: var(--muted); flex: 1; margin-bottom: 10px; }

/* ── FAQ layout ──────────────────────────────────────── */
.faq-layout { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 40px; align-items: start; }
.help { margin-top: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.help strong { font-size: 15px; font-weight: 600; }
.help p { font-size: 13.5px; color: var(--muted); }
.help .hero-ctas { gap: 6px; }

/* ── Final banner ────────────────────────────────────── */
.final { margin: 72px 0 0; background: #0c0c0c}
.final .promo { margin-top: 0; padding: 44px 40px; }
.final h2 { font-size: clamp(26px, 3vw, 34px); }

/* ── Compare tray / mobile bar / to-top ──────────────── */
.compare-tray { visibility: hidden; position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); z-index: 60; background: var(--ink); color: #fff; border-radius: 14px; padding: 8px 8px 8px 18px; display: flex; align-items: center; gap: 14px; box-shadow: 0 18px 40px -12px rgba(17,22,19,0.4); transition: transform .3s ease; font-family: var(--font); font-size: 14px; max-width: calc(100% - 32px); }
.compare-tray.is-visible { transform: translate(-50%, 0); visibility: visible; }
.compare-tray .names { color: #C4CBC6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compare-tray .names strong { color: #fff; font-weight: 600; }
.compare-tray .clear { background: none; border: 0; color: #C4CBC6; font-size: 13px; min-height: 40px; cursor: pointer; font-family: var(--font); }
.m-bar { display: none; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 55; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transform: translateY(8px); transition: all .25s; cursor: pointer; box-shadow: 0 8px 24px -10px rgba(17,22,19,0.25); }
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: none; }

/* ── Quick view drawer ───────────────────────────────── */
.ess-overlay { position: fixed; inset: 0; z-index: 1000; display: none; font-family: var(--font); color: var(--ink); }
.ess-overlay.is-open { display: block; }
.ess-overlay-bg { position: absolute; inset: 0; background: rgba(17,22,19,0.45); animation: fadeIn .2s ease; }
.ess-drawer { position: absolute; top: 10px; right: 10px; bottom: 10px; width: calc(100% - 20px); max-width: 480px; background: var(--surface); border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; animation: slideIn .28s cubic-bezier(.2,.8,.2,1); }
@keyframes slideIn { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.ess-drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 22px 22px 14px; }
.ess-drawer-head .kicker { font-size: 12.5px; color: var(--muted); }
.ess-drawer-head h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin: 2px 0 0; }
.ess-drawer-head p { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.ess-close { width: 38px; height: 38px; flex: none; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; }
.ess-drawer-body { flex: 1; overflow-y: auto; padding: 0 22px 18px; }
.qv-img { height: 190px; border-radius: 14px; background: var(--sunken); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.qv-img img { max-height: 160px; width: auto; }
.qv-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.qv-table th, .qv-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.qv-table th { color: var(--muted); font-weight: 400; width: 44%; padding-right: 12px; }
.qv-table td { font-weight: 500; }
.ess-drawer-foot { padding: 14px 22px 22px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ess-drawer-foot .full { grid-column: 1 / -1; text-align: center; font-size: 14px; color: var(--green); font-weight: 600; text-decoration: none; }
body.ess-lock { overflow: hidden; }

/* ── Reveal ──────────────────────────────────────────── */
.ess-js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
.ess-js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   PRODUCT DETAIL PAGES
   ========================================================= */
.pdp { padding-top: 32px; }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 20px; margin-top: 18px; align-items: start; }
.pdp-media { position: sticky; top: calc(var(--site-header-h) + 16px); padding: 10px; }
.pdp-stage { position: relative; border-radius: 18px; background: radial-gradient(60% 60% at 50% 55%, #FFFFFF 0%, #EEF4F0 70%, #E7EFE9 100%); min-height: 520px; display: flex; align-items: center; justify-content: center; padding: 40px; overflow: hidden; }
.pdp-stage img { max-height: 440px; width: auto; height: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 28px 32px rgba(10,40,28,0.16)); }
.pdp-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 4px 4px; }
.pdp-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.pdp-chip i { color: var(--green); font-size: 11px; }
.pdp-chip b { font-weight: 600; color: var(--ink); }
.pdp-info { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.pdp-label { font-size: 13px; color: var(--muted); }
.pdp-label b { color: var(--green); font-weight: 600; }
.pdp-info h1 { font-size: clamp(28px, 3vw, 38px); line-height: 1.12; font-weight: 600; letter-spacing: -0.03em; text-wrap: balance; }
.pdp-name { display: block; font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: -0.01em; color: var(--green); margin-bottom: 8px; }
.pdp-model { font-size: 13.5px; color: var(--muted); margin-top: -12px; }
.pdp-model b { color: var(--ink); font-weight: 600; }
.pdp-intro { font-size: 15.5px; line-height: 1.65; color: var(--ink-2); }
.opt-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.opt-label b { color: var(--ink); font-weight: 600; }
.model-switch { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.ess-page .model-switch a { min-height: 42px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13.5px; font-weight: 500; display: flex; align-items: center; justify-content: center; transition: border-color .15s, box-shadow .15s; }
.ess-page .model-switch a:hover { border-color: var(--ink); }
.ess-page .model-switch a.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 600; }
.kv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kv div { padding: 12px 14px; }
.kv div + div { border-left: 1px solid var(--line); }
.kv dt { font-size: 12px; color: var(--muted); }
.kv dd { font-size: 14.5px; font-weight: 600; margin-top: 2px; letter-spacing: -0.01em; }
.pdp-price { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pdp-price strong { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.pdp-price span { font-size: 13px; color: var(--muted); }
.pdp-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pdp-assure { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pdp-assure li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.pdp-assure li:last-child { border-bottom: 0; padding-bottom: 0; }
.pdp-assure i { width: 18px; text-align: center; color: var(--muted); }
.pdp-assure a { margin-left: auto; }

.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat { padding: 20px 22px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.stat span { font-size: 13px; color: var(--muted); }

.feats { display: grid; grid-template-columns: 1fr 1fr; }
.feat { display: flex; gap: 14px; padding: 20px 22px; border-top: 1px solid var(--line); }
.feat:nth-child(-n+2) { border-top: 0; }
.feat:nth-child(odd) { border-right: 1px solid var(--line); }
.feat .ring { border-color: var(--green); background: var(--green); color: #fff; margin-top: 1px; flex: none; }
.feat h3 { font-size: 15px; font-weight: 600; }
.feat p { font-size: 14px; color: var(--muted); margin-top: 3px; }

.spec-groups { columns: 2 380px; column-gap: 16px; }
.spec-group { break-inside: avoid; margin-bottom: 16px; overflow: hidden; }
.spec-group h3 { font-size: 13px; font-weight: 600; color: var(--ink); padding: 14px 18px; background: var(--sunken); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.spec-group h3 i { color: var(--muted); font-size: 12px; width: 14px; text-align: center; }
.spec-group dl { display: grid; grid-template-columns: minmax(130px, 0.85fr) minmax(0, 1.15fr); }
.spec-group dt, .spec-group dd { padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-group dt { color: var(--muted); }
.spec-group dd { font-weight: 500; }
.spec-group dl > :nth-last-child(-n+2) { border-bottom: 0; }

.rel { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.ess-page .rel-card { padding: 8px; border-radius: 18px; display: flex; flex-direction: column; transition: border-color .2s, box-shadow .2s; }
.ess-page .rel-card:hover { border-color: var(--line-2); box-shadow: 0 12px 32px -12px rgba(17,22,19,0.14); }
.rel-media { height: 140px; border-radius: 12px; background: var(--sunken); display: flex; align-items: center; justify-content: center; padding: 12px; }
.rel-media img { max-height: 116px; width: auto; }
.rel-body { padding: 12px 8px 6px; }
.rel-body strong { display: block; font-size: 15px; font-weight: 600; }
.rel-body span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .hero-grid, .pdp-grid { grid-template-columns: minmax(0, 1fr); }
  .pdp-media { position: static; }
  .pdp-stage { min-height: 400px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .certs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cert:nth-child(5) { border-left: 0; }
  .cert:nth-child(n+5) { border-top: 1px solid var(--line); }
  .faq-layout { grid-template-columns: 1fr; gap: 0; }
  .rel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat:nth-child(4) { border-left: 0; }
  .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .block { margin-top: 56px; }
  .tabs-bar-actions { display: none; }
  .finder { grid-template-columns: 1fr; padding: 22px; }
  .steps, .biz { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; border-top: 1px solid var(--line); }
  .rows-2, .feats { grid-template-columns: 1fr; }
  .rows-2 .row:nth-child(2), .feat:nth-child(2) { border-top: 1px solid var(--line); }
  .rows-2 .row:nth-child(odd), .feat:nth-child(odd) { border-right: 0; }
  .promo { grid-template-columns: 1fr; padding: 28px 24px; }
  .promo-figure { text-align: left; }
}
@media (max-width: 640px) {
  .hero-copy h1 { font-size: 36px; }
  .promo .promo-figure { display: none; }
  .facts li { padding: 0 14px; }
  .products { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert { border-left: 0 !important; border-top: 1px solid var(--line); }
  .cert:nth-child(-n+2) { border-top: 0; }
  .cert:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .scene-chip { padding: 7px 10px; font-size: 11px; }
  .chip-run { display: none; }
  .chip-ess { top: 6%; right: 2%; bottom: auto; }
  .kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv div:nth-child(3) { border-left: 0; }
  .kv div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .model-switch { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pdp-info { padding: 20px; }
  .pdp-stage { min-height: 320px; padding: 24px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-left: 0 !important; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .spec-group dl { grid-template-columns: 1fr; }
  .spec-group dt { padding-bottom: 0; border-bottom: 0; }
  .spec-group dd { padding-top: 2px; }
  .rel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-body p { padding-left: 22px; }
  .m-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 58; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,0.96); border-top: 1px solid var(--line); transform: translateY(110%); visibility: hidden; transition: transform .25s, visibility .25s; }
  .m-bar.is-visible { transform: none; visibility: visible; }
  .to-top { bottom: 80px; }
  .compare-tray { bottom: 80px; }
  .ess-drawer-foot { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ess-js .reveal { opacity: 1; transform: none; transition: none; }
  .scene-svg .flow, .scene-svg .pulse, .scene-svg .grid-x, .scene-svg .led circle, .scene-svg .gear { animation: none !important; }
  .pcard, .btn, .compare-tray, .to-top, .acc-body { transition: none !important; }
}