/* ==========================================================================
   Empractica Brand Kit — page styles
   Built on top of assets/colors_and_type.css (brand tokens)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body {
  margin: 0;
  background: var(--bg-1);
  color: var(--fg-1);
  -webkit-font-smoothing: antialiased;
  --accent: var(--brand-bright-blue);
}

/* Density tweak hook */
body[data-density="comfortable"] { --pad-section: var(--space-10); }
body[data-density="compact"]     { --pad-section: var(--space-8); }
:root { --pad-section: 112px; }

img { display: block; max-width: 100%; }
a { color: var(--fg-link); text-decoration: none; }
button { font-family: var(--font-sans); }

/* ---------- App shell: sidebar + main ---------- */
.app {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--brand-cool-black);
  color: var(--fg-on-dark);
  padding: 28px 22px 22px;
  overflow-y: auto;
}
.sidebar__brand { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sidebar__brand img { height: 26px; }
.sidebar__tag {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); margin: 14px 0 18px; padding-left: 2px;
}
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.62);
  font-size: 0.9rem; font-weight: 500;
  padding: 9px 12px; border-radius: var(--radius-md);
  transition: background 120ms ease-out, color 120ms ease-out;
  position: relative;
}
.nav a .num {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.32); width: 18px; flex: none;
}
.nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav a.active { background: rgba(27,155,234,0.16); color: #fff; }
.nav a.active .num { color: var(--accent); }
.nav a.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent);
}
.sidebar__cta {
  margin-top: 18px;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 13px 16px;
  background: var(--accent); color: #fff; border: none;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.02em;
  border-radius: var(--radius-md); cursor: pointer;
  transition: filter 120ms ease-out;
}
.sidebar__cta:hover { filter: brightness(1.08); }
.sidebar__cta svg { width: 17px; height: 17px; }
.sidebar__foot { margin-top: 14px; font-size: 0.72rem; color: rgba(255,255,255,0.38); line-height: 1.5; }

/* ---------- Main column ---------- */
.main { min-width: 0; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 56px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--gradient-blue-freeform);
  color: #fff;
  padding: 88px 56px 76px;
}
.hero__wm {
  position: absolute; right: -90px; top: 50%; transform: translateY(-50%);
  width: 520px; opacity: 0.16; pointer-events: none;
  filter: brightness(0) invert(1);
}
.hero__inner { position: relative; max-width: 1040px - 0; }
.hero__logo { height: 40px; filter: brightness(0) invert(1); margin-bottom: 30px; }
.hero__eyebrow {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4rem); font-weight: 600;
  letter-spacing: var(--tracking-tight); line-height: 1.04; margin: 0 0 20px;
  max-width: 16ch;
}
.hero p {
  font-size: 1.2rem; line-height: 1.55; color: rgba(255,255,255,0.82);
  max-width: 52ch; margin: 0 0 32px; font-weight: 400;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__meta {
  margin-top: 44px; display: flex; gap: 40px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.18); padding-top: 24px;
}
.hero__meta div { display: flex; flex-direction: column; gap: 3px; }
.hero__meta .k { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 700; }
.hero__meta .v { font-size: 1rem; font-weight: 500; }

