/* Lunaire Energy — site system
   Brand colours are Lunaire's own: primary violet #4a0678 and slate #1A2A36 from the
   original stylesheet. Violet is the single accent; neutrals are tinted towards it.
   The site is light throughout because the logo is used exactly as supplied and only
   sits on a light surface. One deep-violet block per page: the closing invitation.

   The signature is the checker: the logo's squares, growing west to east and running
   violet to aqua. It is the west edge of the home footage, the field at the head of
   every inner page, the seam between sections, the mark above a section heading and
   the field behind the closing invitation. The ground is lilac, not white. */

:root {
  --violet: #4a0678;
  --violet-ink: #2b0347;
  --violet-soft: #e6d8f6;
  --lilac: #d9c7f1;          /* the accent, lifted for deep-violet grounds */
  --aqua: #63cbd7;           /* data colour in the bill calculator only */
  --m1: #7204bf; --m2: #7073d0; --m3: #609cd1; --m4: #64cad8;   /* the mark's four colours, west to east */
  --ink: #1a2a36;
  --muted: #55626e;
  --paper: #f6f0fc;
  --canvas: #eadff8;
  --night: #22093a;
  --night-2: #2f1150;
  --on-dark: #fbf9fe;
  --on-dark-muted: rgba(251, 249, 254, 0.78);
  --line: rgba(26, 42, 54, 0.14);
  --line-strong: rgba(26, 42, 54, 0.34);
  --line-night: rgba(251, 249, 254, 0.18);

  --font-display: "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 4px;             /* one corner system: near-square everywhere */
  --header: 68px;
  --section: clamp(64px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.75rem); line-height: 1.05; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font: 600 0.8rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--violet); }
.lede { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: var(--muted); max-width: 54ch; }
.accent { color: var(--violet); }
.scrub .accent, .band .accent, .check-section .accent { color: var(--lilac); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons and links ---------- */
.btn {
  --bg: var(--violet); --fg: var(--on-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 20px; border-radius: var(--radius); border: 0;
  background: var(--bg); color: var(--fg);
  font: 600 0.95rem/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 17px; height: 17px; transition: transform 200ms var(--ease-out); }
.btn.light { --bg: var(--paper); --fg: var(--violet); }
.btn.ghost { --bg: transparent; --fg: var(--on-dark); box-shadow: inset 0 0 0 1px rgba(251, 249, 254, 0.6); }
.btn.outline { --bg: transparent; --fg: var(--violet); box-shadow: inset 0 0 0 1px var(--violet); }
.btn.sm { min-height: 38px; padding: 0 14px; font-size: 0.9rem; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--violet-ink); }
  .btn:hover svg { transform: translateX(3px); }
  .btn.light:hover { background: var(--violet-soft); }
  .btn.ghost:hover { background: rgba(251, 249, 254, 0.14); }
  .btn.outline:hover { background: var(--violet-soft); }
}

/* A text link that carries a secondary action. */
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--violet); text-decoration: none; }
.more svg { width: 17px; height: 17px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .more:hover { text-decoration: underline; text-underline-offset: 5px; }
  .more:hover svg { transform: translateX(3px); }
}

/* ---------- Header ----------
   Always a light surface, so the logo never sits on a dark ground. */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; color: var(--ink);
  background: rgba(246, 240, 252, 0.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 240ms ease;
}
.site-header.solid { box-shadow: 0 1px 0 var(--line); }
.site-header .bar { display: flex; align-items: center; gap: 20px; height: var(--header); }
.site-header .logo { display: flex; align-items: center; flex: none; }
.site-header .logo img { height: 28px; width: auto; }
.site-header nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.site-header nav a { text-decoration: none; font-weight: 500; font-size: 0.94rem; padding: 8px 11px; transition: color 180ms ease; }
.site-header nav a[aria-current="page"] { color: var(--violet); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
.site-header .bar > .btn[aria-current="page"] { background: var(--violet-soft); }
@media (hover: hover) and (pointer: fine) { .site-header nav a:hover { color: var(--violet); } }

.menu-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: currentColor; transition: transform 260ms var(--ease-out); }
.menu-toggle span:nth-child(1) { top: 17px; }
.menu-toggle span:nth-child(2) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 49; background: var(--paper); color: var(--ink);
  padding: 92px var(--gutter) 32px; display: flex; flex-direction: column; overflow-y: auto;
  transform: translateY(-100%); visibility: hidden;
  transition: transform 420ms var(--ease-drawer), visibility 0s linear 420ms;
}
.mobile-nav a.link { font: 600 1.5rem/1.2 var(--font-display); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-nav a.link[aria-current="page"] { color: var(--violet); }
.mobile-nav .btn { margin-top: 24px; }
.mobile-nav .meta { margin-top: auto; padding-top: 24px; color: var(--muted); font-size: 0.95rem; }
.menu-open .mobile-nav { transform: none; visibility: visible; transition: transform 420ms var(--ease-drawer), visibility 0s; }
.menu-open .site-header { box-shadow: none; background: var(--paper); }

@media (max-width: 1060px) {
  .site-header nav, .site-header .bar > .btn { display: none; }
  .menu-toggle { display: block; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: var(--section) 0; }
.section.tint { background: var(--canvas); }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }
.section-head.row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; max-width: none; }
/* The seam between a plain section and a tinted one is one row of the checker. */
.section.tint::before, .section.tint::after { content: ""; position: absolute; left: 0; right: 0; height: 28px; pointer-events: none; background-repeat: no-repeat; background-size: 100% 14px;
  background-image: repeating-linear-gradient(90deg, var(--canvas) 0 14px, transparent 14px 28px), repeating-linear-gradient(90deg, transparent 0 14px, var(--paper) 14px 28px); }
