/* ==========================================================================
   ABUP website stylesheet
   Themes: green (default) · red · brown · navy  → <html data-theme="...">
   All text/background pairs are chosen for WCAG 2.1 AA contrast (4.5:1 body, 3:1 large/UI).
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --font-head: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --primary: #1B5E20;
  --primary-700: #154a19;
  --primary-900: #0c2f10;
  --primary-100: #d8ead9;
  --primary-50: #eef6ee;
  --on-primary: #ffffff;

  --accent: #D4A62A;          /* gold: decorative + buttons with dark text */
  --accent-600: #b8890f;
  --accent-ink: #1f1700;      /* text on gold */
  --accent-50: #fbf4dc;

  --ink: #263238;             /* slate / charcoal from the brand brief */
  --ink-2: #37474f;
  --muted: #53646d;
  --line: #dde3e5;
  --bg: #ffffff;
  --bg-alt: #f4f7f6;
  --surface: #ffffff;

  --danger: #b3261e;
  --danger-bg: #fdecea;
  --success: #17692a;
  --success-bg: #e6f4ea;
  --warn: #7a4f00;
  --warn-bg: #fff4d6;
  --info: #0b4f9c;
  --info-bg: #e5f0fc;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 30, 35, .06), 0 1px 3px rgba(15, 30, 35, .08);
  --shadow-md: 0 4px 12px rgba(15, 30, 35, .08), 0 12px 32px rgba(15, 30, 35, .08);
  --container: 1200px;
}

[data-theme="red"] {
  --primary: #B71C1C; --primary-700: #8f1515; --primary-900: #4d0b0b;
  --primary-100: #f6d9d9; --primary-50: #fdf1f1;
}
[data-theme="brown"] {
  --primary: #4E342E; --primary-700: #3b2722; --primary-900: #1f130f;
  --primary-100: #e8ddd9; --primary-50: #f6f1ef;
  --accent: #CFA45A; --accent-50: #f8efdc;
}
[data-theme="navy"] {
  --primary: #0D3B8C; --primary-700: #0a2d6b; --primary-900: #061a3d;
  --primary-100: #d6e2f7; --primary-50: #eef3fc;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html:not(.js) [data-next], html:not(.js) [data-prev] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } } /* the off-canvas mobile menu must not widen the page */
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; color: var(--primary-900); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.05rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-700); }
img, svg { max-width: 100%; }
img { height: auto; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
ul, ol { padding-left: 1.3em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible { outline-color: #fff; }
.skip-link {
  position: absolute; left: 8px; top: -60px; background: #fff; color: var(--primary-900); padding: .6rem 1rem;
  border-radius: 6px; z-index: 1000; font-weight: 600; box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin-bottom: .6rem; }
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; background: var(--accent); border-radius: 2px; vertical-align: middle; margin-right: .6rem; }
.on-dark .eyebrow, .hero .eyebrow { color: #fff; }
.lead { font-size: 1.15rem; color: var(--ink-2); }

.i { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; flex: none; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack > * + * { margin-top: 1rem; }
.mt { margin-top: 1.25rem; } .mt-2 { margin-top: 2rem; } .mb { margin-bottom: 1.25rem; } .mb-0 { margin-bottom: 0; }

/* ---------- 3. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.25rem; border-radius: 8px; border: 2px solid transparent;
  font: 600 .95rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .1s;
  background: var(--bg-alt); color: var(--ink);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-700); color: #fff; }
.btn-gold { background: var(--accent); color: var(--accent-ink); }
.btn-gold:hover { background: var(--accent-600); color: var(--accent-ink); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary-900); }
.btn-light:hover { background: var(--primary-50); color: var(--primary-900); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-outline-light:hover { background: #fff; color: var(--primary-900); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #8c1d18; color: #fff; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-50); }
.btn-sm { padding: .45rem .8rem; font-size: .85rem; border-radius: 6px; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- 4. Forms ---------- */
.field { margin-bottom: 1.1rem; }
.field > label, .label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .35rem; color: var(--ink); }
.req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; padding: .7rem .85rem; font: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid #74848b; border-radius: 8px; transition: border-color .15s, box-shadow .15s;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.textarea { min-height: 7rem; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #66767d; opacity: 1; }
.textarea.tall { min-height: 16rem; }
.input[aria-invalid="true"], .has-error .input, .has-error .select, .has-error .textarea { border-color: var(--danger); }
.hint { font-size: .85rem; color: var(--muted); margin: .3rem 0 0; }
.error-text { font-size: .875rem; color: var(--danger); margin: .3rem 0 0; font-weight: 500; }
.form-grid { display: grid; gap: 0 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { margin-top: .3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--primary); flex: none; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem 1.25rem; margin: 0 0 1.25rem; min-width: 0; }
legend { font-weight: 700; padding: 0 .5rem; color: var(--primary-900); }
input[type="file"].input { padding: .5rem; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--primary); }

/* password field with show/hide eye (added by app.js to every input[type=password]) */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 3rem; }
.pw-toggle {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-2); border-radius: 6px; cursor: pointer;
}
.pw-toggle:hover { background: var(--primary-50); color: var(--primary); }
.pw-meter { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: .5rem; }
.pw-meter > span { display: block; height: 100%; width: 0; background: var(--danger); transition: width .25s, background .25s; }
.pw-meter-label { font-size: .82rem; color: var(--muted); margin-top: .25rem; }

