/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #FAF6F0;
  --linen:    #F2EAE0;
  --ink:      #1E1410;
  --brown:    #5C3A1E;
  --gold:     #C9A84C;
  --gold-lt:  #E8CC7A;
  --rust:     #8B3A1A;
  --sky:      #2A4D7A;
  --sage:     #4A6741;
  --border:   #DDD4C8;
  --shadow:   0 4px 24px rgba(30,20,16,.12);
  --shadow-lg:0 12px 48px rgba(30,20,16,.18);
  --radius:   10px;
  --font-head:'Playfair Display', Georgia, serif;
  --font-body:'Lato', system-ui, sans-serif;
  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Utility ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.btn-primary { background: var(--brown); color: #fff; border-color: var(--brown); }
.btn-primary:hover { background: var(--rust); border-color: var(--rust); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--brown); border-color: var(--brown); }
.btn-ghost:hover { background: var(--brown); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); font-size: 16px; padding: 14px 36px; }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.35); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-full { width: 100%; text-align: center; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-tag {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); font-weight: 700; margin-bottom: 12px;
}
.section-header h2 { font-family: var(--font-head); font-size: clamp(28px, 4vw, 40px); color: var(--ink); line-height: 1.2; margin-bottom: 16px; }
.section-sub { color: #6E5C4A; font-size: 17px; }

/* ── HEADER / NAV ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,246,240,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(30,20,16,.06);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--ink); }
.logo-palette { font-size: 22px; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 700; color: var(--brown); letter-spacing: .3px; transition: color var(--transition); }
.nav-links a:hover { color: var(--rust); }
.nav-cta { background: var(--brown); color: #fff !important; padding: 8px 18px; border-radius: 6px; transition: background var(--transition) !important; }
.nav-cta:hover { background: var(--rust) !important; }
.nav-toggle { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink); }

/* ── HERO (video background) ── */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #0e0a06;
}
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.72;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(14,10,6,0.55) 0%,
    rgba(14,10,6,0.35) 40%,
    rgba(14,10,6,0.75) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 120px 32px 100px;
  text-align: center;
  color: #fff;
}
.hero-eyebrow { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-lt); font-weight: 700; margin-bottom: 20px; }
.hero-headline {
  font-family: var(--font-head);
  font-size: clamp(42px, 7.5vw, 84px);
  line-height: 1.08;
  color: #fff;
  margin-bottom: 24px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.hero-headline em { color: var(--gold-lt); font-style: italic; }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.82); max-width: 520px; margin: 0 auto 40px; line-height: 1.7; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ── COLOR CHART SECTION ── */
