/* Drumagog 6 product site — standalone stylesheet (no theme dependencies).
 *
 * The palette is the PLUG-IN's own indigo/ember token set, not a new one
 * invented for the web: a customer moving between the in-plugin store and this
 * page should feel one product, and the two surfaces render the same catalog.
 * Values mirror Source/UI/Theme/D6ThemeTables.h (kIndigo).
 *
 * The page SHAPE follows restem2_site (hero, alternating feature rows, card
 * grids, pricing pair, comparison table, FAQ, CTA band) because that shape is
 * proven and the two products are sold side by side. What is deliberately NOT
 * copied is ReStem's colour set, its Raleway face and its per-page duplicated
 * chrome — the nav and footer here are written once, in the controller.
 */

:root {
  --bg-deep:   #0d111d;  /* one step darker than Tok::bgDeep for page ground  */
  --bg-panel:  #1a2138;  /* Tok::bgPanel  */
  --bg-tint:   #141a2c;  /* alternating section band                          */
  --bg-raised: #242c48;  /* Tok::bgRaised */
  --bg-input:  #141b2e;  /* Tok::bgInput  */
  --line:      #3a4670;  /* Tok::line     */
  --line-soft: #262f4e;  /* Tok::lineSoft, nudged for large flat areas        */
  --text-hi:   #ffffff;  /* Tok::textHi   */
  --text-lo:   #d9dfef;  /* Tok::textLo   */
  --text-dim:  #98a1bd;  /* Tok::textDim, darkened for body copy contrast     */
  --accent:    #ff7847;  /* Tok::accent   */
  --accent-lo: #ff9a72;
  --accent-fg: #14100c;  /* Tok::accentFg */
  --ok:        #39d98a;

  --lane-kick:  #ff7847;
  --lane-snare: #ffb547;
  --lane-hat:   #ffe14d;
  --lane-tom:   #4ade80;
  --lane-ride:  #5aa7ff;
  --lane-crash: #b07aff;
  --lane-perc:  #8b93ad;

  --maxw: 1180px;
  --navw: 1300px;
  --nav-h: 64px;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
html, body { overflow-x: clip; }

body {
  background: var(--bg-deep);
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-lo); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { color: var(--text-hi); line-height: 1.14; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.25rem); font-weight: 800; }
h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.004em; }

p strong, li strong, td strong { color: var(--text-lo); font-weight: 600; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.nowrap { white-space: nowrap; }

/* ---- nav ---------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50;
  border-bottom: 1px solid var(--line-soft);
}
/* The blur sits on its own pinned layer, not on .nav — WebKit rebuilds a
   backdrop-filtered layer whenever anything inside it repaints (a link hover
   counts), which makes the whole bar flicker. */
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(13, 17, 29, 0.9);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  backdrop-filter: saturate(150%) blur(12px);
  transform: translate3d(0, 0, 0);
}
.nav-inner {
  max-width: var(--navw); margin: 0 auto; padding: 0 24px; height: 100%;
  display: flex; align-items: center; gap: 20px;
}
.nav-brand { display: flex; align-items: center; gap: 9px; color: var(--text-hi); margin-right: auto; flex-shrink: 0; }
.nav-brand:hover { color: #fff; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-fg); font-weight: 800; font-size: 15px;
  flex: none;
}
.brand-name { font-weight: 700; letter-spacing: 0.2px; font-size: 1.06rem; }
.nav-links { display: flex; gap: 19px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 0.9rem; font-weight: 500; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--text-hi); }
.nav-links a.on { color: var(--text-hi); border-bottom-color: var(--accent); }
.nav-try {
  color: var(--accent) !important; padding: 7px 14px !important;
  border: 1px solid rgba(255, 120, 71, 0.45); border-radius: 999px;
  font-weight: 600 !important; border-bottom: 1px solid rgba(255, 120, 71, 0.45) !important;
}
.nav-try:hover { color: #fff !important; border-color: var(--accent); background: rgba(255, 120, 71, 0.12); }
.nav-buy {
  background: var(--accent); color: var(--accent-fg) !important;
  padding: 8px 16px !important; border-radius: 999px; font-weight: 700 !important;
  border-bottom: none !important;
}
.nav-buy:hover { filter: brightness(1.07); }
.nav-account { color: var(--text-dim); display: grid; place-items: center; flex: none; }
.nav-account svg { width: 20px; height: 20px; }
.nav-account:hover { color: var(--text-hi); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text-hi); font-size: 21px; cursor: pointer; padding: 4px 8px; order: 10; }

