/* ==========================================================================
   EnergyHub design system v3

   Palette is fixed by brief: light sky blue, neon green, white.
   White is the surface, sky blue is the structure and the interactive colour,
   neon green marks one thing only: the part of the bill you can actually change.

   The calculator is the hook, so the homepage is built around it: headline
   above, instrument below, pricing on a single line inside the instrument.
   ========================================================================== */

:root {
  --white:    #FFFFFF;
  --sky-25:   #F7FBFF;
  --sky-50:   #EFF7FF;
  --sky-100:  #DCEEFF;
  --sky-200:  #BFE0FF;
  --sky-300:  #8ECAFF;
  --sky-400:  #4FB3F8;
  --sky-500:  #1B9DF0;
  --sky-600:  #0E80CE;
  --sky-700:  #0B65A4;
  --sky-900:  #073F69;
  --sky-950:  #06304F;

  --green:      #00F08A;
  --green-400:  #34F7A4;
  --green-600:  #00CE76;
  --green-ink:  #00764A;
  --green-50:   #E4FFF3;
  --green-100:  #C2FBE1;

  --ink:    #082033;
  --ink-2:  #3D5A73;
  --ink-3:  #5A7489;   /* AA on white, sky-25 and sky-50 at small sizes */
  --line:   #DFEDFA;
  --line-2: #EDF5FD;

  --inv-1: #FFFFFF;
  --inv-2: rgba(255,255,255,.80);
  --inv-3: rgba(255,255,255,.58);

  --warn: #B45309;

  --f-display: 'Golos Text', 'Inter', system-ui, sans-serif;
  --f-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-num: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

  --wrap: 1300px;
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --e-1: 0 1px 2px rgba(8,64,110,.06);
  --e-2: 0 2px 8px rgba(8,64,110,.07), 0 12px 30px rgba(8,64,110,.07);
  --e-3: 0 6px 16px rgba(8,64,110,.09), 0 30px 70px rgba(8,64,110,.13);
  --e-calc: 0 10px 24px rgba(11,101,164,.10), 0 40px 90px rgba(11,101,164,.16);

  --header-h: 68px;
  --rail-h: 40px;
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--rail-h) + 16px); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .rail-track { animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--f-ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 32px; }

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: -.028em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.25rem, 3.9vw, 3.6rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.35rem); letter-spacing: -.03em; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1.05em; }
a { color: var(--sky-600); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s var(--ease); }
a:hover { color: var(--sky-700); }
strong { font-weight: 600; }

:focus-visible { outline: 2px solid var(--sky-500); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 14px; top: 14px; z-index: 999; background: var(--green); color: var(--ink); padding: 11px 18px; border-radius: var(--r-xs); font-weight: 600; }

.num, .t-val, .tbl td.n, .read-val, .stat b, input[type="number"] {
  font-family: var(--f-num); font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1;
}
.eyebrow { font-family: var(--f-num); font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; margin: 0 0 18px; color: var(--sky-700); }

/* Buttons ------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--sky-500); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-ui); font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 14px 22px; border-radius: var(--r-sm); border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn-primary { box-shadow: 0 4px 14px rgba(27,157,240,.30); }
.btn-primary:hover { --btn-bg: var(--sky-600); box-shadow: 0 10px 26px rgba(27,157,240,.36); }
.btn-green { --btn-bg: var(--green); --btn-fg: #013322; box-shadow: 0 4px 14px rgba(0,240,138,.32); }
.btn-green:hover { --btn-bg: var(--green-400); box-shadow: 0 10px 30px rgba(0,240,138,.42); }
.btn-ghost { --btn-bg: #fff; --btn-fg: var(--sky-700); --btn-bd: var(--sky-200); }
.btn-ghost:hover { --btn-bd: var(--sky-400); --btn-fg: var(--sky-600); }
.tone-sky .btn-ghost, .cta-band .btn-ghost { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.35); }
.tone-sky .btn-ghost:hover, .cta-band .btn-ghost:hover { --btn-bd: var(--green); --btn-fg: var(--green); }
.btn-lg { padding: 17px 30px; font-size: 1.02rem; }
.btn-block { display: flex; width: 100%; }

/* ==========================================================================
   HEADER + MARQUEE RAIL — one sticky unit, nothing hides on scroll
   ========================================================================== */

