/* =====================================================================
   NextEra Digital — design system
   VOICE   Plain-speaking, tradie-friendly, precise. A quote you can trust.
   IDEA    The build sheet: every page reads like a well-drafted technical
           drawing — title blocks, dimension lines, revision tables — so
           pricing and scope feel measured, not marketed.
   COLOUR  Drafting white + ink, Cobalt for action, Hi-vis orange for the
           one thing that matters, Eucalypt for savings.
   TYPE    Archivo (expanded widths for display) + Atkinson Hyperlegible
           (body; designed for legibility, fits "accessible tech").
   LAYOUT  12-col drafting grid, ruled rows instead of card stacks,
           tables where comparison matters.
   ===================================================================== */

/* ---------- Themes ----------
   Every colour, font, corner and border on the site comes from these tokens.
   data-theme on <html> picks a preset; the style panel (theme.js) can override any token.
   Token names are historical: --cobalt = primary action colour, --hivis = accent colour,
   --paper = page background, --ink = main text, --night = dark bands. */
:root {
  --s-1: .875rem; --s0: 1rem; --s1: 1.25rem; --s2: 1.5625rem;
  --s3: clamp(1.75rem, 1.35rem + 1.6vw, 2.45rem);
  --s4: clamp(2.1rem, 1.5rem + 2.6vw, 3.3rem);
  --s5: clamp(2.5rem, 1.4rem + 4.6vw, 5.2rem);
  --sp1: .25rem; --sp2: .5rem; --sp3: .75rem; --sp4: 1rem; --sp5: 1.5rem; --sp6: 2rem; --sp7: 3rem; --sp8: 4.5rem; --sp9: 6.5rem;
  --wrap: 1240px; --header: 68px; --ease: cubic-bezier(.2, .7, .2, 1);
  --danger: #B3261E;
}

/* Midnight: dark premium tech (default) */
:root, [data-theme="midnight"] {
  --paper: #0B0F1A; --paper-2: #0F1527; --surface: #131A2E; --concrete: #1C2440;
  --line: #27304A; --line-soft: #1D2540; --frame: #2A3452; --input-bd: #3A4566;
  --ink: #E8EBF4; --ink-2: #B5BCCE; --ink-3: #8D96AD;
  --cobalt: #7C5CFF; --cobalt-ink: #A894FF; --primary-hover: #6A47FF; --on-primary: #FFFFFF; --cobalt-tint: rgba(124, 92, 255, .16);
  --hivis: #2DD4BF; --hivis-ink: #5EEAD4; --accent-hover: #5EEAD4; --on-accent: #04201C; --hivis-tint: rgba(45, 212, 191, .12);
  --euc: #34D399; --euc-tint: rgba(52, 211, 153, .14);
  --night: #150F36; --night-2: #211A4E; --on-night: #F1EFFF; --on-night-2: #B9B3DA; --on-night-accent: #C4B5FF;
  --hdr-bg: rgba(11, 15, 26, .86);
  --pattern: radial-gradient(60% 80% at 85% 10%, rgba(124, 92, 255, .22), transparent 60%), radial-gradient(50% 60% at 0% 100%, rgba(45, 212, 191, .12), transparent 60%);
  --pattern-size: auto;
  --display: "Sora", "Segoe UI", system-ui, sans-serif; --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --dw: 650; --dw-h1: 700; --dstretch: 100%; --dls: -.025em; --hero-case: none;
  --bw: 1px; --r: 10px; --r2: 16px; --rc: 18px; --rb: 999px;
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, .6);
  color-scheme: dark;
}
/* Clean: light, modern and friendly */
[data-theme="clean"] {
  --paper: #FFFFFF; --paper-2: #F5F7FB; --surface: #FFFFFF; --concrete: #EEF2F8;
  --line: #E2E8F0; --line-soft: #EEF2F7; --frame: #E2E8F0; --input-bd: #CBD5E1;
  --ink: #0F1B3D; --ink-2: #475569; --ink-3: #64748B;
  --cobalt: #2563EB; --cobalt-ink: #1D4ED8; --primary-hover: #1D4ED8; --on-primary: #FFFFFF; --cobalt-tint: #EFF4FF;
  --hivis: #F59E0B; --hivis-ink: #B45309; --accent-hover: #FBBF24; --on-accent: #1F1300; --hivis-tint: #FFF7E6;
  --euc: #059669; --euc-tint: #ECFDF5;
  --night: #0F1B3D; --night-2: #18264F; --on-night: #FFFFFF; --on-night-2: #B8C2DA; --on-night-accent: #93B4FF;
  --hdr-bg: rgba(255, 255, 255, .9);
  --pattern: radial-gradient(70% 90% at 90% 0%, #EAF1FF, transparent 60%); --pattern-size: auto;
  --display: "Plus Jakarta Sans", system-ui, sans-serif; --body: "Plus Jakarta Sans", system-ui, sans-serif;
  --dw: 750; --dw-h1: 800; --dstretch: 100%; --dls: -.025em; --hero-case: none;
  --bw: 1px; --r: 10px; --r2: 16px; --rc: 20px; --rb: 12px;
  --shadow: 0 10px 30px -12px rgba(15, 27, 61, .18);
  color-scheme: light;
}
/* Lime: bold black, off-white and lime */
[data-theme="lime"] {
  --paper: #F4F4EF; --paper-2: #EAEAE2; --surface: #FFFFFF; --concrete: #E2E2D8;
  --line: #D4D4C8; --line-soft: #E4E4DA; --frame: #0A0A0A; --input-bd: #0A0A0A;
  --ink: #0A0A0A; --ink-2: #3A3A36; --ink-3: #62625B;
  --cobalt: #0A0A0A; --cobalt-ink: #0A0A0A; --primary-hover: #2A2A2A; --on-primary: #C6F432; --cobalt-tint: #ECFAC4;
  --hivis: #C6F432; --hivis-ink: #4A6600; --accent-hover: #B4E31F; --on-accent: #0A0A0A; --hivis-tint: #F1FCD2;
  --euc: #2F7A2F; --euc-tint: #E5F5DD;
  --night: #0A0A0A; --night-2: #1A1A1A; --on-night: #F4F4EF; --on-night-2: #B9B9B0; --on-night-accent: #C6F432;
  --hdr-bg: rgba(244, 244, 239, .92);
  --pattern: none; --pattern-size: auto;
  --display: "Unbounded", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif;
  --dw: 700; --dw-h1: 800; --dstretch: 100%; --dls: -.03em; --hero-case: uppercase;
  --bw: 2px; --r: 14px; --r2: 22px; --rc: 26px; --rb: 999px;
  --shadow: 6px 6px 0 #0A0A0A;
  color-scheme: light;
}
/* Luxury: ivory, forest green and gold */
[data-theme="luxury"] {
  --paper: #F8F5EE; --paper-2: #F0EBDF; --surface: #FFFDF8; --concrete: #E9E2D3;
  --line: #DCD3C1; --line-soft: #E9E2D3; --frame: #D3C8B2; --input-bd: #B9AD95;
  --ink: #13231C; --ink-2: #3F4D45; --ink-3: #66736B;
  --cobalt: #1F4D3A; --cobalt-ink: #1A4231; --primary-hover: #17392B; --on-primary: #FFFDF8; --cobalt-tint: #E7EFEA;
  --hivis: #B8893B; --hivis-ink: #8A6424; --accent-hover: #A47830; --on-accent: #FFFDF8; --hivis-tint: #F6EEDF;
  --euc: #2F6B4F; --euc-tint: #E6F0EA;
  --night: #13231C; --night-2: #1C3129; --on-night: #F3EEE3; --on-night-2: #BFC6BC; --on-night-accent: #D9B26A;
  --hdr-bg: rgba(248, 245, 238, .92);
  --pattern: none; --pattern-size: auto;
  --display: "Playfair Display", Georgia, serif; --body: "Inter", system-ui, sans-serif;
  --dw: 600; --dw-h1: 600; --dstretch: 100%; --dls: -.01em; --hero-case: none;
  --bw: 1px; --r: 3px; --r2: 6px; --rc: 6px; --rb: 2px;
  --shadow: 0 18px 40px -24px rgba(19, 35, 28, .35);
  color-scheme: light;
}
/* Blueprint: the original technical-drawing style */
[data-theme="blueprint"] {
  --paper: #FAFAF7; --paper-2: #F1F2EC; --surface: #FFFFFF; --concrete: #E4E5DE;
  --line: #CFD1C8; --line-soft: #E2E3DC; --frame: #121418; --input-bd: #9DA2A9;
  --ink: #121418; --ink-2: #474C55; --ink-3: #6B7079;
  --cobalt: #2F45D8; --cobalt-ink: #2233B0; --primary-hover: #2233B0; --on-primary: #FFFFFF; --cobalt-tint: #E9ECFC;
  --hivis: #FF6A13; --hivis-ink: #B04000; --accent-hover: #E85A06; --on-accent: #121418; --hivis-tint: #FFF0E6;
  --euc: #2E6A4F; --euc-tint: #E6F1EB;
  --night: #121418; --night-2: #1C1F25; --on-night: #F1F2EC; --on-night-2: #AEB3BC; --on-night-accent: #9FB0FF;
  --hdr-bg: rgba(250, 250, 247, .96);
  --pattern: linear-gradient(rgba(47, 69, 216, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(47, 69, 216, .055) 1px, transparent 1px); --pattern-size: 24px 24px;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif; --body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --dw: 700; --dw-h1: 800; --dstretch: 115%; --dls: -.015em; --hero-case: uppercase;
  --bw: 1.5px; --r: 4px; --r2: 10px; --rc: 0px; --rb: 4px;
  --shadow: none;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 20px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); overflow-x: clip; }
body.locked { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: var(--dw); line-height: 1.08; letter-spacing: var(--dls); margin: 0 0 var(--sp4); text-wrap: balance; font-stretch: var(--dstretch); }
h1 { font-size: var(--s5); font-weight: var(--dw-h1); letter-spacing: var(--dls); }
h2 { font-size: var(--s4); }
h3 { font-size: var(--s2); line-height: 1.15; }
h4 { font-size: var(--s1); line-height: 1.2; }
p { margin: 0 0 var(--sp4); text-wrap: pretty; }
a { color: var(--cobalt-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt); text-decoration-thickness: 2px; }
ul, ol { padding-left: 1.2em; margin: 0 0 var(--sp4); }
li + li { margin-top: .3em; }
strong, b { font-weight: 700; }
small { font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--sp7) 0; }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 2px; }
::selection { background: var(--hivis); color: var(--ink); }
.skip { position: absolute; left: 1rem; top: -100px; z-index: 300; background: var(--hivis); color: var(--ink); padding: .7rem 1rem; font-weight: 700; text-decoration: none; }
.skip:focus { top: 1rem; }
.sr { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }
.band { padding-block: var(--sp8); }
.band-tight { padding-block: var(--sp7); }
.band-paper2 { background: var(--paper-2); }
.band-night { background: var(--night); color: var(--on-night); }
.band-night h2, .band-night h3, .band-night h4 { color: #fff; }
.band-night p, .band-night li { color: var(--on-night-2); }
.band-night a:not(.btn) { color: #fff; }
.band-cobalt { background: var(--cobalt); color: #fff; }
.band-cobalt p { color: rgba(255,255,255,.85); }
.drafting { background-color: var(--paper); background-image: var(--pattern); background-size: var(--pattern-size); }
.grid { display: grid; gap: var(--sp6); }
.g2 > *, .g3 > *, .grid > *, .market > *, .tool > *, .vs > *, .boxes > * { min-width: 0; }
.g2 { display: grid; gap: var(--sp7); align-items: start; }
@media (min-width: 900px) { .g2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .g2-wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } .g2-narrow { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); } }
.g3 { display: grid; gap: var(--sp6); }
@media (min-width: 720px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g4 { display: grid; gap: var(--sp5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.stack > * + * { margin-top: var(--sp4); }
.center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt4 { margin-top: var(--sp4); } .mt5 { margin-top: var(--sp5); } .mt6 { margin-top: var(--sp6); } .mt7 { margin-top: var(--sp7); }
.muted { color: var(--ink-3); }
.lead { font-size: var(--s1); line-height: 1.5; color: var(--ink-2); max-width: 62ch; }
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--s3); margin-top: var(--sp7); }
.prose h3 { margin-top: var(--sp6); }
.prose li { color: var(--ink-2); }
.head { max-width: 760px; margin-bottom: var(--sp7); }
.head p { font-size: var(--s1); color: var(--ink-2); line-height: 1.5; }
.band-night .head p { color: var(--on-night-2); }
.head-split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--sp5); margin-bottom: var(--sp7); }
.head-split > div { max-width: 720px; }
.head-split h2 { margin-bottom: var(--sp3); }
.head-split p { margin: 0; color: var(--ink-2); font-size: var(--s1); line-height: 1.5; }