/* ---- hero --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: 78px 0 26px;
  background:
    radial-gradient(1000px 460px at 74% -12%, rgba(255, 120, 71, 0.10), transparent 62%),
    radial-gradient(880px 440px at 10% 2%, rgba(90, 167, 255, 0.10), transparent 64%),
    linear-gradient(180deg, #0a0e18 0%, var(--bg-deep) 88%);
}
.hero .wrap { position: relative; }
.hero.short { padding-bottom: 44px; }
.eyebrow {
  color: var(--accent); font-size: 0.76rem; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--accent); border-radius: 2px; flex: none; }
.lede { margin-top: 22px; max-width: 62ch; color: var(--text-dim); font-size: 1.11rem; }
.lede strong { color: var(--text-lo); }

.cta-row { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 999px; font-weight: 700; font-size: 0.99rem;
  padding: 12px 24px; border: 1px solid transparent; cursor: pointer;
  transition: filter 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.btn-sm { padding: 8px 15px; font-size: 0.88rem; }
.btn-primary { background: var(--accent); color: var(--accent-fg); box-shadow: 0 8px 26px rgba(255, 120, 71, 0.22); }
.btn-primary:hover { color: var(--accent-fg); filter: brightness(1.07); }
.btn-ghost { border-color: var(--line); color: var(--text-lo); background: rgba(255, 255, 255, 0.02); }
.btn-ghost:hover { border-color: var(--text-dim); color: var(--text-hi); }
.cta-note { font-size: 0.86rem; color: var(--text-dim); margin-top: 15px; }
.cta-note.docs { margin-top: 28px; }

.hero-shot { margin-top: 48px; position: relative; }
.hero-shot::before {
  content: ''; position: absolute; inset: -6% -8% auto; height: 66%;
  background: radial-gradient(58% 54% at 50% 42%, rgba(255, 120, 71, 0.12), transparent 70%);
  filter: blur(10px); pointer-events: none;
}

.shot {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
  background: var(--bg-input); overflow: hidden;
}
.shot img { width: 100%; }
.shot-caption { text-align: center; font-size: 0.85rem; color: var(--text-dim); margin-top: 13px; }
.shot.plain { box-shadow: none; }

/* ---- sections ----------------------------------------------------------- */
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.section.tint { background: var(--bg-tint); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { margin-bottom: 46px; }
.section-head p { max-width: 68ch; margin-top: 16px; font-size: 1.04rem; }
.section-head .eyebrow { margin-bottom: 12px; }
.section p + p { margin-top: 13px; }

.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature-row + .feature-row { border-top: 1px solid var(--line-soft); }
.feature-row .copy h2, .feature-row .copy h3 { margin-bottom: 15px; }
.feature-row .copy p + p { margin-top: 13px; }
.feature-row.flip .media { order: 2; }
.feature-row.flip .copy { order: 1; }
.more { font-weight: 600; font-size: 0.95rem; display: inline-block; margin-top: 14px; }
.more::after { content: ' \2192'; }
.narrow { width: min(360px, 100%); margin: 0 auto; }
.narrower { width: min(260px, 100%); margin: 0 auto; }
/* A crop of a whole channel strip is about 1:3.7. Sized by WIDTH like every
   other figure it renders three or four times the height of the paragraph
   beside it and the row stops reading as a row. These are capped by HEIGHT and
   the width follows. */
.shot.tall { width: fit-content; max-width: 100%; margin: 0 auto; }
.shot.tall img { max-height: 520px; width: auto; }

/* ---- cards -------------------------------------------------------------- */
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card { background: var(--bg-panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: 0.95rem; }
.card p + p { margin-top: 10px; }
.card .more { margin-top: 12px; }

.tag {
  display: inline-block; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.1em;
  text-transform: uppercase; border-radius: 999px; padding: 2px 9px; margin-left: 9px;
  vertical-align: 2px; color: var(--accent); border: 1px solid rgba(255, 120, 71, 0.4);
  background: rgba(255, 120, 71, 0.12);
}
.tag.plat { color: var(--lane-crash); border-color: rgba(176, 122, 255, 0.45); background: rgba(176, 122, 255, 0.12); }
.card h3 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card h3 .tag { margin-left: 0; }

/* Mode cards — the LIVE / DRUM / KIT row, echoing the in-plugin selector. */
.mode-card {
  background: var(--bg-panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 20px 20px 18px 18px; display: flex; gap: 15px;
}
.mode-card .bar { width: 4px; border-radius: 3px; flex: none; }
.mode-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.mode-card .sub { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 9px; font-variant-numeric: tabular-nums; }
.mode-card p { font-size: 0.91rem; }

/* Accent cards: each card carries a lane color in --c (set inline), shown as a
   thin top rule, a faint glow in the corner and the tint of its icon chip. */
.card.accent { position: relative; overflow: hidden; transition: border-color .2s ease, transform .2s ease; }
.card.accent::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--c, var(--accent)), transparent 90%);
}
.card.accent::after {
  content: ''; position: absolute; top: -70px; left: -50px; width: 240px; height: 170px;
  background: radial-gradient(closest-side, var(--c, var(--accent)), transparent);
  opacity: 0.09; pointer-events: none;
}
.card.accent > * { position: relative; z-index: 1; }
.card.accent:hover { border-color: var(--line); transform: translateY(-2px); }
.card .ico {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  margin-bottom: 16px; color: var(--c, var(--accent));
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--c, var(--accent)) 14%, transparent);
  border-color: color-mix(in srgb, var(--c, var(--accent)) 38%, transparent);
}
.card .ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; }

