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

:root {
  --c: #40bfbf;
  --c-text: #000000;
  --bg: #fafafa;
  --surface: #ffffff;
  --border: #e8e8ec;
  --text-1: #16181d;
  --text-2: #5b6172;
  --text-3: #9298ab;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 14px rgba(0,0,0,0.07);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 60px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

a { color: inherit; }
button { font-family: var(--font); cursor: pointer; }


.main-container {
  display: flex;
  gap: 24px;
}

.main-container .main {
  flex: 1 1 auto;
}

.main-container .side {
  flex: 0 0 auto;
  min-width: 200px;
}

@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1040px;
  margin: 0 auto;
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  text-decoration: none;
}

.brand-swatch {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 15%, transparent);
  transition: background 0.3s var(--ease);
  flex-shrink: 0;
}

.brand-name {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.header-input-group {
  flex: 1;
  max-width: 260px;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.header-input-group:focus-within {
  border-color: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 18%, transparent);
}

.hash-prefix {
  padding: 0 2px 0 12px;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-3);
}

.hex-input {
  flex: 1;
  height: 36px;
  border: none;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  outline: none;
  padding: 0 4px;
  min-width: 0;
}

.hex-input::placeholder {
  color: var(--text-3);
  font-weight: 400;
  text-transform: none;
}

.go-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--c);
  color: var(--c-text);
  font-size: 1rem;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.go-btn:hover { opacity: 0.85; }

.random-btn {
  padding: 0 14px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}

.random-btn:hover {
  border-color: var(--c);
  color: var(--c);
}

/* ---------- Quick nav ---------- */

.quicknav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.quicknav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.quicknav-inner::-webkit-scrollbar { display: none; }

.quicknav-link {
  flex-shrink: 0;
  padding: 10px 12px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-2);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.quicknav-link:hover { color: var(--text-1); }

/* ---------- Layout ---------- */

.main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 32px 20px 72px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.section { display: flex; flex-direction: column; gap: 14px; scroll-margin-top: calc(var(--header-h) + 46px); }

.section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}

.section-hint {
  font-size: 0.86rem;
  color: var(--text-2);
  margin-top: -10px;
}

/* ---------- Hero ---------- */

.hero-section {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
}

.hero-swatch {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  background: var(--c);
  border: none;
  flex-shrink: 0;
  transition: background 0.3s var(--ease), transform 0.15s;
}

.hero-swatch:hover { transform: scale(1.03); }
.hero-swatch:active { transform: scale(0.98); }

.hero-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.hero-hex {
  font-size: 1.9rem;
  font-weight: 700;
  font-family: var(--mono);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.hero-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
}

.hero-values {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-3);
}

.hero-sliders {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 210px;
}

.slider-row {
  display: grid;
  grid-template-columns: 36px 1fr 42px;
  align-items: center;
  gap: 10px;
}

.slider-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-3);
}

.slider-track-wrap {
  position: relative;
  height: 24px;
  display: flex;
  align-items: center;
}

.slider-track {
  position: absolute;
  inset: 9px 0;
  border-radius: 100px;
  pointer-events: none;
}

.hue-track {
  background: linear-gradient(to right,
    hsl(0,100%,50%), hsl(60,100%,50%), hsl(120,100%,50%),
    hsl(180,100%,50%), hsl(240,100%,50%), hsl(300,100%,50%), hsl(360,100%,50%));
}

.slider {
  position: relative;
  z-index: 1;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 24px;
  background: transparent;
  cursor: pointer;
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--c);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--c);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: pointer;
}

.slider-val {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-1);
  text-align: right;
}

/* ---------- Palette ---------- */

.palette-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.palette-swatch {
  flex: 1;
  min-width: 88px;
  display: flex;
  flex-direction: column;
  border: none;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s var(--ease), box-shadow 0.15s;
}

.palette-swatch:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.palette-swatch-color {
  height: 56px;
}

.palette-swatch-meta {
  background: var(--surface);
  padding: 7px 9px 9px;
}

.palette-swatch-hex {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-1);
}

.palette-swatch-label {
  font-size: 0.62rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1px;
}

.palette-swatch.is-base .palette-swatch-color { outline: 2px solid var(--text-1); outline-offset: -2px; }

/* ---------- Preview / In Use ---------- */

.preview-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.preview-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-block-wide { grid-column: 1 / -1; }

.preview-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.preview-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.preview-row-align { align-items: center; }