/* Section label in the drawing-sheet style: sheet reference, not an eyebrow */
.sheet { display: inline-flex; align-items: center; gap: .6rem; font: 600 .82rem/1 var(--display); font-stretch: 100%; color: var(--ink-3); margin-bottom: var(--sp4); }
.sheet::before { content: ""; width: 22px; height: 10px; border: 1.5px solid currentColor; border-right: 0; }
.band-night .sheet { color: var(--on-night-2); }

/* ---------- Buttons ---------- */
.btn { --bg: var(--cobalt); --fg: var(--on-primary); --bd: var(--cobalt);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; padding: .7rem 1.3rem;
  font: 700 1rem/1.15 var(--body); color: var(--fg); background: var(--bg); border: 2px solid var(--bd); border-radius: var(--r);
  text-decoration: none; cursor: pointer; transition: background-color .18s, color .18s, border-color .18s, transform .12s; text-align: center; }
.btn:hover { --bg: var(--primary-hover); --bd: var(--primary-hover); color: var(--on-primary); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-hivis { --bg: var(--hivis); --fg: var(--on-accent); --bd: var(--hivis); }
.btn-hivis:hover { --bg: var(--accent-hover); --bd: var(--accent-hover); color: var(--on-accent); }
.btn-line { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn-line:hover { --bg: var(--ink); --bd: var(--ink); color: var(--paper); }
.band-night .btn-line, .band-cobalt .btn-line { --fg: #fff; --bd: rgba(255,255,255,.6); }
.band-night .btn-line:hover, .band-cobalt .btn-line:hover { --bg: #fff; --bd: #fff; color: var(--ink); }
.btn-sm { min-height: 40px; padding: .45rem .9rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: var(--sp3); }
.textlink { font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--hivis); padding-bottom: 1px; color: var(--ink); }
.textlink:hover { color: var(--cobalt-ink); border-color: var(--cobalt); text-decoration: none; }
.band-night .textlink { color: #fff; }

/* ---------- Header ---------- */
.notice-bar { background: var(--night); color: var(--on-night-2); font-size: .86rem; text-align: center; padding: .4rem 1rem; margin: 0; }
.notice-bar strong { color: #fff; }
.hdr { position: sticky; top: 0; z-index: 60; background: transparent; border-bottom: 1px solid var(--line); isolation: isolate; }
/* The blur lives on a pseudo-element: backdrop-filter on .hdr itself would trap the fixed mobile menu inside the header */
.hdr::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hdr-bg); -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px); }
.hdr-in { display: flex; align-items: center; gap: var(--sp4); min-height: var(--header); }
.logo { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo:hover { color: var(--ink); text-decoration: none; }
.logo svg { width: 36px; height: 36px; flex: none; }
.logo-word { font: 800 1.22rem/1 var(--display); font-stretch: 125%; letter-spacing: -.01em; }
.logo-word span { color: var(--cobalt); }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .1rem; }
.nav li + li { margin: 0; }
.nav a, .nav button.nav-top { display: flex; align-items: center; gap: .3rem; padding: .55rem .7rem; color: var(--ink); text-decoration: none; font: 700 .95rem var(--body); background: none; border: 0; cursor: pointer; border-radius: var(--r); }
.nav a:hover, .nav button.nav-top:hover { background: var(--paper-2); color: var(--ink); text-decoration: none; }
.nav [aria-current="page"], .nav .is-current > button { box-shadow: inset 0 -3px 0 var(--hivis); border-radius: 0; }
.nav button.nav-top svg { width: 12px; height: 12px; transition: transform .2s; }
.nav button[aria-expanded="true"] svg { transform: rotate(180deg); }
.has-mega { position: relative; }
.mega { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: min(92vw, 860px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); box-shadow: 0 24px 60px -24px rgba(18, 20, 24, .35); padding: var(--sp5); display: grid; gap: var(--sp5); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mega[hidden] { display: none !important; }
.mega h3 { font-size: .82rem; font-stretch: 100%; color: var(--ink-3); margin: 0 0 var(--sp2); font-weight: 700; }
.mega ul { list-style: none; padding: 0; margin: 0; }
.mega li + li { margin-top: 0; }
.mega a { padding: .4rem .5rem; font-weight: 400; display: block; }
.mega a b { display: block; font-weight: 700; }
.mega a small { color: var(--ink-3); }
.mega-foot { grid-column: 1 / -1; border-top: 1px solid var(--line-soft); padding-top: var(--sp4); display: flex; flex-wrap: wrap; gap: var(--sp3); justify-content: space-between; align-items: center; }
.hdr-cta { display: flex; gap: var(--sp2); align-items: center; }
.basket-btn { position: relative; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .45rem .75rem; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); font: 700 .9rem var(--body); text-decoration: none; }
.basket-btn:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.basket-btn svg { width: 18px; height: 18px; }
.basket-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--hivis); color: var(--ink); font-size: .78rem; line-height: 22px; text-align: center; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; background: var(--ink); margin: auto; position: relative; transition: transform .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1120px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav { position: fixed; top: var(--nav-top, var(--header)); left: 0; right: 0; bottom: 0; z-index: 59; background: var(--paper); overflow-y: auto; overscroll-behavior: contain; padding: var(--sp4) 1.25rem var(--sp8); visibility: hidden; opacity: 0; transition: opacity .2s, visibility 0s linear .2s; border-top: 1px solid var(--line); }
  .nav.open { visibility: visible; opacity: 1; transition-delay: 0s; }
  .nav > ul { flex-direction: column; align-items: stretch; }
  .nav > ul > li { border-bottom: 1px solid var(--line-soft); }
  .nav a, .nav button.nav-top { font-size: 1.15rem; padding: .85rem 0; width: 100%; justify-content: space-between; }
  .mega { position: static; transform: none; width: auto; box-shadow: none; border: 0; padding: 0 0 var(--sp4); grid-template-columns: 1fr; gap: var(--sp4); }
  .mega a { font-size: 1rem; padding: .35rem 0; }
  .nav [aria-current="page"] { box-shadow: none; color: var(--cobalt-ink); }
}
@media (max-width: 620px) { .hdr-cta .btn { display: none; } .basket-label { display: none; } }