.masthead { position: sticky; top: 0; z-index: 80; }
.site-header { position: relative; z-index: 2; background: rgba(255,255,255,.94); backdrop-filter: saturate(180%) blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 30px; height: var(--header-h); }
.brand { display: flex; align-items: center; text-decoration: none; color: var(--ink); flex: none; }
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo-word { font-family: var(--f-display); font-weight: 400; font-size: 1.26rem; letter-spacing: -.04em; }
.logo-word b { font-weight: 700; }
.logo-mark { display: block; flex: none; }

.nav { flex: 1 1 auto; min-width: 0; }
.nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav > ul > li > a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: var(--r-xs); color: var(--ink); text-decoration: none; font-weight: 500; font-size: .93rem; white-space: nowrap; transition: background .15s var(--ease), color .15s var(--ease); }
.nav > ul > li > a:hover { background: var(--sky-50); color: var(--sky-700); }
.nav > ul > li > a svg { opacity: .45; transition: transform .2s var(--ease); }
.nav .has-sub:hover > a svg { transform: rotate(180deg); opacity: 1; }
.nav .has-sub { position: relative; }
.nav .sub { position: absolute; z-index: 40; top: calc(100% + 8px); left: -6px; min-width: 296px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--e-3); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s var(--ease), transform .22s var(--ease-out), visibility .18s; }
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub ul { list-style: none; margin: 0; padding: 0; }
.nav .sub a { display: block; padding: 10px 13px; border-radius: var(--r-xs); color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 500; }
.nav .sub a:hover { background: var(--sky-50); color: var(--sky-700); }

.header-cta { display: flex; gap: 10px; flex: none; }
.burger { display: none; background: none; border: 0; padding: 14px 10px; cursor: pointer; margin-left: auto; min-height: 44px; min-width: 44px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); background: #fff; padding: 18px 0 26px; max-height: 70vh; overflow-y: auto; }
.mobile-nav ul { list-style: none; margin: 0 0 16px; padding: 0; }
.mobile-nav > .wrap > ul > li { border-bottom: 1px solid var(--line-2); }
.mobile-nav a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.mobile-nav ul ul { margin: 0 0 12px; padding-left: 16px; }
.mobile-nav ul ul a { font-weight: 400; font-size: .92rem; padding: 8px 0; color: var(--ink-2); }

/* Marquee rail */
.rail {
  height: var(--rail-h); background: linear-gradient(90deg, var(--sky-700), var(--sky-500) 55%, var(--sky-400));
  color: #fff; overflow: hidden; position: relative; z-index: 1; display: flex; align-items: center;
}
.rail::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, var(--sky-700) 0%, transparent 5%, transparent 95%, var(--sky-400) 100%); }
.rail-badge {
  flex: none; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 100%;
  padding: 0 18px 0 32px; background: var(--sky-900); font-size: .74rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(0,240,138,.8), 0 0 10px rgba(0,240,138,.9); animation: pulse 2.6s infinite; flex: none; }
@keyframes pulse { 60% { box-shadow: 0 0 0 8px rgba(0,240,138,0), 0 0 10px rgba(0,240,138,.9); } 100% { box-shadow: 0 0 0 0 rgba(0,240,138,0), 0 0 10px rgba(0,240,138,.9); } }
.rail-view { flex: 1 1 auto; min-width: 0; overflow: hidden; }
.rail-track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.rail:hover .rail-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.rail-run { display: flex; align-items: center; gap: 34px; padding-inline: 17px; flex: none; }
.rail-item { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; font-size: .8rem; }
.rail-item .t-name { color: var(--inv-2); }
.rail-item .t-val { font-weight: 600; color: #fff; font-size: .86rem; }
.rail-item .t-unit { color: var(--inv-3); font-size: .68rem; font-family: var(--f-num); }
.rail-item.is-market .t-val { color: var(--green); text-shadow: 0 0 12px rgba(0,240,138,.55); }
.rail-item.is-note { color: var(--inv-3); font-size: .74rem; }
.rail-sep { color: rgba(255,255,255,.28); }
.rail[data-state="stale"] .pulse { background: rgba(255,255,255,.5); box-shadow: none; animation: none; }

/* Breadcrumbs --------------------------------------------------------------- */
.crumbs { border-bottom: 1px solid var(--line-2); background: var(--sky-25); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; margin: 0; padding: 12px 0; font-size: .8rem; color: var(--ink-3); }
.crumbs li + li::before { content: '\203A'; margin-right: 9px; }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--sky-600); }