/* Buttons */

.demo-btn {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  transition: opacity 0.15s, background 0.3s var(--ease), color 0.3s var(--ease);
}

.demo-btn:hover { opacity: 0.88; }

.demo-btn-primary { background: var(--c); color: var(--c-text); }

.demo-btn-soft {
  background: color-mix(in srgb, var(--c) 15%, white);
  color: color-mix(in srgb, var(--c) 65%, black);
}

.demo-btn-outline {
  background: transparent;
  border: 1.5px solid var(--c);
  color: color-mix(in srgb, var(--c) 70%, black);
}

.demo-btn-ghost { background: transparent; color: var(--text-2); }

/* Badges + link */

.demo-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  background: color-mix(in srgb, var(--c) 16%, white);
  color: color-mix(in srgb, var(--c) 60%, black);
}

.demo-badge-outline {
  background: transparent;
  border: 1.5px solid var(--c);
  color: color-mix(in srgb, var(--c) 65%, black);
}

.demo-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--c) 75%, black);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--c) 50%, transparent);
  text-underline-offset: 3px;
}

/* Alert */

.demo-alert {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--c) 8%, white);
  border: 1px solid color-mix(in srgb, var(--c) 25%, transparent);
}

.demo-alert-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c);
  margin-top: 5px;
  flex-shrink: 0;
}

.demo-alert-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--c) 55%, black);
  margin-bottom: 2px;
}

.demo-alert-text { font-size: 0.82rem; color: var(--text-2); }

/* Progress */

.demo-progress {
  height: 8px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--c) 12%, white);
  overflow: hidden;
}

.demo-progress-fill {
  height: 100%;
  width: 62%;
  border-radius: 100px;
  background: var(--c);
  transition: background 0.3s var(--ease);
}

/* Card */

.demo-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.demo-card-header {
  background: var(--c);
  color: var(--c-text);
  padding: 18px 20px 16px;
  transition: background 0.3s var(--ease);
}

.demo-card-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--c-text) 18%, transparent);
  margin-bottom: 8px;
}

.demo-card-title { font-size: 1.1rem; font-weight: 700; }

.demo-card-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 12px; }

.demo-card-text { font-size: 0.85rem; color: var(--text-2); }

.demo-card-btn { align-self: flex-start; }

/* Nav */

.demo-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  background: var(--c);
  color: var(--c-text);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  transition: background 0.3s var(--ease);
}

.demo-nav-brand { font-weight: 700; font-size: 0.9rem; margin-right: 6px; }

.demo-nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  opacity: 0.85;
  padding-bottom: 2px;
}

.demo-nav-link-active {
  opacity: 1;
  border-bottom: 2px solid var(--c-text);
}

.demo-nav-cta {
  margin-left: auto;
  height: 32px;
  padding: 0 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--c-text);
  color: var(--c);
  font-size: 0.8rem;
  font-weight: 700;
}

/* Form field */

.demo-field { display: flex; flex-direction: column; gap: 6px; max-width: 320px; }

.demo-field-label { font-size: 0.8rem; font-weight: 600; color: var(--text-2); }

.demo-field-input {
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-family: var(--font);
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.demo-field-input:focus {
  border-color: var(--c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 20%, transparent);
}

/* ---------- Shade / Tint scale ---------- */

.shade-scale {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 6px;
}

.shade-swatch {
  border: none;
  border-radius: var(--radius-sm);
  padding: 0;
  height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 9px;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s var(--ease);
}

.shade-swatch:hover { transform: translateY(-2px); }

.shade-swatch.is-base { box-shadow: 0 0 0 2px var(--text-1) inset; }

.shade-step {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.75;
}

.shade-hex {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
}

/* ---------- Pairs well with ---------- */

.pairs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.pair-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pair-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-1);
}

.pair-desc {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.45;
  margin-top: -6px;
}

.pair-swatches {
  display: flex;
  gap: 6px;
  height: 42px;
}

.pair-swatch {
  flex: 1;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s var(--ease);
}

.pair-swatch:hover { transform: scaleY(1.06); }

.pair-swatch.is-base { box-shadow: 0 0 0 2px var(--text-1) inset; }

/* ---------- Where it fits ---------- */

.fits-board {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
}

.fits-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fits-summary {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-1);
}

.fits-summary strong { color: color-mix(in srgb, var(--c) 60%, black); }

.fits-tag-group { display: flex; flex-direction: column; gap: 8px; }

