/* ============================================================
   Omnitint — design tokens & global styles
   Source of truth: docs/init/design.md
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Surface — v2 cool neutral.
     The three surface tiers (--surface / --surface-alt / --surface-sunk)
     give us layered cards on tinted sections without resorting to shadow. */
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --surface-alt: #F1F3F5;
  --surface-sunk: #E8EBEE;   /* slightly deeper than surface-alt, for hover / nested cards */
  --surface-deep: #0F1115;   /* inverted blocks: CTA band, footer-deep if used */

  /* Ink */
  --ink: #0A0A0A;
  --ink-muted: #5B6470;
  --ink-subtle: #8A929C;
  --border: #E2E5EA;
  --border-strong: #C9CED6;
  --outline-soft: #EEF0F3;   /* near-invisible separator for very low-emphasis dividers */

  /* Brand */
  --brand-yellow: #FFE600;
  --brand-yellow-ink: #0A0A0A;
  --brand-olive: #6A5F00;        /* dark-yellow foreground for "brand-emphasized" numbers / labels on light surfaces — derived from --brand-yellow via Stitch's Material theme */

  /* Splash palette — defined but no longer used as chrome decoration.
     Kept registered so color-search data viz can color-code by collection. */
  --splash-magenta: #E91E63;
  --splash-cyan: #00B8D4;
  --splash-green: #43A047;
  --splash-orange: #FB8C00;
  --splash-violet: #7B1FA2;
  --splash-blue: #1E88E5;

  /* Status */
  --error: #D32F2F;
  --success: #16A34A;
  --info: #2563EB;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Layout */
  --content-max: 1240px;
  --header-h: 72px;

  /* Elevation */
  --shadow-card-hover: 0 8px 24px rgba(10, 10, 10, 0.06);

  /* Font stacks */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Z-scale */
  --z-header: 50;
  --z-overlay: 100;
  --z-modal: 200;
}

/* ============================================================
   Reset
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, picture, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   Base
   ============================================================ */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}

::selection { background: var(--brand-yellow); color: var(--ink); }

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--ink);
}

.display {
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1, .h1 { font-size: clamp(32px, 4.6vw, 48px); }
h2, .h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 600; }
h3, .h3 { font-size: clamp(20px, 2vw, 22px); font-weight: 600; }

.body-l { font-size: 18px; line-height: 28px; }
.body-m { font-size: 16px; line-height: 26px; }
.caption {
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.mono {
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  letter-spacing: 0;
}
.muted { color: var(--ink-muted); }

@media (max-width: 767px) {
  .body-l { font-size: 17px; line-height: 26px; }
}

/* ============================================================
   Layout
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 767px) {
  .container { padding: 0 16px; }
}

.section {
  padding: var(--s-9) 0;
}
@media (max-width: 767px) {
  .section { padding: var(--s-7) 0; }
}

.section-alt { background: var(--surface-alt); }

.section-eyebrow {
  display: inline-block;
  margin-bottom: var(--s-3);
  color: var(--ink-muted);
}

.section-head {
  max-width: 760px;
  margin-bottom: var(--s-7);
}
.section-head .lead {
  margin-top: var(--s-4);
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 28px;
}

/* Legal / long-form document (privacy policy, terms).
   Restores list markers and inline-link styling that the global reset strips. */
.legal-doc {
  max-width: 760px;
  color: var(--ink-muted);
}
.legal-doc__updated {
  display: inline-block;
  margin-bottom: var(--s-6);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill);
  background: var(--surface-alt);
  color: var(--ink-muted);
  font-size: 13px;
  line-height: 20px;
}
.legal-doc h2 {
  margin-top: var(--s-7);
  color: var(--ink);
}
.legal-doc h2:first-of-type { margin-top: 0; }
.legal-doc p {
  margin-top: var(--s-4);
  font-size: 16px;
  line-height: 26px;
}
.legal-doc ul {
  margin-top: var(--s-4);
  padding-left: var(--s-5);
  list-style: disc;
}
.legal-doc li {
  margin-top: var(--s-2);
  font-size: 16px;
  line-height: 26px;
}
.legal-doc a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-doc a:hover { color: var(--info); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  z-index: var(--z-modal);
}
.skip-link:focus { top: 12px; }

/* ============================================================
   Focus ring (universal)
   ============================================================ */

:focus { outline: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--brand-yellow);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--bg);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