/* ==========================================================================
   HERO — headline above, calculator as the centrepiece
   ========================================================================== */

.hero { position: relative; padding: 60px 0 76px; overflow: hidden; isolation: isolate;
  background: linear-gradient(180deg, var(--sky-50) 0%, var(--sky-25) 46%, #fff 100%); }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(760px 400px at 82% -6%, rgba(0,240,138,.16), transparent 62%),
              radial-gradient(820px 460px at 12% 4%, rgba(27,157,240,.20), transparent 64%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55;
  background-image: linear-gradient(rgba(11,101,164,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(11,101,164,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(900px 460px at 50% 0%, #000 20%, transparent 76%);
  mask-image: radial-gradient(900px 460px at 50% 0%, #000 20%, transparent 76%); }

.hero-top { max-width: 860px; margin: 0 auto 40px; text-align: center; }
.hero-top .lead { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; margin-inline: auto; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 26px; justify-content: center; }

.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 30px; }
.trust-row span { display: inline-flex; align-items: center; gap: 9px; font-size: .83rem; color: var(--ink-2); }
.trust-row span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(0,240,138,.7); flex: none; }

/* Interior page hero, no calculator */
.hero-page { padding: 52px 0 48px; }
.hero-page .hero-top { margin-bottom: 0; text-align: left; max-width: 900px; }
.hero-page .hero-ctas, .hero-page .trust-row { justify-content: flex-start; }
.hero-page .hero-top .lead { margin-inline: 0; }

/* ==========================================================================
   CALCULATOR — wide instrument, pricing on one line inside it
   ========================================================================== */

.calc-shell { max-width: 1180px; margin-inline: auto; }
.calc { position: relative; background: #fff; border: 1px solid var(--sky-100); border-radius: var(--r-xl); box-shadow: var(--e-calc); overflow: hidden; }
.calc::before { content: ''; position: absolute; inset-inline: 0; top: 0; height: 4px; z-index: 3; background: linear-gradient(90deg, var(--green), var(--sky-400) 55%, var(--sky-500)); }

.calc-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 28px 16px; border-bottom: 1px solid var(--line-2); }
.calc-head h2 { font-size: 1.04rem; margin: 0; }
.calc-ref { font-family: var(--f-num); font-size: .76rem; color: var(--ink-2); text-align: right; line-height: 1.45; white-space: nowrap; }
.calc-ref b { color: var(--sky-600); font-weight: 600; }

.calc-body { padding: 24px 28px 26px; }
/* Inputs sit on one horizontal band on desktop */
.calc-fields { display: grid; grid-template-columns: 1.05fr 1.05fr 1.25fr 1.35fr; gap: 20px; align-items: start; }
.f { display: grid; gap: 8px; min-width: 0; }
.f > label { font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.f .hint { font-size: .78rem; color: var(--ink-2); font-weight: 400; }
.f input, .f select, .f textarea {
  font-family: var(--f-ui); font-size: 1rem; padding: 12px 14px; width: 100%;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--sky-25); color: var(--ink);
  transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.f input[type="number"] { font-family: var(--f-num); font-weight: 500; }
.f input:hover, .f select:hover { border-color: var(--sky-200); }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--sky-400); background: #fff; box-shadow: 0 0 0 4px var(--sky-100); }

.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--sky-50); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 4px; width: 100%; }
.seg-ind { position: absolute; top: 4px; bottom: 4px; left: 0; background: #fff; border-radius: 9px; box-shadow: var(--e-1), 0 0 0 1px rgba(11,101,164,.07); transition: transform .3s var(--ease-out), width .3s var(--ease-out); z-index: 0; }
.seg button { position: relative; z-index: 1; font-family: var(--f-ui); font-size: .88rem; font-weight: 600; border: 0; background: transparent; color: var(--ink-3); padding: 9px 10px; border-radius: 9px; cursor: pointer; transition: color .2s var(--ease); white-space: nowrap; }
.seg button[aria-pressed="true"] { color: var(--sky-700); }
.seg button:hover { color: var(--ink); }

.f-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 5px; padding: 0; border: 0; margin-top: 8px;
  background: linear-gradient(90deg, var(--sky-400) var(--pct, 8%), var(--sky-100) var(--pct, 8%)); }
.f-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--sky-500); box-shadow: var(--e-1); cursor: grab; transition: transform .15s var(--ease); }
.f-slider::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.f-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--sky-500); cursor: grab; }
.f-slider:focus { outline: none; }
.f-slider:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--sky-100); }