.section.tint::before { top: -14px; background-position: 0 0, 0 14px; }
.section.tint::after { bottom: -14px; background-position: 0 14px, 0 0; }
/* No seam where the neighbour is not a plain section, or at the top and foot of a page. */
.section.tint:first-child::before, .section.tint + .section.tint::before, .band + .section.tint::before, .scrub + .section.tint::before { content: none; }
.section.tint:last-of-type::after, .section.tint:has(+ .section.tint, + .band, + .check-section, + .section > .wrap > .invite)::after { content: none; }
/* Four squares, growing west to east, above a section heading. */
.section-head h2::before, .ledger .intro h2::before, .creds-head h2::before, .mark::before { content: ""; display: block; width: 62px; height: 14px; margin-bottom: 18px; background-repeat: no-repeat;
  background-image: linear-gradient(var(--m1), var(--m1)), linear-gradient(var(--m2), var(--m2)), linear-gradient(var(--m3), var(--m3)), linear-gradient(var(--m4), var(--m4));
  background-position: 0 50%, 12px 50%, 27px 50%, 45px 50%; background-size: 4px 4px, 7px 7px, 10px 10px, 14px 14px; }
.section-head.row h2::before { margin-bottom: 14px; }
.section-head.center h2::before { margin-inline: auto; }
.eyebrow + h2::before { content: none; }   /* a heading with a label above it needs no second mark */

/* Images sit in the page as figures, with a plain caption underneath. */
.figure { margin: 0; }
.figure img { width: 100%; height: auto; border-radius: var(--radius); background: var(--canvas); object-fit: cover; }
.figure figcaption { margin-top: 10px; font-size: 0.86rem; color: var(--muted); }

/* ---------- Home hero: the statement, then the copy beside real footage ---------- */
.hero { padding: calc(var(--header) + clamp(32px, 5vw, 64px)) 0 clamp(48px, 7vw, 96px); }
.hero h1 { max-width: 14em; font-size: clamp(2.3rem, 5.2vw, 4.25rem); }
.hero-body { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(28px, 5vw, 72px); margin-top: clamp(24px, 3.5vw, 44px); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-copy .actions, .split .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
/* The finance partner line sits at the foot of the column, level with the footage captions. */
.partner { margin-top: auto; display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 36ch; font-size: 0.92rem; color: var(--muted); text-decoration: none; }
.partner img { height: 22px; width: auto; }
@media (hover: hover) and (pointer: fine) { .partner:hover span { color: var(--violet); } }
.partner span { transition: color 180ms ease; }

/* Footage: one clip at a time, the next fades in over it. */
.reel { position: relative; margin: 0; display: grid; gap: 14px; min-width: 0; }
.reel-stage, .clip-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--canvas); }
/* The footage breaks into the checker on its west edge. The mask and the squares are drawn
   by _build.py on the same 50-unit grid, so the stage keeps 16:9 at every width. */
