/* Predixi MIS intro page: header, sections, frames, viewer. Tokens and type live in site.css. */

/* ---- Header --------------------------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: block; flex: none; border-radius: 6px; }
.brand img { height: 40px; width: auto; }
.header-nav { display: flex; gap: 4px; margin-right: auto; }
.header-nav a {
  padding: 8px 11px; border-radius: 999px; text-decoration: none;
  color: var(--ink-2); font-weight: 560; font-size: 0.9375rem; white-space: nowrap;
}
.header-nav a:hover { color: var(--ink); background: var(--paper-2); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.lang-switch a { padding: 4px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 650; text-decoration: none; color: var(--ink-3); }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.menu-btn {
  display: none; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: transparent; cursor: pointer; font-weight: 600; font-size: 0.9375rem;
}
.mobile-menu { border-top: 1px solid var(--line); background: var(--paper); }
.mobile-menu .shell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; padding-block: 12px 18px; }
.mobile-menu a { padding: 10px 0; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
@media (max-width: 1099px) {
  .header-nav { display: none; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 560px) {
  .header-row { gap: 10px; min-height: 60px; }
  .brand img { height: 32px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-small span { display: none; }
  .header-actions .btn-small { padding: 0 10px; }
  .menu-btn span { display: none; }
  .menu-btn { padding: 0 10px; }
  .mobile-menu .shell { grid-template-columns: 1fr; }
}

/* ---- Frames --------------------------------------------------------------------------------------------- */
figure { margin: 0; }
.shot {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius-shot);
  border: 1px solid var(--line);
  background: var(--shot-bg);
  box-shadow: var(--shadow);
}
.shot img { width: 100%; height: auto; }
.shot:hover { border-color: var(--line-strong); }
.shot:focus-visible { outline-offset: 4px; border-radius: var(--radius-shot); }
.shot-card { border-radius: 20px; }
figcaption { margin-top: 14px; color: var(--ink-3); font-size: 0.9688rem; line-height: 1.5; max-width: 68ch; text-wrap: pretty; }
figcaption strong { color: var(--ink); font-weight: 650; }

/* ---- Sections ------------------------------------------------------------------------------------------- */
main > section { padding-block: var(--section-y); }
.section-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px 32px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .section-title { grid-column: 1 / span 7; }
.section-head .section-lead { grid-column: 8 / span 5; margin-top: 0; font-size: 1.0625rem; }
@media (max-width: 960px) {
  .section-head .section-title, .section-head .section-lead { grid-column: 1 / -1; }
}
.tinted { background: var(--paper-2); }


/* Hero */
.hero { padding-top: clamp(48px, 7vw, 104px); }
.hero-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: end; }
.hero-copy { grid-column: 1 / span 8; }
.hero-copy .display { max-width: 15ch; }
.hero-copy .lead { margin-top: 26px; }
.facts { grid-column: 10 / span 3; margin: 0; display: grid; gap: 0; }
.facts div { padding: 16px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--display); font-weight: 580; font-stretch: 92%; font-size: 2.25rem; line-height: 1; letter-spacing: -0.02em; }
.facts dd { margin: 6px 0 0; color: var(--ink-3); font-size: 0.9375rem; line-height: 1.4; }
/* Hero deck: three product screens stacked. The front card is whole (--front of the stage width); each card behind
   it is a step smaller and peeks out on the right by --peek of a card's width. The stage is as tall as the front
   card (2400 x 1500 screens: --front x 0.625). The re-order is the page's one transition: transform and opacity
   only, at most 220 ms, nothing under reduced motion, never on its own (no autoplay). */