.calc-more { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.adv-toggle summary { cursor: pointer; font-weight: 600; font-size: .87rem; color: var(--sky-600); list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; }
.adv-toggle summary::-webkit-details-marker { display: none; }
.adv-toggle summary::after { content: '+'; font-family: var(--f-num); font-size: 1.05rem; line-height: 1; }
.adv-toggle[open] summary::after { content: '\2212'; }
.adv-fields { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; animation: slideDown .3s var(--ease-out); }
.adv-note { grid-column: 1 / -1; margin: 0; font-size: .82rem; color: var(--ink-2); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } }

/* --- Pricing line: the point of the whole page ---------------------------- */
.priceline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--sky-25); border-top: 1px solid var(--line); }
.pl { padding: 20px 24px; border-left: 1px solid var(--line); min-width: 0; transition: background .2s var(--ease); }
.pl:first-child { border-left: 0; }
.pl:hover { background: #fff; }
.pl-label { font-family: var(--f-num); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin: 0 0 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-val { font-family: var(--f-num); font-variant-numeric: tabular-nums; font-size: 1.6rem; font-weight: 600; line-height: 1; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.pl-val small { font-family: var(--f-ui); font-size: .46em; font-weight: 500; color: var(--ink-3); margin-left: 5px; letter-spacing: 0; }
.pl-sub { font-size: .78rem; color: var(--ink-3); margin: 8px 0 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl.is-rate { background: linear-gradient(140deg, var(--sky-100), var(--sky-50)); }
.pl.is-rate .pl-val { color: var(--sky-700); }
.pl.is-save { background: linear-gradient(140deg, var(--green-50), #fff); }
.pl.is-save .pl-label { color: var(--green-ink); }
.pl.is-save .pl-val { color: var(--green-ink); font-size: 1.32rem; }
.pl.is-save::after { content: ''; }
.priceline.is-empty { display: block; padding: 22px 28px; color: var(--ink-3); font-size: .92rem; }

/* --- Split meter ---------------------------------------------------------- */
.meter { padding: 24px 28px 26px; border-top: 1px solid var(--line); background: #fff; }
.meter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.meter-head h3 { margin: 0; font-size: 1rem; }
.meter-total { font-family: var(--f-num); font-size: .8rem; color: var(--ink-2); }
.bar { display: flex; height: 58px; border-radius: var(--r-sm); overflow: hidden; background: var(--sky-50); }
.bar-seg { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 0 16px; min-width: 0; overflow: hidden; transition: width .6s var(--ease-out), filter .2s var(--ease); }
.bar-seg:hover { filter: brightness(1.06); }
.bar-seg b { font-family: var(--f-num); font-size: 1rem; font-weight: 600; line-height: 1; }
.bar-seg i { font-style: normal; font-size: .7rem; opacity: .9; white-space: nowrap; }
.bar-seg.is-energy { background: linear-gradient(150deg, var(--green), var(--green-600)); color: #013322; }
.bar-seg.is-network { background: linear-gradient(150deg, var(--sky-400), var(--sky-600)); color: #fff; }
.bar-seg.is-other { background: var(--sky-200); color: var(--sky-900); }
.bar-note { margin: 15px 0 0; font-size: .85rem; color: var(--ink-2); max-width: 78ch; line-height: 1.58; }
.bar-note strong { color: var(--ink); }

.res-flag { background: var(--green-50); border: 1px solid var(--green-100); color: #0A4A32; border-radius: var(--r-md); padding: 16px 18px; font-size: .89rem; margin-top: 18px; }
.res-flag strong { color: var(--green-ink); }
.res-warn { background: #FFF7ED; border-color: #FCD9A8; color: #7C3E06; }
.res-warn strong { color: var(--warn); }

.detail { margin-top: 18px; }
.detail summary { cursor: pointer; list-style: none; font-size: .85rem; font-weight: 600; color: var(--sky-600); display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; }
.detail summary::-webkit-details-marker { display: none; }
.detail summary::after { content: '\25BE'; font-size: .8em; transition: transform .25s var(--ease); }
.detail[open] summary::after { transform: rotate(180deg); }
.detail-body { margin-top: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.detail-body .tbl { min-width: 560px; }

.calc-actions { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; padding: 20px 28px; border-top: 1px solid var(--line); background: var(--sky-25); }
.calc-actions .spacer { flex: 1 1 auto; }
.calc-actions .note { font-size: .8rem; color: var(--ink-2); }

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.sec { padding: 88px 0; }
.tone-paper { background: var(--sky-25); }
.tone-sky { position: relative; background: linear-gradient(135deg, var(--sky-700), var(--sky-500)); color: #fff; isolation: isolate; overflow: hidden; }
.tone-sky::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(680px 380px at 88% 20%, rgba(0,240,138,.24), transparent 62%); }
.tone-sky h2, .tone-sky h3 { color: #fff; }
.tone-sky p, .tone-sky .sec-lead { color: var(--inv-2); }
.sec-head { max-width: 64ch; margin-bottom: 42px; }
.sec-head h2 { margin-bottom: .35em; }
.sec-lead { font-size: 1.06rem; color: var(--ink-2); margin: 0; }

.prose { max-width: 72ch; font-size: 1.01rem; }
.prose h2 { margin-top: 2em; font-size: 1.55rem; }
.prose h3 { margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.25em; }
.prose li { margin-bottom: .48em; }
.prose li::marker { color: var(--green-600); }

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.js .reveal.in { opacity: 1; transform: none; }

.answer-box { position: relative; background: linear-gradient(135deg, var(--green-50), #fff); border: 1px solid var(--green-100); border-radius: var(--r-md); padding: 22px 26px; margin: 0 0 32px; }
.answer-box::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--green-600); }
.answer-q { font-family: var(--f-display); font-weight: 600; margin: 0 0 8px; font-size: 1.04rem; }
.answer-a { margin: 0; color: #0C3F2A; }

/* Cards --------------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.cards-2 { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; text-decoration: none; color: inherit; overflow: hidden; transition: transform .3s var(--ease-out), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.card::after { content: ''; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--green), var(--sky-500)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out); }
a.card:hover { transform: translateY(-4px); box-shadow: var(--e-3); border-color: var(--sky-100); }
a.card:hover::after { transform: scaleX(1); }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.card ul { margin: 14px 0 0; padding-left: 1.15em; color: var(--ink-2); font-size: .92rem; }
.card li { margin-bottom: .4em; }
.card li::marker { color: var(--green-600); }
.card-kicker { display: inline-block; font-family: var(--f-num); font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--sky-700); font-weight: 600; margin-bottom: 13px; }
.card-arrow { margin-top: auto; padding-top: 18px; color: var(--sky-600); font-weight: 600; font-size: .87rem; display: inline-flex; align-items: center; gap: 7px; }
.card-arrow span { transition: transform .25s var(--ease-out); }
a.card:hover .card-arrow span { transform: translateX(4px); }
.tone-sky .card { background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.tone-sky .card p, .tone-sky .card ul { color: var(--inv-2); }
.tone-sky .card-kicker { color: var(--green); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: #fff; padding: 24px; }
.stat b { display: block; font-size: 1.85rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; margin-bottom: 8px; color: var(--sky-700); }
.stat span { font-size: .85rem; color: var(--ink-2); }

/* Tables -------------------------------------------------------------------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .91rem; min-width: 660px; }
.tbl th, .tbl td { padding: 14px 20px; text-align: left; border-bottom: 1px solid var(--line-2); }
.tbl thead th { background: var(--sky-50); font-family: var(--f-num); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 500; white-space: nowrap; }
.tbl tbody tr { transition: background .15s var(--ease); }
.tbl tbody tr:hover { background: var(--sky-25); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl td.n { text-align: right; font-weight: 500; white-space: nowrap; }
.tbl tr.is-total td { background: var(--sky-50); font-weight: 600; }
.badge-unverified { display: inline-block; font-family: var(--f-num); font-size: .58rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--warn); background: #FFF7ED; border: 1px solid #FCD9A8; border-radius: 4px; padding: 2px 6px; margin-left: 8px; vertical-align: middle; }
.source-note { font-size: .84rem; color: var(--ink-2); margin-top: 15px; line-height: 1.6; }
.source-note strong { color: var(--ink-2); }

/* Steps --------------------------------------------------------------------- */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; transition: border-color .2s var(--ease), transform .2s var(--ease-out); }
.steps li:hover { border-color: var(--sky-300); transform: translateX(3px); }
.steps li::before { content: counter(s, decimal-leading-zero); grid-column: 1; grid-row: 1 / -1; font-family: var(--f-num); font-weight: 600; color: var(--sky-500); font-size: 1rem; }
.steps li > * { grid-column: 2; min-width: 0; }
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.tone-sky .steps li { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); }
.tone-sky .steps li::before { color: var(--green); }
.tone-sky .steps p { color: var(--inv-2); }

/* FAQ ----------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); max-width: 920px; min-width: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 21px 44px 21px 0; position: relative; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { display: inline; margin: 0; font-size: 1.04rem; overflow-wrap: anywhere; transition: color .15s var(--ease); }
.faq-item summary:hover h3 { color: var(--sky-700); }
.faq-item summary::after { content: ''; position: absolute; right: 6px; top: 27px; width: 14px; height: 14px; background: linear-gradient(var(--sky-500), var(--sky-500)) center/14px 2px no-repeat, linear-gradient(var(--sky-500), var(--sky-500)) center/2px 14px no-repeat; transition: transform .3s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(135deg); }
.faq-a { padding: 0 44px 22px 0; color: var(--ink-2); max-width: 78ch; overflow-wrap: anywhere; animation: slideDown .3s var(--ease-out); }
.faq-a p:last-child { margin-bottom: 0; }

/* CTA ----------------------------------------------------------------------- */
.cta-band { position: relative; background: linear-gradient(120deg, var(--sky-700), var(--sky-500)); color: #fff; padding: 70px 0; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 380px at 85% 50%, rgba(0,240,138,.26), transparent 62%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 42px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: 10px; font-size: clamp(1.5rem, 2.3vw, 2rem); }
.cta-band p { color: var(--inv-2); margin: 0; max-width: 58ch; }

/* Forms --------------------------------------------------------------------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--e-2); }
.fields { display: grid; gap: 18px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-consent { display: flex; gap: 12px; align-items: flex-start; font-size: .85rem; color: var(--ink-2); }
.form-consent input { margin-top: 4px; accent-color: var(--sky-500); width: 17px; height: 17px; }
.form-msg { margin: 0; font-size: .91rem; min-height: 1.4em; }
.form-msg.ok { color: var(--green-ink); font-weight: 600; }
.form-msg.err { color: #B42318; font-weight: 600; }

.two-col { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 52px; align-items: start; }
.side-box { background: var(--sky-25); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; position: sticky; top: calc(var(--header-h) + var(--rail-h) + 20px); }
.side-box h3 { font-size: .96rem; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.side-box li:last-child { border-bottom: 0; }

.gloss { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.gloss-item { padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.gloss-item:hover { border-color: var(--sky-300); box-shadow: var(--e-2); }
.gloss-item h3 { margin-bottom: 6px; }
.gloss-item p { margin: 0; color: var(--ink-2); font-size: .91rem; }
.gloss-abbr { font-family: var(--f-num); font-size: .94rem; color: var(--sky-700); font-weight: 600; }

/* Footer -------------------------------------------------------------------- */
.site-footer { background: var(--sky-950); color: var(--inv-2); padding: 66px 0 30px; font-size: .91rem; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 38px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .logo-word { color: #fff; }
.footer-claim { margin: 16px 0 14px; color: var(--inv-2); max-width: 32ch; }
.footer-licence { font-size: .79rem; color: var(--inv-3); line-height: 1.7; }
.footer-col h3 { color: #fff; font-family: var(--f-num); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 500; margin-bottom: 15px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.site-footer a { color: var(--inv-2); text-decoration: none; transition: color .15s var(--ease); }
.site-footer a:hover { color: var(--green); }
.footer-data { padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: .77rem; color: var(--inv-3); }
.footer-data p { margin: 0 0 6px; }
.footer-data strong { color: var(--inv-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 22px; font-size: .81rem; color: var(--inv-3); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }

.muted { color: var(--ink-2); }
.pill { display: inline-block; font-family: var(--f-num); font-size: .66rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; background: var(--green-50); color: var(--green-ink); border-radius: 999px; padding: 6px 13px; }
.chip { font-size: .84rem; padding: 7px 14px; border-radius: 999px; background: var(--sky-50); border: 1px solid var(--line); color: var(--ink-2); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1120px) {
  .calc-fields { grid-template-columns: 1fr 1fr; }
  .adv-fields { grid-template-columns: 1fr 1fr; }
  .priceline { grid-template-columns: 1fr 1fr; }
  .pl:nth-child(3) { border-left: 0; }
  .pl:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; gap: 38px; }
  .side-box { position: static; }
}
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .burger { display: block; }
  .sec { padding: 64px 0; }
  .cards-2 { grid-template-columns: 1fr; }
  .rail-badge { padding-left: 20px; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }

  .wrap { padding-inline: 18px; }
  .hero { padding: 34px 0 46px; }
  .sec { padding: 48px 0; }
  .calc-fields, .adv-fields { grid-template-columns: 1fr; }
  .priceline { grid-template-columns: 1fr; }
  .pl { border-left: 0; }
  .pl + .pl { border-top: 1px solid var(--line); }
  .calc-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .calc-ref { text-align: left; white-space: normal; }
  .calc-body, .meter, .calc-actions { padding: 18px; }
  .bar { height: auto; flex-direction: column; }
  .bar-seg { width: 100% !important; flex-direction: row; align-items: baseline; gap: 10px; padding: 12px 16px; }
  .f-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .hero-ctas .btn, .calc-actions .btn { white-space: normal; text-align: center; flex: 1 1 100%; }
  .form { padding: 20px; }
  .steps li { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
  .gloss { grid-template-columns: 1fr; }
  .rail-badge span.rail-badge-text { display: none; }
}

/* ==========================================================================
   TOUCH ERGONOMICS
   Keyed to pointer type, not viewport width, so tablets get proper targets
   and 16px inputs (which also stops iOS zooming on focus).
   ========================================================================== */
@media (pointer: coarse) {
  .seg button { min-height: 44px; font-size: .92rem; }
  .adv-toggle summary, .detail summary { min-height: 44px; align-items: center; }
  .faq-item summary { padding-block: 24px; }
  .f input, .f select, .f textarea, .form input, .form select, .form textarea { min-height: 48px; font-size: 16px; }
  .f-slider { height: 6px; padding-block: 14px; background-clip: content-box; }
  .f-slider::-webkit-slider-thumb { width: 24px; height: 24px; }
  .f-slider::-moz-range-thumb { width: 24px; height: 24px; }
  .mobile-nav a { min-height: 44px; display: flex; align-items: center; }
  .nav .sub a, .footer-col li a, .side-box li a { padding-block: 10px; }
  .burger { min-height: 46px; min-width: 46px; }
  .card-arrow { padding-top: 20px; }
}