@media (max-width: 759px) {
  .header-inner { height: 64px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  transform: translateY(-10px);
}
.brand img { height: 32px; width: auto; }

.nav-primary {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-primary a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-primary a:hover { background: var(--surface-alt); }
.nav-primary a[aria-current="page"] {
  background: var(--surface-alt);
  color: var(--ink);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .nav-primary { display: none; }
}

/* Hamburger */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}
.menu-toggle:hover { background: var(--surface-alt); }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--bg);
  display: none;
  flex-direction: column;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu-list {
  flex: 1;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu-list a {
  display: flex;
  align-items: center;
  height: 56px;
  padding: 0 16px;
  border-radius: var(--r-sm);
  font-size: 18px;
  font-weight: 600;
}
.mobile-menu-list a:hover { background: var(--surface-alt); }
.mobile-menu-foot {
  padding: 16px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
  user-select: none;
}
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; }
/* The HTML `hidden` attribute must defeat .btn's display:inline-flex. */
.btn[hidden] { display: none; }
.btn .arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--brand-yellow);
  color: var(--brand-yellow-ink);
}
.btn-primary:hover { background: #FFD800; }

.btn-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--surface-alt);
  border-color: var(--ink);
  color: var(--ink);
}

.btn-ghost {
  height: 40px;
  padding: 0 4px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  border-radius: 0;
  border-bottom: 1.5px solid transparent;
}
.btn-ghost:hover { border-bottom-color: var(--ink); }

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--r-sm);
}
.btn-icon:hover { background: var(--surface-alt); }

.btn-sm { height: 40px; padding: 0 14px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16px; }

/* ============================================================
   Cookie consent
   ============================================================ */

.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: var(--z-modal);
  width: min(calc(100% - 32px), 820px);
  transform: translateX(-50%);
  padding: 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 44px rgba(10, 10, 10, 0.14);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
}
.cookie-consent__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.cookie-consent__copy {
  min-width: 0;
}
.cookie-consent__eyebrow {
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.cookie-consent h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}
.cookie-consent p {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.45;
}
.cookie-consent p a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-consent__actions {
  display: grid;
  grid-template-columns: minmax(150px, auto) 44px 44px;
  gap: 8px;
  align-items: center;
}
.cookie-consent__accept {
  height: 44px;
  min-width: 150px;
}
.cookie-consent__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.cookie-consent__icon-btn:hover {
  background: var(--surface-alt);
  border-color: var(--ink);
}
.cookie-consent__icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cookie-consent__settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: stretch;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.cookie-consent__option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
}
.cookie-consent__option input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 3px 0 0;
  accent-color: var(--ink);
}
.cookie-consent__option span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}
.cookie-consent__option strong {
  font-size: 14px;
  line-height: 20px;
}
.cookie-consent__option small {
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 18px;
}
.cookie-consent__option.is-locked {
  cursor: default;
  background: var(--surface-alt);
}
.cookie-consent__save {
  height: auto;
  min-height: 48px;
  align-self: stretch;
}

@media (max-width: 820px) {
  .cookie-consent {
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 14px;
  }
  .cookie-consent__content,
  .cookie-consent__settings {
    grid-template-columns: 1fr;
  }
  .cookie-consent__actions {
    grid-template-columns: minmax(0, 1fr) 44px 44px;
  }
  .cookie-consent__accept {
    width: 100%;
    min-width: 0;
  }
}

/* ============================================================
   Forms
   ============================================================ */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--s-4);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

.label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
}
.label .req { color: var(--ink); margin-left: 2px; }

.input, .select, .textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: 16px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.textarea {
  height: auto;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--ink);
  outline: 2px solid var(--brand-yellow);
  outline-offset: 1px;
}
.input::placeholder, .textarea::placeholder { color: var(--ink-subtle); }

.input.is-error, .select.is-error, .textarea.is-error { border-color: var(--error); }
.helper {
  font-size: 13px;
  color: var(--ink-muted);
}
.helper.is-error { color: var(--error); }

.input-mono { font-family: var(--font-mono); letter-spacing: 0; }

/* Radios & checkboxes */
.radio-group, .check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-tile {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
  font-size: 15px;
  transition: border-color 0.15s, background 0.15s;
}
.radio-tile input { accent-color: var(--ink); margin: 0; }
.radio-tile:hover { border-color: var(--ink); }
.radio-tile:has(input:checked) {
  border-color: var(--ink);
  background: var(--surface-alt);
  font-weight: 600;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-muted);
}
.checkbox input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
  flex-shrink: 0;
}
.checkbox a { text-decoration: underline; color: var(--ink); }
.checkbox.is-error { color: var(--error); }
.checkbox.is-error input { accent-color: var(--error); outline: 1.5px solid var(--error); outline-offset: 1px; }