.fits-tag-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.fits-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.fits-tag {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--c) 13%, white);
  color: color-mix(in srgb, var(--c) 62%, black);
  border: 1px solid color-mix(in srgb, var(--c) 22%, transparent);
}

.fits-tag.is-muted {
  background: var(--bg);
  color: var(--text-2);
  border-color: var(--border);
}

/* ---------- Code snippets ---------- */

.code-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.code-tab {
  padding: 7px 13px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  transition: all 0.15s;
}

.code-tab:hover { color: var(--text-1); }

.code-tab.is-active {
  background: var(--c);
  border-color: var(--c);
  color: var(--c-text);
}

.code-panels { position: relative; }

.code-panel {
  display: none;
  position: relative;
  background: #1a1c22;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.code-panel.is-active { display: block; }

.code-panel pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.65;
  color: #d7dae0;
  cursor: pointer;
}

.code-panel .code-copy-hint {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 0.66rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  pointer-events: none;
}

.code-token-prop { color: #7dd3c0; }
.code-token-str { color: #f0c674; }
.code-token-key { color: #8ab4f8; }
.code-token-comment { color: #6b7280; }

/* ---------- Curated palettes ---------- */

.curated-palettes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.curated-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 16px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.curated-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.curated-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-1);
}

.curated-desc {
  font-size: 0.76rem;
  color: var(--text-2);
  margin-top: 2px;
}

.curated-copy-btn {
  flex-shrink: 0;
  padding: 6px 11px;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  transition: all 0.15s;
}

.curated-copy-btn:hover { border-color: var(--c); color: var(--c); }

.curated-strip {
  display: flex;
  height: 100px;
  margin: 0 -16px;
}

.curated-band {
  flex: 1;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  transition: flex-grow 0.2s var(--ease);
}

.curated-band:hover { flex-grow: 1.6; }

.curated-band-hex {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

/* ---------- Brand mockups ---------- */

.mockup-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.mockup-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  border-radius: var(--radius-sm);
  background:
    linear-gradient(45deg, #f2f2f4 25%, transparent 25%),
    linear-gradient(-45deg, #f2f2f4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f2f2f4 75%),
    linear-gradient(-45deg, transparent 75%, #f2f2f4 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  padding: 10px;
}

.mockup-frame svg { width: 100%; height: auto; max-height: 130px; }

/* ---------- Contrast ---------- */

.contrast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.contrast-card {
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.contrast-sample { display: flex; flex-direction: column; gap: 2px; }
.contrast-large { font-size: 1.3rem; font-weight: 700; line-height: 1; }
.contrast-small { font-size: 0.74rem; font-weight: 500; }

.contrast-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.contrast-ratio { font-family: var(--mono); font-size: 0.84rem; font-weight: 700; }
.contrast-badges { display: flex; gap: 4px; }

.badge {
  font-size: 0.58rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

.badge-pass { background: #d1fae5; color: #065f46; }
.badge-fail { background: #fee2e2; color: #991b1b; }

/* ---------- Values ---------- */

.convert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.convert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.convert-card:hover { border-color: var(--c); }

.convert-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-3);
}

.convert-value {
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 600;
  word-break: break-all;
}

/* ---------- Footer / Toast ---------- */

.site-footer {
  text-align: center;
  padding: 30px 20px;
  font-size: 0.78rem;
  color: var(--text-3);
  border-top: 1px solid var(--border);
}

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--text-1);
  color: white;
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s var(--ease);
  white-space: nowrap;
  z-index: 999;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 24px 22px;
  }
  .hero-swatch { margin: 0 auto; }
  .hero-values { justify-content: center; }
  .hero-sliders { min-width: unset; width: 100%; }
  .preview-board { grid-template-columns: 1fr; }
  .fits-board { grid-template-columns: 1fr; }
  .shade-scale { grid-template-columns: repeat(6, 1fr); }
  .shade-swatch:nth-child(n+7) { order: 1; }
  .curated-strip { height: 80px; }
  .mockup-board { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .header-inner { gap: 10px; padding: 0 14px; }
  .brand-name { display: none; }
  .main { padding: 24px 14px 56px; gap: 32px; }
  .demo-nav { flex-wrap: wrap; gap: 10px 16px; }
  .demo-nav-cta { margin-left: 0; }
  .shade-scale { grid-template-columns: repeat(4, 1fr); }
  .mockup-board { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