/* ---------- 5. Alerts, badges, tables, cards ---------- */
.alert { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: var(--radius); border: 1px solid; margin-bottom: 1rem; font-size: .95rem; }
.alert .i { margin-top: .2rem; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: #b7dfc2; }
.alert-error   { background: var(--danger-bg);  color: var(--danger);  border-color: #f2b8b5; }
.alert-info    { background: var(--info-bg);    color: var(--info);    border-color: #b6d4f3; }
.alert-warning { background: var(--warn-bg);    color: var(--warn);    border-color: #ecd28c; }
.flash-wrap { position: relative; z-index: 5; padding-top: 1rem; }

.badge { display: inline-block; padding: .18rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.b-green { background: var(--success-bg); color: var(--success); }
.b-gold  { background: var(--warn-bg); color: var(--warn); }
.b-red   { background: var(--danger-bg); color: var(--danger); }
.b-blue  { background: var(--info-bg); color: var(--info); }
.b-grey  { background: #eceff1; color: #455a64; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: 1.5rem; }
.card-hover { transition: box-shadow .2s, transform .2s, border-color .2s; }
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--primary-100); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: .75rem 1rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { background: var(--bg-alt); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafcfb; }
.table .thumb { width: 44px; height: 58px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); display: block; }
.table .actions { white-space: nowrap; text-align: right; }
.table .actions form { display: inline; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty .i { width: 2.5rem; height: 2.5rem; color: var(--primary-100); stroke: var(--primary); opacity: .6; }

.breadcrumbs { font-size: .875rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs span[aria-hidden] { margin-inline: .4rem; }

.pagination { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span {
  min-width: 2.5rem; height: 2.5rem; display: grid; place-items: center; padding-inline: .6rem;
  border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; background: #fff;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination .gap { border: 0; background: transparent; }

.tabs { display: flex; gap: .25rem; border-bottom: 2px solid var(--line); margin-bottom: 1.75rem; overflow-x: auto; }
.tabs a, .tabs button {
  padding: .8rem 1.2rem; border: 0; background: transparent; font: 600 .95rem var(--font-body); color: var(--ink-2);
  text-decoration: none; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; display: inline-flex; gap: .5rem; align-items: center;
}
.tabs a:hover, .tabs button:hover { color: var(--primary); }
.tabs [aria-selected="true"], .tabs .active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel[hidden] { display: none; }

/* ---------- 6. Site header ---------- */
.topbar { background: var(--primary-900); color: #e8eeea; font-size: .84rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .row { gap: 1.25rem; }
.topbar .hide-sm { display: none; }
@media (min-width: 760px) { .topbar .hide-sm { display: inline-flex; } }

/* no backdrop-filter / transform here: either would make the fixed mobile drawer relative to the header instead of the screen */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-main { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--primary-900); flex: none; }
.brand-mark { width: 46px; height: 46px; border-radius: 10px; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: inset 0 -3px 0 var(--accent); }
.brand-mark .i { width: 26px; height: 26px; }
.brand-mark img { width: 46px; height: 46px; object-fit: contain; border-radius: 10px; }
/* uploaded logo (Settings → Appearance): keeps its own proportions, never wider than the menu allows */
.brand-logo { height: 46px; width: auto; max-width: clamp(112px, 11vw, 200px); object-fit: contain; object-position: left center; display: block; flex: none; }
.brand.has-logo { min-width: 0; }
/* with a logo, the long organisation name under the short name is dropped (the logo carries the identity) */
.brand.has-logo .brand-text span { display: none; }
/* on mid-size desktops there is only room for the logo; the short name returns on wider screens */
@media (min-width: 1181px) and (max-width: 1499px) { .site-header .brand.has-logo .brand-text { display: none; } }
@media (max-width: 480px) { .brand-logo { max-width: 150px; height: 40px; } }
/* on dark backgrounds the logo sits on a white tile so dark or transparent logos stay readable */
.site-footer .brand-logo, .dash-side .brand-logo { background: #fff; padding: 6px 10px; border-radius: 8px; height: auto; max-height: 64px; box-sizing: border-box; max-width: 100%; object-position: center; }
.dash-side .brand { display: block; padding-inline: 0; }
.dash-side .brand-logo { width: 100%; max-width: 100%; }
.site-footer .brand { flex-wrap: wrap; }
.dash-head .brand { min-width: 0; flex: 1; }
@media (max-width: 959px) { .dash-side .brand-logo { width: auto; max-width: 70%; } }
.logo-preview { display: inline-flex; align-items: center; gap: .75rem; background: repeating-conic-gradient(#eef1f2 0 25%, #fff 0 50%) 50% / 16px 16px; border: 1px solid var(--line); border-radius: 10px; padding: .75rem 1rem; margin-bottom: .6rem; }
.logo-preview img { max-height: 64px; max-width: 260px; width: auto; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.35rem; letter-spacing: .02em; }
.brand-text span { font-size: .64rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; max-width: 12.5rem; }
@media (max-width: 480px) { .brand-text span { display: none; } }

.main-nav { margin-left: auto; }
.main-nav > ul { list-style: none; display: flex; gap: .15rem; margin: 0; padding: 0; align-items: center; }
.main-nav a.nav-link, .main-nav .nav-btn {
  display: inline-flex; align-items: center; gap: .25rem; padding: .55rem .6rem; border-radius: 8px; font: 600 .9rem var(--font-body);
  color: var(--ink); text-decoration: none; background: transparent; border: 0; cursor: pointer; white-space: nowrap;
}
.main-nav a.nav-link:hover, .main-nav .nav-btn:hover, .main-nav .has-sub:focus-within > .nav-btn { background: var(--primary-50); color: var(--primary); }
.main-nav a.nav-link[aria-current="page"], .main-nav .nav-btn.current { color: var(--primary); box-shadow: inset 0 -3px 0 var(--accent); border-radius: 0; }
.has-sub { position: relative; }
.sub-menu {
  list-style: none; margin: 0; padding: .5rem; position: absolute; left: 0; top: 100%; min-width: 15rem; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); display: none;
}
.has-sub:hover > .sub-menu, .has-sub.open > .sub-menu, .has-sub:focus-within > .sub-menu { display: block; }
.sub-menu a { display: block; padding: .55rem .8rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.sub-menu a:hover { background: var(--primary-50); color: var(--primary); }
.header-tools { display: flex; align-items: center; gap: .4rem; flex: none; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--primary-50); color: var(--primary); }
.icon-btn .count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 800; display: grid; place-items: center; padding-inline: 4px; }
.menu-toggle { display: none; }
.site-header > .header-main { max-width: 1360px; }   /* the menu bar is a little wider than page content so the Log in button fits */
.nav-account-item { display: none; }
.header-login { white-space: nowrap; }
/* on mid-size desktops show the short brand so the full menu + Log in + Get a Quote always fit on one line */
@media (min-width: 1181px) and (max-width: 1439px) { .site-header .brand-text span { display: none; } }
/* long menu labels ("Clients & Partners") only when there is room; the slide-out menu always shows them */
@media (min-width: 1181px) and (max-width: 1599px) { .nav-long { display: none; } }
@media (min-width: 1600px) { .site-header > .header-main { max-width: 1540px; } }
/* a little tighter between 1181 and 1360px so the signed-in "Dashboard" button also fits comfortably */
@media (min-width: 1181px) and (max-width: 1360px) {
  .main-nav a.nav-link, .main-nav .nav-btn { padding-inline: .42rem; font-size: .88rem; }
  .header-main { gap: .6rem; }
  .header-tools { gap: .25rem; }
}
.search-bar { background: var(--primary-50); border-bottom: 1px solid var(--line); }
.search-bar[hidden] { display: none; }
.search-form { display: flex; gap: .5rem; padding-block: .9rem; }
.search-form .input { border-color: var(--primary); }

.theme-menu { position: relative; }
.theme-pop { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: .85rem; width: 15.5rem; z-index: 120; }
.theme-pop[hidden] { display: none; }
.theme-pop h2 { font: 700 .8rem var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .5rem; }
.theme-opt { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .5rem .55rem; border: 0; background: transparent; border-radius: 8px; cursor: pointer; font: 600 .92rem var(--font-body); color: var(--ink); text-align: left; }
.theme-opt:hover { background: var(--bg-alt); }
.theme-opt .swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #9aa8ae; flex: none; }
.theme-opt[aria-checked="true"] { background: var(--primary-50); }
.theme-opt[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--primary); font-weight: 800; }
.topbar .theme-btn { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; padding: .15rem .65rem; border-radius: 999px; font: 600 .8rem var(--font-body); cursor: pointer; display: inline-flex; gap: .4rem; align-items: center; }
.topbar .theme-btn:hover { background: rgba(255,255,255,.12); }

@media (max-width: 1180px) {
  .menu-toggle { display: grid; }
  .main-nav { position: fixed; inset: 0 0 0 auto; width: min(21rem, 90vw); background: #fff; transform: translateX(105%); transition: transform .25s; padding: 4.5rem 1rem 1.5rem; overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,.2); margin: 0; z-index: 130; visibility: hidden; }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .main-nav a.nav-link, .main-nav .nav-btn { width: 100%; padding: .85rem .9rem; font-size: 1rem; justify-content: space-between; }
  .main-nav a.nav-link[aria-current="page"], .main-nav .nav-btn.current { box-shadow: none; background: var(--primary-50); border-radius: 8px; }
  .sub-menu { position: static; display: none; box-shadow: none; border: 0; padding: 0 0 .4rem 1rem; min-width: 0; }
  .has-sub:hover > .sub-menu { display: none; }
  .has-sub.open > .sub-menu { display: block; }
  .nav-close { position: absolute; top: .8rem; right: .8rem; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 95; }
  .nav-scrim[hidden] { display: none; }
  .header-cta, .header-login { display: none; }
  .nav-account-item { display: block; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); }
  .main-nav a.nav-account { background: var(--primary); color: #fff; justify-content: center; font-size: 1.02rem; }
  .main-nav a.nav-account:hover { background: var(--primary-700); color: #fff; }
}
@media (min-width: 1181px) { .nav-close, .nav-scrim { display: none; } }

/* ---------- 7. Hero & stats ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(255,255,255,.12), transparent 60%),
    linear-gradient(135deg, var(--primary-900), var(--primary) 70%);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(5.5rem, 10vw, 8rem);
}
.hero::before { content: ""; position: absolute; inset: 0; opacity: .08; background-image: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 22px), repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 22px); pointer-events: none; }
.hero .container { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 920px) { .hero .container { grid-template-columns: 1.15fr .85fr; } }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin-bottom: 1rem; }
.hero .lead { color: #e6efe8; max-width: 38rem; }
.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.75rem; }
.hero-chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.5rem; font-size: .85rem; }
.hero-chips span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); padding: .25rem .75rem; border-radius: 999px; }
.hero-books { position: relative; height: 340px; display: none; }
@media (min-width: 920px) { .hero-books { display: block; } }
.hero-books a { position: absolute; width: 190px; aspect-ratio: 3/4; border-radius: 6px 10px 10px 6px; box-shadow: 0 18px 40px rgba(0,0,0,.45); overflow: hidden; transition: transform .3s; border: 0; background: #fff; }
.hero-books a img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-books a:nth-child(1) { left: 2%;  top: 38px; transform: rotate(-7deg); z-index: 1; }
.hero-books a:nth-child(2) { left: 30%; top: 0;    transform: rotate(2deg);  z-index: 3; width: 210px; }
.hero-books a:nth-child(3) { right: 0;  top: 52px; transform: rotate(8deg);  z-index: 2; }
.hero-books a:hover { transform: translateY(-8px) rotate(0); z-index: 5; }

.stats { position: relative; margin-top: -4rem; z-index: 2; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border: 1px solid var(--line); overflow: hidden; }
@media (min-width: 820px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 1.5rem 1.25rem; text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
@media (min-width: 820px) { .stat { border-bottom: 0; } .stat:nth-child(2n) { border-right: 1px solid var(--line); } .stat:last-child { border-right: 0; } }
.stat-num { font-family: var(--font-head); font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 900; color: var(--primary); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-label { font-size: .88rem; color: var(--ink-2); margin-top: .35rem; }

/* page banner for inner pages */
.page-hero { background: linear-gradient(135deg, var(--primary-900), var(--primary)); color: #fff; padding-block: clamp(2rem, 5vw, 3.5rem); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .07; background-image: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 22px); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: .4rem; }
.page-hero p { color: #e6efe8; max-width: 44rem; margin-bottom: 0; }
.page-hero .breadcrumbs, .page-hero .breadcrumbs a { color: #d5e3d8; }

/* ---------- 8. Services ---------- */
.service-card { padding: 1.6rem; display: flex; flex-direction: column; gap: .5rem; height: 100%; text-decoration: none; color: inherit; }
.service-icon { width: 54px; height: 54px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; margin-bottom: .6rem; }
.service-icon .i { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: .2rem; }
.service-card p { color: var(--ink-2); margin: 0; flex: 1; }
.service-card .more { color: var(--primary); font-weight: 600; margin-top: .6rem; display: inline-flex; gap: .4rem; align-items: center; }
.service-card:hover .more .i { transform: translateX(4px); }
.service-card .more .i { transition: transform .2s; }
.rich { max-width: 46rem; }
.rich h3 { margin-top: 1.8rem; }
.rich ul, .rich ol { margin-bottom: 1.2rem; }
.rich li { margin-bottom: .35rem; }
.lead-cta { margin-top: 2rem; display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- 9. Publications ---------- */
.pub-layout { display: grid; gap: 1.75rem; }
@media (min-width: 960px) { .pub-layout { grid-template-columns: 270px 1fr; align-items: start; } }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; }
@media (min-width: 960px) { .filters { position: sticky; top: 92px; } }
.filters h2 { font: 700 1rem var(--font-body); margin: 0 0 1rem; display: flex; justify-content: space-between; align-items: center; }
.filter-group { border-top: 1px solid var(--line); padding-block: .9rem; }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group > .label { margin-bottom: .55rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.facet { display: flex; align-items: center; gap: .55rem; padding: .22rem 0; font-size: .93rem; cursor: pointer; }
.facet input { width: 1.05rem; height: 1.05rem; }
.facet .n { margin-left: auto; font-size: .78rem; color: var(--muted); background: var(--bg-alt); border-radius: 999px; padding: 0 .5rem; }
.filters-toggle { display: flex; }
@media (min-width: 960px) { .filters-toggle { display: none; } .filters-body { display: block !important; } }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.active-filters { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--primary-50); color: var(--primary-900); border: 1px solid var(--primary-100); border-radius: 999px; padding: .2rem .7rem; font-size: .83rem; text-decoration: none; font-weight: 600; }
.chip:hover { background: var(--primary-100); }
.chip-btn { cursor: pointer; font-family: inherit; }
.chip-btn[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }

.pub-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.pub-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: box-shadow .2s, transform .2s; position: relative; }
.pub-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.pub-cover { display: block; background: var(--bg-alt); padding: 1.1rem 1.1rem .4rem; text-align: center; position: relative; }
.pub-cover img { width: 70%; max-width: 170px; aspect-ratio: 3/4; object-fit: cover; border-radius: 3px 6px 6px 3px; box-shadow: 0 8px 22px rgba(0,0,0,.22); display: inline-block; }
.pub-ribbon { position: absolute; top: .6rem; left: .6rem; background: var(--accent); color: var(--accent-ink); font-size: .68rem; font-weight: 800; padding: .15rem .5rem; border-radius: 4px; letter-spacing: .05em; text-transform: uppercase; }
.pub-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.pub-cat { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.pub-title { font: 700 1.02rem/1.3 var(--font-head); margin: 0; }
.pub-title a { color: var(--primary-900); text-decoration: none; }
.pub-title a:hover { color: var(--primary); text-decoration: underline; }
.pub-author { color: var(--ink-2); font-size: .9rem; margin: 0; }
.pub-meta { font-size: .8rem; color: var(--muted); margin: 0; }
.format-tags { display: flex; gap: .3rem; flex-wrap: wrap; margin-block: .25rem; }
.format-tags span { font-size: .7rem; font-weight: 700; padding: .1rem .5rem; border: 1px solid var(--primary-100); color: var(--primary-900); border-radius: 4px; background: var(--primary-50); }
.pub-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-top: auto; padding-top: .6rem; }
.pub-actions .btn { padding: .5rem .5rem; font-size: .8rem; }
.pub-actions .full { grid-column: 1 / -1; }
.pub-view-list .pub-grid { grid-template-columns: 1fr; }
.pub-view-list .pub-card { flex-direction: row; }
.pub-view-list .pub-cover { width: 170px; flex: none; display: grid; place-items: center; }

dialog.modal { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(760px, calc(100% - 24px)); max-height: calc(100vh - 32px); box-shadow: 0 30px 80px rgba(0,0,0,.4); color: var(--ink); }
dialog.modal::backdrop { background: rgba(10, 20, 15, .6); backdrop-filter: blur(2px); }
.modal-inner { display: grid; gap: 1.5rem; padding: 1.5rem; overflow-y: auto; max-height: calc(100vh - 32px); }
@media (min-width: 640px) { .modal-inner { grid-template-columns: 200px 1fr; } }
.modal-cover img { width: 100%; max-width: 200px; border-radius: 4px 8px 8px 4px; box-shadow: 0 10px 28px rgba(0,0,0,.28); }
.modal-close { position: absolute; top: .7rem; right: .7rem; z-index: 2; }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; font-size: .9rem; margin: 1rem 0; }
.meta-list dt { color: var(--muted); font-weight: 600; }
.meta-list dd { margin: 0; }
.modal-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.doc-list { display: grid; gap: .9rem; }
.doc-item { display: flex; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; }
.doc-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex: none; }
.doc-icon .i { width: 24px; height: 24px; }
.doc-info { flex: 1; min-width: 0; }
.doc-info h3 { font: 700 1rem var(--font-body); margin: 0 0 .15rem; }
.doc-info p { margin: 0; font-size: .9rem; color: var(--ink-2); }
.doc-kind { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); }
@media (max-width: 560px) { .doc-item { flex-wrap: wrap; } .doc-item .btn { width: 100%; } }

/* ---------- 10. Equipment / floor tour ---------- */
.tour { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-sm); }
.tour-flow { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); position: relative; }
.tour-stop {
  position: relative; text-align: center; padding: 1.1rem .75rem; border-radius: 14px; background: var(--bg-alt); border: 2px solid transparent; cursor: pointer;
  font: inherit; color: var(--ink); transition: .2s;
}
.tour-stop:hover { border-color: var(--primary-100); background: var(--primary-50); }
.tour-stop[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow-md); }
.tour-stop .tour-ico { width: 54px; height: 54px; margin: 0 auto .5rem; border-radius: 50%; background: #fff; color: var(--primary); display: grid; place-items: center; }
.tour-stop .tour-ico .i { width: 28px; height: 28px; }
.tour-stop strong { display: block; font-size: .98rem; }
.tour-stop small { display: block; opacity: .85; font-size: .8rem; margin-top: .1rem; }
.tour-stop .step-n { position: absolute; top: .5rem; left: .65rem; font-weight: 800; font-size: .78rem; opacity: .6; }
@media (min-width: 760px) {
  .tour-stop:not(:last-child)::after { content: ""; position: absolute; right: -.75rem; top: 50%; width: .75rem; height: 3px; background: var(--primary-100); transform: translateY(-50%); }
}
.machine-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.machine { padding: 1.35rem; display: flex; flex-direction: column; gap: .4rem; }
.machine[hidden] { display: none; }
.machine-top { display: flex; gap: .9rem; align-items: center; }
.machine-ico { width: 52px; height: 52px; border-radius: 12px; background: var(--primary); color: #fff; display: grid; place-items: center; flex: none; }
.machine-ico .i { width: 26px; height: 26px; }
.machine h3 { margin: 0; font-size: 1.05rem; }
.machine .stage-tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.machine .cap { display: inline-flex; gap: .4rem; align-items: center; background: var(--accent-50); color: var(--accent-ink); font-weight: 700; font-size: .85rem; padding: .3rem .7rem; border-radius: 8px; align-self: flex-start; margin-top: .25rem; }
.machine img { border-radius: 8px; width: 100%; aspect-ratio: 16/10; object-fit: cover; margin-bottom: .4rem; }
.power { display: grid; gap: 1.5rem; padding: 1.75rem; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--primary-900), var(--primary)); color: #fff; }
@media (min-width: 760px) { .power { grid-template-columns: auto 1fr; align-items: center; } }
.power h2, .power h3 { color: #fff; margin-bottom: .4rem; }
.power p { color: #e6efe8; margin: 0; }
.power-badge { width: 112px; height: 112px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; text-align: center; font-weight: 800; line-height: 1.1; box-shadow: 0 0 0 6px rgba(255,255,255,.18); }
.power-badge .i { width: 34px; height: 34px; display: block; margin: 0 auto 2px; }
.power-badge span { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.gen-list { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
.gen-list span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: .3rem .85rem; font-size: .88rem; font-weight: 600; }

/* ---------- 11. Clients & trust ---------- */
.compliance { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.comp-badge { display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.comp-badge .i { width: 30px; height: 30px; color: var(--success); }
.comp-badge strong { display: block; font-size: 1rem; color: var(--primary-900); line-height: 1.2; }
.comp-badge span { font-size: .8rem; color: var(--ink-2); line-height: 1.3; display: block; }
.marquee { overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 1.25rem; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track, .marquee.paused .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(calc(-50% - .625rem)); } }
.logo-tile { display: flex; align-items: center; gap: .8rem; padding: .85rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; min-width: 250px; text-decoration: none; color: var(--ink); }
.logo-tile img { width: 48px; height: 48px; object-fit: contain; flex: none; border-radius: 8px; }
.logo-tile span { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.client-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.client-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .7rem; padding: 1.5rem 1rem; }
.client-card img { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; }
.client-card strong { font-size: .98rem; line-height: 1.3; }
.slider-ctl { display: inline-flex; align-items: center; gap: .4rem; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font: 600 .82rem var(--font-body); cursor: pointer; color: var(--ink-2); }

/* ---------- 12. Quote wizard ---------- */
.wizard { display: grid; gap: 2rem; }
@media (min-width: 900px) { .wizard { grid-template-columns: 280px 1fr; align-items: start; } }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: .5rem; overflow-x: auto; counter-reset: s; }
@media (min-width: 900px) { .steps { flex-direction: column; gap: .25rem; position: sticky; top: 100px; } }
.steps li { counter-increment: s; display: flex; gap: .75rem; align-items: center; padding: .7rem .9rem; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: var(--ink-2); font-size: .82rem; font-weight: 800; flex: none; }
.steps li.active { color: var(--primary-900); background: var(--primary-50); }
.steps li.active::before { background: var(--primary); color: #fff; }
.steps li.done { color: var(--ink-2); }
.steps li.done::before { content: "✓"; background: var(--success); color: #fff; }
.wizard-panel { padding: clamp(1.25rem, 3vw, 2rem); }
.wizard-progress { height: 6px; background: var(--line); border-radius: 3px; margin-bottom: 1.5rem; overflow: hidden; }
.wizard-progress span { display: block; height: 100%; background: var(--primary); width: 0; transition: width .3s; }
.js .wizard-step { display: none; }
.js .wizard-step.active { display: block; animation: fadeUp .3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.option-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; width: 100%; height: 100%; margin: 0; }
.option label { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; height: 100%; transition: .15s; }
.option label .i { width: 26px; height: 26px; color: var(--primary); margin-top: .1rem; }
.option label strong { display: block; font-size: .98rem; }
.option label small { color: var(--muted); display: block; line-height: 1.35; }
.option input:checked + label { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 3px var(--primary-100); }
.option input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: 2px; }
.wizard-nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.summary-list { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.25rem; margin: 0; }
.summary-list dt { color: var(--muted); font-weight: 600; font-size: .9rem; }
.summary-list dd { margin: 0; font-weight: 500; }
.estimate-box { background: var(--accent-50); border: 1px solid var(--accent); border-radius: 12px; padding: 1.1rem 1.25rem; margin-top: 1.25rem; }
.estimate-box strong { font: 900 1.7rem var(--font-head); color: var(--primary-900); display: block; }
.estimate-box[hidden] { display: none; }

/* ---------- 13. Content pages, contact ---------- */
.contact-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.25fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: .9rem; }
.contact-list .ic { width: 44px; height: 44px; border-radius: 10px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex: none; }
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-list a { color: var(--ink); font-weight: 600; }
.about-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.person { text-align: center; padding: 1.5rem 1rem; }
.avatar { width: 84px; height: 84px; border-radius: 50%; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; font: 800 1.5rem var(--font-head); margin: 0 auto .8rem; overflow: hidden; border: 3px solid var(--primary-100); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 1.05rem; margin-bottom: .1rem; }
.person p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.cta-band { background: linear-gradient(135deg, var(--primary-900), var(--primary)); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 3rem); display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: #e6efe8; margin: 0; }
.cart-table img { width: 52px; height: 70px; object-fit: cover; border-radius: 4px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid #74848b; border-radius: 8px; overflow: hidden; background: #fff; }
.qty input { width: 3.2rem; text-align: center; border: 0; font: inherit; padding: .45rem 0; background: transparent; }
.qty button { width: 2.2rem; height: 2.4rem; border: 0; background: var(--bg-alt); cursor: pointer; font-size: 1.1rem; color: var(--ink); }
.qty button:hover { background: var(--primary-50); }
.order-summary { padding: 1.5rem; position: sticky; top: 100px; }
.sum-row { display: flex; justify-content: space-between; padding: .45rem 0; }
.sum-row.total { border-top: 2px solid var(--line); margin-top: .5rem; padding-top: .9rem; font-weight: 800; font-size: 1.15rem; }
.checkout-grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.timeline li { display: flex; gap: .8rem; align-items: center; color: var(--muted); }
.timeline li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--line); background: #fff; flex: none; }
.timeline li.done { color: var(--ink); font-weight: 600; }
.timeline li.done::before { background: var(--primary); border-color: var(--primary-100); }
.auth-wrap { max-width: 460px; margin: clamp(2rem, 6vw, 4rem) auto; }
.auth-wrap .card { padding: clamp(1.5rem, 4vw, 2.25rem); }

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--primary-900); color: #dbe5de; margin-top: 4rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; padding-block: 3.25rem 2.25rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.site-footer h2 { color: #fff; font: 700 .85rem var(--font-body); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.site-footer li { font-size: .93rem; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand-text span { color: #b9c9be; }
.site-footer .brand-mark { background: #fff; color: var(--primary); }
.footer-contact li { display: flex; gap: .65rem; align-items: flex-start; }
.footer-contact .i { margin-top: .25rem; color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-block: 1.25rem; font-size: .85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #b9c9be; }
.footer-bottom a { color: #fff; }
.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; box-shadow: var(--shadow-md); cursor: pointer; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; transform: translateY(8px); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top .i { transform: rotate(-90deg); }
.social { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.social a { padding: .3rem .8rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: .82rem; text-decoration: none; }
.social a:hover { background: rgba(255,255,255,.14); }

/* ---------- 15. Scroll reveal (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 16. Installer ---------- */
.install-body { background: var(--bg-alt); min-height: 100vh; }
.install-shell { max-width: 880px; margin: 0 auto; padding: 1.5rem 16px 4rem; }
.install-brand { display: flex; align-items: center; justify-content: center; gap: .8rem; margin: 1.5rem 0; }
.install-steps { list-style: none; display: flex; justify-content: space-between; gap: .25rem; padding: 0; margin: 0 0 1.5rem; counter-reset: i; }
.install-steps li { flex: 1; text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); counter-increment: i; position: relative; }
.install-steps li::before { content: counter(i); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--line); margin: 0 auto .35rem; color: var(--ink-2); position: relative; z-index: 1; }
.install-steps li::after { content: ""; position: absolute; top: 15px; left: calc(50% + 18px); right: calc(-50% + 18px); height: 2px; background: var(--line); }
.install-steps li:last-child::after { display: none; }
.install-steps li.active { color: var(--primary-900); }
.install-steps li.active::before { background: var(--primary); border-color: var(--primary); color: #fff; }
.install-steps li.done::before { content: "✓"; background: var(--success); border-color: var(--success); color: #fff; }
.install-steps li.done::after { background: var(--success); }
.install-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(1.25rem, 4vw, 2.25rem); }
.install-card h1 { font-size: 1.6rem; }
.req-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.req-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .65rem .85rem; border-radius: 8px; background: var(--bg-alt); font-size: .94rem; }
.req-list .ok .i { color: var(--success); }
.req-list .bad .i { color: var(--danger); }
.req-list .warn .i { color: var(--warn); }
.req-list small { display: block; color: var(--muted); }
.greeting { font: 900 1.05rem var(--font-head); color: var(--primary); min-height: 1.6em; }
.theme-picker { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.theme-card { position: relative; }
.theme-card input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.theme-card label { display: block; border: 2px solid var(--line); border-radius: 12px; padding: .7rem; background: #fff; cursor: pointer; }
.theme-card .preview { height: 54px; border-radius: 8px; margin-bottom: .55rem; display: flex; align-items: flex-end; padding: 6px; gap: 4px; }
.theme-card .preview i { display: block; width: 26px; height: 14px; border-radius: 3px; background: rgba(255,255,255,.85); }
.theme-card .preview i:nth-child(2) { background: #D4A62A; }
.theme-card strong { font-size: .9rem; }
.theme-card input:checked + label { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.theme-card input:focus-visible + label { outline: 3px solid var(--primary); outline-offset: 2px; }
.install-actions { display: flex; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.test-result { margin-top: .75rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .4rem 1.25rem; margin: 1rem 0; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; word-break: break-word; }

/* ---------- 17. Account & admin layouts ---------- */
.dash { display: grid; min-height: 100vh; background: var(--bg-alt); }
@media (min-width: 960px) { .dash { grid-template-columns: 260px 1fr; } }
.dash-side { background: var(--primary-900); color: #dbe5de; padding: 1.25rem 1rem 2rem; }
@media (min-width: 960px) { .dash-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.dash-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.dash-toggle { display: none; align-items: center; gap: .4rem; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; padding: .45rem .8rem; font: 600 .9rem var(--font-body); cursor: pointer; }
.dash-toggle:hover { background: rgba(255,255,255,.12); }
@media (max-width: 959px) {
  .dash-toggle { display: inline-flex; }
  .dash-head { margin-bottom: 0; }
  .dash-menu { display: none; margin-top: 1rem; }
  .dash-side.open .dash-menu { display: block; }
}
.dash-side .brand { color: #fff; padding-inline: .5rem; }
.dash-side .brand-text span { color: #b9c9be; }
.dash-side .brand-mark { background: #fff; color: var(--primary); }
.dash-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.dash-nav .group { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #9fb4a6; margin: 1.1rem .6rem .35rem; font-weight: 700; }
.dash-nav a { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: 8px; color: #e4ece6; text-decoration: none; font-size: .93rem; font-weight: 500; }
.dash-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.dash-nav a[aria-current="page"] { background: #fff; color: var(--primary-900); font-weight: 700; }
.dash-nav .pill { margin-left: auto; background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: .7rem; font-weight: 800; padding: 0 .5rem; min-width: 1.4rem; text-align: center; }
.dash-main { padding: 1.25rem; min-width: 0; }
@media (min-width: 960px) { .dash-main { padding: 2rem 2.25rem 4rem; } }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.dash-top h1 { font-size: 1.6rem; margin: 0; }
.stat-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 1.5rem; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; display: flex; gap: .9rem; align-items: center; text-decoration: none; color: inherit; }
a.stat-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.stat-card .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex: none; }
.stat-card .ic.warn { background: var(--warn-bg); color: var(--warn); }
.stat-card strong { display: block; font: 800 1.55rem/1.1 var(--font-head); color: var(--primary-900); }
.stat-card span { font-size: .82rem; color: var(--ink-2); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.35rem; margin-bottom: 1.5rem; }
.panel h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.toolbar form { display: flex; gap: .5rem; flex-wrap: wrap; }
.toolbar .input, .toolbar .select { width: auto; min-width: 12rem; padding: .5rem .75rem; }
.bar-chart { display: flex; align-items: flex-end; gap: .6rem; height: 150px; padding-top: .5rem; }
.bar-chart .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: .3rem; font-size: .75rem; color: var(--muted); }
.bar-chart .bar span { display: block; width: 100%; background: var(--primary); border-radius: 6px 6px 0 0; min-height: 3px; }
.current-file { display: flex; gap: .75rem; align-items: center; background: var(--bg-alt); border-radius: 8px; padding: .5rem .75rem; margin-bottom: .5rem; font-size: .9rem; }
.current-file img { width: 40px; height: 54px; object-fit: cover; border-radius: 4px; }
.detail-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1000px) { .detail-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }

/* ---------- 18. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .topbar, .site-header, .site-footer, .to-top, .hero-cta, .btn, .dash-side, .search-bar { display: none !important; }
  body { color: #000; }
  a { color: #000; text-decoration: none; }
  .dash { display: block; }
}
