/* ENA Plus — site design system (2026)
   One family (Schibsted Grotesk), a graphite/steel/white base, and the flame of the
   ENA mark used in exactly one place: the energy line that runs through the product. */

:root {
  --ink: #16181b;
  --ink-2: #2b2f34;
  --steel: #565d65;
  --mist: #8b929a;
  --line: #e3e5e8;
  --paper: #f5f6f7;
  --white: #ffffff;
  --flame: #f26b1d;
  --ember: #e3262e;
  --ok: #1f7a4d;
  --warn: #9a5b00;
  --bad: #b3261e;
  --energy: linear-gradient(180deg, #f7931e 0%, #f26b1d 45%, #e3262e 100%);

  --f: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --t-xs: 0.8125rem;   /* 13 */
  --t-s: 0.9375rem;    /* 15 */
  --t-m: 1.0625rem;    /* 17 body */
  --t-l: 1.3125rem;    /* 21 */
  --t-xl: clamp(1.625rem, 1.2rem + 1.6vw, 2.25rem);
  --t-2xl: clamp(2.25rem, 1.5rem + 3vw, 3.5rem);
  --t-3xl: clamp(2.75rem, 1.6rem + 5.2vw, 5.75rem);

  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --sec: clamp(72px, 9vw, 136px);
  --r-s: 6px;
  --r-m: 12px;
  --head: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 16px); }
body {
  margin: 0;
  font: 400 var(--t-m)/1.55 var(--f);
  color: var(--ink);
  background: var(--white);
  font-feature-settings: "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--flame); }
:focus-visible { outline: 2px solid var(--flame); outline-offset: 3px; border-radius: 2px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 10px 14px; z-index: 100; border-radius: var(--r-s); }
.skip:focus { left: 8px; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.022em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: var(--t-3xl); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: var(--t-2xl); }
h3 { font-size: var(--t-l); letter-spacing: -0.012em; line-height: 1.2; }
h4 { font-size: var(--t-m); letter-spacing: -0.005em; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 64ch; }
p:last-child { margin-bottom: 0; }
.lead { font-size: var(--t-l); line-height: 1.45; color: var(--steel); max-width: 40ch; }
.small { font-size: var(--t-s); color: var(--steel); }
.tiny { font-size: var(--t-xs); color: var(--mist); }
.mono, .num { font-variant-numeric: tabular-nums; }
.mb0 { margin-bottom: 0; }

.wrap { width: min(100% - 2 * var(--gut), var(--wrap)); margin-inline: auto; }
.section { padding-block: var(--sec); }
.section.tight { padding-block: calc(var(--sec) * 0.6); }
.section.paper { background: var(--paper); }
.section.dark { background: var(--ink); color: var(--white); }
.section.dark .lead, .section.dark .small { color: #b9bec4; }
.stack > * + * { margin-top: 20px; }
.head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 760px; }
.head p { color: var(--steel); font-size: var(--t-l); line-height: 1.45; max-width: 48ch; }
.dark .head p { color: #b9bec4; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--head);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .bar-in { height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; font-size: 1.125rem; white-space: nowrap; }
.brand img { width: 26px; height: 27px; }
.brand span b { font-weight: 500; }
.site-nav { display: flex; gap: 4px; margin-inline: auto; }
.site-nav a { text-decoration: none; font-size: var(--t-s); font-weight: 500; padding: 8px 12px; border-radius: var(--r-s); }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(22, 24, 27, 0.07); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .link { font-size: var(--t-s); font-weight: 500; text-decoration: none; padding: 8px 10px; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; border-radius: var(--r-s); cursor: pointer; position: relative; color: inherit; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { position: absolute; left: 11px; width: 18px; height: 1.5px; background: currentColor; content: ""; transition: transform 0.2s; }
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -6px; left: 0; }
.nav-toggle span::after { top: 6px; left: 0; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Over a full-bleed hero the header starts clear and white-on-image. */
.over .site-header:not(.scrolled):not(.nav-open) { background: transparent; color: var(--white); backdrop-filter: none; -webkit-backdrop-filter: none; }
.over .site-header:not(.scrolled):not(.nav-open) .site-nav a:hover,
.over .site-header:not(.scrolled):not(.nav-open) .site-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.16); }
.over .site-header:not(.scrolled):not(.nav-open) .btn { background: var(--white); color: var(--ink); }
.over main { margin-top: calc(-1 * var(--head)); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: var(--head) 0 auto 0; margin: 0; flex-direction: column; gap: 0;
    background: var(--white); color: var(--ink); padding: 8px var(--gut) 28px; border-bottom: 1px solid var(--line);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }
  .site-nav a { font-size: var(--t-l); padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { background: none; color: var(--flame); }
  .nav-open .site-nav { transform: none; opacity: 1; visibility: visible; }
  .site-header .bar-in { justify-content: space-between; }
  .header-actions .link { display: none; }
}
@media (max-width: 420px) { .header-actions .btn { display: none; } }

/* ----------------------------------------------------------------- buttons */

.btn, .cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: var(--r-s); border: 1px solid transparent;
  font: 600 var(--t-s)/1 var(--f); text-decoration: none; cursor: pointer; white-space: nowrap;
  background: var(--ink); color: var(--white); transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover, .cta:hover { background: var(--ink-2); }
.btn.light { background: var(--white); color: var(--ink); }
.btn.light:hover { background: #e9ebed; }
.btn.ghost, .pill { background: transparent; color: inherit; border-color: currentColor; }
.btn.ghost:hover, .pill:hover { background: rgba(127, 127, 127, 0.12); }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid currentColor; border-radius: var(--r-s); font: 600 var(--t-s)/1 var(--f); text-decoration: none; }
.btn.wide { min-width: 220px; }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.55; cursor: progress; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.text-link { font-weight: 600; text-decoration: underline; text-decoration-color: var(--flame); text-decoration-thickness: 2px; }

/* -------------------------------------------------------- home: the panels
   Each panel is one idea: the claim at the top, the proof (three numbers) and the
   two next steps at the bottom, with the product in between. */

:root:has(body.over) { scroll-snap-type: y proximity; }
.panel {
  position: relative; min-height: 100svh; display: grid; scroll-snap-align: start;
  color: var(--white); background: var(--ink); overflow: hidden; isolation: isolate;
}
.panel > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); transition: transform 1.6s cubic-bezier(0.2, 0.7, 0.1, 1); }
.panel.seen > img { transform: none; }
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 14, 0.62) 0%, rgba(10, 12, 14, 0.12) 34%, rgba(10, 12, 14, 0) 52%, rgba(10, 12, 14, 0.78) 100%); }
.panel .copy { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; text-align: center; padding-block: calc(var(--head) + clamp(40px, 9vh, 96px)) clamp(36px, 7vh, 72px); }
.panel .top { display: grid; justify-items: center; }
.panel .bottom { grid-row: 3; display: grid; justify-items: center; gap: 28px; }
.panel .bottom .actions { margin-top: 0; justify-content: center; }
.panel h1, .panel h2 { font-size: var(--t-3xl); font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; max-width: 14ch; }
.panel p.lead { color: rgba(255, 255, 255, 0.84); margin: 16px auto 0; max-width: 38ch; }