/* ---------- Logo mark animation on hero only ---------- */
.mark-n { stroke-dasharray: 120; stroke-dashoffset: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp7); padding-block: var(--sp8) var(--sp8); align-items: center; }
.hero-in > * { min-width: 0; }
@media (min-width: 1000px) { .hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.hero h1 { text-transform: var(--hero-case); font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.6rem); line-height: .98; margin-bottom: var(--sp5); }
.hero h1 .hl { -webkit-box-decoration-break: clone; box-decoration-break: clone; background: linear-gradient(transparent 62%, var(--hivis) 62% 92%, transparent 92%); }
.hero .lead { margin-bottom: var(--sp6); }
.hero-ctas { display: grid; gap: var(--sp3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); max-width: 560px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: var(--sp2) var(--sp5); margin-top: var(--sp5); font-size: .95rem; color: var(--ink-2); list-style: none; padding: 0; }
.hero-proof li { margin: 0; display: flex; align-items: center; gap: .45rem; }
.hero-proof li::before { content: ""; width: 8px; height: 8px; background: var(--hivis); }

/* The build sheet: interactive drawing in the hero */
.buildsheet { background: var(--surface); border: var(--bw) solid var(--frame); position: relative; }
.bs-top { display: flex; flex-wrap: wrap; gap: .4rem; padding: var(--sp3); border-bottom: var(--bw) solid var(--frame); align-items: center; }
.bs-top span { font-size: .85rem; color: var(--ink-3); margin-right: .25rem; }
.bs-chip { font: 700 .86rem var(--body); padding: .4rem .75rem; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; cursor: pointer; color: var(--ink); }
.bs-chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.bs-canvas { position: relative; padding: var(--sp5) var(--sp6) var(--sp5) var(--sp7); }
.bs-drawing { position: relative; }
.bs-svg { width: 100%; height: auto; }
.bs-svg .draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 1.6s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bs-title { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--bw) solid var(--frame); }
.bs-title > div { padding: .55rem .7rem; border-right: 1px solid var(--line); min-width: 0; }
.bs-title > div:last-child { border-right: 0; }
.bs-title dt { font-size: .72rem; color: var(--ink-3); }
.bs-title dd { margin: 0; font: 800 1.05rem/1.2 var(--display); font-stretch: 110%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bs-title dd.price { color: var(--cobalt-ink); }
.bs-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--sp3); padding: var(--sp3); border-top: 1px solid var(--line); background: var(--paper); flex-wrap: wrap; }
.bs-foot p { margin: 0; font-size: .88rem; color: var(--ink-2); }
@media (max-width: 560px) { .bs-title { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bs-title > div:nth-child(2) { border-right: 0; } .bs-title > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .bs-canvas { padding: var(--sp4); } }

/* Page hero */
.phero { border-bottom: 1px solid var(--line); padding-block: var(--sp8) var(--sp7); }
.phero h1 { font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem); max-width: 18ch; }
.phero .lead { margin-bottom: 0; }
.phero .btns { margin-top: var(--sp6); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0 0 var(--sp5); font-size: .9rem; color: var(--ink-3); }
.crumbs li + li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--line); }
.crumbs a { color: var(--ink-2); }
.phero-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); border: var(--bw) solid var(--frame); margin-top: var(--sp6); background: var(--surface); max-width: 860px; }
.phero-meta > div { padding: .7rem .9rem; border-right: 1px solid var(--line); }
.phero-meta > div:last-child { border-right: 0; }
.phero-meta dt { font-size: .78rem; color: var(--ink-3); }
.phero-meta dd { margin: 0; font: 800 1.15rem/1.25 var(--display); font-stretch: 108%; }