.section-colorchart { background: var(--ink); color: #fff; }
.colorchart-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.colorchart-text .section-tag { color: var(--gold-lt); }
.colorchart-text h2 { font-family: var(--font-head); font-size: clamp(26px, 4vw, 42px); color: #fff; margin: 12px 0 20px; }
.colorchart-text p { color: rgba(255,255,255,0.78); font-size: 17px; line-height: 1.75; }
.colorchart-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 16px 64px rgba(0,0,0,0.5);
  display: block;
}
@media (max-width: 768px) {
  .colorchart-inner { grid-template-columns: 1fr; gap: 36px; }
  .colorchart-image { order: -1; }
}

/* ── COLOR CHART SECTION ── */
.section-colorchart { background: var(--ink); color: #fff; }
.colorchart-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.colorchart-text .section-tag { color: var(--gold-lt); }
.colorchart-text h2 { font-family: var(--font-head); font-size: clamp(26px, 4vw, 42px); color: #fff; margin: 12px 0 20px; }
.colorchart-text p { color: rgba(255,255,255,0.78); font-size: 17px; line-height: 1.75; }
.colorchart-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 16px 64px rgba(0,0,0,0.5);
  display: block;
}
@media (max-width: 768px) {
  .colorchart-inner { grid-template-columns: 1fr; gap: 36px; }
  .colorchart-image { order: -1; }
}

/* ── DEMO SECTION ── */
.section-demo { background: #fff; }

.finder-bar {
  background: var(--linen);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.finder-label { font-weight: 700; color: var(--brown); white-space: nowrap; }
.finder-inputs { display: flex; gap: 10px; align-items: center; flex: 1; flex-wrap: wrap; }
.finder-inputs input[type="color"] {
  width: 48px; height: 40px;
  border: 2px solid var(--border); border-radius: 6px;
  cursor: pointer; background: none; padding: 2px;
}
.finder-inputs input[type="text"] {
  padding: 10px 14px; border: 1px solid var(--border); border-radius: 6px;
  font-family: monospace; font-size: 15px; color: var(--ink);
  background: #fff; width: 130px;
}
.finder-inputs input[type="text"]:focus { outline: 2px solid var(--gold); border-color: transparent; }

/* Filter tabs */
.filter-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.tab {
  padding: 7px 16px; border-radius: 50px;
  border: 1.5px solid var(--border);
  background: #fff; color: var(--brown); font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all var(--transition); font-family: var(--font-body);
}
.tab:hover { border-color: var(--gold); }
.tab.active { background: var(--brown); color: #fff; border-color: var(--brown); }

/* Color Grid */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 6px;
}
.swatch {
  aspect-ratio: 1;
  border-radius: 6px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  border: 1px solid rgba(0,0,0,.06);
  position: relative;
}
.swatch:hover {
  transform: scale(1.18);
  z-index: 2;
  box-shadow: 0 6px 20px rgba(0,0,0,.22);
}
.swatch.highlight {
  transform: scale(1.28);
  box-shadow: 0 0 0 3px var(--gold), 0 8px 24px rgba(0,0,0,.28);
  z-index: 3;
}

/* ── MODAL ── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(30,20,16,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop[hidden] { display: none; }
.modal {
  background: #fff; border-radius: 16px;
  max-width: 440px; width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: modalIn .22s ease;
}
@keyframes modalIn { from { opacity:0; transform: scale(.94) translateY(8px); } to { opacity:1; transform: none; } }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: rgba(255,255,255,.7); border: none;
  font-size: 22px; cursor: pointer; color: var(--ink);
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  transition: background var(--transition);
}
.modal-close:hover { background: rgba(255,255,255,1); }
.modal { position: relative; }
.modal-swatch { height: 160px; width: 100%; }
.modal-body { padding: 24px 28px 28px; }
.modal-hex { font-family: monospace; font-size: 13px; color: #9E8A78; margin-bottom: 4px; }
.modal-title { font-family: var(--font-head); font-size: 24px; color: var(--ink); margin-bottom: 20px; }
.modal-pigments { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.pigment-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--linen); border-radius: 8px;
  padding: 10px 14px;
}
.pigment-dot { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; border: 2px solid rgba(0,0,0,.1); }
.pigment-num { font-size: 11px; font-weight: 700; color: #9E8A78; min-width: 20px; }
.pigment-name { font-weight: 700; color: var(--ink); font-size: 15px; }
.modal-tip {
  display: flex; gap: 10px; align-items: flex-start;
  background: #FFF8EC; border-radius: 8px; padding: 12px 14px;
  font-size: 13px; color: #6E5C4A; margin-bottom: 20px;
}
.tip-icon { font-size: 16px; flex-shrink: 0; }
.modal-cta { padding: 14px; font-size: 15px; }

/* ── HOW IT WORKS ── */
.section-how { background: var(--linen); }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.how-card {
  background: #fff; border-radius: var(--radius);
  padding: 32px; border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}
.how-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.how-num { font-family: var(--font-head); font-size: 48px; color: var(--gold); opacity: .5; margin-bottom: 8px; line-height: 1; }
.how-card h3 { font-family: var(--font-head); font-size: 22px; margin-bottom: 10px; }
.how-card p { color: #6E5C4A; }

/* ── PIGMENTS SECTION ── */
.section-pigments { background: #fff; }
.pigment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pigment-chip {
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.pigment-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pigment-chip-color { height: 72px; }
.pigment-chip-label { padding: 10px 12px; background: #fff; }
.pigment-chip-label strong { font-size: 13px; display: block; line-height: 1.3; color: var(--ink); }
.pigment-chip-label span { font-size: 11px; color: #9E8A78; font-family: monospace; }
.category-badge {
  display: inline-block; font-size: 10px; letter-spacing: 1px;
  text-transform: uppercase; font-weight: 700;
  background: var(--linen); color: var(--brown);
  border-radius: 4px; padding: 2px 6px; margin-top: 4px;
}

/* ── VIDEOS ── */
.section-videos { background: var(--linen); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-bottom: 24px; }
.video-card {
  background: #fff; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.video-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.video-thumb {
  background: var(--ink);
  height: 180px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
}
.video-play-btn {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff;
  transition: background var(--transition), transform var(--transition);
  padding-left: 4px;
}
.video-card:hover .video-play-btn { background: var(--gold); border-color: var(--gold); transform: scale(1.08); }
.video-placeholder-label {
  margin-top: 12px; font-size: 12px; color: rgba(255,255,255,.5);
  letter-spacing: 1px; text-transform: uppercase;
}
.video-thumb iframe { width: 100%; height: 100%; border: none; position: absolute; inset: 0; }
.video-info { padding: 18px 20px; }
.video-info h3 { font-family: var(--font-head); font-size: 17px; color: var(--ink); margin-bottom: 8px; line-height: 1.3; }
.video-info p { font-size: 14px; color: #6E5C4A; }
.video-note { text-align: center; font-size: 14px; color: #9E8A78; }
.video-note a { color: var(--brown); font-weight: 700; }

/* ── BLOG ── */
.section-blog { background: #fff; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.blog-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.blog-card-accent { height: 6px; }
.blog-card-body { padding: 24px; }
.blog-tag {
  display: inline-block; font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
  font-weight: 700; color: var(--gold); margin-bottom: 10px;
}
.blog-card h3 { font-family: var(--font-head); font-size: 20px; line-height: 1.3; margin-bottom: 10px; }
.blog-card h3 a { color: var(--ink); transition: color var(--transition); }
.blog-card h3 a:hover { color: var(--rust); }
.blog-card p { font-size: 14px; color: #6E5C4A; margin-bottom: 16px; }
.blog-meta { display: flex; justify-content: space-between; font-size: 12px; color: #9E8A78; font-weight: 700; letter-spacing: .5px; }

/* ── DOWNLOAD CTA ── */
.section-download {
  background: var(--ink);
  color: #fff;
}
.download-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.download-text .section-tag { color: var(--gold); }
.download-text h2 { font-family: var(--font-head); font-size: clamp(28px, 4vw, 42px); color: #fff; margin-bottom: 16px; }
.download-text p { color: #B8A898; margin-bottom: 28px; font-size: 16px; }
.download-features { list-style: none; margin-bottom: 36px; display: flex; flex-direction: column; gap: 10px; }
.download-features li { color: #D4C8BC; font-size: 15px; }
.download-swatch-wall {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
  border-radius: 12px;
  overflow: hidden;
  opacity: .9;
}
.download-swatch-wall .ds { aspect-ratio: 1; border-radius: 2px; }

/* ── FOOTER ── */
.site-footer { background: #120E0A; color: #857568; padding: 40px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; margin-bottom: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-brand strong { color: #FAF6F0; font-size: 16px; font-family: var(--font-head); }
.footer-brand p { font-size: 13px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 13px; font-weight: 700; color: #857568; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-copy { text-align: center; font-size: 12px; color: #52443A; border-top: 1px solid #221A14; padding-top: 20px; }

/* ── APP PREVIEW ── */
.section-preview { background: var(--linen); }
.preview-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: center;
}
.preview-text h2 { font-family: var(--font-head); font-size: clamp(26px,3.5vw,38px); margin-bottom: 16px; }
.preview-text p { color: #6E5C4A; margin-bottom: 24px; font-size: 16px; }
.preview-features { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.preview-features li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #4A3828; }
.pf-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; border: 1px solid rgba(0,0,0,.15); display: inline-block; }

.preview-screenshot { position: relative; }
.screenshot-chrome {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  border: 1px solid #333;
}
.chrome-bar {
  background: #1a1a1a;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.chrome-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.chrome-title { font-size: 13px; color: #ccc; margin-left: 10px; font-family: var(--font-body); }
.chrome-badge { font-size: 11px; background: #2a7a3a; color: #7eff9a; padding: 2px 8px; border-radius: 4px; margin-left: 8px; }
.screenshot-img {
  width: 100%; display: block;
  background: #111;
}
.screenshot-placeholder {
  background: #111;
  min-height: 320px;
  display: flex;
  align-items: stretch;
}
.placeholder-mockup {
  display: flex;
  width: 100%;
  font-family: var(--font-body);
  font-size: 12px;
}
.mock-left, .mock-right { background: #1a1a1a; padding: 12px; width: 170px; flex-shrink: 0; }
.mock-center { flex: 1; background: #0d0d0d; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.mock-label { color: #888; font-size: 10px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.mock-swatch { width: 100%; height: 70px; border-radius: 6px; margin-bottom: 8px; }
.mock-hex { font-family: monospace; color: #ccc; font-size: 13px; margin-bottom: 10px; }
.mock-row { display: flex; align-items: center; gap: 6px; color: #aaa; font-size: 11px; margin-bottom: 6px; padding: 5px 6px; background: #252525; border-radius: 4px; }
.mock-row span, .mock-chips span, .mock-picked span { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; display: inline-block; }
.mock-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-bottom: 12px; }
.mock-chips span, .mock-picked span { width: 100%; padding-top: 100%; border-radius: 3px; }
.mock-picked { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mock-image-label { color: #555; font-size: 11px; }
.mock-canvas-hint { color: #333; font-size: 13px; border: 1px dashed #333; padding: 20px 16px; border-radius: 6px; text-align: center; }

/* Hide placeholder once screenshot loaded */
.screenshot-img.loaded + .screenshot-placeholder,
body.has-screenshot .screenshot-placeholder { display: none; }

/* ── TRY IT LIVE ── */
.section-tryit { background: #111; color: #e0d4c8; padding-bottom: 0; }
.section-tryit .section-tag { color: var(--gold); }
.section-tryit .section-header h2 { color: #fff; }
.section-tryit .section-sub { color: #9E8A78; }
.tryit-header-inner { padding-bottom: 32px; }

.tryit-embed-wrap {
  width: 100%;
  border-top: 2px solid #2a2a2a;
  background: #0d0d0d;
  line-height: 0;
}
.tryit-hint-bar {
  background: #1a1a1a;
  border-top: 1px solid #2a2a2a;
  color: #7a6a55;
  font-size: 13px;
  text-align: center;
  padding: 10px 20px;
  line-height: 1.5;
}
.tryit-hint-bar strong { color: #c9a84c; }

.tryit-embed-wrap iframe {
  display: block;
  width: 100%;
  height: 950px;
  border: none;
  background: #111;
}
@media (max-width: 768px) {
  .tryit-embed-wrap iframe { height: 600px; }
}

.painting-selector {
  display: flex; gap: 8px; flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}
.paint-btn {
  padding: 8px 18px; border-radius: 50px;
  border: 1.5px solid #333;
  background: #1a1a1a; color: #9E8A78;
  font-size: 13px; font-weight: 700;
  cursor: pointer; transition: all var(--transition);
  font-family: var(--font-body);
}
.paint-btn:hover { border-color: var(--gold); color: var(--gold-lt); }
.paint-btn.active { background: var(--brown); color: #fff; border-color: var(--brown); }

.tryit-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: start;
}

/* Left panel */
.tryit-panel {
  background: #1a1a1a;
  border-radius: 10px;
  border: 1px solid #2a2a2a;
  overflow: hidden;
  min-height: 480px;
}
.tryit-panel-header {
  background: #222;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  border-bottom: 1px solid #2a2a2a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tryit-panel-header::before { content: '⚡'; font-style: normal; }
.tryit-idle {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 20px; gap: 16px; height: 420px;
  text-align: center;
}
.tryit-cursor-hint { font-size: 36px; }
.tryit-idle p { color: #666; font-size: 14px; line-height: 1.6; }
.tryit-result { padding: 16px; overflow-y: auto; max-height: 600px; }
.tryit-picked-swatch { height: 100px; border-radius: 8px; margin-bottom: 10px; border: 1px solid rgba(255,255,255,.08); }
.tryit-picked-hex { font-family: monospace; font-size: 18px; font-weight: 700; color: #fff; }
.tryit-picked-rgb { font-family: monospace; font-size: 12px; color: #666; margin-bottom: 14px; }
.tryit-matches-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.5px; color: #555; margin-bottom: 10px; font-weight: 700; }
.tryit-match {
  display: flex; align-items: flex-start; gap: 10px;
  background: #222;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: background var(--transition);
  border: 1px solid transparent;
}
.tryit-match:hover { background: #2a2a2a; border-color: #3a3a3a; }
.tryit-match-swatch { width: 36px; height: 36px; border-radius: 6px; flex-shrink: 0; border: 1px solid rgba(255,255,255,.1); }
.tryit-match-info { flex: 1; min-width: 0; }
.tryit-match-pigments { font-size: 12px; color: #ccc; line-height: 1.4; }
.tryit-match-meta { font-family: monospace; font-size: 10px; color: #555; margin-top: 3px; }
.tryit-match.best { border-color: var(--gold); background: #1f1a0f; }
.tryit-match.best .tryit-match-pigments { color: #fff; }

/* Canvas wrap */
.tryit-canvas-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  background: #0d0d0d;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.painting-canvas {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
  max-height: 560px;
  object-fit: contain;
}
.tryit-loading {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 16px; background: #0d0d0d; z-index: 2;
  color: #666;
}
.tryit-loading.hidden { display: none; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid #2a2a2a;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; background: var(--cream); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links li { padding: 0; }
  .nav-links a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .download-inner { grid-template-columns: 1fr; gap: 40px; }
  .download-swatch-wall { grid-template-columns: repeat(6, 1fr); }
  .hero-swatch-preview { height: 60px; }
  .color-grid { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
  .section { padding: 64px 0; }
  .blog-grid { grid-template-columns: 1fr; }
  .preview-inner { grid-template-columns: 1fr; }
  .tryit-layout { grid-template-columns: 1fr; }
  .tryit-panel { min-height: auto; }
  .tryit-canvas-wrap { min-height: 260px; }
}
@media (max-width: 480px) {
  .finder-bar { flex-direction: column; align-items: flex-start; }
  .modal-body { padding: 20px; }
}
