:root {
  --accent: #00ae42;
  --accent-dark: #00933a;
  --accent-soft: #e6f7ec;
  --bg: #f2f3f5;
  --card: #ffffff;
  --text: #1d2125;
  --muted: #6b7280;
  --line: #e4e6ea;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 4px 14px rgba(16, 24, 40, .06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-dark); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--accent);
  color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 20px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand-tagline { font-size: 13px; color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: background .15s, transform .05s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .model-card:focus-visible, .swatch:focus-visible, .mode-btn:focus-visible {
  outline: 3px solid rgba(0, 174, 66, .45); outline-offset: 2px;
}
.btn-tip { background: var(--accent); color: #fff; padding: 9px 18px; font-size: 14px; }
.btn-tip:hover { background: var(--accent-dark); }
.btn-surprise {
  width: 100%; margin-top: 14px; padding: 11px; background: var(--accent-soft);
  color: var(--accent-dark); border: 1px solid #bfe8cd;
}
.btn-surprise:hover { background: #d6f2df; }
.btn-download {
  width: 100%; margin-top: 18px; padding: 16px; font-size: 17px; border-radius: var(--radius-sm);
  background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(0, 174, 66, .28);
}
.btn-download:hover { background: var(--accent-dark); }
.btn-download[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Showcase layout */
.showcase {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px;
  margin-top: 20px; align-items: start;
}
.viewer {
  position: relative; background: #eceef1; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; aspect-ratio: 16 / 10; min-height: 340px;
}
.viewer canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; }
.viewer-status {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  padding: 24px; color: var(--muted); font-size: 15px; pointer-events: none;
}
.viewer-status.error { color: #b42318; }
.viewer-status[hidden] { display: none; }
.viewer-hint {
  position: absolute; left: 12px; bottom: 12px; font-size: 12px; color: var(--muted);
  background: rgba(255, 255, 255, .8); padding: 4px 10px; border-radius: 999px; pointer-events: none;
}
.toast {
  position: absolute; top: 14px; left: 50%; transform: translate(-50%, -8px);
  background: rgba(29, 33, 37, .88); color: #fff; padding: 7px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; opacity: 0; transition: opacity .2s, transform .2s;
  pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.section-title { font-size: 20px; margin: 28px 0 12px; letter-spacing: -.01em; }
.section-sub { margin: -6px 0 14px; color: var(--muted); font-size: 14px; }

/* Model cards */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.model-card {
  background: var(--card); border: 2px solid transparent; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 0; text-align: left; cursor: pointer; font: inherit;
  color: inherit; overflow: hidden; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.model-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16, 24, 40, .1); }
.model-card[aria-selected="true"] { border-color: var(--accent); }
.card-thumb {
  height: 120px; display: grid; place-items: center; font-size: 44px;
  background: linear-gradient(135deg, #f7f8fa, #e9ecef);
}
.card-body { padding: 12px 14px 14px; }
.card-name { font-weight: 700; font-size: 16px; margin: 6px 0 4px; }
.card-summary { color: var(--muted); font-size: 13.5px; margin: 0; }

.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px;
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-dark);
  text-transform: uppercase; letter-spacing: .03em;
}
.badge-sample { background: #fff4e5; color: #b54708; }

/* Detail panel */
.detail {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; position: sticky; top: 84px;
}
.detail h1 { font-size: 24px; margin: 8px 0 8px; letter-spacing: -.015em; line-height: 1.2; }
.detail-desc { color: #3f4650; font-size: 14.5px; margin: 0 0 16px; }
.print-notes {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 10px;
}
.print-notes div { background: #f6f7f9; border-radius: var(--radius-sm); padding: 9px 12px; }
.print-notes dt { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.print-notes dd { margin: 2px 0 0; font-weight: 650; font-size: 14.5px; }
.detail-notes { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }

.color-block { border-top: 1px solid var(--line); padding-top: 16px; }
.color-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.label { font-weight: 700; font-size: 14px; }
.color-name { font-size: 13px; color: var(--muted); }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.swatch {
  aspect-ratio: 1; border-radius: 50%; border: 2px solid #fff; cursor: pointer; padding: 0;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .14);
  transition: transform .1s, box-shadow .15s;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2px var(--accent); }
.color-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.custom-color {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.custom-color input {
  width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 8px; padding: 2px;
  background: #fff; cursor: pointer;
}
.modes { display: flex; gap: 4px; margin-left: auto; background: #f1f2f4; padding: 3px; border-radius: 999px; }
.mode-btn {
  border: 0; background: transparent; font: inherit; font-size: 12px; font-weight: 600;
  padding: 5px 9px; border-radius: 999px; cursor: pointer; color: var(--muted);
}
.mode-btn[aria-checked="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.fineprint { font-size: 12px; color: var(--muted); text-align: center; margin: 10px 0 0; }

/* Supplies */
.supply-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.supply-card {
  display: block; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; text-decoration: none; color: inherit; border: 1px solid transparent;
  transition: border-color .15s, transform .15s;
}
.supply-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.supply-label { font-weight: 700; margin: 0 0 4px; }
.supply-blurb { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
.supply-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.supply-meta .aff { color: var(--muted); }
.supply-meta .go { color: var(--accent-dark); font-weight: 700; }

/* All models (SEO list) */
.all-models-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.all-models-list li { background: var(--card); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow); }
.all-models-list h3 { margin: 0 0 4px; font-size: 16px; }
.all-models-list h3 a { color: inherit; text-decoration: none; }
.all-models-list h3 a:hover { color: var(--accent-dark); }
.all-models-list p { margin: 0; color: #4b5260; font-size: 14px; }
.all-models-list .dl { font-size: 13px; font-weight: 600; margin-top: 6px; display: inline-block; }

/* Footer */
.site-footer {
  margin-top: 48px; padding: 24px 0 32px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px; text-align: center; background: var(--card);
}

/* Responsive */
@media (max-width: 960px) {
  .showcase { grid-template-columns: 1fr; }
  .detail { position: static; }
  .viewer { aspect-ratio: 4 / 3; }
}
@media (max-width: 520px) {
  .brand-tagline { display: none; }
  .swatches { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .modes { margin-left: 0; }
}