.hero-deck { --front: 88%; --peek: 6.8%; --step: 0.075; margin-top: clamp(40px, 6vw, 72px); }
.deck-stage { position: relative; aspect-ratio: 100 / 55; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.deck-card {
  --p: 0;
  position: absolute; top: 0; left: 0; width: var(--front);
  transform-origin: 100% 50%;
  transform: translateX(calc(var(--p) * var(--peek))) scale(calc(1 - var(--p) * var(--step)));
  transition: transform 220ms cubic-bezier(0.22, 0.7, 0.2, 1);
}
.deck-card[data-pos="0"] { z-index: 3; }
.deck-card[data-pos="1"] { --p: 1; z-index: 2; }
.deck-card[data-pos="2"] { --p: 2; z-index: 1; }
.deck-card .shot { border-radius: 18px; }
.deck-card .shot img { -webkit-user-drag: none; }
/* Cards behind the front one sit back: a veil of the page colour, deeper for each step. */
.deck-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; border-radius: 18px; pointer-events: none;
  background: var(--paper); opacity: calc(var(--p) * 0.26);
  transition: opacity 220ms cubic-bezier(0.22, 0.7, 0.2, 1);
}
.deck-card:not([data-pos="0"]) .shot { cursor: pointer; }
.deck-card:not([data-pos="0"]) .shot:hover { border-color: var(--line); }
.hero-deck.is-dragging .deck-stage { cursor: grabbing; }
.hero-deck.is-dragging .deck-card, .hero-deck.is-dragging .deck-card::after { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .deck-card, .deck-card::after { transition: none; }
}
.deck-bar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 40px; margin-top: 22px; width: var(--front); }
.deck-captions { min-width: 0; }
.deck-caption { display: flex; gap: 14px; color: var(--ink-3); font-size: 0.9688rem; line-height: 1.5; max-width: 64ch; }
.deck-caption strong { color: var(--ink); font-weight: 650; }
.deck-text { min-width: 0; text-wrap: pretty; }
.deck-count { flex: none; padding-top: 1px; color: var(--ink-3); font-weight: 650; font-size: 0.875rem; }
.deck-controls { display: flex; align-items: center; gap: 8px; flex: none; }
.deck-picks { display: inline-flex; margin-right: 6px; padding: 4px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); }
.deck-pick {
  min-height: 32px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font-weight: 620; font-size: 0.875rem; color: var(--ink-3); white-space: nowrap;
}
.deck-pick:hover { color: var(--ink); }
.deck-pick[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(27 34 48 / 0.08); }
@media (max-width: 1100px) {
  .deck-bar { flex-direction: column; gap: 14px; }
}
@media (max-width: 600px) {
  .hero-deck { --front: 84%; --peek: 9.5%; --step: 0.08; }
  .deck-stage { aspect-ratio: 100 / 52.5; }
  .deck-bar { width: 100%; }
  .deck-controls { width: 100%; }
  .deck-picks { margin-right: auto; padding: 0; background: transparent; border: 0; }
  /* On phones the picks are dots; the name stays for assistive technology. */
  .deck-pick { display: grid; place-items: center; width: 32px; min-height: 40px; padding: 0; }
  .deck-pick span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .deck-pick::before { content: ""; width: 9px; height: 9px; border-radius: 999px; background: var(--line-strong); }
  .deck-pick[aria-current="true"] { background: transparent; box-shadow: none; }
  .deck-pick[aria-current="true"]::before { width: 22px; background: var(--ember); }
}
@media (max-width: 1100px) {
  .hero-copy { grid-column: 1 / -1; }
  .facts { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .facts div:last-child { border-bottom: 0; }
  /* One column: the deck follows the buttons directly, the facts close the hero below it. */
  .hero { display: flex; flex-direction: column; }
  .hero-grid { display: contents; }
  .hero-copy, .facts { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
  .hero-copy { order: 1; }
  .hero-deck { order: 2; }
  .facts { order: 3; margin-top: clamp(40px, 6vw, 64px); }
}
@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; gap: 0; }
  .facts div:last-child { border-bottom: 1px solid var(--line); }
}

/* Problem */
.problem { padding-top: calc(var(--section-y) * 0.9); }
.triad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(32px, 4vw, 52px); }
.triad li { border-top: 2px solid var(--ink); padding-top: 18px; }
.triad p { margin-top: 8px; color: var(--ink-2); }
.bill { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; margin-top: clamp(56px, 7vw, 96px); padding: clamp(24px, 4vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; }
.bill-copy { grid-column: 1 / span 5; }
.bill-copy p { margin-top: 12px; color: var(--ink-2); }
.bill-bars { grid-column: 7 / span 6; display: grid; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 16px; }
.bar-label { font-weight: 620; font-size: 0.9375rem; }
.bar { display: flex; height: 48px; border-radius: 10px; overflow: hidden; }
.bar-total { background: var(--paper-2); border: 1px dashed var(--line-strong); align-items: center; padding-inline: 16px; color: var(--ink-3); font-size: 0.9375rem; }
.bar-split { gap: 3px; }
.seg { display: block; height: 100%; }
.seg-ref, .sw-ref { background: var(--cat-ref); }
.seg-hvac, .sw-hvac { background: var(--cat-hvac); }
.seg-light, .sw-light { background: var(--cat-light); }
.seg-other, .sw-other { background: var(--cat-other); }
.seg-ref { flex: 48; } .seg-hvac { flex: 22; } .seg-light { flex: 12; } .seg-other { flex: 18; }
.bar-key { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-left: 166px; font-size: 0.875rem; color: var(--ink-2); }
.bar-key li { display: inline-flex; align-items: center; gap: 7px; }
.sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.losses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 40px; }
.losses li { border-top: 1px solid var(--line); padding-top: 14px; }
.losses p { margin-top: 6px; color: var(--ink-3); font-size: 0.9688rem; }
@media (max-width: 960px) {
  .bill-copy, .bill-bars { grid-column: 1 / -1; }
  .losses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .triad { grid-template-columns: 1fr; gap: 24px; }
  .bar-row { grid-template-columns: 1fr; gap: 8px; }
  .bar-key { padding-left: 0; }
  .losses { grid-template-columns: 1fr; gap: 18px; }
}

