/* hbadmin.org - site styles. Screens use wf.css (scoped under .wf).
   Look: SLDS 2 Cosmos tokens (blue #066AFE, system font, soft greys), HB family calm. */

:root {
  --bg: #ffffff;
  --wash: #f3f5f9;
  --surface: #ffffff;
  --ink: #181c24;
  --muted: #4a5363;
  --rule: #d8dde6;
  --accent: #066afe;
  --accent-ink: #ffffff;
  --link: #0250d9;
  --focus: #0250d9;
  --ok: #146c43;
  --shadow: 0 1px 2px rgba(23, 43, 77, 0.06), 0 12px 32px -16px rgba(23, 43, 77, 0.22);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* wf.css reads these for the area around a mockup */
  --hb-surface: var(--bg);
  --hb-rule: var(--rule);
  --hb-ink: var(--ink);
  --hb-muted: var(--muted);
  --hb-wash: var(--wash);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10151d;
    --wash: #161d28;
    --surface: #1a2230;
    --ink: #eef2f7;
    --muted: #b2bccb;
    --rule: #2e394b;
    --accent: #2f7dff;
    --accent-ink: #ffffff;
    --link: #8ab8ff;
    --focus: #8ab8ff;
    --ok: #5fd39a;
    --shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 16px 36px -20px rgba(0, 0, 0, 0.8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.25rem, 5.4vw, 3.75rem); letter-spacing: -0.025em; font-weight: 750; max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 720; }