.news { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: var(--t-xs); font-weight: 500; text-decoration: none; color: inherit; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: background-color 0.2s; }
.news:hover { background: rgba(255, 255, 255, 0.22); }
.news span { background: var(--energy); color: var(--white); font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.news::after { content: "→"; opacity: 0.7; }

.specs { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 5vw, 72px); margin: 0; }
.specs div { display: grid; justify-items: center; }
.specs dd { margin: 0; order: -1; font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem); font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.specs dt { font-size: var(--t-xs); opacity: 0.72; margin-top: 2px; }

.btn.glass { background: rgba(255, 255, 255, 0.14); color: var(--white); border-color: rgba(255, 255, 255, 0.28); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn.glass:hover { background: rgba(255, 255, 255, 0.26); }

/* Studio product shot on its own grey sweep, product centred between claim and proof. */
.panel.light { color: var(--ink); background: #e6e6e6; }
.panel.light::after { display: none; }
.panel.light p.lead { color: var(--steel); }
.panel.light > img { object-fit: contain; object-position: 50% 54%; padding: 30vh 10vw 26vh; -webkit-mask-image: radial-gradient(ellipse 40% 44% at 50% 54%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 40% 44% at 50% 54%, #000 62%, transparent 100%); }
@media (max-width: 760px) {
  .panel.light > img { padding: 32vh 8vw 30vh; -webkit-mask-image: none; mask-image: none; }
  .specs { gap: 18px 28px; }
}

/* The meter panel: a live-style readout instead of a photo. */
.panel.meter { background: radial-gradient(120% 80% at 85% 30%, #262a30 0%, var(--ink) 60%); align-items: center; }
.panel.meter::after { display: none; }
.kicker { font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--flame); margin-bottom: 14px; }
.meter-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-block: calc(var(--head) + 40px) 72px; }
.meter-grid h2 { font-size: var(--t-2xl); max-width: 13ch; }
.meter-grid .lead { color: #b9bec4; margin-top: 16px; }
.readout-xl { padding: clamp(24px, 3vw, 36px); border-radius: 20px; background: rgba(255, 255, 255, 0.04); border: 1px solid #30353b; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7); }
.readout-xl .v { display: block; font-size: clamp(4rem, 2.6rem + 6vw, 8.5rem); font-weight: 700; letter-spacing: -0.05em; line-height: 0.9; font-variant-numeric: tabular-nums; }
.readout-xl .v small { font-size: 0.3em; letter-spacing: -0.01em; font-weight: 600; margin-left: 0.2em; color: #b9bec4; }
.readout-xl .bar { margin-top: 22px; background: #2b3036; }
.readout-xl dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 0; }
.readout-xl dt { font-size: var(--t-xs); color: #8b929a; }
.readout-xl dd { margin: 4px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.readout-xl .cap { margin-top: 18px; font-size: var(--t-xs); color: #8b929a; }
.live-dot { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-xs); font-weight: 600; color: #7fd1a3; margin-bottom: 14px; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3ccf7f; box-shadow: 0 0 0 0 rgba(60, 207, 127, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(60, 207, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(60, 207, 127, 0); } }
@media (max-width: 860px) { .meter-grid { grid-template-columns: 1fr; } }

/* Home: updates feed and the company line. */
.head-row { margin-bottom: clamp(28px, 4vw, 48px); align-items: end; }
.updates { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.update { border: 1px solid var(--line); border-radius: 16px; padding: clamp(22px, 2.6vw, 32px); display: flex; flex-direction: column; gap: 12px; transition: border-color 0.2s, transform 0.2s; }
.update:hover { border-color: #c9cdd2; transform: translateY(-2px); }
.update.first { background: var(--ink); color: var(--white); border-color: var(--ink); }
.update.first p { color: #b9bec4; }
.update h3 { font-size: var(--t-l); letter-spacing: -0.015em; }
.update p { font-size: var(--t-s); color: var(--steel); margin: 0; }
.update .update-meta { display: flex; gap: 10px; align-items: center; font-size: var(--t-xs); color: var(--mist); }
.tag.hot { background: var(--energy); color: var(--white); }
@media (max-width: 960px) { .updates { grid-template-columns: 1fr; } }
.origin { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.origin-line { font-size: var(--t-l); line-height: 1.45; color: var(--steel); max-width: 62ch; margin: 0; }
.origin-line b { color: var(--ink); font-weight: 700; }

/* The energy line: the one bold element. Fixed to the right edge on the home page,
   it fills with the flame of the ENA mark as you move from sun to station. */
.energy-line { position: fixed; right: clamp(16px, 2.4vw, 36px); top: 50%; transform: translateY(-50%); z-index: 40; display: grid; justify-items: end; gap: 0; pointer-events: none; }
.energy-line ol { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 34px; }
.energy-line ol::before, .energy-line ol::after { content: ""; position: absolute; right: 4px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; }
.energy-line ol::before { background: rgba(140, 146, 154, 0.38); }
.energy-line ol::after { background: var(--energy); transform-origin: top; transform: scaleY(var(--fill, 0)); transition: transform 0.35s ease-out; }
.energy-line li { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; justify-content: flex-end; }
.energy-line a { pointer-events: auto; text-decoration: none; font-size: var(--t-xs); font-weight: 600; opacity: 0; transform: translateX(6px); transition: opacity 0.2s, transform 0.2s; color: var(--line-label, #fff); text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.energy-line:hover a, .energy-line li.on a { opacity: 1; transform: none; }
.energy-line .dot { width: 10px; height: 10px; border-radius: 50%; background: #8b929a; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.6); transition: background-color 0.3s; flex: none; }
.energy-line li.done .dot, .energy-line li.on .dot { background: var(--flame); }
.energy-line.on-light { --line-label: var(--ink); }
.energy-line.on-light a { text-shadow: none; }
@media (max-width: 760px) { .energy-line { display: none; } }

/* ---------------------------------------------------------- inner pages */

.page-hero { padding-block: clamp(64px, 10vw, 144px) clamp(40px, 5vw, 72px); }
.page-hero h1 { max-width: 15ch; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.page-hero .lead { margin-top: 22px; max-width: 46ch; }
.page-hero .kicker { margin-bottom: 18px; }
.page-hero.with-media .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-hero.with-media .media { border-radius: var(--r-m); overflow: hidden; background: var(--paper); aspect-ratio: 4 / 3; }
.page-hero.with-media .media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero.with-media .media.contain img { object-fit: contain; padding: 6%; }
@media (max-width: 860px) { .page-hero.with-media .wrap { grid-template-columns: 1fr; } }

.bleed { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: var(--ink); }
.bleed img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .bleed { aspect-ratio: 4 / 3; } }

/* Local section navigation: one row of anchors, sticky under the header. */
.subnav { position: sticky; top: var(--head); z-index: 30; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-block: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.subnav a { flex: none; font-size: var(--t-s); font-weight: 500; text-decoration: none; padding: 7px 14px; border-radius: 999px; color: var(--steel); }
.subnav a:hover { color: var(--ink); background: var(--paper); }

/* Product rows: picture one side, a short case and the numbers the other. */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.row + .row { margin-top: var(--sec); }
.row.flip .row-media { order: 2; }
.row-media { border-radius: var(--r-m); overflow: hidden; background: var(--paper); aspect-ratio: 5 / 4; }
.row-media img { width: 100%; height: 100%; object-fit: cover; }
.row-media.contain img { object-fit: contain; padding: 8%; }
.row-media.art { display: grid; place-items: center; background: var(--ink); color: var(--white); }
.row-copy h2 { font-size: var(--t-xl); letter-spacing: -0.025em; }
.row-copy .lead { margin-top: 14px; font-size: var(--t-m); line-height: 1.6; max-width: 52ch; }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; } .row.flip .row-media { order: 0; } }

/* Key figures for a product: a definition list, numbers first. */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.figures div { padding: 16px 16px 0 0; }
.figures dt { font-size: var(--t-xs); color: var(--mist); }
.figures dd { margin: 4px 0 0; font-weight: 600; font-size: var(--t-m); line-height: 1.3; font-variant-numeric: tabular-nums; }
.dark .figures { border-color: #33383e; }

.cols { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: clamp(28px, 4vw, 56px); }
.cols > * { border-top: 2px solid var(--ink); padding-top: 18px; }
.cols h3 { margin-bottom: 10px; }
.cols p { color: var(--steel); font-size: var(--t-s); }
.dark .cols > * { border-color: #e9ebed; }
.dark .cols p { color: #b9bec4; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: clamp(20px, 3vw, 40px); }
.steps > li { counter-increment: s; border-top: 2px solid var(--line); padding-top: 18px; position: relative; }
.steps > li::before { content: counter(s); position: absolute; top: -2px; left: 0; width: 34px; height: 2px; background: var(--flame); font-size: 0; }
.steps h3, .steps h4 { margin-bottom: 8px; }
.steps p { font-size: var(--t-s); color: var(--steel); }
.steps .k { display: block; font-weight: 700; font-size: var(--t-s); color: var(--mist); margin-bottom: 8px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.band { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-m); background: var(--paper); }
.band h3 { font-size: var(--t-xl); }
.dark .band { background: #202429; }

.offices { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.office { border-top: 1px solid var(--line); padding-top: 18px; }
.office.hq { border-top: 2px solid var(--ink); }
.office .role { font-size: var(--t-xs); color: var(--mist); margin-bottom: 8px; display: block; }
.office h3 { margin-bottom: 10px; }
.office address { font-style: normal; color: var(--steel); font-size: var(--t-s); line-height: 1.6; }
.dark .office { border-color: #33383e; }
.dark .office.hq { border-color: #e9ebed; }
.dark .office address { color: #b9bec4; }
@media (max-width: 860px) { .offices { grid-template-columns: 1fr; } }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 600; font-size: var(--t-m); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); transition: transform 0.2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 22px; color: var(--steel); max-width: 70ch; }

.notice { font-size: var(--t-xs); color: var(--mist); max-width: 80ch; margin-top: 28px; }
.dark .notice { color: #8b929a; }

/* --------------------------------------------- forms and data components
   These class names are also produced by ena.js and meter-live.js. */

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 920px) { .split { grid-template-columns: 1fr; } }
.grid { display: grid; gap: 20px; }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.g2, .grid.g3 { grid-template-columns: 1fr; } }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.flex { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(20px, 3vw, 32px); }
.card.raised { box-shadow: 0 1px 2px rgba(22, 24, 27, 0.04), 0 12px 32px -18px rgba(22, 24, 27, 0.25); }
.paper .card { border-color: #dcdfe3; }
.dark .card { background: #1d2125; border-color: #33383e; color: var(--white); }
.card h3 { margin-bottom: 8px; }
.product-card { display: flex; flex-direction: column; gap: 6px; }
.product-card h3 { margin-top: 10px !important; }
.product-summary { margin: 0; }
.product-price { font-size: var(--t-l); font-variant-numeric: tabular-nums; }
.product-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }

.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: var(--t-s); }
.spec-row:last-child { border-bottom: 0; }
.spec-row .k { color: var(--steel); }
.spec-row .v { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.dark .spec-row { border-color: #33383e; }
.dark .spec-row .k { color: #b9bec4; }

.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--paper); font-size: var(--t-xs); font-weight: 600; color: var(--ink-2); }
.tag.ok { background: #e3f3ea; color: var(--ok); }
.tag.warn { background: #fbefd9; color: var(--warn); }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-s); font-weight: 600; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

fieldset { border: 0; margin: 0 0 8px; padding: 0; }
legend { font-weight: 700; font-size: var(--t-m); margin-bottom: 12px; padding: 0; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
label { display: block; font-size: var(--t-s); font-weight: 600; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font: 400 var(--t-m)/1.4 var(--f); color: var(--ink); background: var(--white);
  border: 1px solid #c9cdd2; border-radius: var(--r-s); padding: 11px 13px; min-height: 46px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 120px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--mist); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 107, 29, 0.22); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
input[type="range"] { padding: 0; min-height: 28px; border: 0; accent-color: var(--flame); background: transparent; box-shadow: none; }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; accent-color: var(--ink); margin: 2px 0 0; flex: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--steel); }
.hint, .note { font-size: var(--t-xs); color: var(--mist); margin: 8px 0 0; }
.chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid #c9cdd2; background: var(--white); color: var(--ink); font: 500 var(--t-s)/1 var(--f); cursor: pointer;
}
.chip:hover { border-color: var(--ink); }
.chip.on, .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.msg { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-s); background: #e3f3ea; color: var(--ok); font-size: var(--t-s); }
.msg.bad { background: #fbe4e2; color: var(--bad); }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.readout { display: flex; align-items: baseline; gap: 10px; }
.readout b { font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.readout span { color: var(--steel); font-size: var(--t-s); }
.bar { height: 6px; border-radius: 6px; background: var(--paper); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--energy); background: linear-gradient(90deg, #f7931e, #e3262e); border-radius: 6px; transition: width 0.6s ease-out; }

/* Estimator output on Stations */
[data-estimate] .spec-row .v { font-size: var(--t-m); }

/* ------------------------------------------------------------------ footer */

.site-footer { background: var(--ink); color: #d6d9dd; padding-block: 72px 40px; font-size: var(--t-s); }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--flame); }
.foot-top { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid #33383e; }
.foot-top .brand { color: var(--white); margin-bottom: 14px; }
.foot-top p { color: #9aa1a8; max-width: 34ch; }
.foot-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.foot-links h4 { color: var(--white); font-size: var(--t-s); margin-bottom: 14px; }
.foot-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 36px; border-bottom: 1px solid #33383e; }
.foot-offices .role { display: block; font-size: var(--t-xs); color: #8b929a; margin-bottom: 6px; }
.foot-offices b { color: var(--white); font-weight: 600; display: block; margin-bottom: 4px; }
.foot-offices address { font-style: normal; color: #9aa1a8; line-height: 1.6; }
.foot-offices .hq .role { color: var(--flame); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; color: #8b929a; font-size: var(--t-xs); }
.foot-base nav { display: flex; gap: 18px; }
@media (max-width: 860px) { .foot-top, .foot-offices { grid-template-columns: 1fr; } .foot-links { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------- motion */

/* One orchestrated moment: the hero copy settles in on load. */
.panel.hero .top > *, .panel.hero .bottom { animation: rise 1s cubic-bezier(0.2, 0.7, 0.1, 1) both; }
.panel.hero .top > *:nth-child(2) { animation-delay: 0.1s; }
.panel.hero .top > *:nth-child(3) { animation-delay: 0.2s; }
.panel.hero .bottom { animation-delay: 0.35s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print { .site-header, .energy-line, .site-footer, .subnav { display: none; } }

/* Steps inside a narrow card read as a single column. */
.card .steps { grid-template-columns: 1fr; gap: 18px; }
.card .steps > li { padding-top: 14px; }

pre, code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
pre.card { white-space: pre; }

/* Studio product shots in rows and heroes: match their grey sweep, feather the edges. */
.row-media.contain, .page-hero.with-media .media.contain { background: #e6e6e6; }
.row-media.contain img, .page-hero.with-media .media.contain img { -webkit-mask-image: radial-gradient(ellipse 60% 60% at center, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 60% 60% at center, #000 70%, transparent 100%); }

/* Scroll reveal, applied by site.js only when motion is welcome. */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.1, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.1, 1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(28px, 4vw, 56px); margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 760px) { .spec-grid { grid-template-columns: 1fr; } }
.dark .spec-grid .spec-row:last-child { border-bottom: 1px solid #33383e; }

/* ------------------------------------------------------------- languages */

.lang-switch { position: relative; }
.lang-switch summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: var(--r-s); cursor: pointer; font-size: var(--t-s); font-weight: 600; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { background: rgba(22, 24, 27, 0.07); }
.over .site-header:not(.scrolled):not(.nav-open) .lang-switch summary:hover,
.over .site-header:not(.scrolled):not(.nav-open) .lang-switch[open] summary { background: rgba(255, 255, 255, 0.16); }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 160px; display: grid; padding: 6px; background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-s); box-shadow: 0 12px 32px rgba(22, 24, 27, 0.14); z-index: 60; }
.lang-menu a { text-decoration: none; padding: 10px 12px; border-radius: 6px; font-size: var(--t-s); font-weight: 500; }
.lang-menu a:hover { background: var(--paper); }
.lang-menu a[aria-current] { font-weight: 700; color: var(--flame); }
.foot-base .foot-langs a { color: inherit; }

/* Arabic: right-to-left layout and an Arabic typeface. */
[lang="ar"] { --f: "IBM Plex Sans Arabic", "Schibsted Grotesk", "Segoe UI", Tahoma, sans-serif; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4, [lang="ar"] .brand, [lang="ar"] .specs dd,
[lang="ar"] .panel h1, [lang="ar"] .panel h2, [lang="ar"] .page-hero h1, [lang="ar"] .row-copy h2, [lang="ar"] .update h3 { letter-spacing: 0; }
[lang="ar"] .panel h1, [lang="ar"] .panel h2, [lang="ar"] .page-hero h1 { line-height: 1.2; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3 { line-height: 1.3; }
[lang="ar"] .kicker { letter-spacing: 0; text-transform: none; }
[dir="rtl"] .brand { direction: ltr; }
[dir="rtl"] .skip { left: auto; right: -999px; }
[dir="rtl"] .skip:focus { right: 8px; }
[dir="rtl"] .readout-xl .v small { margin-left: 0; margin-right: 0.2em; }
[dir="rtl"] .energy-line { right: auto; left: clamp(16px, 2.4vw, 36px); justify-items: start; }
[dir="rtl"] .energy-line ol::before, [dir="rtl"] .energy-line ol::after { right: auto; left: 4px; }
[dir="rtl"] .energy-line li { flex-direction: row-reverse; }
[dir="rtl"] .energy-line a { transform: translateX(-6px); }
[dir="rtl"] .energy-line:hover a, [dir="rtl"] .energy-line li.on a { transform: none; }
[dir="rtl"] .steps > li::before { left: auto; right: 0; }
[dir="rtl"] .faq summary { padding: 20px 0 20px 40px; }
[dir="rtl"] .faq summary::after { right: auto; left: 6px; }
[dir="rtl"] .spec-row .v { text-align: left; }
[dir="rtl"] a[href^="tel:"], [dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"], [dir="rtl"] .mono, [dir="rtl"] pre, [dir="rtl"] code { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"] { text-align: right; }
[dir="rtl"] pre { text-align: left; }