/* Pill / hero buttons */
.btn-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: var(--radius-pill);
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  font-size: 0.82rem; cursor: pointer; border: none;
  transition: filter 120ms ease-out, background 120ms ease-out, color 120ms ease-out;
}
.btn-pill--solid { background: #fff; color: var(--brand-dark-blue); }
.btn-pill--solid:hover { background: var(--accent); color: #fff; }
.btn-pill--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 var(--border-width-button) rgba(255,255,255,0.6); }
.btn-pill--ghost:hover { box-shadow: inset 0 0 0 var(--border-width-button) var(--accent); }
.btn-pill svg { width: 18px; height: 18px; }

/* ---------- Sections ---------- */
.section { padding: var(--pad-section) 0; border-top: 1px solid var(--border-2); }
.section:first-of-type { border-top: none; }
.section__head { margin-bottom: 44px; max-width: 60ch; }
.eyebrow-accent {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.eyebrow-accent .n {
  font-variant-numeric: tabular-nums; color: var(--neutral-400);
}
.section h2.title {
  font-size: 2.6rem; font-weight: 600; letter-spacing: var(--tracking-tight);
  line-height: 1.08; margin: 0 0 16px;
}
.section .lead { font-size: 1.16rem; line-height: 1.6; color: var(--fg-2); margin: 0; }
.subhead {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--neutral-400); margin: 0 0 18px;
}
.note {
  font-size: 0.92rem; color: var(--fg-2); line-height: 1.55;
}
.note code, .inline-code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.86em;
  background: var(--brand-cool-gray); padding: 2px 7px; border-radius: 6px; color: var(--brand-dark-blue);
}

/* Generic grid helpers */
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.block { margin-top: 40px; }

/* Surface card */
.surf {
  background: var(--bg-1); border: 1px solid var(--border-2);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}