/* How it works: the ink band */
.chain { background: var(--band); color: var(--band-ink); }
.chain .section-title { color: var(--band-ink); max-width: 24ch; }
.chain .section-lead { color: var(--band-ink-2); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: clamp(40px, 5vw, 64px); counter-reset: none; }
.steps li { border-top: 1px solid var(--band-line); padding-top: 22px; }
.step-no {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  border: 1.5px solid var(--band-accent); color: var(--band-accent);
  font-family: var(--display); font-weight: 620; font-size: 1.125rem;
}
.steps h3 { margin-top: 16px; color: var(--band-ink); font-size: 1.5rem; }
.steps p { margin-top: 8px; color: var(--band-ink-2); font-size: 0.9688rem; }
.flow { margin-top: clamp(48px, 6vw, 80px); }
.flow svg { width: 100%; height: auto; font-family: var(--text); }
.flow-tall { display: none; max-width: 420px; margin-inline: auto; }
.f-store { fill: none; stroke: var(--band-line); stroke-width: 1.5; stroke-dasharray: 6 6; }
.f-cap { fill: var(--band-ink-2); font-family: var(--display); font-size: 15px; font-weight: 620; }
.f-dev circle { fill: var(--band-node); stroke: var(--band-line); }
.f-glyph { fill: none; stroke: var(--band-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.f-dev text, .f-out text { fill: var(--band-ink); font-size: 15px; font-weight: 600; }
.f-sub { fill: var(--band-ink-2) !important; font-size: 13px !important; font-weight: 400 !important; }
.f-radio { fill: none; stroke: var(--band-ink-2); stroke-width: 1.6; stroke-dasharray: 1 6; stroke-linecap: round; }
.f-node rect { fill: var(--band-node); stroke: var(--band-line); stroke-width: 1.2; }
.f-core rect { stroke: var(--band-accent); stroke-width: 1.6; }
.f-strong { fill: var(--band-ink); font-family: var(--display); font-size: 17px; font-weight: 640; }
.f-link, .f-head { fill: none; stroke: var(--band-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f-label { fill: var(--band-accent); font-size: 14px; font-weight: 700; }
.f-out rect { fill: none; stroke: var(--band-line); stroke-width: 1.2; }
@media (max-width: 1020px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 28px; }
}
@media (max-width: 900px) {
  .flow-wide { display: none; }
  .flow-tall { display: block; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* Three levels, store, findings: big frame + pairs */
.level-main figcaption, .store-plan figcaption { margin-top: 16px; }
.level-pair, .store-pair, .finding-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: clamp(32px, 4vw, 48px); }
@media (max-width: 760px) {
  .level-pair, .store-pair, .finding-pair { grid-template-columns: 1fr; gap: 36px; }
}
.store, .reports, .hardware { border-top: 1px solid var(--line); }
.frost-mark { color: var(--frost-text) !important; }

/* 3D model with day / night tabs */
.model { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: center; margin-top: clamp(48px, 6vw, 80px); }
.model-copy { grid-column: 1 / span 4; }
.model-copy p { margin-top: 12px; color: var(--ink-2); }
.model-panels { grid-column: 5 / span 8; }
.segmented { display: inline-flex; margin-top: 24px; padding: 4px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); }
.segmented [role="tab"] {
  min-height: 38px; padding: 0 18px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font-weight: 620; font-size: 0.9375rem; color: var(--ink-3);
}
.segmented [role="tab"]:hover { color: var(--ink); }
.segmented [role="tab"][aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgb(27 34 48 / 0.08); }
@media (max-width: 900px) {
  .model-copy, .model-panels { grid-column: 1 / -1; }
}

/* Energy lenses */
.energy { background: var(--paper-2); }
.lenses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; align-items: start; }
.lens-col { display: grid; gap: 52px; }
.lens figcaption { margin: 0 0 16px; max-width: 48ch; }
.lens figcaption h3 { color: var(--ink); }
.lens figcaption p { margin-top: 6px; color: var(--ink-2); font-size: 0.9688rem; }
.energy .shot { background: var(--surface); }
@media (max-width: 760px) {
  .lenses { grid-template-columns: minmax(0, 1fr); }
  .lens-col + .lens-col { margin-top: 52px; }
}

/* Findings */
.finding-main .shot { border-radius: 18px; }

/* Reports explorer */
.explorer { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.explorer-list { grid-column: 1 / span 4; display: grid; gap: 2px; }
.explorer-list [role="tab"] {
  display: grid; gap: 3px; width: 100%; text-align: left; cursor: pointer;
  padding: 14px 16px 14px 18px; border: 0; border-left: 2px solid var(--line); border-radius: 0 12px 12px 0; background: transparent;
}
.explorer-list [role="tab"] small { font-size: 0.8125rem; font-weight: 600; color: var(--ink-3); }
.explorer-list [role="tab"] span { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; color: var(--ink-2); letter-spacing: -0.008em; }
.explorer-list [role="tab"]:hover span { color: var(--ink); }
.explorer-list [role="tab"][aria-selected="true"] { border-left-color: var(--ember); background: var(--surface); }
.explorer-list [role="tab"][aria-selected="true"] small { color: var(--ember-text); }
.explorer-list [role="tab"][aria-selected="true"] span { color: var(--ink); }
.explorer-panels { grid-column: 5 / span 8; }
.explorer-panel p { margin-top: 16px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 960px) {
  .explorer-list, .explorer-panels { grid-column: 1 / -1; }
}

/* Assistant */
.assistant { background: var(--paper-2); }
.assistant-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.assistant-copy { grid-column: 1 / span 4; }
.assistant-copy .section-title { margin-bottom: 22px; }
.assistant-copy p + p { margin-top: 14px; }
.assistant-copy p { color: var(--ink-2); }
.assistant-copy .muted { color: var(--ink-3); font-size: 0.9688rem; }
.assistant-shots { grid-column: 5 / span 8; display: grid; gap: 28px; }
.explain-shot { width: min(100%, 640px); justify-self: end; }
@media (max-width: 960px) {
  .assistant-copy { grid-column: 1 / -1; }
  .assistant-shots { grid-column: 1 / -1; }
}

/* Wall display and phones */
.wall .screen { padding: clamp(8px, 1.2vw, 16px); background: #0d1016; border-radius: 22px; box-shadow: var(--shadow); }
.wall .screen .shot { border-radius: 8px; border-color: #0d1016; box-shadow: none; background: #0d1016; }
.wall figcaption { margin-top: 16px; }
.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 270px)); justify-content: center; gap: clamp(20px, 4vw, 56px); margin-top: clamp(48px, 6vw, 80px); }
.phone { padding: 9px; background: #0d1016; border-radius: 44px; box-shadow: var(--shadow); }
.phone .shot { border-radius: 36px; border: 0; box-shadow: none; }
.phones figcaption { text-align: center; margin-inline: auto; }
@media (max-width: 700px) {
  .phones { grid-template-columns: minmax(0, 270px); }
}

/* Beyond energy */
.savings { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 32px; padding: clamp(24px, 4vw, 44px); border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.savings h3 { grid-column: 1 / -1; }
.savings-list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 8px 0 0; }
.savings-list div { border-top: 1px solid var(--line); padding-top: 16px; }
.savings-list dt { color: var(--ink-2); font-weight: 600; }
.savings-list dd { margin: 6px 0 0; font-family: var(--display); font-weight: 560; font-stretch: 92%; font-size: clamp(2.75rem, 5vw, 4rem); line-height: 1; letter-spacing: -0.025em; color: var(--ember-text); }
.savings .muted { grid-column: 1 / -1; font-size: 0.9375rem; }
.values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: clamp(40px, 5vw, 64px); }
.values li { border-top: 2px solid var(--ink); padding-top: 18px; }
.values h3 { font-size: 1.1875rem; }
.values p { margin-top: 8px; color: var(--ink-2); font-size: 0.9688rem; }
@media (max-width: 960px) {
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .savings-list, .values { grid-template-columns: 1fr; }
}

/* Hardware */
.hardware-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.devices { grid-column: 1 / span 7; display: grid; }
.devices li { padding: 20px 0; border-top: 1px solid var(--line); }
.devices li:last-child { border-bottom: 1px solid var(--line); }
.devices h3 { font-size: 1.1875rem; }
.devices p { margin-top: 6px; color: var(--ink-2); font-size: 0.9688rem; max-width: 60ch; }
.install { grid-column: 9 / span 4; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.checks { display: grid; gap: 14px; margin-top: 16px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--ink-2); font-size: 0.9688rem; line-height: 1.5; }
.checks .icon { width: 20px; height: 20px; margin-top: 2px; color: var(--ok); }
.devices-shot { margin-top: clamp(48px, 6vw, 80px); }
@media (max-width: 960px) {
  .devices, .install { grid-column: 1 / -1; }
}

/* Integration */
.ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 32px; }
.ledger div { border-top: 1px solid var(--line); padding-top: 18px; }
.ledger h3 { font-size: 1.25rem; }
.ledger p { margin-top: 8px; color: var(--ink-2); font-size: 0.9688rem; }
@media (max-width: 960px) { .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ledger { grid-template-columns: 1fr; } }

/* Sectors */
.sectors { border-top: 1px solid var(--line); }
.sectors-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; align-items: start; }
.sectors-grid > div { grid-column: 1 / span 6; }
.sector-list { grid-column: 8 / span 5; }
.sector-list li { padding: 18px 0; border-top: 1px solid var(--line); font-family: var(--display); font-weight: 580; font-size: 1.3125rem; letter-spacing: -0.01em; line-height: 1.25; }
.sector-list li:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .sectors-grid > div, .sector-list { grid-column: 1 / -1; } }