/* Select */
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230A0A0A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ============================================================
   Footer
   ============================================================ */

/* .splash-divider was removed in v2 — the footer now attaches directly to
   the previous section via its own border-top hairline. */

.site-footer {
  background: var(--surface-alt);
  padding: var(--s-8) 0 var(--s-7);
  color: var(--ink);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1.6fr 1fr;
  gap: var(--s-7);
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}
.footer-tagline {
  margin-top: var(--s-4);
  color: var(--ink-muted);
  font-size: 14px;
  max-width: 280px;
  line-height: 1.6;
}
.footer-contact { margin-top: var(--s-4); font-size: 14px; line-height: 1.7; }
.footer-contact a:hover { text-decoration: underline; }

.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--s-5);
}
@media (max-width: 600px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-4); }
}
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--s-3);
}
.footer-col li { font-size: 14px; line-height: 2; }
.footer-col a:hover { text-decoration: underline; }

.footer-legal {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.7;
}
.footer-legal a:hover { text-decoration: underline; }
.footer-legal .copyright { margin-top: var(--s-4); }

/* ============================================================
   Components: yellow ring bullet
   ============================================================ */

.ring-bullet {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2.4px solid var(--brand-yellow);
  border-radius: var(--r-pill);
  flex-shrink: 0;
  position: relative;
  top: 2px;
}
.ring-bullet.lg { width: 20px; height: 20px; border-width: 3px; top: 4px; }

/* Bullet list */
.ring-list { display: flex; flex-direction: column; gap: var(--s-3); }
.ring-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 16px;
  line-height: 1.6;
}

/* ============================================================
   Cards
   ============================================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s-5);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--ink); box-shadow: var(--shadow-card-hover); }

/* Audience card */
.audience-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-height: 420px;
}

/* Color card (used in catalog strip and color search results) */
.color-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  position: relative;
  outline-offset: 4px;
  min-width: 0;
}
.color-card .swatch {
  aspect-ratio: 3 / 2;
  border-radius: var(--r-md);
  border: 1px solid rgba(10, 10, 10, 0.06);
  transition: border-color 0.15s, box-shadow 0.2s;
}
.color-card .meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.color-card .code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.color-card .name {
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.4;
}
.color-card .chip {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  background: var(--surface-alt);
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  align-self: flex-start;
}
.color-card .swatch { position: relative; overflow: hidden; }
.color-card .lab-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3px 8px 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.46);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  backdrop-filter: blur(8px) saturate(1.05);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: opacity 0.15s ease;
}
@media (max-width: 480px) {
  .color-card .lab-hint {
    padding: 4px 6px 5px;
    font-size: 10px;
    line-height: 1.25;
  }
}
.color-card .lab-hint.is-hidden { opacity: 0; }
.color-card .ring-mark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 16px;
  height: 16px;
  border: 2.4px solid var(--brand-yellow);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.85);
  opacity: 0;
  transition: opacity 0.15s;
}
.color-card:hover .swatch { box-shadow: var(--shadow-card-hover); }
.color-card.is-selected .swatch { border: 1px solid var(--ink); }
.color-card.is-selected .ring-mark { opacity: 1; }

/* Search results use square swatches to keep the 4-col grid compact. The
   catalog strip on the home page keeps its taller 3:2 ratio. */
.results-grid .color-card .swatch { aspect-ratio: 1 / 1; }

/* Search results: show the catalog name as a plain caption, without the
   pill/background bubble (kept on the home-page catalog strip). */
.results-grid .color-card .chip {
  height: auto;
  padding: 0;
  background: none;
  border-radius: 0;
}

@media (max-width: 768px) {
  .color-card .swatch { aspect-ratio: 1 / 1; }
}

/* dE chip on similar color cards */
.de-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--r-sm);
  letter-spacing: 0;
}
/* Clickable ΔE chip — toggles the ΔL/Δa/Δb breakdown. */
.de-chip-btn {
  border: 0;
  cursor: pointer;
  transition: box-shadow 0.15s ease;
}
.de-chip-btn:hover,
.de-chip-btn.is-open {
  box-shadow: 0 0 0 2px var(--brand-yellow);
}