/* Mode tiles — Live, Drum and Kit, each in its title-bar color, the latency
   as the headline figure. */
.mode-tile {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 26px 24px 24px;
  background: var(--bg-panel); border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 13%, var(--bg-panel)) 0%, var(--bg-panel) 62%);
  border-color: color-mix(in srgb, var(--c) 34%, var(--line-soft));
}
.mode-tile::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c);
}
.mode-tile .mode-name {
  display: flex; align-items: center; gap: 10px; font-size: 0.8rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--c);
}
.mode-tile .mode-name .tag { margin-left: 0; letter-spacing: 0.1em; }
.mode-tile .mode-ms {
  font-size: 2.6rem; font-weight: 800; color: var(--text-hi); line-height: 1.05;
  margin: 14px 0 2px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em;
}
.mode-tile .mode-ms small { font-size: 1.05rem; font-weight: 700; color: var(--text-dim); margin-left: 6px; }
.mode-tile .mode-ms .approx { font-size: 0.95rem; font-weight: 600; color: var(--text-dim); margin-right: 8px; letter-spacing: 0; }
.mode-tile .mode-for { font-size: 0.95rem; font-weight: 700; color: var(--text-lo); margin-bottom: 12px; }
.mode-tile p { font-size: 0.93rem; }

/* Lane chips — the six drums, in their own colours. */
.lanes { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.lane-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-panel); border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 8px 16px; color: var(--text-lo); font-weight: 600; font-size: 0.9rem;
}
.lane-pill i { width: 8px; height: 8px; border-radius: 50%; flex: none; }

