/* PlyView — the "showroom at night", shared by every page (html.showroom).
   Loaded after styles.css. The site is always dark so the renders glow; the
   accent (--cta) is a laminate — the rosewood by default, and on the home
   page whichever shade is on the hero wardrobe (home.js writes it). It runs
   through every button, eyebrow, headline grain and the ply edge on top of
   each section. */

@property --cta { syntax: '<color>'; inherits: true; initial-value: #cc7446; }

html.showroom, html.showroom[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #0c0a08;
  --surface:   #14110e;
  --surface-2: #1d1814;
  --ink:       #f3ede2;
  --ink-2:     #c4baab;
  --ink-3:     #8f8576;
  --cta:       #cc7446;
  --cta-hot:   color-mix(in srgb, var(--cta) 80%, #fff);
  --cta-ink:   #17110b;
  --accent:    color-mix(in srgb, var(--cta) 78%, #fff);
  --ok:        color-mix(in srgb, var(--cta) 78%, #fff);
  --line:      rgba(243, 237, 226, 0.10);
  --line-2:    rgba(243, 237, 226, 0.20);
  --shadow:    0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 34px 90px rgba(0, 0, 0, 0.6);
  --grain:     url(/assets/home/grain-RW-8K.webp);
  --dusk:      0;            /* 0 morning … 1 night, across the page below the opening */
  transition: --cta .7s ease;
}
html.showroom .theme-btn { display: none; }

/* Morning-to-evening ambience: one fixed wash behind everything, cool at the
   top of the page and lamp-warm by the end. */
html.showroom body {
  background:
    radial-gradient(120vw 70vh at 50% -10%,
      color-mix(in srgb, color-mix(in srgb, #8fb7d6, #ff9a3d calc(var(--dusk) * 100%)) 13%, transparent), transparent 70%)
    fixed, var(--bg);
}

/* Headline words filled with the figure of the selected laminate. */
.grainfill {
  background: var(--accent) var(--grain) center / 420px;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

html.showroom .hdr .btn--cta { background: var(--cta); color: var(--cta-ink); }
html.showroom .hdr .btn--cta:hover { background: var(--cta-hot); }
html.showroom .mark__word .vu { color: var(--accent); }
@media (max-width: 920px) { html.showroom .nav { background: var(--surface); } }

/* ── sections below: sheets of ply, laminate face on top ────────────── */
html.showroom main > section:not(.open), html.showroom .stats, html.showroom .ftr { position: relative; }
html.showroom .band, html.showroom .edge { background: var(--bg); border: 0; }
html.showroom .band--surface { background: var(--surface); }
html.showroom .band::before, html.showroom .edge::before, html.showroom .ftr::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 13px; pointer-events: none;
  background: linear-gradient(180deg,
    var(--cta) 0 2px, #1a1410 2px 3px,
    #cfae81 3px 5px, #6f4c2e 5px 6px, #c39d6c 6px 8px, #614127 8px 9px, #c9a676 9px 11px, #55391f 11px 12px, #0c0a08 12px 13px);
  opacity: 0.9;
}
html.showroom .ftr { border-top: 0; background: var(--bg); }

html.showroom .stats { margin-top: 0; padding-block: clamp(34px, 5vw, 60px) 0; }
html.showroom .stats__grid { background: var(--surface); box-shadow: none; border: 1px solid var(--line); }
html.showroom .stat b .u { color: var(--accent); }

html.showroom .edge { padding-block: clamp(72px, 10vw, 132px); color: var(--ink); }
html.showroom .edge .eyebrow { color: var(--accent); }
html.showroom .edge .eyebrow::before { background: var(--accent); }
html.showroom .edge h2 { color: var(--ink); }
html.showroom .edge .lede { color: var(--ink-2); }
html.showroom .edge__grid { border: 0; border-radius: 0; gap: 0; margin-top: clamp(36px, 5vw, 60px); overflow: visible; }
html.showroom .edge__cell { background: none; border: 0; border-top: 1px solid var(--line-2); padding: 26px 26px 8px 0; }
html.showroom .edge__big { font-size: clamp(2.2rem, 3.6vw, 3.3rem); background: var(--accent) var(--grain) center / 420px; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-bottom: 4px; }
html.showroom .edge__cell h3 { color: var(--ink); margin-top: 14px; font-size: 1.05rem; }
html.showroom .edge__cell p { color: var(--ink-2); font-size: 0.92rem; }
html.showroom .edge__foot { color: var(--ink-3); margin-top: 28px; }

html.showroom .step, html.showroom .feat, html.showroom .rprt { background: var(--surface-2); border: 1px solid var(--line); box-shadow: none; transition: border-color .2s ease, transform .2s ease; }
html.showroom .band--surface .step, html.showroom .band--surface .feat { background: var(--bg); }
html.showroom .step:hover, html.showroom .feat:hover { border-color: color-mix(in srgb, var(--cta) 60%, transparent); transform: translateY(-3px); }
html.showroom .step__n { color: var(--accent); }
html.showroom .chipdemo__chip { background: #f3ede2; border: 0; }
html.showroom .chipdemo__chip figcaption { color: #6b6257; }
html.showroom .chipdemo__chip figcaption b { color: #17110b; }
html.showroom .chipdemo__chip .sq { background: url(/assets/home/chip-RW-8K.webp) center / cover; }
html.showroom .chipdemo__note { background: var(--surface-2); border-color: var(--line-2); color: var(--ink-2); }
html.showroom .pain__x { color: var(--accent); }
html.showroom .ba, html.showroom .chipdemo__room { box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
html.showroom .pull blockquote { max-width: 26ch; }
html.showroom .cta::before { background: radial-gradient(ellipse at 50% 100%, color-mix(in srgb, var(--cta) 26%, transparent), transparent 62%); }
html.showroom summary::after { color: var(--accent); }
html.showroom h2 .grainfill { padding-bottom: 0.08em; }

/* list rows read as one sentence, not two columns */
html.showroom .insight__points li { display: block; position: relative; padding-left: 24px; }
html.showroom .insight__points li::before { position: absolute; left: 0; }

/* ── inner pages ─────────────────────────────────────────────────────── */
html.showroom .hdr { background: color-mix(in srgb, var(--bg) 82%, transparent); }
html.showroom .hdr[data-stuck="1"] { border-bottom-color: var(--line); }
html.showroom .nav a:hover { background: var(--surface-2); }
@media (max-width: 920px) { html.showroom .nav { background: var(--surface); } }
html.showroom .hero h1 .accent { background: var(--accent) var(--grain) center / 420px; -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
html.showroom .hero .btn--ghost { background: var(--surface-2); }
html.showroom .hero__shot { box-shadow: var(--shadow-lg), 0 0 0 1px var(--line); }
html.showroom .dial__label sup, html.showroom .dial__ring::before { color: var(--cta); }
html.showroom .tier, html.showroom .aside__card, html.showroom .tbl-scroll { background: var(--surface-2); border: 1px solid var(--line); box-shadow: none; }
html.showroom .band--surface .tier, html.showroom .band--surface .aside__card, html.showroom .band--surface .tbl-scroll { background: var(--bg); }
html.showroom .tier--hero { border-color: var(--cta); box-shadow: 0 0 0 1px var(--cta), var(--shadow-lg); }
html.showroom .tier__specs { background: var(--surface); }
html.showroom thead th { background: var(--surface); }
html.showroom .f input, html.showroom .f select, html.showroom .f textarea, html.showroom .choice label { background: var(--surface-2); }
html.showroom .choice label:has(input:checked) { background: var(--surface); }
html.showroom .whyrow__tick, html.showroom .insight__points li::before, html.showroom .tier li::before { color: var(--accent); }
html.showroom .rprt__bars i { background: color-mix(in srgb, var(--cta) 75%, var(--surface)); }
html.showroom a.tiny, html.showroom .ftr nav a:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { html.showroom { transition: none; } }
html.showroom main > .hero { padding-bottom: clamp(40px, 5vw, 64px); }

/* ── pricing: the year-one figure under each plan ─────────────────────── */
html.showroom .tier__year { margin: 10px 0 0; font-size: 0.82rem; color: var(--ink-3); line-height: 1.45; }
html.showroom .tier__year b { color: var(--ink-2); font-weight: 600; }

/* ── phones: no label under 12px, and links tall enough for a thumb ───── */
@media (max-width: 720px) {
  html.showroom .eyebrow, html.showroom .tier__specs span, html.showroom .tier__flag,
  html.showroom .chipdemo__chip figcaption, html.showroom .chipdemo__chip figcaption b,
  html.showroom .tray__label, html.showroom .tray__hint, html.showroom .open__cue, html.showroom .open__skip,
  html.showroom .chipfx__size, html.showroom .mosaic .shot__time { font-size: 0.75rem; }
  html.showroom .eyebrow { letter-spacing: 0.16em; }
  html.showroom .tier__specs span { letter-spacing: 0.04em; }
  html.showroom .ftr nav { gap: 2px 20px; }
  html.showroom .ftr nav a, html.showroom .ftr .tiny, html.showroom .open__skip { display: inline-flex; align-items: center; min-height: 44px; }
  html.showroom .ftr__bar { margin-top: 18px; }
}
/* The two slider labels do not fit side by side on a phone: one goes to the top. */
@media (max-width: 560px) { html.showroom .ba__tag--l { top: 12px; bottom: auto; } }