.de-popover {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  border-radius: var(--r-sm);
  color: #fff;
  overflow: hidden;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.de-popover.is-open {
  right: 10px;
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 12px 28px rgba(10, 10, 10, 0.28);
  -webkit-backdrop-filter: blur(8px) saturate(1.05);
  backdrop-filter: blur(8px) saturate(1.05);
}
.de-popover .de-chip {
  position: static;
  top: auto;
  left: auto;
}
.de-popover.is-open .de-chip {
  width: 100%;
  justify-content: flex-start;
  background: transparent;
  color: #fff;
}
.de-popover.is-open .de-chip-btn.is-open { box-shadow: none; }

/* Non-interactive display card (close-colors panel). */
.color-card--static { cursor: default; }

/* ΔE deviation breakdown (ΔL / Δa / Δb). */
.de-detail {
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.de-detail-row {
  display: grid;
  grid-template-columns: 26px 58px 1fr;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  line-height: 1.3;
}
.de-detail-row dt {
  margin: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink);
}
.de-detail-row dd { margin: 0; }
.de-detail-val {
  font-family: var(--font-mono);
  text-align: right;
  color: var(--ink-muted);
}
.de-detail-verdict { color: var(--ink); font-weight: 500; }
.de-detail-row.is-ok .de-detail-verdict { color: var(--ink-muted); font-weight: 400; }

.de-detail--overlay {
  margin: 0;
  padding: 7px 10px 9px;
  border-top-color: rgba(255, 255, 255, 0.18);
  gap: 4px;
}
.de-detail--overlay .de-detail-row {
  grid-template-columns: 24px 52px minmax(0, 1fr);
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  line-height: 1.25;
}
.de-detail--overlay .de-detail-row dt,
.de-detail--overlay .de-detail-val,
.de-detail--overlay .de-detail-verdict {
  color: inherit;
}
.de-detail--overlay .de-detail-verdict {
  min-width: 0;
  overflow-wrap: break-word;
}
.de-detail--overlay .de-detail-row.is-ok .de-detail-verdict {
  color: rgba(255, 255, 255, 0.62);
}

@media (max-width: 480px) {
  .de-popover {
    top: 8px;
    left: 8px;
    max-width: calc(100% - 16px);
  }
  .de-popover.is-open { right: 8px; }
  .de-detail--overlay { padding: 6px 8px 8px; }
  .de-detail--overlay .de-detail-row {
    grid-template-columns: 20px 42px minmax(0, 1fr);
    gap: 4px;
    font-size: 10.5px;
  }
}

/* ============================================================
   Splash motifs (decorative SVG fills)
   ============================================================ */

.splash-blob {
  position: absolute;
  pointer-events: none;
  user-select: none;
  filter: blur(0.4px);
}

/* CTA band — v2: inverted deep-charcoal background, white text.
   Primary button keeps brand-yellow; secondary is white outline.
   Yellow no longer occupies a whole section background. */
.cta-band {
  background: var(--surface-deep);
  color: #FFFFFF;
  padding: var(--s-9) 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--s-3);
  color: #FFFFFF;
}
.cta-band p {
  font-size: 18px;
  margin-bottom: var(--s-6);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.72);
}
.cta-band .muted {
  color: rgba(255, 255, 255, 0.6);
}
.cta-band .btn-primary {
  background: var(--brand-yellow);
  color: var(--brand-yellow-ink);
}
.cta-band .btn-primary:hover { background: #FFD800; }
.cta-band .btn-secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  background: transparent;
}
.cta-band .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #FFFFFF;
  color: #FFFFFF;
}
.cta-band .actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Soft cta band on surface-alt — kept for pages that want a calmer CTA */
.cta-band--soft {
  background: var(--surface-alt);
  color: var(--ink);
}
.cta-band--soft h2 { color: var(--ink); }
.cta-band--soft p { color: var(--ink-muted); }
.cta-band--soft .btn-primary {
  background: var(--brand-yellow);
  color: var(--brand-yellow-ink);
}
.cta-band--soft .btn-primary:hover { background: #FFD800; }
.cta-band--soft .btn-secondary {
  border-color: var(--border-strong);
  color: var(--ink);
}
.cta-band--soft .btn-secondary:hover { background: var(--surface); color: var(--ink); }

/* ============================================================
   Reduced motion
   ============================================================ */

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

/* ============================================================
   Utility
   ============================================================ */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.flex { display: flex; }
.grid { display: grid; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 24px; } .gap-6 { gap: 32px; }
.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 24px; } .mt-6 { margin-top: 32px; } .mt-7 { margin-top: 48px; }
.mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 24px; } .mb-6 { margin-bottom: 32px; }
.text-center { text-align: center; }