/* Plain notes list */
.notes { list-style: none; margin: 16px 0 0; }
.notes li { padding: 9px 0 9px 21px; position: relative; font-size: 0.96rem; border-bottom: 1px solid var(--line-soft); }
.notes li:last-child { border-bottom: none; }
.notes li::before { content: ''; position: absolute; left: 3px; top: 18px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0.75; }

.callout {
  border: 1px solid var(--line-soft); border-left: 3px solid var(--accent);
  background: var(--bg-panel); border-radius: 10px; padding: 18px 22px;
  font-size: 0.96rem; max-width: 76ch; margin: 26px 0;
}
.callout h3 { font-size: 1rem; margin-bottom: 7px; }

/* ---- pricing ------------------------------------------------------------ */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.price-card { background: var(--bg-panel); border: 1px solid var(--line-soft); border-radius: 18px; padding: 32px 30px 28px; display: flex; flex-direction: column; }
.price-card.featured { border-color: rgba(255, 120, 71, 0.45); box-shadow: 0 20px 60px rgba(255, 120, 71, 0.09); position: relative; }
.price-card .plan { font-weight: 800; font-size: 1.3rem; color: var(--text-hi); }
.price-card .plan-sub { color: var(--text-dim); font-size: 0.92rem; margin-top: 4px; }
.price-card .price { font-size: 2.9rem; font-weight: 800; color: var(--text-hi); margin: 20px 0 0; font-variant-numeric: tabular-nums; }
.price-card .price small { font-size: 0.98rem; font-weight: 500; color: var(--text-dim); }
.price-card ul { list-style: none; margin: 22px 0 26px; flex: 1; }
.price-card li { padding: 6px 0 6px 28px; position: relative; font-size: 0.95rem; }
.price-card li::before { content: '\2713'; position: absolute; left: 2px; top: 6px; color: var(--accent); font-weight: 800; }
.price-card li.no { color: var(--text-dim); }
.price-card li.no::before { content: '\2014'; color: var(--text-dim); font-weight: 400; }
.price-card .btn { justify-content: center; }
.badge-pop {
  position: absolute; top: -12px; right: 26px; background: var(--accent); color: var(--accent-fg);
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 13px; border-radius: 999px;
}