.reel-stage { border-radius: 0; background: none; -webkit-mask: url("img/checker-mask.svg") 0 0 / 100% 100% no-repeat; mask: url("img/checker-mask.svg") 0 0 / 100% 100% no-repeat; }
.checker { position: absolute; top: 0; left: -6.25%; width: 106.25%; aspect-ratio: 1700 / 900; pointer-events: none; }
.checker rect { transform-box: fill-box; transform-origin: center; animation: square 600ms var(--ease-out) both; animation-delay: calc(350ms + var(--c) * 40ms); }
@keyframes square { from { opacity: 0; transform: scale(0.4); } }
.reel-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 700ms ease; }
.reel-stage video.on { opacity: 1; }
.clip-stage video { width: 100%; height: 100%; object-fit: cover; }
.reel-toggle {
  position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: rgba(246, 240, 252, 0.92); color: var(--ink); cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.reel-toggle svg { width: 18px; height: 18px; }
.reel-toggle .i-play, .paused .reel-toggle .i-pause { display: none; }
.paused .reel-toggle .i-play { display: block; }
.reel-toggle:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .reel-toggle:hover { background: var(--paper); } }
.reel figcaption { display: grid; gap: 14px; }
.reel-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 28px); }
.reel-tabs button { position: relative; display: grid; gap: 2px; align-content: start; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; color: var(--muted); cursor: pointer; }
.reel-tabs b { font: 600 1rem/1.3 var(--font-display); color: var(--ink); transition: color 180ms ease; }
.reel-tabs span { font-size: 0.9rem; }
.reel-tabs button[aria-pressed="true"] b { color: var(--violet); }
/* Fills as the clip plays, so the change to the next site is expected. */
.reel-tabs i { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--violet); transform: scaleX(0); transform-origin: left; }
.reel figcaption > p, .clip figcaption { font-size: 0.86rem; color: var(--muted); }
.reel figcaption a { color: var(--violet); font-weight: 600; text-underline-offset: 3px; }
.clip { margin: 0; display: grid; gap: 10px; }
/* One column: the footage follows the actions, and the partner line closes the hero. */
@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; gap: 22px; }
  .hero-copy { display: contents; }
  .reel { order: 1; margin-top: 6px; }
  .partner { order: 2; margin-top: 4px; max-width: none; }
}
@media (max-width: 560px) {
  .hero-copy .actions .btn { flex: 1 1 100%; }
}

/* ---------- Two routes: the plan, or own it with a loan ---------- */
.routes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.route { display: grid; gap: 14px; align-content: start; justify-items: start; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.route .k { font-weight: 600; font-size: 0.95rem; color: var(--violet); }
.figure-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font: 600 clamp(2.6rem, 5vw, 4rem)/1 var(--font-display); letter-spacing: -0.03em; }
.figure-line small { font: 500 1rem/1.3 var(--font-body); letter-spacing: 0; color: var(--muted); }
.route > p { color: var(--muted); max-width: 46ch; }
.route > .figure-line { color: var(--ink); max-width: none; }
.route-note { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.88rem; }
.route-note img { height: 20px; width: auto; margin-top: 2px; }
@media (max-width: 760px) { .routes { grid-template-columns: 1fr; } }

/* ---------- Case studies on the home page: two figures, the second set lower ---------- */
.cases { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.case { display: grid; gap: 10px; align-content: start; justify-items: start; text-decoration: none; }
.case img { width: 100%; height: auto; margin-bottom: 10px; border-radius: var(--radius); background: var(--canvas); object-fit: cover; }
.case:first-child img { aspect-ratio: 16 / 10; }
.case:last-child { margin-top: clamp(0px, 6vw, 88px); }
.case:last-child img { aspect-ratio: 1; object-position: 50% 100%; }
.case .k { font-size: 0.92rem; color: var(--muted); }
.case h3 { font-size: clamp(1.3rem, 2.1vw, 1.7rem); line-height: 1.2; letter-spacing: -0.015em; transition: color 180ms ease; }
.case p { color: var(--muted); max-width: 52ch; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 32px; width: 100%; margin: 8px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 2px; }
.facts dt { font-size: 0.82rem; color: var(--muted); }
.facts dd { margin: 0; font: 600 1.05rem/1.3 var(--font-display); }
.facts dd::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; background: var(--m4); }
@media (hover: hover) and (pointer: fine) {
  .case:hover h3 { color: var(--violet); }
  .case:hover .more { text-decoration: underline; text-underline-offset: 5px; }
  .case:hover .more svg { transform: translateX(3px); }
}
@media (max-width: 860px) { .cases { grid-template-columns: 1fr; } .case:last-child { margin-top: 0; } .case:last-child img { aspect-ratio: 16 / 10; } }

/* ---------- Index: one ruled row per item ---------- */
.index { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.index li { display: grid; grid-template-columns: 2fr 6fr 3fr; gap: 8px 32px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); }
.index .k { color: var(--muted); font-size: 0.95rem; }
.index h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); }
.index .s { color: var(--muted); font-size: 0.95rem; text-align: right; }
.index.notes li { grid-template-columns: 2fr 4fr 5fr; }
.index.notes .s { text-align: left; }
/* Four parts of one company (about.html): each takes one square of the mark, growing as the list runs. */
.index.parts li { grid-template-columns: 44px 3fr 6fr 3fr; align-items: center; }
.index.parts li::before { content: ""; width: var(--s); height: var(--s); background: var(--c); }
.index.parts li:nth-child(1) { --s: 10px; --c: var(--m1); }
.index.parts li:nth-child(2) { --s: 18px; --c: var(--m2); }
.index.parts li:nth-child(3) { --s: 27px; --c: var(--m3); }
.index.parts li:nth-child(4) { --s: 38px; --c: var(--m4); }
.index.parts p { color: var(--muted); max-width: 52ch; }
.index.parts .more { justify-self: end; }
@media (max-width: 860px) {
  .index.parts li { grid-template-columns: 44px 1fr; align-items: start; }
  .index.parts li > * { grid-column: 2; }
  .index.parts li::before { grid-row: 1 / span 3; margin-top: 4px; }
  .index.parts .more { justify-self: start; }
}
.index.links li { display: block; padding: 0; }
.index.links a { display: grid; grid-template-columns: 2fr 7fr 2fr; gap: 8px 32px; align-items: baseline; padding: 24px 0; text-decoration: none; }
.index.links h3 { transition: color 180ms ease; }
.index.links p { margin-top: 6px; color: var(--muted); max-width: 60ch; }
.index.links .s { justify-self: end; color: var(--violet); }
@media (hover: hover) and (pointer: fine) { .index.links a:hover h3 { color: var(--violet); } }
@media (max-width: 760px) { .index li, .index.notes li, .index.links a { grid-template-columns: 1fr; } .index .s { text-align: left; } .index.links .s { justify-self: start; } }