h3 { font-size: 1.15rem; font-weight: 680; }
p { margin: 0 0 1em; }
.small { font-size: 0.94rem; color: var(--muted); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--surface); border: 2px solid var(--focus); border-radius: 8px; }
.skip:focus { top: 12px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.wrap--wide { width: min(1280px, 100% - 32px); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.top-in { width: min(1200px, 100% - 40px); margin-inline: auto; display: flex; align-items: center; gap: 12px 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand .logo { width: 30px; height: 30px; }
.brand-name { font-weight: 760; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand-tag { font-size: 0.8rem; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--rule); line-height: 1.2; }
.nav { margin-left: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 0.97rem; white-space: nowrap; }
.nav a:hover { background: var(--wash); }
.nav a[aria-current="page"] { color: var(--link); font-weight: 650; }
.lang { flex: none; padding: 7px 12px; border: 1px solid var(--rule); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: 0.94rem; }
.lang:hover { border-color: var(--muted); }
@media (max-width: 980px) {
  .top { position: static; }
  html { scroll-padding-top: 16px; }
  .top-in { flex-wrap: wrap; padding-top: 10px; }
  .lang { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0 -8px; }
  .nav ul { flex-wrap: wrap; gap: 0 2px; padding-bottom: 6px; }
  .nav a { padding: 8px 10px; }
}
@media (max-width: 520px) {
  .brand { display: grid; grid-template-columns: auto auto; column-gap: 10px; }
  .brand .logo { grid-row: span 2; }
  .brand-tag { padding-left: 0; border-left: 0; font-size: 0.76rem; }
  .nav a { font-size: 0.94rem; padding: 8px 9px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 20px; border-radius: 10px; border: 1px solid var(--rule); background: var(--surface); color: var(--ink); font-weight: 650; text-decoration: none; }
.btn:hover { border-color: var(--muted); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #0250d9; border-color: #0250d9; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; background:
  radial-gradient(1000px 420px at 85% -10%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
  radial-gradient(800px 380px at 0% 0%, color-mix(in srgb, #7a5cff 9%, transparent), transparent 70%); }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 5px 12px; border-radius: 999px; background: var(--wash); border: 1px solid var(--rule); font-size: 0.94rem; font-weight: 600; color: var(--ink); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #dd7a01; box-shadow: 0 0 0 3px color-mix(in srgb, #dd7a01 25%, transparent); }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.note { margin-top: 18px; font-size: 0.97rem; color: var(--muted); }
.hero-shot { margin-top: clamp(32px, 5vw, 56px); padding-bottom: 8px; }

/* ---------- bands ---------- */
.band { padding: clamp(56px, 8vw, 96px) 0; }
.band--wash { background: var(--wash); }
.sub { color: var(--muted); font-size: 1.1rem; max-width: 64ch; margin-bottom: 28px; }

/* steps: tabs when JS runs, a plain list without it */
.step-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.step-tab { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); color: var(--ink); font: 650 1.02rem/1.2 var(--font); cursor: pointer; text-align: left; }
.step-tab:hover { border-color: var(--muted); }
.step-tab[aria-selected="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.step-n { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.95rem; font-weight: 750; }
.step { margin-bottom: 40px; }
.step-h { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.step-t { max-width: 72ch; }
.has-tabs .step { margin-bottom: 0; }
.has-tabs .step-h { display: none; }
.has-tabs .step[hidden] { display: none; }
@media (max-width: 640px) {
  .step-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* features */
.features { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.features li { padding-top: 18px; border-top: 2px solid var(--accent); }
.features p { color: var(--muted); margin: 0; }
.later { margin-top: 40px; padding: 20px 24px; border: 1px dashed var(--muted); border-radius: var(--radius); max-width: 760px; }
.later p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; gap: 24px; } }

/* gallery teaser */
.thumbs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.thumb { display: block; color: var(--ink); text-decoration: none; border-radius: var(--radius); }
.thumb .shot-frame { height: clamp(150px, 17vw, 210px); overflow: hidden; border-radius: 12px; border: 1px solid var(--rule); }
.thumb:hover .shot-frame { border-color: var(--accent); }
.thumb-cap { display: block; padding: 10px 2px 0; font-weight: 600; }
.thumb-cap b { color: var(--muted); font-weight: 700; margin-right: 6px; }
@media (max-width: 860px) { .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .thumbs { grid-template-columns: 1fr; } }

/* status + access */
.two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 0 0 14px 32px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--muted); }
.access { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.access .cta-row { margin-top: 8px; }
.access .small { margin: 12px 0 0; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- screens (the real wf fragments) ---------- */
.shot-wrap { margin: 0; }
.wf .shot.wf-screen { padding: 0; border: 0; border-radius: 0; background: none; }
.shot-frame { overflow-x: auto; overflow-y: hidden; border-radius: 12px; }
.shot-frame > .wf-win { width: 1200px; min-width: 1200px; max-width: none; margin: 0; zoom: var(--z, 1); }
.is-fit > .wf-win { box-shadow: none; }
.shot--hero .shot-frame, .shot--gallery .shot-frame { box-shadow: var(--shadow); }
.shot-frame[data-fitted] { overflow: hidden; }
.thumb .shot-frame > .wf-win { border: 0; border-radius: 0; }
/* annotation markers belong to the design doc, not to the product */
.shot .wf-mk, .shot svg .sv-mk, .shot svg .sv-mkt { display: none !important; }
/* hero and step screens: show the top part, fade out the rest */
.shot--hero .shot-frame[data-fitted], .steps .shot-frame[data-fitted] { max-height: min(720px, 62vw); -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }

/* ---------- gallery page ---------- */
.gallery { padding: clamp(32px, 5vw, 64px) 0 80px; }
.g-intro { max-width: 760px; margin-bottom: 40px; }
.g-layout > * { min-width: 0; }
.g-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; }
.g-index { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; font-size: 0.95rem; padding-right: 6px; }
.g-details > summary { display: none; }
.idx, .idx ol { list-style: none; margin: 0; padding: 0; }
.idx > li { margin-bottom: 14px; }
.idx-g { display: block; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-bottom: 4px; }
.idx a { display: grid; grid-template-columns: 2.6em 1fr; padding: 4px 8px; border-radius: 6px; color: var(--ink); text-decoration: none; line-height: 1.35; }
.idx a:hover { background: var(--wash); }
.idx a b { color: var(--muted); }
.idx a.is-here { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--link); }
.g-group { margin-bottom: 56px; }
.g-group > h2 { padding-bottom: 12px; border-bottom: 1px solid var(--rule); margin-bottom: 28px; }
.g-item { margin-bottom: 56px; }
.g-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.g-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.35rem; }
.g-id { display: inline-grid; place-items: center; min-width: 40px; height: 30px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--rule); background: var(--wash); font: 700 0.95rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.phase { font-size: 0.88rem; font-weight: 650; padding: 3px 10px; border-radius: 999px; border: 1px solid currentColor; }
.phase--v1 { color: var(--link); }
.phase--v15 { color: var(--muted); }
.phase--later { color: var(--muted); border-style: dashed; }
.g-cap { margin: 10px 0 8px; color: var(--muted); max-width: 72ch; }
.g-tools { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; font-size: 0.94rem; }
.g-size { min-height: 40px; padding: 6px 14px; border: 1px solid var(--rule); border-radius: 8px; background: var(--surface); color: var(--ink); font: 600 0.94rem var(--font); cursor: pointer; }
.g-size:hover { border-color: var(--muted); }
.g-top { color: var(--muted); }
@media (min-width: 981px) { .g-top { display: none; } }
@media (max-width: 980px) {
  .g-layout { grid-template-columns: 1fr; gap: 24px; }
  .g-index { position: static; max-height: none; overflow: visible; }
  .g-details { border: 1px solid var(--rule); border-radius: 12px; background: var(--surface); }
  .g-details > summary { display: list-item; padding: 12px 16px; font-weight: 650; cursor: pointer; min-height: 48px; }
  .g-details .idx { padding: 0 8px 12px; columns: 2 220px; column-gap: 16px; }
  .g-details .idx > li { break-inside: avoid; }
  .idx a { padding: 8px; }
}

/* ---------- legal ---------- */
.legal { max-width: 760px; padding: clamp(32px, 5vw, 64px) 0 80px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal address { font-style: normal; margin-bottom: 1em; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.legal ul { padding-left: 1.3em; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--rule); padding: 36px 0 44px; font-size: 0.94rem; color: var(--muted); }
.foot-in { width: min(1200px, 100% - 40px); margin-inline: auto; }
.foot p { margin: 0 0 6px; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); margin-bottom: 14px !important; }
.foot-brand .logo { width: 22px; height: 22px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 14px; }
.foot-nav a { color: var(--ink); display: inline-block; padding: 6px 0; }

@media (forced-colors: active) {
  .btn, .step-tab, .g-size, .lang { border: 1px solid ButtonText; }
  .step-tab[aria-selected="true"] { outline: 2px solid Highlight; }
}
@media print {
  .top, .g-index, .g-tools, .foot-nav { display: none; }
}