/* ---- tables ------------------------------------------------------------- */
.table-scroll { overflow-x: auto; }
.compare { width: 100%; max-width: 900px; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 12px 15px; border-bottom: 1px solid var(--line-soft); text-align: left; }
.compare thead th { color: var(--text-hi); font-size: 1rem; border-bottom: 1px solid var(--line); }
.compare thead th:nth-child(n+2), .compare td:nth-child(n+2) { text-align: center; width: 165px; }
.compare tbody th { font-weight: 500; color: var(--text-dim); }
.compare td .yes { color: var(--accent); font-weight: 800; }
.compare td .no { color: var(--text-dim); }
.compare tbody tr.group th { color: var(--text-hi); font-weight: 700; padding-top: 26px; font-size: 0.98rem; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 0.96rem; }
.spec-table th, .spec-table td { padding: 12px 15px; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.spec-table th { color: var(--text-hi); font-weight: 600; width: 240px; }
.spec-table td { color: var(--text-dim); }

/* ---- FAQ ---------------------------------------------------------------- */
.faq details { border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg-panel); margin-bottom: 11px; overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 21px; font-weight: 600;
  color: var(--text-hi); font-size: 0.99rem; position: relative; padding-right: 46px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 21px; top: 13px; font-size: 1.35rem; color: var(--text-dim); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { padding: 0 21px 17px; font-size: 0.95rem; }
.faq details p + p { margin-top: 10px; }
.faq details ul { margin: 0 21px 17px 40px; font-size: 0.95rem; }
.faq details li { margin-bottom: 5px; }

/* ---- CTA band and page nav ---------------------------------------------- */
.cta-band {
  text-align: center; padding: 78px 0;
  background: radial-gradient(680px 300px at 50% 0%, rgba(255, 120, 71, 0.10), transparent 70%), #0a0e18;
  border-top: 1px solid var(--line-soft);
}
.cta-band h2 { margin-bottom: 13px; }
.cta-band p { max-width: 56ch; margin: 0 auto; }
.cta-band .cta-row { justify-content: center; }
.pagenav { padding: 0 0 64px; }
.pagenav .wrap { display: flex; gap: 13px; flex-wrap: wrap; }
.pagenav .spacer { flex: 1; }

/* ---- library grid (generated store pages) ------------------------------- */
.page-head { padding: 58px 0 32px; border-bottom: 1px solid var(--line-soft); }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section.note { border-top: 1px solid var(--line-soft); background: var(--bg-panel); padding: 44px 0; }
.section.note h2 { font-size: 1.3rem; margin-bottom: 8px; }
.section.note p { max-width: 74ch; }
.empty { color: var(--text-dim); }

.lib-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); }
.lib-card {
  background: var(--bg-panel); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.lib-card:hover { border-color: var(--line); transform: translateY(-2px); }
.lib-art { display: grid; place-items: center; background: var(--bg-input); aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.lib-art img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.art-fallback { font-size: 42px; font-weight: 800; color: var(--line); letter-spacing: 1px; }
.lib-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.pub { color: var(--text-dim); font-size: 0.71rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; }
.lib-body h2 { font-size: 1.16rem; line-height: 1.25; margin-top: 5px; }
.lib-body h2 a { color: var(--text-hi); }
.lib-body h2 a:hover { color: var(--accent); }
.tagline { color: var(--text-dim); font-size: 0.88rem; margin-top: 5px; }
.summary { color: var(--text-dim); font-size: 0.88rem; margin-top: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tags .tag { margin-left: 0; vertical-align: baseline; color: var(--text-dim); border-color: var(--line-soft); background: none; padding: 3px 8px; font-size: 0.65rem; }
.tag-acoustic     { color: var(--lane-tom)   !important; border-color: rgba(74, 222, 128, 0.4)  !important; }
.tag-vintage      { color: var(--lane-snare) !important; border-color: rgba(255, 181, 71, 0.4)  !important; }
.tag-percussion   { color: var(--lane-perc)  !important; border-color: rgba(139, 147, 173, 0.5) !important; }
.tag-electronic   { color: var(--lane-crash) !important; border-color: rgba(176, 122, 255, 0.4) !important; }
.tag-processed    { color: var(--lane-ride)  !important; border-color: rgba(90, 167, 255, 0.4)  !important; }
.tag-analog-drive { color: var(--lane-kick)  !important; border-color: rgba(255, 120, 71, 0.4)  !important; }
.tag-room-control { color: var(--text-dim)   !important; border-color: var(--line)              !important; }
.lib-foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 10px; }
.price { font-size: 1.16rem; font-weight: 700; color: var(--text-hi); margin-right: auto; font-variant-numeric: tabular-nums; }

.lib-detail { padding: 38px 0 60px; }
.crumb { margin-bottom: 20px; font-size: 0.88rem; }
.crumb a { color: var(--text-dim); }
.detail-top { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 34px; align-items: start; }
.detail-art { background: var(--bg-panel); border: 1px solid var(--line-soft); border-radius: var(--radius); display: grid; place-items: center; padding: 18px; aspect-ratio: 1 / 1; }
.detail-art img { max-height: 100%; object-fit: contain; }
.detail-head h1 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-top: 6px; }
.detail-head .tagline { font-size: 1rem; margin-top: 10px; }
.buyrow { margin-top: 22px; display: flex; gap: 12px; align-items: center; }
.facts { margin-top: 14px; color: var(--text-dim); font-size: 0.85rem; }
.highlights { list-style: none; display: grid; gap: 8px; margin-top: 32px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.highlights li { background: var(--bg-panel); border: 1px solid var(--line-soft); border-radius: 10px; padding: 11px 14px; font-size: 0.88rem; color: var(--text-lo); }
.highlights li::before { content: '\2014'; color: var(--accent); margin-right: 8px; font-weight: 700; }
.prose { margin-top: 32px; max-width: 74ch; }
.prose p { margin-bottom: 14px; }
.prose strong, .prose em { color: var(--text-lo); }
.prose ul { margin: 0 0 14px 20px; }
.prose li { margin-bottom: 6px; }

/* ---- footer ------------------------------------------------------------- */
.foot { background: #0a0e18; border-top: 1px solid var(--line-soft); padding: 44px 0 40px; color: var(--text-dim); font-size: 0.87rem; }
.foot .wrap { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-links a { color: var(--text-dim); }
.foot-links a:hover { color: var(--text-lo); }
/* The trial and the account are actions, not more page navigation, and sitting
   in the same grey run as eight section links is how they get missed. */
.foot-links a.res { color: var(--text-lo); }
.foot-links a.res:hover { color: var(--text-hi); }
/* The boundary link: the first .res after the last plain one. CSS has no
   :first-of-class, and a.res:first-of-type would test "first <a> among the
   siblings", which is Triggering, so it would never match. */
.foot-links a:not(.res) + a.res { border-left: 1px solid var(--line); padding-left: 20px; }
@media (max-width: 700px) {
  /* Wrapped onto its own line the rule would float mid-row, so drop it. */
  .foot-links a:not(.res) + a.res { border-left: 0; padding-left: 0; }
}
.foot-brand { font-weight: 700; color: var(--text-lo); letter-spacing: 0.2px; }

/* ---- reveal on scroll (only hides once JS is live) ---------------------- */
.reveal { transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.pre { opacity: 0; transform: translateY(18px); }
.reveal.pre.in { opacity: 1; transform: none; }

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(10, 14, 24, 0.98); border-bottom: 1px solid var(--line);
    padding: 10px 24px 18px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 2px; width: 100%; font-size: 1rem; border-bottom: 0; }
  .nav-links a.on { border-bottom: 0; color: var(--accent); }
  .nav-try, .nav-buy { margin-top: 10px; width: auto; }
}

@media (max-width: 980px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
  .feature-row.flip .media { order: 0; }
  .pricing { grid-template-columns: 1fr; }
  .detail-top { grid-template-columns: 1fr; gap: 22px; }
  .detail-art { max-width: 320px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .hero { padding-top: 52px; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  .compare thead th:nth-child(n+2), .compare td:nth-child(n+2) { width: 88px; }
  .spec-table th { width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lib-card { transition: none; }
  .reveal, .reveal.pre { opacity: 1; transform: none; transition: none; }
}

/* A heading that splits one section into titled groups of cards. */
.subhead { font-size: 1.15rem; margin: 0 0 18px; color: var(--text-hi); }
.grid + .subhead { margin-top: 64px; }
/* A 3-column grid whose last card is alone on its row centers it (the home page's What's new). */
@media (min-width: 981px) {
  .grid.cols-3.center-last > :last-child:nth-child(3n+1) { grid-column: 2; }
}

/* A signed-in Drumagog owner's own price: the list price struck through, then
   theirs (Drumagog6SiteController::shownPrice / ownerBar). */
.d6-was { text-decoration: line-through; color: var(--text-dim); font-weight: 500; margin-right: 0.15em; }
.nav-buy .d6-was, .btn .d6-was { color: inherit; opacity: 0.6; }
.price-card .price .d6-was { font-size: 1.7rem; vertical-align: 0.35em; }
.price-card .price .d6-yours { color: var(--accent); }
.d6-owner-note { display: block; font-size: 0.9rem; font-weight: 600; color: var(--accent-lo); margin-top: 2px; }
.d6-owner-bar { background: rgba(255, 120, 71, 0.12); border-bottom: 1px solid rgba(255, 120, 71, 0.35); color: var(--text-hi); text-align: center; padding: 11px 16px; font-size: 0.95rem; line-height: 1.45; }
