/* ==========================================================================
   Pages by Beth — demo.css
   Shared base for the 18 landing page templates. Each template layers its
   own personality on top via a page <style> block, but the mechanics —
   demo bar, teaching chips, forms, proof blocks, FAQ, before/after slider,
   demo toast — live here so every demo behaves identically.

   Brand color contract:
   Each template sets its native palette on :root (--d-primary etc).
   When a visitor picks a scheme in the switcher, js/theme.js overrides
   --d-primary inline — the layout holds, the brand color swaps.
   ========================================================================== */

/* --- Fonts (self-hosted, same files as the gallery) ----------------------- */
@font-face {
  font-family: 'Satoshi';
  src: url('../assets/fonts/satoshi-variable.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

/* --- Theme variables (needed by the injected switcher panel) ---------------
   Mirrors site.css: data-scheme carries the accent family for both modes,
   data-mode picks the active set and derives the panel's neutrals. The
   demo page's own design (--d-*) is deliberately NOT driven by these. */
html,
html[data-scheme='midnight'] { --acc-d: #22d3ee; --acc2-d: #0ea5e9; --ink-d: #06222a; --acc-l: #0891b2; --acc2-l: #0369a1; --ink-l: #ffffff; }
html[data-scheme='ember']    { --acc-d: #f97316; --acc2-d: #fb923c; --ink-d: #2a1204; --acc-l: #c2410c; --acc2-l: #9a3412; --ink-l: #ffffff; }
html[data-scheme='forest']   { --acc-d: #8fd6a5; --acc2-d: #4fa873; --ink-d: #0b2413; --acc-l: #2e7d4f; --acc2-l: #1f5c39; --ink-l: #ffffff; }
html[data-scheme='oxblood']  { --acc-d: #e11d48; --acc2-d: #9f1239; --ink-d: #fff1f2; --acc-l: #9f1239; --acc2-l: #7a0e2c; --ink-l: #ffffff; }
html[data-scheme='slate']    { --acc-d: #7fb2f0; --acc2-d: #bfdbfe; --ink-d: #0a1a2e; --acc-l: #1d4ed8; --acc2-l: #1e40af; --ink-l: #ffffff; }
html[data-scheme='gold']     { --acc-d: #e3c27c; --acc2-d: #b08d3f; --ink-d: #241c07; --acc-l: #8b6d2f; --acc2-l: #6d5525; --ink-l: #ffffff; }
html[data-scheme='coastal']  { --acc-d: #5eead4; --acc2-d: #2dd4bf; --ink-d: #042420; --acc-l: #0f766e; --acc2-l: #0d5f59; --ink-l: #ffffff; }
html[data-scheme='paper']    { --acc-d: #e8e2d4; --acc2-d: #c9c2b2; --ink-d: #1c1a15; --acc-l: #16181a; --acc2-l: #4b5563; --ink-l: #faf7f2; }
html[data-scheme='linen']    { --acc-d: #e0956a; --acc2-d: #c2571b; --ink-d: #2a1608; --acc-l: #c2571b; --acc2-l: #9c4416; --ink-l: #fff8f2; }
html[data-scheme='clinical'] { --acc-d: #60a5fa; --acc2-d: #3b82f6; --ink-d: #06192e; --acc-l: #1d6fe0; --acc2-l: #1e40af; --ink-l: #f4f8ff; }

html,
html[data-mode='dark'] {
  --accent: var(--acc-d); --accent-2: var(--acc2-d); --ink-on-accent: var(--ink-d);
  --bg:   color-mix(in srgb, var(--accent) 3%, #0a0c0f);
  --bg-2: color-mix(in srgb, var(--accent) 5%, #101318);
  --bg-3: color-mix(in srgb, var(--accent) 7%, #171b21);
  --text: #edf1f5; --text-2: #9ba6b2; --text-3: #626c78;
  --line: rgba(255, 255, 255, 0.08);
}
html[data-mode='light'] {
  --accent: var(--acc-l); --accent-2: var(--acc2-l); --ink-on-accent: var(--ink-l);
  --bg:   color-mix(in srgb, var(--accent) 3%, #faf9f7);
  --bg-2: color-mix(in srgb, var(--accent) 2%, #ffffff);
  --bg-3: color-mix(in srgb, var(--accent) 6%, #f1efeb);
  --text: #17191d; --text-2: #555d67; --text-3: #949ba5;
  --line: rgba(18, 20, 26, 0.1);
}

html.ts-anim, html.ts-anim body,
html.ts-anim *, html.ts-anim *::before, html.ts-anim *::after {
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease, box-shadow 0.3s ease, fill 0.3s ease !important;
}

/* --- Demo brand variables ---------------------------------------------------
   Templates override --d-primary (and friends) in their own style block.
   Everything else derives via color-mix so a single swap re-brands the page. */
:root {
  --d-primary: #2563eb;          /* the template's brand color            */
  --d-primary-ink: #ffffff;      /* text on top of the brand color        */
  --d-ink: #101828;              /* headings                              */
  --d-body: #475467;             /* body copy                             */
  --d-bg: #ffffff;               /* page background                       */
  --d-soft: #f5f7fa;             /* alternating section background        */
  --d-line: #e6e9ef;             /* hairlines                             */
  --d-star: #f59e0b;             /* rating stars                          */
  --d-radius: 14px;

  --d-tint: color-mix(in srgb, var(--d-primary) 8%, var(--d-bg));
  --d-tint-2: color-mix(in srgb, var(--d-primary) 16%, var(--d-bg));
  --d-deep: color-mix(in srgb, var(--d-primary) 72%, #0a0f1a);
  --d-hover: color-mix(in srgb, var(--d-primary) 86%, #000);
}

/* --- Reset & base ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.demo-page {
  background: var(--d-bg);
  color: var(--d-body);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: 52px; /* room for the fixed demo bar */
}
.demo-page img { max-width: 100%; height: auto; display: block; } /* height:auto so width/height attrs can never distort a downscaled image */
/* :where() keeps these resets at zero-class specificity so single-class
   component styles (.d-btn, .chip-f, .ts-tab…) always beat them — a plain
   `.demo-page button` reset was silently blanking button backgrounds. */
:where(.demo-page) a { text-decoration: none; color: inherit; }
:where(.demo-page) button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.demo-page h1, .demo-page h2, .demo-page h3, .demo-page .d-display {
  font-family: 'Satoshi', 'Inter', sans-serif;
  color: var(--d-ink); font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.08;
}
.d-wrap { width: min(1140px, 92vw); margin-inline: auto; }
.d-section { padding: 4.6rem 0; }
.d-section.is-soft { background: var(--d-soft); }
.d-kicker {
  display: inline-block; font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--d-primary); margin-bottom: 0.9rem;
}
.d-h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); max-width: 26ch; }
.d-lead { margin-top: 1rem; max-width: 60ch; font-size: 1.03rem; }
.d-center { text-align: center; }
.d-center .d-h2, .d-center .d-lead { margin-inline: auto; }

/* --- Portfolio bar (injected by demo.js at the very top of each template) ---- */
.portfolio-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: #0d1015;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.55rem max(4vw, 1rem);
  font-size: 0.78rem; line-height: 1.3;
}
.portfolio-bar .pb-home {
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: #fff !important; font-weight: 700; white-space: nowrap;
}
.portfolio-bar .pb-home span { color: #98a3b0; font-weight: 500; }
.portfolio-bar .pb-home:hover span { color: #d3dae1; }
.portfolio-bar .pb-home svg { flex-shrink: 0; color: #98a3b0; transition: transform 0.2s ease; }
.portfolio-bar .pb-home:hover svg { transform: translateX(-2px); color: #fff; }
.portfolio-bar .pb-note { color: #6d7885; white-space: nowrap; }

/* Reset chip — appears only after the visitor re-colors the demo */
.pb-reset {
  display: none; align-items: center; gap: 0.3rem;
  margin-left: auto;
  font-size: 0.74rem; font-weight: 700; color: #ffce4f;
  border: 1px solid rgba(255, 206, 79, 0.45); border-radius: 999px;
  padding: 0.3rem 0.8rem; white-space: nowrap;
  transition: background 0.15s ease;
}
.pb-reset.is-show { display: inline-flex; }
.pb-reset:hover { background: rgba(255, 206, 79, 0.12); }
.pb-reset.is-floating {
  position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 205;
  background: rgba(13, 16, 21, 0.92);
}
.portfolio-bar .pb-reset + .pb-note { margin-left: 0; }
.portfolio-bar .pb-note { margin-left: auto; }
.portfolio-bar .pb-reset.is-show ~ .pb-note { margin-left: 0; }

@media (max-width: 640px) {
  .portfolio-bar .pb-note { display: none; }
  .portfolio-bar .pb-home span { display: none; }
}

/* --- Demo bar (Part 9 — always visible, never dismissible) ------------------- */
.demo-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; gap: 0.9rem;
  min-height: 44px; padding: 0.45rem 1rem;
  background: rgba(10, 12, 16, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #cfd6de; font-size: 0.78rem; line-height: 1.35;
  text-align: center;
}
.demo-bar strong {
  flex-shrink: 0; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em;
  color: #ffce4f; border: 1px solid rgba(255, 206, 79, 0.5);
  padding: 0.2rem 0.55rem; border-radius: 6px; white-space: nowrap;
}
.demo-bar a { color: #fff; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.35); }
.demo-bar a:hover { border-bottom-color: #fff; }
.demo-bar .db-back {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.72rem; font-weight: 700; color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px; padding: 0.28rem 0.75rem;
  transition: background 0.15s ease; white-space: nowrap;
}
.demo-bar .db-back:hover { background: rgba(255, 255, 255, 0.12); }
@media (max-width: 600px) {
  .demo-bar { font-size: 0.7rem; gap: 0.6rem; text-align: left; }
}

/* --- Teaching chips (Addendum 2) ----------------------------------------------- */
.chips-band { padding: 1.1rem 0; border-bottom: 1px solid var(--d-line); background: var(--d-bg); }
.chips-band .d-wrap { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
.chips-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--d-body); opacity: 0.7; margin-right: 0.3rem;
}
.chip-f {
  font-size: 0.76rem; font-weight: 600; color: var(--d-deep);
  background: var(--d-tint); border: 1px solid var(--d-tint-2);
  padding: 0.36rem 0.8rem; border-radius: 999px;
  transition: 0.18s ease; white-space: nowrap;
}
.chip-f:hover, .chip-f.is-live {
  background: var(--d-primary); color: var(--d-primary-ink);
  border-color: var(--d-primary);
  transform: translateY(-1px);
}

/* Highlight pulse on the element a chip points at */
.is-spot {
  animation: spot 2.4s ease;
  border-radius: var(--d-radius);
}
@keyframes spot {
  0%, 100% { box-shadow: 0 0 0 0 transparent; }
  12%, 62% {
    box-shadow: 0 0 0 3px var(--d-primary),
      0 0 0 9px color-mix(in srgb, var(--d-primary) 22%, transparent);
  }
}

/* Explainer card (appears above the demo bar when a chip is clicked) */
.explain-card {
  position: fixed; left: 50%; bottom: 62px; z-index: 195;
  transform: translate(-50%, 16px);
  width: min(560px, calc(100vw - 28px));
  background: #101418; color: #dfe6ee;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px; padding: 1.1rem 2.8rem 1.15rem 1.3rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.explain-card.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.explain-card h5 {
  font-family: 'Satoshi', sans-serif; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.04em; color: #fff; margin-bottom: 0.4rem;
}
.explain-card h5::before { content: '◆ '; color: var(--d-primary); }
.explain-card p { font-size: 0.85rem; line-height: 1.55; }
.explain-card .ec-close {
  position: absolute; right: 10px; top: 10px;
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: #93a0ae; font-size: 1rem; line-height: 1;
  transition: 0.15s ease;
}
.explain-card .ec-close:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* --- Buttons --------------------------------------------------------------------- */
/* Color-only specificity bump: `.demo-page a { color: inherit }` must never grey
   out an <a> CTA. Kept to color alone so templates' own rules (e.g. hiding a
   header button on mobile) still win on every other property. */
.demo-page .d-btn:not(.is-ghost) { color: var(--d-primary-ink); }
.d-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-weight: 700; font-size: 0.95rem; text-align: center;
  background: var(--d-primary); color: var(--d-primary-ink);
  padding: 0.9rem 1.7rem; border-radius: 12px;
  box-shadow: 0 10px 26px -10px color-mix(in srgb, var(--d-primary) 55%, transparent);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.d-btn:hover {
  background: var(--d-hover); transform: translateY(-2px);
  box-shadow: 0 16px 34px -10px color-mix(in srgb, var(--d-primary) 60%, transparent);
}
.d-btn.is-lg { font-size: 1.05rem; padding: 1.05rem 2.1rem; width: 100%; }
.d-btn.is-ghost {
  background: transparent; color: var(--d-deep);
  border: 1.5px solid var(--d-tint-2); box-shadow: none;
}
.d-btn.is-ghost:hover { border-color: var(--d-primary); color: var(--d-primary); }
.d-btn-sub { margin-top: 0.55rem; font-size: 0.76rem; color: var(--d-body); text-align: center; }

/* --- Hero form card ----------------------------------------------------------------- */
.d-form-card {
  background: var(--d-bg);
  border: 1px solid var(--d-line);
  border-radius: 18px;
  padding: 1.7rem 1.6rem 1.6rem;
  box-shadow: 0 30px 70px -28px rgba(10, 20, 40, 0.45);
}
.d-form-card > h3 { font-size: 1.22rem; margin-bottom: 0.35rem; }
.d-form-card > .df-sub { font-size: 0.86rem; margin-bottom: 1.2rem; }
.d-form { display: grid; gap: 0.8rem; }
.d-field label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--d-ink); margin-bottom: 0.35rem;
}
.d-input, .d-select, .d-textarea {
  width: 100%; font: inherit; font-size: 0.94rem;
  color: var(--d-ink); background: var(--d-bg);
  border: 1.5px solid var(--d-line); border-radius: 10px;
  padding: 0.72rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.d-textarea { min-height: 90px; resize: vertical; }
.d-input:focus, .d-select:focus, .d-textarea:focus {
  outline: none; border-color: var(--d-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-primary) 18%, transparent);
}
.d-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
@media (max-width: 480px) { .d-row-2 { grid-template-columns: 1fr; } }
.d-privacy {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  font-size: 0.74rem; color: var(--d-body); margin-top: 0.2rem;
}

/* Staggered radio cards ("How many rooms? 0–3 / 3–6 / 6+") */
.d-radio-cards { display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); }
.d-radio-cards label {
  position: relative; display: block; text-align: center;
  font-size: 0.88rem; font-weight: 600; color: var(--d-ink);
  border: 1.5px solid var(--d-line); border-radius: 10px;
  padding: 0.75rem 0.5rem; cursor: pointer;
  transition: 0.15s ease; background: var(--d-bg);
}
.d-radio-cards input { position: absolute; opacity: 0; pointer-events: none; }
.d-radio-cards label:hover { border-color: var(--d-primary); }
.d-radio-cards input:checked + span { color: var(--d-primary); }
.d-radio-cards label:has(input:checked) {
  border-color: var(--d-primary);
  background: var(--d-tint);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-primary) 14%, transparent);
}

/* --- Multi-step form ------------------------------------------------------------------ */
.msf-progress {
  height: 6px; border-radius: 999px; background: var(--d-tint-2);
  overflow: hidden; margin-bottom: 1.3rem;
}
.msf-progress i {
  display: block; height: 100%; width: 0%;
  background: var(--d-primary); border-radius: inherit;
  transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.msf-count { font-size: 0.74rem; font-weight: 600; color: var(--d-body); margin-bottom: 0.9rem; }
.msf-step { display: none; }
.msf-step.is-active { display: block; animation: msf-in 0.35s ease; }
@keyframes msf-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.msf-step > h4 { font-size: 1.06rem; margin-bottom: 0.9rem; }
.msf-nav { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.msf-nav .msf-back {
  font-size: 0.86rem; font-weight: 600; color: var(--d-body);
  padding: 0.9rem 1.1rem; border-radius: 12px;
}
.msf-nav .msf-back:hover { color: var(--d-ink); background: var(--d-soft); }
.msf-nav .d-btn { flex: 1; }

/* --- Proof --------------------------------------------------------------------------------- */
.stars { display: inline-flex; gap: 2px; color: var(--d-star); font-size: 0.95rem; letter-spacing: 1px; }
.proof-strip {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  font-size: 0.84rem; font-weight: 600; color: var(--d-ink);
}
.proof-strip .avatars { display: flex; }
.proof-strip .avatars img {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--d-bg); margin-left: -9px;
}
.proof-strip .avatars img:first-child { margin-left: 0; }
.trust-badges { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.trust-badges span {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.74rem; font-weight: 700; color: var(--d-ink);
  border: 1px solid var(--d-line); border-radius: 8px;
  padding: 0.42rem 0.75rem; background: var(--d-bg);
}
.trust-badges span::before { content: '✓'; color: var(--d-primary); font-weight: 800; }

.testimonial {
  background: var(--d-bg); border: 1px solid var(--d-line);
  border-radius: var(--d-radius); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.testimonial blockquote { font-size: 0.95rem; color: var(--d-ink); line-height: 1.55; }
.testimonial .t-who { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.testimonial .t-who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial .t-who b { display: block; font-size: 0.88rem; color: var(--d-ink); }
.testimonial .t-who small { font-size: 0.76rem; color: var(--d-body); }
.t-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-top: 2.4rem; }

/* --- Urgency devices ---------------------------------------------------------------------------- */
.urgency-bar {
  display: flex; align-items: center; justify-content: center; gap: 0.7rem; flex-wrap: wrap;
  background: var(--d-deep); color: #fff;
  font-size: 0.84rem; font-weight: 600;
  padding: 0.6rem 1rem; text-align: center;
}
.urgency-bar strong { color: #ffd166; font-weight: 800; }
.countdown { display: inline-flex; gap: 0.45rem; }
.countdown span {
  display: inline-flex; flex-direction: column; align-items: center;
  min-width: 3.2rem; padding: 0.5rem 0.4rem;
  background: var(--d-ink); color: #fff; border-radius: 10px;
  font-family: 'Satoshi', sans-serif; font-weight: 800; font-size: 1.25rem; line-height: 1;
}
.countdown span small {
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.58rem;
  letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-top: 0.3rem;
}
.slots-left { font-size: 0.84rem; font-weight: 700; color: var(--d-primary); }

/* --- Before / After slider ------------------------------------------------------------------------ */
.ba-slider {
  position: relative; overflow: hidden; border-radius: var(--d-radius);
  aspect-ratio: 16 / 10; user-select: none; touch-action: none;
  border: 1px solid var(--d-line);
}
.ba-slider img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; pointer-events: none;
}
.ba-slider .ba-top { clip-path: inset(0 calc(100% - var(--ba, 50%)) 0 0); }
.ba-slider .ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--ba, 50%); z-index: 3;
  width: 2px; background: #fff; box-shadow: 0 0 14px rgba(0, 0, 0, 0.45);
}
.ba-slider .ba-handle::after {
  content: '⇔'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: #fff; color: var(--d-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.ba-slider .ba-tag {
  position: absolute; top: 12px; z-index: 2;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.1em;
  color: #fff; background: rgba(10, 12, 16, 0.72);
  padding: 0.3rem 0.65rem; border-radius: 6px;
}
.ba-slider .ba-tag.is-before { left: 12px; }
.ba-slider .ba-tag.is-after { right: 12px; }

/* --- FAQ (Addendum 3B) ------------------------------------------------------------------------------ */
.faq { display: grid; gap: 0.7rem; margin-top: 2.4rem; }
.faq details {
  border: 1px solid var(--d-line); border-radius: 12px;
  background: var(--d-bg); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-weight: 700; font-size: 0.97rem; color: var(--d-ink);
  padding: 1.05rem 1.25rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex-shrink: 0;
  font-size: 1.25rem; font-weight: 400; color: var(--d-primary);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 1.25rem 1.15rem; font-size: 0.92rem; }
.faq .faq-a p + p { margin-top: 0.6rem; }

/* --- "Why this works" breakdown (Addendum 3) ---------------------------------------------------------- */
.why-works { background: #0d1015; color: #aeb8c4; }
.why-works .d-kicker { color: #ffce4f; }
.why-works .d-h2, .why-works h3, .why-works h4 { color: #f2f5f8; }
.why-works .d-lead { color: #aeb8c4; }
.ww-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 2.6rem; }
.ww-card {
  border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 14px;
  background: rgba(255, 255, 255, 0.03); padding: 1.4rem;
}
.ww-card h4 { font-size: 0.98rem; margin-bottom: 0.55rem; }
.ww-card h4 span {
  display: block; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: #ffce4f; margin-bottom: 0.45rem;
}
.ww-card p { font-size: 0.87rem; line-height: 1.6; }
.ww-elements { margin-top: 2.6rem; display: grid; gap: 0; }
.ww-el {
  display: grid; grid-template-columns: 200px 1fr; gap: 1.5rem;
  padding: 1.35rem 0; border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.ww-el:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.ww-el h4 { font-size: 0.92rem; }
.ww-el p { font-size: 0.88rem; }
@media (max-width: 640px) { .ww-el { grid-template-columns: 1fr; gap: 0.4rem; } }

/* --- Demo toast (fake form feedback) --------------------------------------------------------------------- */
.demo-toast {
  position: fixed; left: 50%; bottom: 62px; z-index: 210;
  transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: 0.7rem;
  background: #101418; color: #e8edf2;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px; padding: 0.85rem 1.2rem;
  font-size: 0.86rem; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  max-width: calc(100vw - 28px);
}
.demo-toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.demo-toast .dt-check {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  background: #2ecf7f; color: #04170c;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800;
  animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

/* Button submit micro-animation */
.d-btn.is-sent { pointer-events: none; }
.d-btn.is-sent::after { content: ' ✓'; }

/* --- Scroll reveal ------------------------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .is-spot { animation: none; }
}

/* --- Demo footer ------------------------------------------------------------------------------------------------ */
.demo-footer {
  background: #0d1015; color: #6d7885;
  padding: 2.2rem 0 2.6rem; font-size: 0.8rem;
}
.demo-footer .d-wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.demo-footer a { color: #aeb8c4; font-weight: 600; }
.demo-footer a:hover { color: #fff; }

/* ==========================================================================
   Theme switcher panel (injected by js/theme.js — mirrors site.css)
   ========================================================================== */
.ts-tab {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 220;
  width: 44px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3, #191e26); color: var(--accent, #22d3ee);
  border: 1px solid var(--line, rgba(255,255,255,0.08)); border-right: none;
  border-radius: 12px 0 0 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: width 0.2s ease;
}
.ts-tab:hover { width: 50px; }
.ts-backdrop {
  position: fixed; inset: 0; z-index: 221;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.ts-backdrop.is-open { opacity: 1; pointer-events: auto; }
.ts-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 222;
  width: min(340px, 88vw);
  background: var(--bg-2, #12151b); color: var(--text, #edf1f5);
  border-left: 1px solid var(--line, rgba(255,255,255,0.08));
  transform: translateX(102%);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
  display: flex; flex-direction: column;
  padding: 1.8rem 1.5rem; overflow-y: auto;
  font-family: 'Inter', sans-serif;
}
.ts-panel.is-open { transform: none; }
.ts-kicker { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent, #22d3ee); }
.ts-copy { margin-top: 0.7rem; font-size: 0.88rem; line-height: 1.55; color: var(--text-2, #9ba6b2); }
.ts-list { margin-top: 1.6rem; display: grid; gap: 0.45rem; }
.ts-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--line, rgba(255,255,255,0.08)); border-radius: 12px;
  background: transparent; text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ts-row:hover { border-color: color-mix(in srgb, var(--accent, #22d3ee) 45%, transparent); }
.ts-row.is-active { border-color: var(--accent, #22d3ee); background: color-mix(in srgb, var(--accent, #22d3ee) 8%, transparent); }
.ts-name { font-size: 0.88rem; font-weight: 600; }
.ts-name em { font-style: normal; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3, #626c78); margin-left: 0.3rem; }
.ts-swatches { display: flex; gap: 4px; }
.ts-swatches i { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(127, 127, 127, 0.35); }
.ts-note {
  margin-top: 1.4rem; padding-top: 1.2rem;
  border-top: 1px solid var(--line, rgba(255,255,255,0.08));
  font-size: 0.78rem; color: var(--text-3, #626c78); line-height: 1.5;
}