/* ---------- Rows, title blocks, tables ---------- */
.rows { border-top: var(--bw) solid var(--frame); }
.row { display: grid; gap: var(--sp2) var(--sp6); padding: var(--sp5) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .row { grid-template-columns: 4.5rem minmax(0, 1fr) minmax(0, 1.4fr); } .row--2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); } }
.row-n { font: 800 1rem var(--display); color: var(--ink-3); }
.row h3 { font-size: 1.3rem; margin: 0; }
.row p { margin: 0; color: var(--ink-2); }
.band-night .rows { border-color: #fff; }
.band-night .row { border-color: rgba(255,255,255,.15); }

.tb { border: var(--bw) solid var(--frame); background: var(--surface); }
.tb-head { display: flex; justify-content: space-between; gap: var(--sp4); padding: var(--sp4) var(--sp5); border-bottom: var(--bw) solid var(--frame); align-items: baseline; flex-wrap: wrap; }
.tb-head h3 { margin: 0; }
.tb-head .tag, .tile .tag { white-space: normal; text-align: left; line-height: 1.3; }
.tb-body { padding: var(--sp5); }
.tb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.tb-grid > div { padding: .7rem var(--sp5); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tb-grid dt { font-size: .78rem; color: var(--ink-3); }
.tb-grid dd { margin: 0; font-weight: 700; }

.tbl-wrap { position: relative; max-width: 100%; overflow-x: auto; border: var(--bw) solid var(--frame); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: .97rem; }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--paper-2); font-weight: 700; border-bottom: var(--bw) solid var(--frame); white-space: nowrap; }
tbody th { font-weight: 700; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.compare td, .compare th { text-align: center; }
.compare td:first-child, .compare th:first-child { text-align: left; }
.compare .hl-col { background: var(--cobalt-tint); }
.yes { color: var(--euc); font-weight: 700; }
.no { color: var(--ink-3); }
caption { text-align: left; padding: .6rem .85rem; font-weight: 700; caption-side: top; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); border: var(--bw) solid var(--frame); background: var(--surface); }
.plan { padding: var(--sp6) var(--sp5); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: relative; }
.plan:last-child { border-right: 0; }
@media (max-width: 1060px) { .plan { border-bottom: 1px solid var(--line); } }
.plan.featured { background: var(--night); color: var(--on-night); }
.plan.featured h3, .plan.featured .amount { color: #fff; }
.plan.featured p, .plan.featured li { color: var(--on-night-2); }
.plan.featured .flag { background: var(--hivis); color: var(--ink); }
.flag { position: absolute; top: -1px; right: var(--sp5); font: 700 .75rem var(--body); background: var(--hivis); color: var(--on-accent); padding: .25rem .55rem; }
.plan h3 { font-size: 1.35rem; margin-bottom: var(--sp2); }
.plan .for { font-size: .95rem; color: var(--ink-2); min-height: 3em; }
.amount { font: 800 2.6rem/1 var(--display); font-stretch: 112%; letter-spacing: -.02em; margin: var(--sp3) 0 var(--sp1); font-variant-numeric: tabular-nums; }
.amount small { font: 400 .95rem var(--body); color: var(--ink-3); letter-spacing: 0; }
.plan.featured .amount small { color: var(--on-night-2); }
.gst { font-size: .82rem; color: var(--ink-3); margin-bottom: var(--sp4); }
.plan.featured .gst { color: var(--on-night-2); }
.plan ul { list-style: none; padding: 0; margin: var(--sp4) 0 var(--sp5); font-size: .95rem; }
.plan li { padding-left: 1.4rem; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .4rem; border-left: 2px solid var(--euc); border-bottom: 2px solid var(--euc); transform: rotate(-45deg); }
.plan.featured li::before { border-color: var(--hivis); }
.plan .btn { margin-top: auto; }
.billing-toggle { display: inline-flex; border: var(--bw) solid var(--frame); border-radius: 999px; padding: 3px; background: var(--surface); margin-bottom: var(--sp5); }
.billing-toggle button { border: 0; background: transparent; padding: .5rem 1rem; border-radius: 999px; font: 700 .92rem var(--body); cursor: pointer; color: var(--ink); }
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- Badges & notices ---------- */
.tag { display: inline-flex; align-items: center; gap: .3rem; font: 700 .74rem/1 var(--body); padding: .3rem .5rem; border-radius: 3px; background: var(--concrete); color: var(--ink); vertical-align: middle; white-space: nowrap; }
.tag-demo { background: var(--hivis-tint); color: var(--hivis-ink); border: 1px solid #FFC9A6; }
.tag-ai { background: var(--cobalt-tint); color: var(--cobalt-ink); border: 1px solid #C8D0FA; }
.tag-good { background: var(--euc-tint); color: var(--euc); }
.tag-warn { background: #FFF4D6; color: #7A5300; }
.tag-bad { background: #FBE7E5; color: var(--danger); }
.note { border-left: 4px solid var(--hivis); background: var(--surface); padding: var(--sp4) var(--sp5); font-size: .97rem; }
.note p:last-child { margin-bottom: 0; }
.note-cobalt { border-color: var(--cobalt); }
.note-euc { border-color: var(--euc); }
.fine { font-size: .87rem; color: var(--ink-3); }
.band-night .fine { color: var(--on-night-2); }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--sp4); }
.fg2 { display: grid; gap: var(--sp4); }
@media (min-width: 640px) { .fg2 { grid-template-columns: 1fr 1fr; } .span2 { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.field > label, .field > .label, fieldset > legend { font-weight: 700; font-size: .97rem; }
.hint { font-size: .85rem; color: var(--ink-3); font-weight: 400; }
.opt { font-weight: 400; color: var(--ink-3); font-size: .87rem; }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=search], input[type=password], select, textarea {
  width: 100%; min-height: 48px; padding: .6rem .8rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: var(--bw) solid var(--input-bd); border-radius: var(--r); }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(47, 69, 216, .25); }
.field.err input, .field.err select, .field.err textarea { border-color: var(--danger); }
.err-msg { color: var(--danger); font-size: .87rem; font-weight: 700; }
.err-msg:empty { display: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.checks { display: grid; gap: .35rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .97rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: .15rem; accent-color: var(--cobalt); flex: none; }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-block; padding: .5rem .85rem; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); font-weight: 700; font-size: .93rem; cursor: pointer; }
.seg input:checked + span { border-color: var(--cobalt); background: var(--cobalt); color: var(--on-primary); }
.seg input:focus-visible + span { outline: 3px solid var(--hivis); outline-offset: 2px; }
input[type=range] { width: 100%; accent-color: var(--cobalt); height: 32px; }
.range-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp3); }
.range-row output { font: 800 1.1rem var(--display); font-variant-numeric: tabular-nums; }
.form-ok { border: 1.5px solid var(--euc); background: var(--euc-tint); padding: var(--sp5); }
.form-ok h3 { color: var(--euc); }
.status { padding: .8rem 1rem; }
.status:empty { display: none; }
.status.is-err { background: #FBE7E5; color: var(--danger); font-weight: 700; }
.panel { background: var(--surface); border: var(--bw) solid var(--frame); padding: var(--sp6); }
@media (max-width: 600px) { .panel { padding: var(--sp5); } }

/* ---------- Tools (calculators, audit) ---------- */
.tool { display: grid; gap: 0; border: var(--bw) solid var(--frame); background: var(--surface); }
@media (min-width: 1000px) { .tool { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.tool-in { padding: var(--sp6); display: grid; gap: var(--sp5); align-content: start; }
.tool-out { background: var(--night); color: var(--on-night); padding: var(--sp6); position: relative; }
@media (min-width: 1000px) { .tool-out > .sticky { position: sticky; top: calc(var(--header) + 20px); } }
.tool-out h2, .tool-out h3 { color: #fff; }
.tool-out p, .tool-out li { color: var(--on-night-2); }
.big { font: 800 clamp(2.4rem, 1.6rem + 3vw, 3.6rem)/1 var(--display); font-stretch: 112%; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.big-label { font-size: .9rem; color: var(--on-night-2); }
.kv { display: grid; grid-template-columns: 1fr auto; gap: .45rem var(--sp4); margin: var(--sp5) 0; font-variant-numeric: tabular-nums; }
.kv dt { color: var(--on-night-2); }
.kv dd { margin: 0; text-align: right; color: #fff; font-weight: 700; }
.kv .sep { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.18); }
.kv-light dt { color: var(--ink-2); } .kv-light dd { color: var(--ink); }
.kv-light .sep { border-color: var(--line); }
.tool-out .btn-line { --fg: #fff; --bd: rgba(255,255,255,.55); }
.tool-out .btn-line:hover { --bg: #fff; color: var(--ink); }
.reco { border: 1px solid rgba(255,255,255,.25); padding: var(--sp4); margin-top: var(--sp4); }
.reco b { color: #fff; }
.tool-step { border-top: 1px solid var(--line); padding-top: var(--sp5); }
.tool-step:first-child { border-top: 0; padding-top: 0; }
.tool-step > h3 { font-size: 1.1rem; display: flex; gap: .6rem; align-items: center; }
.tool-step > h3 .n { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--cobalt); color: var(--on-primary); font-size: .85rem; border-radius: 50%; font-stretch: 100%; }

.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); border: var(--bw) solid var(--frame); background: var(--surface); }
.score { padding: var(--sp5); border-right: 1px solid var(--line); text-align: center; }
.score:last-child { border-right: 0; }
.dial { width: 96px; height: 96px; margin: 0 auto var(--sp3); }
.score b { display: block; font-size: 1rem; }
.finding { display: grid; grid-template-columns: auto 1fr; gap: var(--sp3); padding: var(--sp4) 0; border-bottom: 1px solid var(--line); }
.finding h4 { font: 700 1.02rem var(--body); margin: 0 0 .2rem; }
.finding p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.finding .val { font-weight: 700; color: var(--ink); }

/* ---------- Marketplace & basket ---------- */
.market { display: grid; gap: var(--sp7); align-items: start; }
@media (min-width: 1040px) { .market { grid-template-columns: minmax(0, 1fr) 380px; } }
.mk-list { border-top: var(--bw) solid var(--frame); }
.mk-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .35rem var(--sp5); padding: var(--sp5) 0; border-bottom: 1px solid var(--line); }
.mk-item h3 { font-size: 1.15rem; margin: 0; font-stretch: 105%; }
.mk-item p { margin: 0; color: var(--ink-2); font-size: .95rem; grid-column: 1; }
.mk-price { text-align: right; font: 800 1.2rem var(--display); white-space: nowrap; }
.mk-price small { display: block; font: 400 .8rem var(--body); color: var(--ink-3); }
.mk-act { grid-column: 2; grid-row: 2 / span 2; align-self: end; justify-self: end; }
.mk-third { grid-column: 1; font-size: .85rem; color: var(--hivis-ink); }
.basket { border: var(--bw) solid var(--frame); background: var(--surface); }
@media (min-width: 1040px) { .basket { position: sticky; top: calc(var(--header) + 20px); } }
.basket h2 { font-size: 1.25rem; margin: 0; padding: var(--sp4) var(--sp5); border-bottom: var(--bw) solid var(--frame); }
.basket-body { padding: var(--sp4) var(--sp5); }
.basket-line { display: grid; grid-template-columns: 1fr auto auto; gap: .5rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; align-items: center; }
.basket-line .x { border: 0; background: none; color: var(--ink-3); cursor: pointer; width: 32px; height: 32px; font-size: 1.1rem; }
.basket-line .x:hover { color: var(--danger); }
.basket-empty { color: var(--ink-3); font-size: .95rem; }
.mk-filter { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: var(--sp5); }

/* ---------- Cards (used sparingly: portfolio, industries) ---------- */
.tiles { display: grid; gap: var(--sp5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.tile { display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s; }
a.tile:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.tile-body { padding: var(--sp5); display: flex; flex-direction: column; gap: var(--sp2); flex: 1; }
.tile-body h3 { font-size: 1.2rem; margin: 0; font-stretch: 105%; }
.tile-body p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.tile-foot { margin-top: auto; padding-top: var(--sp3); display: flex; justify-content: space-between; align-items: center; gap: var(--sp3); font-size: .9rem; }
.ind-list { columns: 1; column-gap: var(--sp7); list-style: none; padding: 0; margin: 0; border-top: var(--bw) solid var(--frame); }
@media (min-width: 640px) { .ind-list { columns: 2; } }
@media (min-width: 1000px) { .ind-list { columns: 3; } }
.ind-list li { break-inside: avoid; margin: 0; border-bottom: 1px solid var(--line); }
.ind-list a { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp3); padding: .85rem 0; text-decoration: none; color: var(--ink); font-weight: 700; }
.ind-list a:hover { color: var(--cobalt-ink); }
.ind-list small { font-weight: 400; color: var(--ink-3); text-align: right; flex: 0 1 auto; max-width: 55%; }

/* Portfolio previews */
.pf-grid { display: grid; gap: var(--sp7) var(--sp6); grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.pf { display: flex; flex-direction: column; gap: var(--sp3); }
.pf-shot { position: relative; aspect-ratio: 16 / 10; border: var(--bw) solid var(--frame); background: var(--paper-2); overflow: hidden; }
.pf-shot iframe { position: absolute; top: 0; left: 0; width: 1280px; max-width: none; height: 800px; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.pf-shot .browser-bar { position: absolute; top: 0; left: 0; right: 0; height: 22px; background: var(--paper-2); border-bottom: 1px solid var(--line); z-index: 2; display: flex; gap: 5px; align-items: center; padding-left: 8px; }
.pf-shot .browser-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.pf-shot .frame { position: absolute; inset: 22px 0 0 0; overflow: hidden; }
.pf-phone { position: absolute; right: 10px; bottom: -30px; width: 28%; aspect-ratio: 9 / 18; border: 5px solid var(--ink); border-radius: 18px; background: var(--surface); overflow: hidden; z-index: 3; box-shadow: 0 14px 30px -14px rgba(0,0,0,.45); }
.pf-phone iframe { position: absolute; top: 0; left: 0; width: 390px; max-width: none; height: 780px; border: 0; transform-origin: 0 0; pointer-events: none; background: #fff; }
.pf-meta { display: flex; flex-wrap: wrap; gap: .35rem; }
.pf h3 { font-size: 1.3rem; margin: var(--sp2) 0 0; }
.pf p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.pf-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--sp3); flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: var(--sp3); }
.filters { display: grid; gap: var(--sp4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); margin-bottom: var(--sp6); padding: var(--sp5); border: var(--bw) solid var(--frame); background: var(--surface); }

/* ---------- Diagrams (automation before/after) ---------- */
.flow-pick { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: var(--sp5); }
.flow-pick button { font: 700 .9rem var(--body); padding: .5rem .8rem; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; border-radius: var(--r); color: var(--ink); }
.flow-pick button[aria-pressed="true"] { border-color: var(--cobalt); background: var(--cobalt); color: var(--on-primary); }
.flows { display: grid; gap: var(--sp5); }
@media (min-width: 900px) { .flows { grid-template-columns: 1fr 1fr; } }
.flow { border: var(--bw) solid var(--frame); background: var(--surface); }
.flow-h { display: flex; justify-content: space-between; gap: var(--sp3); align-items: baseline; padding: var(--sp3) var(--sp4); border-bottom: var(--bw) solid var(--frame); }
.flow-h h3 { font-size: 1.05rem; margin: 0; font-stretch: 100%; }
.flow-h .t { font: 800 1.1rem var(--display); font-variant-numeric: tabular-nums; }
.flow ol { list-style: none; padding: var(--sp4); margin: 0; counter-reset: f; }
.flow li { position: relative; padding: .55rem .7rem .55rem 2.6rem; border: 1px solid var(--line); background: var(--paper); margin: 0; font-size: .95rem; }
.flow li + li { margin-top: 1.1rem; }
.flow li + li::before { content: ""; position: absolute; left: 1.3rem; top: -1.15rem; height: 1.1rem; border-left: 2px solid var(--ink-3); }
.flow li::after { counter-increment: f; content: counter(f); position: absolute; left: .55rem; top: .5rem; width: 1.4rem; height: 1.4rem; display: grid; place-items: center; font-size: .75rem; font-weight: 700; border-radius: 50%; background: var(--concrete); }
.flow li.manual { border-left: 4px solid var(--hivis); }
.flow li.auto { border-left: 4px solid var(--euc); }
.flow li small { display: block; color: var(--ink-3); }
.flow-before .flow-h { background: var(--hivis-tint); }
.flow-after .flow-h { background: var(--euc-tint); }

/* ---------- AI demos ---------- */
.ai-demo { border: var(--bw) solid var(--frame); background: var(--surface); display: grid; }
@media (min-width: 900px) { .ai-demo { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }
.ai-explain { padding: var(--sp6); border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .ai-explain { border-bottom: 0; border-right: 1px solid var(--line); } }
.ai-stage { padding: var(--sp5); background: var(--paper-2); min-height: 380px; display: flex; flex-direction: column; }
.chat { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); flex: 1; min-height: 340px; }
.chat-h { display: flex; justify-content: space-between; align-items: center; padding: .6rem .8rem; border-bottom: 1px solid var(--line); font-size: .9rem; gap: .5rem; flex-wrap: wrap; }
.chat-log { flex: 1; padding: .8rem; overflow-y: auto; display: flex; flex-direction: column; gap: .5rem; max-height: 380px; }
.msg { max-width: 85%; padding: .55rem .8rem; border-radius: 12px; font-size: .95rem; line-height: 1.45; }
.msg.bot { background: var(--cobalt-tint); align-self: flex-start; border-bottom-left-radius: 3px; }
.msg.user { background: var(--cobalt); color: var(--on-primary); align-self: flex-end; border-bottom-right-radius: 3px; }
.msg.sys { align-self: center; background: none; color: var(--ink-3); font-size: .82rem; text-align: center; }
.msg.human { background: var(--euc-tint); align-self: flex-start; border-bottom-left-radius: 3px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: .35rem; padding: 0 .8rem .6rem; }
.chat-quick button { font: 700 .82rem var(--body); border: 1px solid var(--cobalt); color: var(--cobalt-ink); background: var(--surface); border-radius: 999px; padding: .35rem .65rem; cursor: pointer; }
.chat-form { display: flex; gap: .4rem; padding: .6rem; border-top: 1px solid var(--line); }
.chat-form input { min-height: 42px; }
.chat-foot { font-size: .78rem; color: var(--ink-3); padding: 0 .8rem .6rem; }
.ai-svc-nav { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: var(--sp5); }
.ai-svc-nav button { font: 700 .88rem var(--body); padding: .45rem .75rem; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; border-radius: 999px; color: var(--ink); }
.ai-svc-nav button[aria-selected="true"] { background: var(--cobalt); border-color: var(--cobalt); color: var(--on-primary); }
.extract { display: grid; gap: var(--sp4); }
.extract pre { white-space: pre-wrap; font: .9rem/1.5 ui-monospace, Menlo, Consolas, monospace; background: var(--surface); border: 1px solid var(--line); padding: var(--sp4); margin: 0; }
.call { background: var(--night); color: var(--on-night); padding: var(--sp4); flex: 1; display: flex; flex-direction: column; gap: .5rem; min-height: 340px; }
.call .line { font-size: .95rem; }
.call .who { font-weight: 700; color: #fff; margin-right: .35rem; }
.call .ai-who { color: var(--on-night-accent); }
.wave { display: flex; gap: 3px; align-items: center; height: 24px; }
.wave i { width: 3px; background: var(--hivis); border-radius: 2px; height: 30%; }
@media (prefers-reduced-motion: no-preference) { .wave.on i { animation: wv 1s ease-in-out infinite; } .wave i:nth-child(2n) { animation-delay: .2s; } .wave i:nth-child(3n) { animation-delay: .4s; } }
@keyframes wv { 50% { height: 100%; } }

/* ---------- Steps / process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: var(--bw) solid var(--frame); counter-reset: p; }
@media (min-width: 900px) { .process { grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0; } }
.process li { margin: 0; padding: var(--sp5) var(--sp4) var(--sp5) 0; border-bottom: 1px solid var(--line); position: relative; }
@media (min-width: 900px) { .process li { border-bottom: 0; border-top: var(--bw) solid var(--frame); padding: var(--sp5) var(--sp5) 0 0; } .process li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; background: var(--hivis); } }

.process .when { font: 800 1.6rem var(--display); font-stretch: 112%; display: block; color: var(--cobalt-ink); }
.process h3 { font-size: 1.15rem; margin: .3rem 0; }
.process p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.band-night .process li { border-color: rgba(255,255,255,.2); }
.band-night .process .when { color: var(--on-night-accent); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: var(--sp4) 2.5rem var(--sp4) 0; font-weight: 700; font-size: 1.06rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding-bottom: var(--sp5); color: var(--ink-2); max-width: 72ch; }
.faq { border-top: var(--bw) solid var(--frame); }

/* ---------- Blog ---------- */
.post-list { border-top: var(--bw) solid var(--frame); }
.post-row { display: grid; gap: var(--sp2) var(--sp6); padding: var(--sp5) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .post-row { grid-template-columns: 10rem minmax(0, 1fr) auto; align-items: baseline; } }
.post-row time { color: var(--ink-3); font-size: .92rem; }
.post-row h3 { font-size: 1.3rem; margin: 0 0 .3rem; }
.post-row h3 a { color: var(--ink); text-decoration: none; }
.post-row h3 a:hover { color: var(--cobalt-ink); text-decoration: underline; }
.post-row p { margin: 0; color: var(--ink-2); }
.article { max-width: 70ch; }
.article p, .article li { font-size: 1.08rem; color: var(--ink); }
.article h2 { font-size: var(--s3); margin-top: var(--sp7); }

/* ---------- Footer ---------- */
.ftr { background: var(--night); color: var(--on-night-2); padding-top: var(--sp8); font-size: .95rem; }
.ftr a { color: var(--on-night); text-decoration: none; }
.ftr a:hover { color: #fff; text-decoration: underline; }
.ftr-top { display: grid; gap: var(--sp7); padding-bottom: var(--sp7); border-bottom: 1px solid rgba(255,255,255,.12); }
@media (min-width: 900px) { .ftr-top { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.ftr-top h2 { color: #fff; font-size: var(--s3); margin-bottom: var(--sp3); }
.ftr-cols { display: grid; gap: var(--sp6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); padding-block: var(--sp7); }
.ftr h3 { font: 700 .95rem var(--body); color: #fff; margin-bottom: var(--sp3); }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.ftr li + li { margin: 0; }
.ftr-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: var(--sp5); display: flex; flex-wrap: wrap; gap: var(--sp3) var(--sp6); justify-content: space-between; font-size: .87rem; }
.ftr .logo { color: #fff; }
.news { display: grid; gap: var(--sp3); }
.news-row { display: flex; gap: .5rem; }
.news input[type=email] { background: var(--night-2); border-color: rgba(255,255,255,.25); color: #fff; }
.news .check { color: var(--on-night-2); font-size: .88rem; }
.social { display: flex; gap: .5rem; margin-top: var(--sp4); }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; }
.social svg { width: 17px; height: 17px; }

/* ---------- Toast & floating ---------- */
.toasts { position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: .5rem; width: min(92vw, 440px); pointer-events: none; }
.toast { pointer-events: auto; background: var(--night); color: var(--on-night); border: 1px solid var(--line); padding: .8rem 1rem; display: flex; gap: .8rem; align-items: center; box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); animation: tin .25s var(--ease); }
.toast a { color: var(--hivis); font-weight: 700; margin-left: auto; white-space: nowrap; }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Comparison: DIY vs managed ---------- */
.vs { display: grid; border: var(--bw) solid var(--frame); background: var(--surface); }
@media (min-width: 860px) { .vs { grid-template-columns: 1fr 1fr; } }
.vs > div { padding: var(--sp6); }
.vs > div + div { border-top: var(--bw) solid var(--frame); }
@media (min-width: 860px) { .vs > div + div { border-top: 0; border-left: var(--bw) solid var(--frame); } }
.vs h3 { font-size: 1.3rem; }
.vs ul { list-style: none; padding: 0; margin: 0; }
.vs li { padding: .55rem 0 .55rem 1.8rem; border-top: 1px solid var(--line-soft); position: relative; margin: 0; }
.vs .minus li::before { content: ""; position: absolute; left: .2rem; top: 1.1em; width: .8rem; border-top: 2px solid var(--ink-3); }
.vs .plus li::before { content: ""; position: absolute; left: .25rem; top: .9em; width: .75rem; height: .4rem; border-left: 2px solid var(--euc); border-bottom: 2px solid var(--euc); transform: rotate(-45deg); }
.vs .plus { background: var(--euc-tint); }

/* ---------- Portal & dashboard ---------- */
.app { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100vh - var(--header)); background: var(--paper-2); }
@media (min-width: 1000px) { .app { grid-template-columns: 250px minmax(0, 1fr); } }
.app-side, .app-main { min-width: 0; }
.app-side { background: var(--night); color: var(--on-night-2); padding: var(--sp5) var(--sp4); }
@media (min-width: 1000px) { .app-side { position: sticky; top: var(--header); height: calc(100vh - var(--header)); overflow-y: auto; } }
.app-side h2 { color: #fff; font-size: 1rem; font-stretch: 100%; margin: 0 0 var(--sp4); }
.app-nav { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.app-nav li + li { margin: 0; }
.app-nav button { width: 100%; text-align: left; background: none; border: 0; color: var(--on-night-2); padding: .55rem .7rem; font: 700 .92rem var(--body); border-radius: var(--r); cursor: pointer; display: flex; justify-content: space-between; gap: .5rem; }
.app-nav button:hover { background: var(--night-2); color: #fff; }
.app-nav button[aria-current="true"] { background: var(--cobalt); color: var(--on-primary); }
.app-nav .cnt { font-size: .75rem; background: var(--hivis); color: var(--ink); border-radius: 999px; padding: 0 .45rem; line-height: 1.6; }
@media (max-width: 999px) { .app-nav { display: flex; overflow-x: auto; gap: .3rem; } .app-nav button { white-space: nowrap; } }
.app-main { padding: var(--sp6); min-width: 0; }
@media (max-width: 600px) { .app-main { padding: var(--sp4); } }
.app-main h1 { font-size: var(--s3); margin-bottom: var(--sp2); }
.app-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--sp4); margin-bottom: var(--sp6); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 0; border: var(--bw) solid var(--frame); background: var(--surface); margin-bottom: var(--sp6); }
.kpi { padding: var(--sp4) var(--sp5); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi dt { font-size: .85rem; color: var(--ink-3); }
.kpi dd { margin: 0; font: 800 1.8rem/1.15 var(--display); font-stretch: 110%; font-variant-numeric: tabular-nums; }
.kpi .delta { font-size: .82rem; font-weight: 700; color: var(--euc); }
.box { background: var(--surface); border: 1px solid var(--line); padding: var(--sp5); min-width: 0; }
.box + .box { margin-top: var(--sp5); }
.box h2 { font-size: 1.2rem; font-stretch: 105%; margin-bottom: var(--sp4); }
.boxes { display: grid; gap: var(--sp5); }
@media (min-width: 1100px) { .boxes { grid-template-columns: 1fr 1fr; } }
.boxes .box + .box { margin-top: 0; }
.chart { width: 100%; height: 220px; }
.bar-row { display: grid; grid-template-columns: 9rem 1fr 3.5rem; gap: .6rem; align-items: center; font-size: .9rem; margin: .35rem 0; }
.bar { height: 12px; background: var(--paper-2); position: relative; }
.bar i { position: absolute; inset: 0 auto 0 0; background: var(--cobalt); }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.milestones { list-style: none; padding: 0; margin: 0; }
.milestones li { display: grid; grid-template-columns: 26px 1fr auto; gap: .6rem; align-items: start; padding: .55rem 0; border-bottom: 1px solid var(--line-soft); margin: 0; }
.milestones .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); margin-top: 2px; }
.milestones .done .dot { background: var(--euc); border-color: var(--euc); }
.milestones .now .dot { border-color: var(--hivis); background: var(--hivis-tint); }
.progress { height: 10px; background: var(--paper-2); border: 1px solid var(--line); }
.progress i { display: block; height: 100%; background: var(--euc); }
.kanban { display: grid; gap: var(--sp4); grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); overflow-x: auto; padding-bottom: var(--sp3); }
.kcol { background: var(--surface); border: 1px solid var(--line); min-height: 200px; }
.kcol h3 { font: 700 .92rem var(--body); padding: .6rem .7rem; border-bottom: 1px solid var(--line); margin: 0; display: flex; justify-content: space-between; }
.kcol ul { list-style: none; padding: .5rem; margin: 0; display: grid; gap: .4rem; }
.kcol li { margin: 0; border: 1px solid var(--line); padding: .55rem .6rem; font-size: .88rem; background: var(--paper); }
.kcol li b { display: block; }
.kcol li select { min-height: 34px; padding: .2rem .4rem; font-size: .82rem; margin-top: .35rem; }
.drop { border: 2px dashed var(--line); padding: var(--sp5); text-align: center; background: var(--surface); }
.drop.over { border-color: var(--cobalt); background: var(--cobalt-tint); }
.pill { display: inline-block; padding: .15rem .5rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--concrete); white-space: nowrap; }
.p-high { background: #FBE7E5; color: var(--danger); } .p-med { background: #FFF4D6; color: #7A5300; } .p-low { background: var(--euc-tint); color: var(--euc); }
.c-yes { background: var(--euc-tint); color: var(--euc); } .c-no { background: #FBE7E5; color: var(--danger); } .c-unk { background: var(--concrete); color: var(--ink-2); }
.login { max-width: 460px; margin: var(--sp8) auto; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem var(--sp5); margin: 0; }
.dl dt { color: var(--ink-3); }
.dl dd { margin: 0; font-weight: 700; }

/* ---------- Print (quotes & reports) ---------- */
@media print {
  .hdr, .ftr, .notice-bar, .no-print, .toasts, .nav-toggle { display: none !important; }
  body { background: var(--surface); }
  .tool-out { background: var(--surface); color: #000; border-top: var(--bw) solid var(--frame); }
  .tool-out * { color: #000 !important; }
  .band { padding-block: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bs-svg .draw { stroke-dashoffset: 0; }
}

/* Flows inside dark bands keep light-surface text colours */
.band-night .flow, .band-night .flow li, .band-night .flow h3, .band-night .flow .t { color: var(--ink); }
.band-night .flow li small { color: var(--ink-3); }
.band-night .flow-pick button { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.band-night .flow-pick button[aria-pressed="true"] { background: var(--hivis); color: var(--ink); border-color: var(--hivis); }

/* Data tables inside apps keep controls usable */
.app .tbl-wrap table { min-width: 980px; }
.tbl-wrap select, .tbl-wrap input[type=date] { width: auto; min-width: 9.5rem; min-height: 40px; padding: .35rem .5rem; }
.app .tbl-wrap td .btn { white-space: nowrap; margin: .15rem 0; }

/* ---------- Theme-driven shape ---------- */
.btn { border-radius: var(--rb); }
.billing-toggle, .bs-chip, .chat-quick button, .ai-svc-nav button { border-radius: 999px; }
.tb, .plans, .panel, .tool, .tbl-wrap, .vs, .buildsheet, .flow, .kpis, .basket, .score-grid, .filters, .phero-meta, .ai-demo, .chat, .box, .tile, .pf-shot, .kcol, .form-ok, .note, .drop, .login, .bs-title { border-radius: var(--rc); }
.tb, .plans, .tool, .vs, .buildsheet, .flow, .kpis, .score-grid, .phero-meta, .ai-demo, .pf-shot, .basket { overflow: hidden; }
.plans, .tool, .panel, .buildsheet, .ai-demo, .basket, .tb, .vs { box-shadow: var(--shadow); }
.bs-title { border-radius: 0; }
.tile, .box, .kcol, .filters { border-color: var(--line); }
.note { border-left-width: 4px; }
.flow li, .kcol li { border-radius: calc(var(--r) * .6); }
.logo svg rect { stroke: currentColor; }
.logo-word span, .logo-word .acc { color: var(--cobalt); }
input[type=range] { accent-color: var(--cobalt); }
::selection { background: var(--hivis); color: var(--on-accent); }
:focus-visible { outline-color: var(--hivis); }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--hivis) 62% 92%, transparent 92%); }
[data-theme="midnight"] .hero h1 .hl, :root:not([data-theme]) .hero h1 .hl { background: linear-gradient(90deg, #A894FF, #2DD4BF); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="luxury"] .hero h1 .hl { background: none; font-style: italic; color: var(--cobalt); }
[data-theme="lime"] .hero h1 .hl { background: var(--hivis); padding: 0 .12em; border-radius: .18em; }
[data-theme="midnight"] .hdr, :root:not([data-theme]) .hdr { border-bottom-color: rgba(255,255,255,.06); }
.tag-demo { background: var(--hivis-tint); color: var(--hivis-ink); border: 1px solid transparent; }
.tag-ai { background: var(--cobalt-tint); color: var(--cobalt-ink); border: 1px solid transparent; }
.notice-bar { background: var(--night); }

/* ---------- Style panel (theme.js) ---------- */
.style-fab { position: fixed; left: 1rem; bottom: 1rem; z-index: 120; display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 .9rem var(--body); cursor: pointer; box-shadow: 0 12px 30px -12px rgba(0,0,0,.45); }
.style-fab svg { width: 18px; height: 18px; }
.style-panel { position: fixed; left: 1rem; bottom: 4.4rem; z-index: 121; width: min(1060px, calc(100vw - 2rem)); max-height: calc(100vh - 5.6rem); max-height: calc(100dvh - 5.6rem); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 80px -24px rgba(0,0,0,.55); padding: 1rem 1.25rem; font-size: .88rem; }
.style-panel h2 { font-size: 1.15rem; margin: 0; }
.style-panel h3 { font: 700 .78rem var(--body); color: var(--ink-3); margin: 0 0 .45rem; letter-spacing: .02em; }
.style-panel h3 + * { margin-top: 0; }
.sp-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.sp-head p { margin: .1rem 0 0; color: var(--ink-3); font-size: .82rem; }
.sp-close { width: 34px; height: 34px; flex: none; border: 1px solid var(--line); border-radius: 10px; background: none; color: var(--ink); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.sp-cols { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 0; margin-top: .8rem; }
.sp-col { padding: 0 1.1rem; border-left: 1px solid var(--line); min-width: 0; }
.sp-col:first-child { padding-left: 0; border-left: 0; }
.sp-col:last-child { padding-right: 0; }
.sp-col h3:not(:first-child) { margin-top: .8rem; }
.sp-presets { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.sp-preset { text-align: left; border: 2px solid var(--line); border-radius: 10px; background: var(--paper-2); padding: .35rem .45rem; cursor: pointer; color: var(--ink); font: 700 .8rem/1.2 var(--body); min-width: 0; }
.sp-preset small { display: block; font-weight: 400; color: var(--ink-3); font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-preset[aria-pressed="true"] { border-color: var(--cobalt); }
.sp-swatch { display: flex; gap: 2px; margin-bottom: .3rem; }
.sp-swatch i { flex: 1; height: 11px; border-radius: 3px; border: 1px solid rgba(0,0,0,.12); }
.sp-nav { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; }
.sp-nav label { display: grid; grid-template-columns: auto 1fr; gap: .1rem .4rem; align-items: start; border: 2px solid var(--line); border-radius: 10px; padding: .35rem .45rem; cursor: pointer; font-weight: 700; font-size: .8rem; line-height: 1.25; }
.sp-nav label:has(input:checked) { border-color: var(--cobalt); background: var(--cobalt-tint); }
.sp-nav input { margin: .1rem 0 0; accent-color: var(--cobalt); }
.sp-nav small { grid-column: 2; font-weight: 400; color: var(--ink-3); font-size: .72rem; }
.sp-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; margin: 0 0 .28rem; }
.sp-row input[type=color] { width: 40px; height: 26px; border: 1px solid var(--line); border-radius: 6px; padding: 1px; background: var(--surface); cursor: pointer; }
.sp-field { display: grid; gap: .15rem; margin: 0 0 .4rem; }
.sp-field select { min-height: 32px; padding: .2rem .5rem; width: 100%; font-size: .85rem; }
.sp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.sp-actions .btn { min-height: 36px; padding: .35rem .85rem; font-size: .84rem; }
.sp-actions .fine { margin: 0 0 0 auto; color: var(--ink-3); }
.sp-code { width: 100%; min-height: 96px; font: .76rem/1.4 ui-monospace, Menlo, monospace; margin-top: .5rem; }
.sp-import-row { display: flex; gap: .4rem; margin-top: .4rem; }
@media (max-width: 900px) {
  .sp-cols { grid-template-columns: 1fr 1fr; row-gap: .9rem; }
  .sp-col:nth-child(3) { grid-column: 1 / -1; border-left: 0; padding: .9rem 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.1rem; align-content: start; }
  .sp-col:nth-child(3) h3:not(:first-child) { margin-top: 0; }
  .sp-col:nth-child(2) { padding-right: 0; }
}
@media (max-width: 600px) {
  .style-panel { left: .5rem; right: .5rem; width: auto; bottom: 4rem; padding: .9rem; }
  .sp-cols { grid-template-columns: 1fr; }
  .sp-col, .sp-col:nth-child(2), .sp-col:nth-child(3) { grid-column: auto; border-left: 0; padding: .8rem 0 0; border-top: 1px solid var(--line); }
  .sp-col:first-child { padding-top: 0; border-top: 0; }
  .sp-col:nth-child(3) { display: block; }
  .sp-col:nth-child(3) h3:not(:first-child) { margin-top: .8rem; }
  .sp-actions .fine { margin-left: 0; width: 100%; }
}
@media print { .style-fab, .style-panel { display: none !important; } }

/* Mobile menu polish */
@media (max-width: 1120px) {
  .nav .mega { background: transparent; border-radius: 0; box-shadow: none; margin: 0 0 var(--sp3) .25rem; padding: 0 0 0 .9rem; border-left: 2px solid var(--line); }
  .nav .mega-foot { border-top: 0; padding-top: 0; }
  .nav a:hover, .nav button.nav-top:hover { background: transparent; color: var(--cobalt-ink); }
}
body.locked .style-fab, body.locked .style-panel { display: none !important; }

/* ---------- Navigation mode ----------
   <html data-nav="pages">  : menu items open their own pages (mega menus).
   <html data-nav="single"> : menu items scroll to sections of the home page.
   Both versions of each link are in the header; this shows one. */
.nav .nav-sec { display: none; }
[data-nav="single"] .nav .nav-pg { display: none; }
[data-nav="single"] .nav .nav-sec { display: block; }
.cat { display: grid; gap: var(--sp7); }
@media (min-width: 1000px) {
  .cat-home { grid-template-columns: 1fr 1fr; column-gap: var(--sp7); row-gap: var(--sp6); }
  .cat-home .ind-list { columns: 1; }
}