/* ---------- Research: heading on the left, the programs on the right ---------- */
.ledger { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.ledger .intro { display: grid; gap: 16px; justify-items: start; position: sticky; top: calc(var(--header) + 32px); }
.entries { list-style: none; margin: 0; padding: 0; }
.entries li { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.entries li:first-child { padding-top: 0; }
.entries .k { font-size: 0.92rem; font-weight: 600; color: var(--violet); }
.entries p { color: var(--muted); max-width: 58ch; }
@media (max-width: 900px) { .ledger { grid-template-columns: 1fr; } .ledger .intro { position: static; } }

/* ---------- Definitions: ruled columns, no cards ---------- */
.defs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin: 0; }
.defs > div { display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line-strong); }
.defs dt { font: 600 1.15rem/1.3 var(--font-display); }
.defs dd { margin: 0; color: var(--muted); font-size: 0.98rem; }
.defs.three { grid-template-columns: repeat(3, 1fr); }
.defs.two { grid-template-columns: 1fr 1fr; }
.defs.two dt { font-size: clamp(1.3rem, 2vw, 1.6rem); }
@media (max-width: 1000px) { .defs, .defs.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .defs, .defs.three { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Case study (work page): footage, the account, the figures, a still ---------- */
.study { display: grid; gap: clamp(28px, 4vw, 48px); padding-bottom: clamp(56px, 8vw, 112px); }
.study + .study { padding-top: clamp(56px, 8vw, 112px); border-top: 1px solid var(--line-strong); }
.study-body { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.study-copy { display: grid; gap: 16px; justify-items: start; }
.study-copy .k { font-size: 0.95rem; color: var(--muted); }
.study-copy p { max-width: 60ch; font-size: 1.06rem; line-height: 1.7; }
.source-note { max-width: 78ch; padding-top: 20px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .study-body { grid-template-columns: 1fr; } }

/* ---------- Invitation: a single statement and one action ---------- */
.invite { position: relative; display: grid; gap: 22px; justify-items: start; max-width: 760px; }
/* The one deep block on a page, with the checker field running in from the east. */
.section:has(> .wrap > .invite) { background: var(--violet); color: var(--on-dark); overflow: hidden; }
.section:has(> .wrap > .invite)::before { content: ""; position: absolute; inset: 0 0 0 45%; height: auto; pointer-events: none; opacity: 0.5;
  background: repeating-conic-gradient(var(--m4) 0 25%, transparent 0 50%) 0 0 / 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000); mask-image: linear-gradient(90deg, transparent, #000); }
.section:has(> .wrap > .invite)::after { content: none; }
.invite .lede { color: var(--on-dark-muted); }
.invite .btn { --bg: var(--paper); --fg: var(--violet); }

/* ---------- Page head (inner pages) ---------- */
.page-head { padding: calc(var(--header) + clamp(40px, 6vw, 80px)) 0 clamp(40px, 6vw, 72px); }
.page-head .wrap { position: relative; display: grid; gap: 20px; justify-items: start; }
/* The checker as a still field in the east of every page head. On narrow screens it gives way to the small mark. */
.page-head { overflow: hidden; }
.page-head::before { content: ""; position: absolute; top: var(--header); right: 0; bottom: 0; width: min(44vw, 640px); pointer-events: none;
  background: url("img/checker-field.svg") right top / 640px 560px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%), linear-gradient(#000 55%, transparent); mask-image: linear-gradient(90deg, transparent, #000 40%), linear-gradient(#000 55%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.page-head .wrap::before { content: none; }
@media (max-width: 1099px) {
  .page-head::before { content: none; }
  .page-head .wrap::before { content: ""; display: block; width: 62px; height: 14px; background-repeat: no-repeat;
    background-image: linear-gradient(var(--m1), var(--m1)), linear-gradient(var(--m2), var(--m2)), linear-gradient(var(--m3), var(--m3)), linear-gradient(var(--m4), var(--m4));
    background-position: 0 50%, 12px 50%, 27px 50%, 45px 50%; background-size: 4px 4px, 7px 7px, 10px 10px, 14px 14px; }
}
.page-head h1 { max-width: 20ch; }
.page-head .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.page-head + .section { padding-top: 0; }

/* ---------- Long-form reading (Insights) ---------- */
.reading { display: grid; grid-template-columns: 220px minmax(0, 68ch); gap: clamp(32px, 7vw, 112px); align-items: start; }
.reading .toc { position: sticky; top: calc(var(--header) + 32px); display: grid; gap: 12px; font-size: 0.95rem; }
.reading .toc a { text-decoration: none; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .reading .toc a:hover { color: var(--violet); } }
.article { display: grid; gap: 18px; padding: 44px 0; border-top: 1px solid var(--line-strong); }
.article:first-child { padding-top: 0; border-top: 0; }
.article .standfirst { font-size: 1.2rem; line-height: 1.5; color: var(--muted); }
.article p, .article li { font-size: 1.06rem; line-height: 1.7; }
.article h3 { margin-top: 10px; }
.article ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.article a { color: var(--violet); font-weight: 600; }
.article h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-top: 14px; }
.article .figure { margin: 10px 0; }
.page-head .k { font-weight: 600; font-size: 0.95rem; color: var(--violet); }
.reading .toc span { color: var(--muted); }
.reading .toc a.back { color: var(--violet); font-weight: 600; }
@media (max-width: 860px) { .reading { grid-template-columns: 1fr; } .reading .toc { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--line); } }

/* ---------- Home energy plan hero: day-to-night scrub ---------- */
.scrub { height: 300vh; background: var(--night); color: var(--on-dark); }
.scrub .stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.scrub canvas, .scrub .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scrub .poster { object-position: 40% 50%; }
.scrub .shade, .scrub .shade-copy { position: absolute; inset: 0; pointer-events: none; }
/* Always on: keeps the captions and meter legible at the foot of the stage. */
.scrub .shade { background: linear-gradient(0deg, rgba(15,10,36,0.7) 0%, rgba(15,10,36,0) 34%); }
/* Behind the hero copy only; its opacity follows the copy, so the daylight frames read as daylight once it has gone. */
.scrub .shade-copy { background: linear-gradient(90deg, rgba(15,10,36,0.72) 0%, rgba(15,10,36,0.42) 38%, rgba(15,10,36,0) 62%); }
.scrub .hero-copy {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header);
}
.scrub .hero-copy .wrap { display: grid; gap: 20px; }
.scrub h1 { max-width: 16ch; font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
.scrub h1 .line { display: block; }
.scrub .eyebrow { color: var(--lilac); }
.scrub .hero-copy .lede { color: rgba(251,249,254,0.88); max-width: 42ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.proof { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 10px; padding: 0; list-style: none; font-size: 0.92rem; color: rgba(251,249,254,0.84); }

.scrub .chapters { position: absolute; left: 0; right: 0; bottom: clamp(24px, 6vh, 64px); opacity: 0; transform: translateY(12px); transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out); }
.scrub.playing .chapters { opacity: 1; transform: none; }
.scrub .chapters .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.chapter-list { position: relative; min-height: 4.6em; flex: 1; max-width: 520px; }
.chapter {
  position: absolute; left: 0; bottom: 0; display: grid; gap: 6px;
  opacity: 0; transform: translateY(12px);
  transition: opacity 420ms var(--ease-out), transform 420ms var(--ease-out);
}
.chapter.on { opacity: 1; transform: none; }
.chapter .time { font: 600 0.8rem/1 var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--lilac); }
.chapter p { font: 500 clamp(1.1rem, 1.8vw, 1.4rem)/1.35 var(--font-display); }
.meter-pill {
  flex: none; display: grid; gap: 4px; padding: 14px 18px; border-radius: var(--radius);
  background: rgba(15,10,36,0.6); box-shadow: inset 0 0 0 1px var(--line-night); text-align: right;
}
.meter-pill .k { font-size: 0.8rem; color: var(--on-dark-muted); }
.meter-pill .v { font: 600 1.6rem/1 var(--font-display); font-variant-numeric: tabular-nums; }
.progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(251,249,254,0.12); }
.progress i { display: block; height: 100%; background: var(--lilac); transform-origin: left; transform: scaleX(0); }

@media (max-width: 720px) {
  .scrub { height: 260vh; }
  .scrub .shade { background: linear-gradient(0deg, rgba(15,10,36,0.82) 0%, rgba(15,10,36,0) 40%); }
  .scrub .shade-copy { background: linear-gradient(180deg, rgba(15,10,36,0.8) 0%, rgba(15,10,36,0.55) 55%, rgba(15,10,36,0.35) 80%, rgba(15,10,36,0.6) 100%); }
  .scrub .hero-copy { justify-content: flex-start; padding-top: 104px; }
  .scrub .hero-copy .wrap { gap: 16px; }
  .scrub h1 { font-size: clamp(2.1rem, 9.5vw, 2.8rem); }
  .scrub .hero-copy .lede { font-size: 1rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .proof { font-size: 0.85rem; gap: 6px 16px; }
  .scrub .chapters .wrap { flex-direction: column; align-items: stretch; gap: 14px; }
  .meter-pill { text-align: left; display: flex; align-items: baseline; justify-content: space-between; }
  .meter-pill .v { font-size: 1.4rem; }
}

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.calc-card { background: var(--paper); border-radius: var(--radius); padding: clamp(24px, 3.5vw, 40px); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 26px; }
.calc-card label { font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-card .bill-val { font: 600 2.2rem/1 var(--font-display); font-variant-numeric: tabular-nums; color: var(--ink); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--violet) var(--fill, 30%), #e5e0ec var(--fill, 30%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: #e5e0ec; }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--violet); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px var(--violet); transition: transform 160ms var(--ease-out); }
input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px var(--violet); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.range-scale { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); margin-top: -14px; }

.pixels { display: grid; grid-template-columns: repeat(20, 1fr); gap: 4px; }
.pixels i { aspect-ratio: 1; border-radius: 2px; background: #ece8f2; transition: background-color 220ms ease; }
.pixels i.pay { background: var(--violet); }
.pixels i.keep { background: var(--aqua); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.88rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend span::before { content: ""; width: 12px; height: 12px; border-radius: 2px; background: var(--c); }

.result { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.result > div { border-radius: var(--radius); padding: 18px; background: var(--canvas); display: grid; gap: 6px; }
.result .k { font-size: 0.86rem; color: var(--muted); }
.result .v { font: 600 clamp(1.6rem, 2.8vw, 2.1rem)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.result .keep-box { background: var(--violet-soft); }
.result .keep-box .v { color: var(--violet); }
.calc-note { font-size: 0.86rem; color: var(--muted); }
.calc-under { display: none; border-radius: var(--radius); padding: 18px; background: var(--violet-soft); color: var(--violet-ink); font-weight: 500; }
.calc-card.is-under .result { display: none; }
.calc-card.is-under .calc-under { display: block; }

.big-125 { font: 600 clamp(3.5rem, 8vw, 6rem)/0.95 var(--font-display); letter-spacing: -0.04em; }
.big-125 small { font-size: 0.3em; letter-spacing: -0.01em; color: var(--muted); font-weight: 500; }

@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .pixels { gap: 3px; } .result { grid-template-columns: 1fr; } }

/* ---------- Included grid (home energy plan) ---------- */
.included { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { background: var(--paper); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start; box-shadow: inset 0 0 0 1px var(--line); }
.tile .ico { width: 42px; height: 42px; border-radius: var(--radius); display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.tile .ico svg { width: 22px; height: 22px; }
.tile p { color: var(--muted); font-size: 0.98rem; }
.tile.feature { grid-row: span 3; padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.tile.feature img { width: 100%; flex: 1; min-height: 260px; object-fit: cover; }
.tile.feature .body { padding: 26px; display: grid; gap: 10px; }
.cta-tile { text-decoration: none; background: var(--violet); color: var(--on-dark); box-shadow: none; transition: transform 160ms var(--ease-out), background-color 200ms ease; }
.cta-tile p { color: var(--on-dark-muted); }
.cta-tile .go { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; margin-top: 6px; }
.cta-tile .go svg { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.cta-tile:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .cta-tile:hover { background: var(--violet-ink); } .cta-tile:hover .go svg { transform: translateX(3px); } }
@media (max-width: 960px) { .included { grid-template-columns: 1fr 1fr; } .tile.feature { grid-column: span 2; grid-row: auto; } }
@media (max-width: 600px) { .included { grid-template-columns: 1fr; } .tile.feature { grid-column: auto; } }

/* ---------- Credentials ---------- */
.creds { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(24px, 6vw, 96px); align-items: start; }
.creds-head { display: grid; gap: 14px; }
.creds-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; border-top: 1px solid var(--line-strong); }
.creds-list li { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.creds-list b { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.creds-list span { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 900px) { .creds { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .creds-list { grid-template-columns: 1fr; } }

/* ---------- Steps with video ---------- */
.steps-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--canvas); aspect-ratio: 4 / 5; }
.media-frame video, .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.sticky-media { position: sticky; top: calc(var(--header) + 32px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; counter-reset: s; border-top: 1px solid var(--line-strong); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 6px 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; font: 600 1.15rem/1.3 var(--font-display); color: var(--violet); font-variant-numeric: tabular-nums; }
.steps p { color: var(--muted); }
@media (max-width: 900px) { .steps-wrap { grid-template-columns: 1fr; } .sticky-media { position: relative; top: 0; } .media-frame { aspect-ratio: 16 / 11; } }

/* ---------- Video band ---------- */
.band { position: relative; min-height: clamp(460px, 70vh, 720px); display: flex; align-items: flex-end; color: var(--on-dark); overflow: hidden; background: var(--night); }
.band video, .band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,10,36,0.88) 0%, rgba(15,10,36,0.25) 55%, rgba(15,10,36,0.1) 100%); }
.band .wrap { position: relative; z-index: 1; padding-bottom: clamp(40px, 7vw, 88px); display: grid; gap: 16px; }
.band .eyebrow { color: var(--lilac); }
.band h2 { max-width: 20ch; }
.band p { max-width: 50ch; color: var(--on-dark-muted); font-size: 1.08rem; }

/* ---------- Fit checklist ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; border-top: 1px solid var(--line-strong); }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.checks li svg { width: 28px; height: 28px; color: var(--violet); }
.checks b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.checks span { color: var(--muted); font-size: 0.96rem; }
.fit .photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.fit .photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .fit { grid-template-columns: 1fr; } .fit .photo { aspect-ratio: 16 / 11; order: -1; } }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 0; font: 600 clamp(1.05rem, 1.5vw, 1.2rem)/1.3 var(--font-display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { flex: none; width: 28px; height: 28px; position: relative; color: var(--violet); }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.5px; background: currentColor; transform: translate(-50%, -50%); }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 300ms var(--ease-out); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { padding: 0 48px 24px 0; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }
.faq .answer a { color: var(--violet); font-weight: 600; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; opacity: 0; transition: height 320ms var(--ease-out), opacity 240ms ease, content-visibility 320ms allow-discrete; }
  .faq details[open]::details-content { height: auto; opacity: 1; }
}

/* ---------- Text beside a photo ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.split .photo { margin: 0; }
.split .photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--canvas); }
.split .photo figcaption { margin-top: 10px; font-size: 0.86rem; color: var(--muted); }
.split .copy { display: grid; gap: 18px; justify-items: start; }
.split.flip .photo { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.flip .photo { order: 0; } }

.bullets { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 10px; }
.bullets li { position: relative; padding-left: 22px; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border-radius: 1px; background: var(--violet); }
.check-section .bullets li::before { background: var(--lilac); }

/* ---------- Products ---------- */
.cat-nav { position: sticky; top: var(--header); z-index: 10; background: rgba(246,240,252,0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.cat-nav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.cat-nav .wrap::-webkit-scrollbar { display: none; }
.cat-nav a { flex: none; text-decoration: none; padding: 8px 14px; border-radius: var(--radius); font-weight: 600; font-size: 0.92rem; color: var(--muted); transition: background-color 180ms ease, color 180ms ease; }
.cat-nav a.on { background: var(--violet-soft); color: var(--violet); }
.cat { padding: clamp(56px, 8vw, 96px) 0 0; }
.cat:last-of-type { padding-bottom: var(--section); }
.cat-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.cat-head p { max-width: 52ch; color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; }
@media (max-width: 520px) { .products { grid-template-columns: 1fr 1fr; gap: 10px; } .product .body { padding: 14px 14px 18px; } .product h3 { font-size: 1rem; } .product .shot { padding: 16px; } }
.product { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: inset 0 0 0 1px var(--line); }
.product .shot { aspect-ratio: 1; display: grid; place-items: center; padding: 28px; background: var(--canvas); }
.product .shot img { height: 92%; max-width: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; transition: transform 500ms var(--ease-out); }
.product .shot.dark-shot { background: #000; }
.product .shot.dark-shot img { mix-blend-mode: normal; }
.product .shot.full { padding: 0; }
.product .shot.full img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: normal; }
.product .body { padding: 18px 20px 22px; display: grid; gap: 6px; flex: 1; align-content: start; }
.product .kind { font-size: 0.86rem; color: var(--muted); }
.product h3 { font-size: 1.1rem; }
.product .spec { color: var(--muted); font-size: 0.94rem; }
.product .enq { margin-top: 8px; font-weight: 600; color: var(--violet); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; font-size: 0.94rem; }
.product .enq svg { width: 16px; height: 16px; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .product .enq:hover svg { transform: translateX(3px); } .product:hover .shot img { transform: scale(1.04); } }

/* ---------- Forms ---------- */
.check-section { background: var(--night); color: var(--on-dark); }
.check-section .eyebrow { color: var(--lilac); }
.check-section .lede { color: var(--on-dark-muted); }
.check { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.check .copy { display: grid; gap: 18px; position: sticky; top: calc(var(--header) + 32px); }
.check .copy a { font-weight: 600; }
.form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(22px, 3.5vw, 36px); display: grid; gap: 16px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; border-radius: var(--radius); border: 1px solid #b9c0c8; background: var(--paper);
  font-size: 16px; transition: border-color 160ms ease, box-shadow 160ms ease;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(74,6,120,0.14); }
.field input[aria-invalid="true"] { border-color: #b3261e; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0; }
.choices legend { margin-bottom: 8px; }
.choices label { position: relative; cursor: pointer; }
.choices input { position: absolute; opacity: 0; inset: 0; }
.choices span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px #b9c0c8; font-weight: 500; font-size: 0.95rem; transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms var(--ease-out); }
.choices label:active span { transform: scale(0.97); }
.choices input:checked + span { background: var(--violet); color: var(--on-dark); box-shadow: none; }
.choices input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 0.88rem; color: var(--muted); align-items: start; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--violet); }
.form .btn { width: 100%; }
.form-done { display: none; text-align: center; padding: 30px 10px; gap: 14px; justify-items: center; }
.form-done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--violet); display: grid; place-items: center; }
.form.sent > :not(.form-done) { display: none; }
.form.sent .form-done { display: grid; animation: pop 400ms var(--ease-out) both; }
@keyframes pop { from { opacity: 0; transform: scale(0.97); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-msg { color: #b3261e; font-size: 0.88rem; min-height: 1em; }
@media (max-width: 900px) { .check { grid-template-columns: 1fr; } .check .copy { position: static; } }
@media (max-width: 520px) { .form .row { grid-template-columns: 1fr; } }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 760px; display: grid; gap: 14px; }
.prose h2 { font-size: clamp(1.3rem, 2vw, 1.6rem); margin-top: 26px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }
.prose a { color: var(--violet); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--canvas); color: var(--muted); border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0 32px; font-size: 0.95rem; }
.site-footer .top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
.site-footer img { height: 28px; width: auto; }
.site-footer h4 { color: var(--ink); font: 600 0.95rem/1 var(--font-display); letter-spacing: 0; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .site-footer a:hover { color: var(--violet); } }
.site-footer .brand { display: grid; gap: 18px; align-content: start; max-width: 340px; }
.site-footer .bottom { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 860px) { .site-footer .top { grid-template-columns: 1fr 1fr; } .site-footer .brand { grid-column: span 2; } }

/* Sticky mobile CTA (home energy plan page only) */
.mobile-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none;
  transform: translateY(140%); transition: transform 360ms var(--ease-drawer);
}
.mobile-cta .btn { width: 100%; box-shadow: 0 12px 28px -12px rgba(34,9,58,0.7); }
.mobile-cta.show { transform: none; }
@media (max-width: 720px) { .mobile-cta { display: block; } }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms); }
.js .rv.in { opacity: 1; transform: none; }
.hero-in .line, .hero-in .fade { opacity: 0; transform: translateY(12px); animation: rise 600ms var(--ease-out) forwards; animation-delay: calc(80ms + var(--i, 0) * 70ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  .js .rv { transform: none; transition: opacity 300ms ease; }
  .chapter { transform: none; }
  .btn:active { transform: none; }
  .checker rect { animation: none; }
}

/* NSW Home Energy Saver: the own-it route (vpp.html), added 23 Nov 2026 */
.loan-strip { background: var(--violet-soft); border-bottom: 1px solid var(--line); }
.loan-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-block: 18px; }
.loan-strip p { flex: 1 1 420px; margin: 0; }
.loan-strip a { color: var(--violet); font-weight: 600; text-underline-offset: 3px; }
.partner-logo { height: 24px; width: auto; flex: none; }
.own { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.own-intro { display: grid; gap: 20px; position: sticky; top: 96px; }
.own-attrib { margin: 0; padding-left: 16px; border-left: 2px solid var(--violet); display: grid; gap: 6px; }
.own-attrib p { font-size: 1.02rem; }
.own-attrib cite { font-style: normal; font-size: 0.88rem; color: var(--muted); }
.own-attrib cite a { color: inherit; text-underline-offset: 3px; }
.own-partner { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.own-partner p { color: var(--muted); font-size: 0.95rem; }
.own-body { display: grid; gap: 22px; min-width: 0; }
.own-h { font: 600 1.15rem/1.3 var(--font-display); margin-top: 14px; }
.own-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.own-list li { padding: 14px 0 14px 22px; border-bottom: 1px solid var(--line); position: relative; }
.own-list li::before { content: ""; position: absolute; left: 2px; top: 1.3em; width: 8px; height: 8px; background: var(--violet); border-radius: 1px; }
.compare-wrap { overflow-x: auto; margin-top: 10px; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 460px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--font-display); font-weight: 600; border-bottom: 1px solid var(--line-strong); }
.compare tbody th { font-weight: 600; color: var(--muted); width: 28%; }
.fine { font-size: 0.86rem; color: var(--muted); }
.fine a { color: var(--violet); }
@media (max-width: 900px) { .own { grid-template-columns: 1fr; } .own-intro { position: static; } }
@media (max-width: 560px) { .own-body .creds-list { grid-template-columns: 1fr; } }