/* ---------- Logo section ---------- */
.logo-stage {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
  min-height: 200px; padding: 40px;
  transition: background 180ms ease-out;
}
.logo-stage img { max-height: 56px; width: auto; }
.logo-stage--light { background: var(--bg-2); }
.logo-stage--dark  { background: var(--brand-cool-black); }
.stage-toggle {
  display: inline-flex; background: var(--brand-cool-gray); border-radius: var(--radius-pill);
  padding: 4px; gap: 2px;
}
.stage-toggle button {
  border: none; background: transparent; cursor: pointer;
  font-size: 0.8rem; font-weight: 700; padding: 7px 16px; border-radius: var(--radius-pill);
  color: var(--fg-2); transition: background 120ms, color 120ms;
}
.stage-toggle button.on { background: #fff; color: var(--brand-dark-blue); box-shadow: var(--shadow-xs); }
.logo-card { padding: 26px; }
.logo-card .cap { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.logo-card .cap .name { font-weight: 700; font-size: 0.95rem; }
.logo-card .cap .desc { font-size: 0.82rem; color: var(--fg-2); }

.dl-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.03em;
  color: var(--brand-dark-blue); background: var(--brand-cool-gray);
  padding: 6px 11px; border-radius: var(--radius-pill); cursor: pointer; border: none;
  transition: background 120ms, color 120ms;
}
.dl-chip:hover { background: var(--accent); color: #fff; }
.dl-chip svg { width: 13px; height: 13px; }

/* Clear space diagram */
.clearspace {
  position: relative; background: var(--bg-2); border-radius: var(--radius-lg);
  padding: 56px; display: flex; align-items: center; justify-content: center;
}
.clearspace__box { position: relative; padding: 48px; }
.clearspace__box::before {
  content: ""; position: absolute; inset: 0;
  border: 1.5px dashed var(--neutral-400); border-radius: 8px;
}
.clearspace__box img { height: 44px; }
.cs-tick {
  position: absolute; background: var(--accent); color: #fff;
  font-size: 0.64rem; font-weight: 700; width: 22px; height: 22px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
}
.cs-tl { top: -11px; left: -11px; } .cs-tr { top: -11px; right: -11px; }
.cs-bl { bottom: -11px; left: -11px; } .cs-br { bottom: -11px; right: -11px; }

/* Don'ts */
.dont { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.dont__stage {
  background: var(--bg-2); border-radius: var(--radius-md); height: 120px;
  display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative;
}
.dont__stage img { height: 34px; }
.dont__label { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--fg-1); }
.dont__label .x {
  width: 20px; height: 20px; border-radius: 50%; background: var(--brand-red); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 0.7rem; flex: none;
}

/* ---------- Color section ---------- */
.swatch {
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer;
  border: 1px solid var(--border-2); background: #fff;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}
.swatch:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.swatch__chip { height: 124px; position: relative; }
.swatch__chip .copy-hint {
  position: absolute; top: 10px; right: 10px; opacity: 0;
  background: rgba(255,255,255,0.92); color: var(--brand-dark-blue);
  font-size: 0.64rem; font-weight: 700; padding: 4px 8px; border-radius: var(--radius-pill);
  transition: opacity 120ms; letter-spacing: 0.04em; text-transform: uppercase;
}
.swatch:hover .copy-hint { opacity: 1; }
.swatch__meta { padding: 14px 16px 16px; }
.swatch__meta .nm { font-weight: 700; font-size: 0.95rem; }
.swatch__meta .hx { font-family: ui-monospace, Menlo, monospace; font-size: 0.82rem; color: var(--fg-2); margin-top: 3px; text-transform: uppercase; }
.swatch__meta .rgb { font-size: 0.72rem; color: var(--neutral-400); margin-top: 2px; }

.neutrals { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.neutrals .n {
  padding: 22px 14px 16px; min-height: 130px; display: flex; flex-direction: column; justify-content: flex-end;
  cursor: pointer; transition: filter 120ms;
}
.neutrals .n:hover { filter: brightness(0.97); }
.neutrals .n .nm { font-size: 0.78rem; font-weight: 700; }
.neutrals .n .hx { font-family: ui-monospace, Menlo, monospace; font-size: 0.72rem; opacity: 0.85; margin-top: 2px; }

.gradients { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px; }
.grad {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); position: relative;
  min-height: 200px; display: flex; align-items: flex-end; padding: 20px; color: #fff;
}
.grad .lbl { position: relative; z-index: 1; }
.grad .lbl .t { font-weight: 700; font-size: 0.95rem; }
.grad .lbl .s { font-size: 0.78rem; opacity: 0.78; margin-top: 2px; }
.grad--gray { color: var(--brand-dark-blue); }
.grad--gray .lbl .s { opacity: 0.6; }

/* ---------- Typography section ---------- */
.type-specimen .row { display: grid; grid-template-columns: 90px 1fr; gap: 24px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--border-2); }
.type-specimen .row:first-child { border-top: none; }
.type-specimen .tag { font-size: 0.74rem; font-weight: 700; color: var(--neutral-400); letter-spacing: 0.04em; padding-top: 8px; }
.type-specimen .spec { font-size: 0.72rem; color: var(--neutral-400); margin-top: 8px; font-family: ui-monospace, Menlo, monospace; }
.type-specimen .sample { color: var(--fg-1); }
.weights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.weights .w { padding: 22px 20px; border: 1px solid var(--border-2); margin: -1px 0 0 -1px; }
.weights .w .big { font-size: 2.2rem; line-height: 1; color: var(--fg-1); }
.weights .w .nm { font-size: 0.82rem; color: var(--fg-2); margin-top: 12px; font-weight: 600; }
.font-banner {
  background: var(--brand-cool-black); color: #fff; border-radius: var(--radius-lg);
  padding: 40px; display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap;
}
.font-banner .glyphs { font-size: 4.6rem; font-weight: 600; line-height: 1; letter-spacing: -0.04em; }
.font-banner .meta .nm { font-size: 1.5rem; font-weight: 700; }
.font-banner .meta .src { font-size: 0.86rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ---------- Watermark section ---------- */
.wm-demo { border-radius: var(--radius-lg); overflow: hidden; position: relative; min-height: 260px; padding: 36px; display: flex; flex-direction: column; justify-content: flex-end; }
.wm-demo--dark { background: var(--gradient-blue-freeform); color: #fff; }
.wm-demo--light { background: var(--bg-2); color: var(--brand-cool-black); }
.wm-demo img.wm {
  position: absolute; right: -40px; top: -40px; width: 300px; pointer-events: none;
}
.wm-demo--dark img.wm { filter: brightness(0) invert(1); opacity: 0.18; }
.wm-demo--light img.wm { opacity: 0.5; }
.wm-demo .c { position: relative; z-index: 1; max-width: 30ch; }
.wm-demo .c .t { font-weight: 700; font-size: 1.1rem; }
.wm-demo .c .s { font-size: 0.9rem; opacity: 0.8; margin-top: 6px; }

/* ---------- Icons section ---------- */
.icon-toolbar { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.icon-search {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
  border: var(--border-width-form) solid var(--border-1); border-radius: var(--radius-md);
  padding: 0 14px; background: #fff; transition: border-color 120ms, box-shadow 120ms;
}
.icon-search:focus-within { border-color: var(--border-focus); box-shadow: var(--shadow-focus-ring); }
.icon-search input { border: none; outline: none; padding: 12px 0; font-size: 0.95rem; flex: 1; background: transparent; color: var(--fg-1); }
.icon-search svg { width: 18px; height: 18px; color: var(--neutral-400); }
.icon-count { font-size: 0.82rem; color: var(--fg-2); font-weight: 600; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 14px; }
.icon-cell {
  border: 1px solid var(--border-2); border-radius: var(--radius-md);
  padding: 22px 14px 14px; display: flex; flex-direction: column; align-items: center; gap: 14px;
  cursor: pointer; transition: border-color 120ms, box-shadow 120ms, transform 120ms; background: #fff;
}
.icon-cell:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.icon-cell img { width: 36px; height: 36px; }
.icon-cell .nm { font-size: 0.76rem; color: var(--fg-2); font-weight: 600; text-align: center; }
.icon-rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.icon-rules li { list-style: none; display: flex; align-items: center; gap: 10px; font-size: 0.92rem; color: var(--fg-1); padding: 8px 0; }
.icon-rules .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* ---------- Photography ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.photo {
  border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3/4; position: relative;
  box-shadow: var(--shadow-sm);
}
.photo:nth-child(1), .photo:nth-child(6) { grid-row: span 2; aspect-ratio: 3/5; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.dd-card { padding: 20px 22px; display: flex; gap: 12px; align-items: flex-start; }
.dd-card .badge { font-weight: 700; font-size: 0.8rem; padding: 4px 10px; border-radius: var(--radius-pill); flex: none; }
.dd-card.do .badge { background: rgba(27,155,234,0.12); color: var(--brand-dark-blue); }
.dd-card.dont .badge { background: rgba(216,61,34,0.12); color: var(--brand-red); }
.dd-card .txt { font-size: 0.92rem; color: var(--fg-2); line-height: 1.5; }

/* ---------- Components: buttons / inputs / cards ---------- */
.demo-surface { padding: 32px; border-radius: var(--radius-lg); }
.demo-surface.on-light { background: var(--bg-2); }
.demo-surface.on-dark { background: var(--brand-cool-black); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.e-btn {
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.04em;
  padding: 12px 24px; border-radius: var(--radius-md); border: none; cursor: pointer;
  transition: background 120ms ease-out, color 120ms ease-out, box-shadow 120ms ease-out, transform 80ms;
}
.e-btn:active { transform: translateY(1px); }
.e-btn--dark { background: var(--brand-dark-blue); color: #fff; }
.e-btn--dark:hover { background: var(--accent); }
.e-btn--blue { background: var(--accent); color: #fff; }
.e-btn--blue:hover { filter: brightness(1.08); }
.e-btn--white { background: #fff; color: var(--brand-dark-blue); box-shadow: inset 0 0 0 1px var(--border-1); }
.e-btn--white:hover { background: var(--brand-cool-gray); }
.e-btn--outline { background: transparent; color: var(--brand-dark-blue); box-shadow: inset 0 0 0 var(--border-width-button) var(--neutral-400); }
.e-btn--outline:hover { box-shadow: inset 0 0 0 var(--border-width-button) var(--accent); background: var(--brand-cool-gray); }
.e-btn--outline-d { background: transparent; color: #fff; box-shadow: inset 0 0 0 var(--border-width-button) rgba(255,255,255,0.5); }
.e-btn--outline-d:hover { box-shadow: inset 0 0 0 var(--border-width-button) var(--accent); }
.e-btn--disabled { background: var(--brand-cool-gray); color: var(--neutral-400); box-shadow: inset 0 0 0 var(--border-width-button) var(--neutral-400); cursor: not-allowed; }
.e-btn--pill { border-radius: var(--radius-pill); text-transform: uppercase; padding: 14px 28px; }
.e-text-cta { background: none; border: none; color: var(--brand-dark-blue); font-weight: 700; letter-spacing: 0.04em; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-size: 0.9rem; }
.e-text-cta:hover { color: var(--accent); }
.e-arrow { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: filter 120ms; }
.e-arrow:hover { filter: brightness(1.1); }
.e-arrow svg { width: 20px; height: 20px; color: #fff; }
.btn-anno { font-size: 0.72rem; color: var(--neutral-400); margin-top: 8px; }

/* Inputs */
.field { display: flex; flex-direction: column; gap: 7px; }
.field .lbl { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--neutral-500); }
.field .lbl .req { color: var(--brand-red); margin-left: 2px; }
.e-input {
  font-family: var(--font-sans); font-size: 0.95rem; padding: 12px 14px;
  border-radius: var(--radius-md); border: var(--border-width-form) solid var(--border-1);
  background: #fff; color: var(--fg-1); outline: none; transition: border-color 120ms, box-shadow 120ms;
}
.e-input::placeholder { color: var(--neutral-400); }
.e-input:focus { border-color: var(--border-focus); box-shadow: var(--shadow-focus-ring); }
.e-input.is-error { border-color: var(--border-danger); color: var(--brand-red); }
.e-input.is-error::placeholder { color: var(--brand-red); }
.e-input:disabled { background: var(--brand-cool-gray); border-color: var(--border-1); color: var(--neutral-400); }
.field .err { font-size: 0.78rem; color: var(--brand-red); }

/* Pickers */
.pick { display: flex; flex-direction: column; gap: 12px; }
.pick label { display: flex; align-items: center; gap: 11px; font-size: 0.95rem; color: var(--fg-1); cursor: pointer; }
.pick .box { width: 22px; height: 22px; border-radius: 6px; border: var(--border-width-form) solid var(--border-1); display: flex; align-items: center; justify-content: center; flex: none; transition: border-color 120ms, background 120ms; }
.pick .box.checked { background: var(--accent); border-color: var(--accent); }
.pick .box.checked svg { width: 14px; height: 14px; color: #fff; }
.pick .dot { width: 22px; height: 22px; border-radius: 50%; border: var(--border-width-form) solid var(--border-1); display: flex; align-items: center; justify-content: center; flex: none; transition: border-color 120ms; }
.pick .dot.checked { border-color: var(--accent); }
.pick .dot.checked::after { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }

/* Sample cards */
.s-card { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.s-card .s-img { height: 110px; border-radius: var(--radius-md); background: var(--gradient-blue-linear); }
.s-card .s-img.photo-bg { background-size: cover; background-position: center; }
.s-card .s-eye { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.s-card .s-ttl { font-size: 1.05rem; font-weight: 700; color: var(--fg-1); }
.s-card .s-p { font-size: 0.86rem; color: var(--fg-2); line-height: 1.5; }
.s-card .s-ic { width: 44px; height: 44px; border-radius: var(--radius-md); background: var(--brand-cool-gray); display: flex; align-items: center; justify-content: center; }
.s-card .s-ic img { width: 26px; height: 26px; }

/* ---------- Voice & tone ---------- */
.voice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.voice-pill { padding: 22px; }
.voice-pill .t { font-weight: 700; font-size: 1.05rem; margin-bottom: 8px; }
.voice-pill .d { font-size: 0.9rem; color: var(--fg-2); line-height: 1.5; }
.voice-table { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vt-card { padding: 20px 22px; }
.vt-card .h { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 0.9rem; margin-bottom: 12px; }
.vt-card.use .h { color: var(--brand-dark-blue); }
.vt-card.avoid .h { color: var(--brand-red); }
.vt-card .h .pic { width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 0.66rem; flex: none; }
.vt-card.use .h .pic { background: var(--accent); }
.vt-card.avoid .h .pic { background: var(--brand-red); }
.vt-card p { font-size: 0.95rem; color: var(--fg-1); line-height: 1.5; margin: 0; }
.vt-card.avoid p { color: var(--fg-2); text-decoration: line-through; text-decoration-color: rgba(216,61,34,0.4); }

/* ---------- Download section ---------- */
.dl-hero {
  background: var(--brand-cool-black); color: #fff; border-radius: var(--radius-xl);
  padding: 48px; position: relative; overflow: hidden;
}
.dl-hero img.wm { position: absolute; right: -60px; bottom: -80px; width: 360px; opacity: 0.12; filter: brightness(0) invert(1); }
.dl-hero .inner { position: relative; z-index: 1; max-width: 60ch; }
.dl-hero h3 { font-size: 2rem; font-weight: 600; letter-spacing: var(--tracking-tight); margin: 0 0 12px; }
.dl-hero p { color: rgba(255,255,255,0.78); font-size: 1.05rem; margin: 0 0 28px; }
.dl-packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 28px; }
.dl-pack {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: #fff; border: 1px solid var(--border-2); border-radius: var(--radius-md);
  cursor: pointer; text-align: left; transition: border-color 120ms, box-shadow 120ms, transform 120ms;
}
.dl-pack:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.dl-pack .ic { width: 42px; height: 42px; border-radius: var(--radius-md); background: var(--bg-2); display: flex; align-items: center; justify-content: center; flex: none; }
.dl-pack .ic img { width: 24px; height: 24px; }
.dl-pack .meta { flex: 1; }
.dl-pack .meta .t { display: block; font-weight: 700; font-size: 0.95rem; }
.dl-pack .meta .s { display: block; font-size: 0.78rem; color: var(--fg-2); margin-top: 2px; }
.hero__meta .k, .hero__meta .v { display: block; }
.dl-pack .arr { color: var(--neutral-400); }
.dl-pack:hover .arr { color: var(--accent); }

/* ---------- Footer ---------- */
.footer { background: var(--brand-cool-black); color: rgba(255,255,255,0.6); padding: 40px 56px; }
.footer__inner { max-width: 1040px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer img { height: 22px; filter: brightness(0) invert(1); opacity: 0.85; }
.footer .links { display: flex; gap: 22px; font-size: 0.85rem; }
.footer .links a { color: rgba(255,255,255,0.6); }
.footer .links a:hover { color: #fff; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(20px);
  background: var(--brand-cool-black); color: #fff; padding: 13px 22px; border-radius: var(--radius-pill);
  font-size: 0.9rem; font-weight: 600; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity 180ms ease-out, transform 180ms ease-out; z-index: 200; display: flex; align-items: center; gap: 10px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 16px; height: 16px; color: var(--accent); }

/* ---------- Mobile nav ---------- */
.mobile-bar { display: none; }

@media (max-width: 1080px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .mobile-bar {
    display: flex; position: sticky; top: 0; z-index: 100; align-items: center; justify-content: space-between;
    background: var(--brand-cool-black); color: #fff; padding: 14px 22px;
  }
  .mobile-bar img { height: 24px; filter: brightness(0) invert(1); }
  .mobile-bar button { background: var(--accent); color: #fff; border: none; border-radius: var(--radius-pill); padding: 9px 16px; font-weight: 700; font-size: 0.8rem; cursor: pointer; }
  .wrap, .hero, .footer { padding-left: 28px; padding-right: 28px; }
  .gradients { grid-template-columns: 1fr; }
  .neutrals { grid-template-columns: repeat(3, 1fr); }
  .voice-grid, .voice-table, .do-dont, .dl-packs { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .weights { grid-template-columns: 1fr; }
  .icon-rules { grid-template-columns: 1fr; }
  .type-specimen .row { grid-template-columns: 1fr; gap: 8px; }
  .hero h1 { font-size: 2.2rem; }
}

/* ---------- Hero: light variant (tweak) ---------- */
.hero--light { background: var(--bg-2); color: var(--brand-cool-black); }
.hero--light .hero__logo { filter: none; }
.hero--light .hero__eyebrow { color: var(--neutral-500); }
.hero--light p { color: var(--fg-2); }
.hero--light .hero__wm { filter: none; opacity: 0.42; }
.hero--light .btn-pill--solid { background: var(--brand-dark-blue); color: #fff; }
.hero--light .btn-pill--solid:hover { background: var(--accent); }
.hero--light .btn-pill--ghost { color: var(--brand-dark-blue); box-shadow: inset 0 0 0 var(--border-width-button) var(--neutral-400); }
.hero--light .btn-pill--ghost:hover { box-shadow: inset 0 0 0 var(--border-width-button) var(--accent); }
.hero--light .hero__meta { border-top-color: var(--border-1); }
.hero--light .hero__meta .k { color: var(--neutral-500); }

/* ---------- Tweaks panel ---------- */
#tweaksPanel {
  position: fixed; top: 22px; right: 22px; width: 268px; z-index: 300;
  background: #fff; border: 1px solid var(--border-1); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; font-family: var(--font-sans);
}
#tweaksPanel .tk-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; background: var(--brand-cool-black); color: #fff;
  font-weight: 700; font-size: 0.95rem;
}
#tweaksPanel .tk-close { background: none; border: none; color: rgba(255,255,255,0.7); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 2px; }
#tweaksPanel .tk-close:hover { color: #fff; }
#tweaksPanel .tk-body { padding: 16px; }
#tweaksPanel .tk-sec { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--neutral-400); margin: 14px 0 9px; }
#tweaksPanel .tk-sec:first-child { margin-top: 0; }
#tweaksPanel .tk-swatches { display: flex; gap: 9px; }
#tweaksPanel .tk-sw { width: 34px; height: 34px; border-radius: 9px; border: 2px solid transparent; cursor: pointer; transition: transform 100ms; outline: 2px solid transparent; }
#tweaksPanel .tk-sw:hover { transform: scale(1.07); }
#tweaksPanel .tk-sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--brand-cool-black); }
#tweaksPanel .tk-seg { display: flex; background: var(--brand-cool-gray); border-radius: var(--radius-md); padding: 3px; gap: 3px; }
#tweaksPanel .tk-seg button { flex: 1; border: none; background: transparent; padding: 8px 6px; border-radius: 7px; font-size: 0.8rem; font-weight: 600; color: var(--fg-2); cursor: pointer; transition: background 120ms, color 120ms; }
#tweaksPanel .tk-seg button.on { background: #fff; color: var(--brand-dark-blue); box-shadow: var(--shadow-xs); }
#tweaksPanel .tk-reset { margin-top: 18px; width: 100%; padding: 10px; border: 1px solid var(--border-1); background: #fff; border-radius: var(--radius-md); font-size: 0.82rem; font-weight: 600; color: var(--fg-2); cursor: pointer; transition: border-color 120ms, color 120ms; }
#tweaksPanel .tk-reset:hover { border-color: var(--accent); color: var(--brand-dark-blue); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .swatch:hover, .icon-cell:hover, .dl-pack:hover { transform: none; }
}