/* Closing */
main > .closing { padding-top: 0; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 28px; background: var(--ember-soft); }
.closing-grid p { margin-top: 14px; color: var(--ink-2); max-width: 52ch; }
.closing-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 800px) { .closing-grid { grid-template-columns: 1fr; } }

/* ---- Footer --------------------------------------------------------------------------------------------- */
.site-footer { background: var(--paper-2); border-top: 1px solid var(--line); padding-top: 56px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 32px; }
.footer-brand img { height: 42px; width: auto; }
.footer-brand p { margin-top: 14px; color: var(--ink-3); font-size: 0.9375rem; max-width: 34ch; }
.footer-col { display: grid; align-content: start; gap: 8px; }
.footer-col h2 { font-size: 0.9375rem; font-weight: 650; margin-bottom: 4px; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: 0.9375rem; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-company address { font-style: normal; color: var(--ink-2); font-size: 0.9375rem; line-height: 1.6; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 44px; padding-block: 22px 28px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.875rem; }
.footer-base a { color: var(--ink-2); }
.footer-note { margin-right: auto; }
.footer-lang a[aria-current="true"] { box-shadow: 0 0 0 1px var(--line); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Viewer (native dialog) ------------------------------------------------------------------------------ */
body.has-lightbox { overflow: hidden; }
.lightbox {
  width: min(100% - 24px, 1480px); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 20px;
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.55);
}
.lightbox::backdrop { background: rgb(12 14 18 / 0.78); }
.lb-inner { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100dvh - 24px); }
.lb-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 14px 16px 12px 22px; border-bottom: 1px solid var(--line); }
.lb-count { color: var(--ink-3); font-size: 0.875rem; font-weight: 600; }
.lb-head h2 { font-size: 1.125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 16px; background: var(--paper-2); overflow: auto; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 210px); width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); }
.lightbox.is-phone .lb-stage img { border-radius: 26px; }
.lb-error { color: var(--ink-2); }
.lb-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px 16px 16px 22px; border-top: 1px solid var(--line); }
.lb-foot p { color: var(--ink-2); font-size: 0.9375rem; max-width: 90ch; }
.lb-actions { display: flex; align-items: center; gap: 8px; }
.lb-actions .text-link { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; white-space: nowrap; font-size: 0.9375rem; }
.round-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.round-btn:hover { background: var(--paper-2); }
@media (max-width: 700px) {
  .lb-foot { grid-template-columns: 1fr; }
  .lb-stage img { max-height: calc(100dvh - 300px); }
}

/* Below tablet width every 12-column composition becomes one column (the gaps alone would not fit). */
@media (max-width: 760px) {
  .section-head, .hero-grid, .bill, .model, .explorer, .assistant-grid, .hardware-grid, .sectors-grid, .savings { grid-template-columns: minmax(0, 1fr); }
  .section-head > *, .hero-grid > *, .bill > *, .model > *, .explorer > *, .assistant-grid > *, .hardware-grid > *, .sectors-grid > *, .savings > * { grid-column: 1 / -1 !important; }
}