/* ==========================================================================
   © LessonHelpers — Atelier Design System for lessonhelpers.com (v2 Expanded)
   Deep Atelier Emerald · Warm Parchment · Antique Gold · Coral
   ========================================================================== */

:root {
  color-scheme: light;

  --emerald-950: #061D19;
  --emerald-900: #0A2B25;
  --emerald-800: #114037;
  --emerald-700: #195E50;
  --emerald-600: #257A69;
  --emerald-100: #E5F2EE;

  --parchment-50: #FFFDF9;
  --parchment-100: #FAF5EA;
  --parchment-200: #F2E8D5;
  --parchment-300: #E5D5B7;

  --gold-200: #FCE59F;
  --gold-400: #E7B84F;
  --gold-600: #B68020;
  --gold-700: #8D5F12;

  --coral-500: #D64B38;
  --coral-600: #B53524;

  --ink-900: #1B1813;
  --ink-700: #413A30;
  --ink-500: #6E6456;
  --ink-light: #FBF7EE;
  --ink-light-muted: rgba(251, 247, 238, 0.78);

  --line-warm: rgba(74, 54, 28, 0.14);
  --line-warm-strong: rgba(74, 54, 28, 0.24);
  --line-gold: rgba(231, 184, 79, 0.34);
  --shadow-sm: 0 2px 8px rgba(17, 36, 30, 0.06);
  --shadow-md: 0 12px 32px -12px rgba(17, 36, 30, 0.14), 0 2px 6px rgba(17, 36, 30, 0.05);
  --shadow-lg: 0 24px 60px -20px rgba(7, 29, 25, 0.35), 0 6px 18px -6px rgba(7, 29, 25, 0.18);
  --shadow-gold: 0 8px 26px -8px rgba(231, 184, 79, 0.55);

  --font-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-sans: "SF Pro Rounded", ui-rounded, "Avenir Next", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1220px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background: var(--parchment-100);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; }

.container { width: min(var(--container), calc(100% - 2rem)); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.78rem 1.35rem;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.15;
  border: 1.5px solid transparent;
  transition: transform 0.22s var(--ease), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.22s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.985); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-200) 0%, var(--gold-400) 100%);
  color: var(--emerald-950);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { box-shadow: 0 12px 30px -6px rgba(231, 184, 79, 0.7); }

.btn-emerald {
  background: linear-gradient(180deg, var(--emerald-600) 0%, var(--emerald-700) 100%);
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(25, 94, 80, 0.55);
}
.btn-emerald:hover { background: linear-gradient(180deg, #2B8976 0%, #1C6959 100%); }

.btn-ghost-dark {
  background: rgba(255, 253, 249, 0.08);
  color: var(--ink-light);
  border-color: rgba(252, 229, 159, 0.34);
  backdrop-filter: blur(8px);
}
.btn-ghost-dark:hover { background: rgba(255, 253, 249, 0.16); border-color: var(--gold-200); }

.btn-outline {
  background: var(--parchment-50);
  color: var(--ink-900);
  border-color: var(--line-warm-strong);
}
.btn-outline:hover { border-color: var(--emerald-700); color: var(--emerald-800); }
.btn-sm { padding: 0.52rem 0.96rem; font-size: 0.85rem; }

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 253, 249, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-warm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  padding: 0.28rem 0.9rem 0.28rem 0.32rem;
  border-radius: var(--r-pill);
  background: var(--parchment-50);
  border: 1.5px solid var(--line-warm);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s var(--ease), border-color 0.2s ease;
  flex-shrink: 0;
}
.brand-pill:hover { transform: translateY(-1px); border-color: rgba(25, 94, 80, 0.4); }
.brand-badge { width: 36px; height: 36px; display: grid; place-items: center; flex-shrink: 0; }
.brand-badge svg { width: 36px; height: 36px; display: block; }
.brand-word { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; color: var(--ink-900); }
.brand-word b { color: var(--emerald-700); font-weight: 800; }

.main-nav { display: flex; align-items: center; gap: 0.25rem; }
.main-nav a {
  padding: 0.45rem 0.76rem;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-700);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.main-nav a:hover { background: var(--parchment-200); color: var(--emerald-800); }

.header-actions { display: flex; align-items: center; gap: 0.55rem; }
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-pill);
  background: var(--parchment-200);
  border: 1px solid var(--line-warm);
}
.lang-btn {
  border: 0;
  background: transparent;
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-pill);
  font-size: 0.79rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--ink-500);
  transition: background-color 0.18s ease, color 0.18s ease;
}
.lang-btn.is-active { background: var(--emerald-800); color: var(--gold-200); }

.mobile-menu-btn {
  display: none;
  border: 1.5px solid var(--line-warm);
  background: var(--parchment-50);
  border-radius: 12px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 68% 60% at 78% 36%, rgba(231, 184, 79, 0.18) 0%, transparent 62%),
    radial-gradient(ellipse 52% 64% at 15% 82%, rgba(44, 133, 115, 0.25) 0%, transparent 65%),
    linear-gradient(155deg, var(--emerald-950) 0%, var(--emerald-900) 52%, var(--emerald-800) 100%);
  color: var(--ink-light);
  padding: clamp(3rem, 5.8vw, 4.9rem) 0 clamp(3.4rem, 6.2vw, 5.2rem);
  overflow: hidden;
  border-bottom: 3px solid var(--gold-400);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(252, 229, 159, 0.14) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.3;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(2rem, 4.5vw, 3.8rem);
  align-items: center;
}
.hero-copy, .hero-stage { min-width: 0; }

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 100%;
  flex-wrap: wrap;
  padding: 0.36rem 0.88rem;
  border-radius: var(--r-pill);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(252, 229, 159, 0.12);
  border: 1px solid rgba(252, 229, 159, 0.34);
  color: var(--gold-200);
  margin-bottom: 1.2rem;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 10px var(--gold-400); }

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.2vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.15rem;
  font-weight: 700;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(120deg, var(--gold-200) 0%, var(--gold-400) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { font-size: clamp(1rem, 1.4vw, 1.14rem); color: var(--ink-light-muted); max-width: 54ch; margin: 0 0 1.75rem; }
.hero-lead strong { color: #fff; font-weight: 700; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(252, 229, 159, 0.2);
}
.metric-val { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; color: var(--gold-200); line-height: 1.05; }
.metric-lbl { font-size: 0.82rem; color: var(--ink-light-muted); margin-top: 0.2rem; }

/* Hero Stage */
.hero-stage {
  background: rgba(6, 29, 25, 0.56);
  border: 1.5px solid rgba(252, 229, 159, 0.28);
  border-radius: 26px;
  padding: 1.1rem;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}
.hero-stage-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.85rem; }
.hero-stage-tag { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-200); }
.hero-dots { display: flex; gap: 0.35rem; }
.hero-dot-btn {
  width: 24px; height: 7px; border-radius: 99px; border: 0;
  background: rgba(255, 253, 249, 0.22); padding: 0;
  transition: background-color 0.2s ease, transform 0.2s var(--ease);
}
.hero-dot-btn.is-active { background: var(--gold-400); transform: scaleX(1.15); }

.hero-stage-visual {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, #185145 0%, #07201B 100%);
  aspect-ratio: 16 / 11;
  border: 1px solid rgba(252, 229, 159, 0.28);
  padding: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-stage-img {
  width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: center;
  border-radius: 11px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.48);
  transition: opacity 0.35s ease;
}

.hero-stage-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; padding-top: 0.95rem; flex-wrap: wrap;
}
.hero-stage-info h2 { margin: 0; font-family: var(--font-serif); font-size: 1.2rem; color: #fff; }
.hero-stage-info p { margin: 0.14rem 0 0; font-size: 0.83rem; color: var(--ink-light-muted); }

.hero-thumb-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.hero-thumb {
  border: 1.5px solid rgba(255, 253, 249, 0.14);
  background: rgba(255, 253, 249, 0.06);
  border-radius: 11px;
  padding: 0.4rem 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-light-muted);
  text-align: center;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.hero-thumb:hover { border-color: rgba(252, 229, 159, 0.45); color: #fff; }
.hero-thumb.is-active { background: rgba(231, 184, 79, 0.18); border-color: var(--gold-400); color: var(--gold-200); }

/* Sections & Headings */
section[id], .compare-card[id] { scroll-margin-top: 84px; }
.section { padding: clamp(3.2rem, 5.8vw, 5.2rem) 0; }
.section-cream { background: var(--parchment-50); border-top: 1px solid var(--line-warm); border-bottom: 1px solid var(--line-warm); }
.section-tinted { background: linear-gradient(180deg, var(--parchment-100) 0%, var(--parchment-200) 100%); }

.section-head { max-width: 70ch; margin-bottom: clamp(1.6rem, 3.2vw, 2.5rem); }
.section-head.is-center { text-align: center; margin-inline: auto; }
.section-eyebrow {
  display: inline-block; font-size: 0.77rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--emerald-700); margin-bottom: 0.45rem;
}
.section-head h2 {
  font-family: var(--font-serif); font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.7rem; color: var(--ink-900);
}
.section-head p { margin: 0; color: var(--ink-500); font-size: 1.02rem; }

/* Pillars */
.pillars-section { padding: 2.3rem 0; background: var(--parchment-50); border-bottom: 1px solid var(--line-warm); }
.pillars-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
.pillar-card { padding: 1.25rem; border-radius: var(--r-md); background: var(--parchment-100); border: 1px solid var(--line-warm); }
.pillar-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--emerald-800);
  color: var(--gold-200); display: grid; place-items: center; margin-bottom: 0.8rem;
  box-shadow: 0 4px 12px rgba(17, 64, 55, 0.2);
}
.pillar-card h3 { margin: 0 0 0.35rem; font-size: 0.99rem; font-weight: 800; }
.pillar-card p { margin: 0; font-size: 0.88rem; color: var(--ink-500); line-height: 1.5; }

/* Live Demo Workbench */
.demo-tabs { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.35rem; }
.demo-tab {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.52rem 0.92rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-warm); background: var(--parchment-50);
  font-size: 0.85rem; font-weight: 700; color: var(--ink-700);
  transition: transform 0.18s var(--ease), background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.demo-tab:hover { transform: translateY(-1px); border-color: var(--emerald-600); color: var(--emerald-800); }
.demo-tab.is-active {
  background: var(--emerald-800); border-color: var(--emerald-800); color: var(--gold-200);
  box-shadow: 0 6px 18px -6px rgba(17, 64, 55, 0.45);
}
.demo-tab.is-partner-tab {
  background: linear-gradient(135deg, rgba(252,229,159,0.28), rgba(231,184,79,0.2));
  border-color: var(--gold-400); color: var(--emerald-950);
}
.demo-tab.is-partner-tab:hover { background: var(--gold-200); border-color: var(--gold-600); color: var(--emerald-950); }
.tab-new-dot {
  font-size: 0.65rem; font-weight: 900; padding: 0.1rem 0.38rem; border-radius: 99px;
  background: var(--gold-400); color: var(--emerald-950); letter-spacing: 0.03em;
}

.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(290px, 0.78fr);
  gap: 1.35rem;
  align-items: stretch;
}
.demo-canvas-card, .demo-sidebar { min-width: 0; }

.demo-canvas-card {
  background: var(--parchment-50);
  border: 1.5px solid var(--line-warm-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; overflow: hidden;
  transition: box-shadow 0.25s ease;
}

/* Expanded Smartboard Focus Mode */
body.demo-focus { overflow: hidden; }
body.demo-focus .demo-canvas-card {
  position: fixed;
  inset: 10px;
  z-index: 150;
  border-radius: 20px;
  box-shadow: 0 30px 90px rgba(4, 18, 15, 0.76);
  border: 2px solid var(--gold-400);
}
body.demo-focus .demo-stage.is-iframe-stage { height: calc(100vh - 70px); max-height: none; min-height: 0; }

.demo-stage.is-iframe-stage {
  padding: 0;
  min-height: 610px;
  height: clamp(580px, 68vh, 740px);
  background: #F6EFE2;
  position: relative;
  overflow: hidden;
}
.demo-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #FAF5EA;
  transition: opacity 0.24s ease;
}
.demo-frame.is-loading { opacity: 0.15; }
.demo-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--emerald-800);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 3;
}
.demo-loader.is-visible { opacity: 1; }
.loader-spin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(25, 94, 80, 0.2);
  border-top-color: var(--emerald-700);
  animation: lhSpin 0.75s linear infinite;
}
@keyframes lhSpin { to { transform: rotate(360deg); } }

.demo-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.65rem; padding: 0.66rem 1rem;
  background: linear-gradient(90deg, var(--emerald-900) 0%, var(--emerald-800) 100%);
  color: var(--ink-light);
  border-bottom: 2px solid var(--gold-400);
  flex-wrap: wrap;
}
.demo-bar-left { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; min-width: 0; }
.demo-bar-right { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.demo-pill-badge {
  font-size: 0.67rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 0.22rem 0.58rem; border-radius: var(--r-pill);
  background: rgba(252, 229, 159, 0.16); border: 1px solid rgba(252, 229, 159, 0.4); color: var(--gold-200);
}
.demo-bar-caption { font-size: 0.82rem; color: var(--ink-light-muted); font-weight: 600; }
.bar-mini-btn {
  display: inline-flex; align-items: center; gap: 0.3rem;
  background: rgba(255, 253, 249, 0.12); border: 1px solid rgba(255, 253, 249, 0.24);
  color: #fff; padding: 0.28rem 0.65rem; border-radius: var(--r-pill);
  font-size: 0.75rem; font-weight: 700;
}
.bar-mini-btn:hover { background: rgba(255, 253, 249, 0.22); }

.demo-stage {
  padding: 1.45rem;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 440px;
  background: radial-gradient(circle at 50% 35%, rgba(255, 253, 249, 0.96) 0%, rgba(246, 237, 219, 0.72) 100%);
  position: relative;
}

.demo-sidebar {
  background: var(--parchment-50);
  border: 1.5px solid var(--line-warm);
  border-radius: var(--r-lg);
  padding: 1.45rem;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; justify-content: space-between; gap: 1.15rem;
}
.demo-side-head { display: flex; align-items: flex-start; gap: 0.9rem; }
.demo-side-thumb {
  width: 70px; height: 90px; border-radius: 12px; object-fit: cover;
  border: 1px solid var(--line-warm); flex-shrink: 0; background: var(--emerald-950);
}
.demo-side-meta h3 { margin: 0.2rem 0 0.22rem; font-family: var(--font-serif); font-size: 1.38rem; line-height: 1.15; }
.demo-side-meta p { margin: 0; font-size: 0.86rem; color: var(--ink-500); }
.meta-chip {
  display: inline-block; font-size: 0.72rem; font-weight: 800; padding: 0.2rem 0.58rem;
  border-radius: var(--r-pill); background: var(--emerald-100); color: var(--emerald-800);
}
.meta-chip.is-quality { background: #E3F6F3; color: #0B6A62; border: 1px solid rgba(11, 106, 98, 0.22); }
.meta-chip.is-muted { background: var(--parchment-200); color: var(--ink-700); }
.side-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.product-meta-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-bottom: 0.5rem; }

.edition-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem;
  margin: 0.65rem 0 0.9rem; padding-top: 0.6rem; border-top: 1px dashed var(--line-warm);
}
.edition-lbl { font-size: 0.74rem; font-weight: 700; color: var(--ink-500); margin-right: 0.15rem; }
.edition-pill {
  display: inline-flex; align-items: center; padding: 0.18rem 0.56rem; border-radius: var(--r-pill);
  font-size: 0.72rem; font-weight: 800; background: var(--parchment-200); color: var(--emerald-900);
  border: 1px solid var(--line-warm-strong); transition: background-color 0.16s ease, border-color 0.16s ease;
}
.edition-pill:hover { background: var(--emerald-800); color: var(--gold-200); border-color: var(--emerald-800); }

.unlock-box {
  background: var(--parchment-100); border: 1px solid var(--line-warm);
  border-radius: var(--r-md); padding: 0.95rem 1rem;
}
.unlock-box h4 {
  margin: 0 0 0.55rem; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--emerald-800);
}
.unlock-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.unlock-list li { display: flex; gap: 0.48rem; font-size: 0.86rem; color: var(--ink-700); line-height: 1.42; }
.unlock-list li::before { content: "✓"; color: var(--emerald-700); font-weight: 900; flex-shrink: 0; }

.demo-side-actions { display: flex; flex-direction: column; gap: 0.58rem; }
.demo-side-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.app-store-note {
  display: flex; align-items: center; justify-content: center; gap: 0.42rem;
  padding: 0.55rem 0.8rem; border-radius: 12px;
  background: rgba(17, 64, 55, 0.06); border: 1px dashed rgba(17, 64, 55, 0.25);
  font-size: 0.78rem; font-weight: 600; color: var(--emerald-800); text-align: center;
}

/* Comparison Table */
.compare-card {
  margin-top: 2.2rem;
  background: var(--parchment-50);
  border: 1.5px solid var(--line-warm-strong);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.compare-head {
  padding: 1.15rem 1.45rem;
  background: linear-gradient(90deg, var(--emerald-900), var(--emerald-800));
  color: var(--ink-light);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.compare-head h3 { margin: 0; font-family: var(--font-serif); font-size: 1.32rem; color: var(--gold-200); }
.compare-table-wrap { overflow-x: auto; }
.compare-table {
  width: 100%; border-collapse: collapse; font-size: 0.91rem; min-width: 600px;
}
.compare-table th, .compare-table td {
  padding: 0.85rem 1.25rem; text-align: left; border-bottom: 1px solid var(--line-warm);
}
.compare-table th {
  background: var(--parchment-100); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-500); font-weight: 800;
}
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table td:first-child { font-weight: 700; color: var(--ink-900); }
.compare-table td:nth-child(2) { color: var(--ink-500); }
.compare-table td:nth-child(3) {
  background: rgba(25, 94, 80, 0.06);
  color: var(--emerald-900);
  font-weight: 700;
}
.compare-table td:nth-child(3)::before { content: "✓ "; color: var(--emerald-700); font-weight: 900; }

/* Demo Widget Shared & Specific Styles */
.dm-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.45rem; margin-top: 0.95rem; }
.dm-chip {
  border: 1.5px solid var(--line-warm-strong); background: var(--parchment-50);
  padding: 0.4rem 0.8rem; border-radius: var(--r-pill);
  font-size: 0.82rem; font-weight: 700; color: var(--ink-700);
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.dm-chip:hover { border-color: var(--emerald-700); color: var(--emerald-800); }
.dm-chip.is-active { background: var(--emerald-800); border-color: var(--emerald-800); color: var(--gold-200); }
.dm-chip.is-locked { opacity: 0.56; border-style: dashed; cursor: default; }
.dm-status-pill {
  margin-top: 0.82rem; padding: 0.44rem 1.02rem; border-radius: var(--r-pill);
  background: var(--parchment-50); border: 1.5px solid var(--line-warm);
  font-weight: 800; font-size: 0.98rem; color: var(--ink-900); box-shadow: var(--shadow-sm); text-align: center;
}

/* Timer */
.timer-dial-wrap { position: relative; width: 226px; height: 226px; display: grid; place-items: center; user-select: none; }
.timer-bezel {
  width: 220px; height: 220px; border-radius: 50%; padding: 15px;
  background: conic-gradient(from 45deg, #FCE59F, #C9962F, #F4D885, #9D6E19, #FCE59F);
  box-shadow: 0 14px 32px -10px rgba(34, 24, 10, 0.35), inset 0 2px 4px rgba(255,255,255,0.7);
  transition: border-radius 0.3s var(--ease);
}
.timer-bezel.theme-deco { border-radius: 26%; background: linear-gradient(135deg, #12483C 0%, #0A2E26 48%, #D9A944 50%, #12483C 100%); }
.timer-face { width: 100%; height: 100%; border-radius: inherit; background: #FFFDF7; position: relative; display: grid; place-items: center; box-shadow: inset 0 3px 10px rgba(0,0,0,0.14); overflow: hidden; }
.timer-bezel.theme-deco .timer-face { background: #0C352C; }
.timer-svg { width: 100%; height: 100%; display: block; }
.timer-readout {
  position: absolute; bottom: 22px; font-variant-numeric: tabular-nums; font-weight: 900; font-size: 1.18rem;
  padding: 0.14rem 0.54rem; border-radius: 99px; background: rgba(255, 253, 249, 0.92); color: var(--ink-900); box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* Dice */
.dice-tray {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; min-height: 142px; align-items: center;
  padding: 1rem 1.35rem; border-radius: 20px;
  background: radial-gradient(circle at 50% 30%, #EFE2C8 0%, #DFCA9F 100%);
  border: 2px solid rgba(130, 96, 48, 0.25); box-shadow: inset 0 4px 14px rgba(64, 44, 18, 0.14);
  width: min(100%, 460px);
}
.die-cube {
  width: 94px; height: 94px; border-radius: 20px;
  background: linear-gradient(145deg, #FFFDF7 0%, #EAE0CA 100%);
  border: 2px solid rgba(118, 94, 58, 0.25);
  box-shadow: 0 12px 20px -8px rgba(42, 30, 12, 0.35), inset 0 3px 4px rgba(255,255,255,0.9);
  display: grid; place-items: center; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.die-cube.is-rolling { transform: rotate(340deg) scale(0.86); }
.die-cube.die-d20 { border-radius: 24px; background: linear-gradient(145deg, #3A7BD5 0%, #1F4E9E 100%); color: #FCE59F; border-color: rgba(252,229,159,0.55); font-family: var(--font-serif); font-size: 2.05rem; font-weight: 800; }
.die-cube.die-story { background: linear-gradient(145deg, #FFFBF0 0%, #F0E1C0 100%); flex-direction: column; gap: 0.14rem; }
.die-story-emoji { font-size: 2.25rem; line-height: 1; }
.die-story-lbl { font-size: 0.72rem; font-weight: 800; color: var(--ink-700); }
.pip-grid { width: 66px; height: 66px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); place-items: center; }
.pip { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #4A433A 0%, #171410 100%); box-shadow: inset 0 2px 3px rgba(0,0,0,0.65); }
.pip.is-red { width: 18px; height: 18px; background: radial-gradient(circle at 35% 35%, #E35642 0%, #9E2416 100%); }

/* Wheel */
.wheel-wrap { position: relative; width: min(270px, 74vw); height: min(270px, 74vw); display: grid; place-items: center; }
.wheel-pointer { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); z-index: 4; width: 28px; height: 36px; filter: drop-shadow(0 4px 5px rgba(0,0,0,0.35)); }
.wheel-canvas { width: 100%; height: 100%; border-radius: 50%; cursor: pointer; box-shadow: 0 16px 34px -10px rgba(28, 20, 10, 0.38); }
.wheel-input-row { display: flex; gap: 0.45rem; width: min(100%, 380px); margin-top: 0.7rem; }
.wheel-input-row input { flex: 1; padding: 0.46rem 0.8rem; border-radius: var(--r-pill); border: 1.5px solid var(--line-warm-strong); background: #fff; font: inherit; font-size: 0.86rem; }

/* Groups & U-Shape Seating */
.groups-board { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 0.68rem; }
.group-card {
  background: var(--parchment-50); border: 1.5px solid var(--line-warm); border-top: 4px solid var(--emerald-700);
  border-radius: 14px; padding: 0.7rem 0.8rem; box-shadow: var(--shadow-sm); animation: popIn 0.34s var(--ease) both;
}
.group-card h5 { margin: 0 0 0.42rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--emerald-800); }
.group-members { display: flex; flex-wrap: wrap; gap: 0.34rem; }
.student-chip { font-size: 0.81rem; font-weight: 700; padding: 0.22rem 0.56rem; border-radius: 99px; background: var(--parchment-200); color: var(--ink-900); }

.seating-demo { width: min(100%, 480px); background: var(--parchment-50); border: 1.5px solid var(--line-warm-strong); border-radius: 16px; padding: 0.9rem; box-shadow: var(--shadow-sm); }
.seating-chalkboard {
  background: var(--emerald-900); color: var(--gold-200); text-align: center;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; padding: 0.35rem;
  border-radius: 8px; margin-bottom: 0.75rem; border: 1px solid var(--gold-400);
}
.seating-u-grid { display: grid; grid-template-columns: 112px 1fr 112px; gap: 0.5rem; align-items: center; }
.seating-col { display: grid; gap: 0.4rem; }
.seating-center-label { text-align: center; font-size: 0.78rem; font-weight: 700; color: var(--ink-500); padding: 0.4rem; }
.seating-bottom { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; margin-top: 0.55rem; }
.seat-pill {
  background: var(--parchment-200); border: 1px solid var(--line-warm-strong); border-radius: 9px;
  padding: 0.34rem 0.48rem; font-size: 0.78rem; font-weight: 700; text-align: center;
}
.seat-pill span { color: var(--emerald-700); font-weight: 900; }

/* Slot Machine */
.slot-cabinet {
  width: min(100%, 420px); border-radius: 24px; padding: 1.1rem 1.1rem 1.2rem;
  background: linear-gradient(160deg, #6E1728 0%, #440B16 100%);
  border: 3px solid var(--gold-400); box-shadow: 0 18px 36px -14px rgba(58, 10, 20, 0.55); color: #fff;
}
.slot-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; font-size: 0.76rem; font-weight: 800; color: var(--gold-200); letter-spacing: 0.05em; text-transform: uppercase; }
.slot-reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.58rem; }
.slot-reel {
  background: linear-gradient(180deg, #E9DFC9 0%, #FFFDF8 24%, #FFFDF8 76%, #E2D5B8 100%);
  border-radius: 14px; border: 2px solid #B68020; padding: 0.8rem 0.32rem; min-height: 110px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--ink-900);
}
.slot-reel.is-spinning { animation: reelPulse 0.16s linear infinite; }
.slot-reel.is-held { border-color: var(--emerald-600); box-shadow: 0 0 0 2px rgba(44, 133, 115, 0.35); }
.slot-val-emoji { font-size: 2.25rem; line-height: 1.1; }
.slot-val-word { font-size: 0.9rem; font-weight: 800; line-height: 1.2; color: var(--ink-900); }
.slot-hold-btn {
  margin-top: 0.42rem; width: 100%; border: 1px solid rgba(252, 229, 159, 0.35);
  background: rgba(255, 253, 249, 0.1); color: var(--gold-200); border-radius: 99px; padding: 0.22rem 0.4rem; font-size: 0.71rem; font-weight: 700;
}
.slot-hold-btn.is-held { background: var(--gold-400); color: var(--emerald-950); border-color: var(--gold-200); }

/* Coin Flip & Wendeplättchen */
.coin-stage { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.2rem; perspective: 900px; min-height: 146px; align-items: center; }
.coin-3d { width: 122px; height: 122px; position: relative; transform-style: preserve-3d; transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1); cursor: pointer; }
.coin-face {
  position: absolute; inset: 0; border-radius: 50%; backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 6px solid #C89730; box-shadow: 0 12px 26px -8px rgba(40, 26, 8, 0.38), inset 0 3px 8px rgba(255,255,255,0.65);
}
.coin-front { background: radial-gradient(circle at 32% 28%, #FFF0B8 0%, #E7B84F 52%, #B57D1B 100%); color: #4A3006; }
.coin-back { background: radial-gradient(circle at 32% 28%, #FFFFFF 0%, #D9DFE3 52%, #9EA8B0 100%); color: #1F2933; transform: rotateY(180deg); }
.coin-red { background: radial-gradient(circle at 32% 28%, #FF8A7A 0%, #D64B38 55%, #9B2315 100%); color: #fff; border-color: #F4B3A8; }
.coin-blue { background: radial-gradient(circle at 32% 28%, #77B2F5 0%, #2463B5 55%, #163E7A 100%); color: #fff; border-color: #A6CBF7; transform: rotateY(180deg); }
.coin-glyph { font-family: var(--font-serif); font-size: 2.2rem; font-weight: 800; line-height: 1; }
.coin-lbl { font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.14rem; }
.coin-stats-bar {
  width: min(100%, 340px); display: flex; justify-content: space-between; font-size: 0.83rem; font-weight: 700;
  color: var(--ink-700); margin-top: 0.7rem; padding: 0.44rem 0.88rem; border-radius: 12px;
  background: var(--parchment-50); border: 1px solid var(--line-warm);
}

/* Einmaleins & Einsdurcheins & Plus-Minus */
.math-sheet-card { width: min(100%, 450px); background: #fff; border: 1.5px solid #222; border-radius: 14px; padding: 1.2rem 1.3rem; box-shadow: 0 10px 28px -12px rgba(0,0,0,0.2); }
.math-sheet-card.is-greenprint { border-color: #145A40; background: #FAFFFC; }
.math-sheet-card.is-greenprint .math-sheet-head { border-bottom-color: #145A40; color: #145A40; }
.math-sheet-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1.5px solid #222; padding-bottom: 0.48rem; margin-bottom: 0.85rem; gap: 0.5rem; }
.math-sheet-head strong { font-family: var(--font-serif); font-size: 1.05rem; }
.math-sheet-head span { font-size: 0.74rem; color: var(--ink-500); font-weight: 700; }
.dot-matrix { display: inline-grid; gap: 8px; padding: 0.85rem 1.05rem; border-radius: 12px; background: #F7F7F5; border: 1px solid #D8D8D2; margin: 0.35rem auto 0.85rem; }
.dot-cell { width: 17px; height: 17px; border-radius: 50%; background: #1B3B6F; transition: transform 0.2s var(--ease); }
.dot-cell.is-highlight { background: var(--coral-500); transform: scale(1.12); }

.div-groups-wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.55rem; margin: 0.45rem 0 0.9rem; }
.div-bucket { display: grid; grid-template-columns: repeat(2, 16px); gap: 6px; padding: 0.55rem 0.65rem; border-radius: 11px; transition: border-color 0.2s ease, background-color 0.2s ease; border: 2px dashed transparent; }
.div-bucket.is-boxed { border-color: #1B7A58; background: #EAF7F1; }
.div-dot { width: 16px; height: 16px; border-radius: 50%; background: #146B4C; }

.math-answer-row { display: flex; align-items: center; justify-content: center; gap: 0.58rem; flex-wrap: wrap; }
.math-eq { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; }
.math-input { width: 76px; padding: 0.4rem 0.58rem; border-radius: 10px; border: 2px solid var(--emerald-700); text-align: center; font-size: 1.22rem; font-weight: 800; }
.math-feedback { margin-top: 0.65rem; font-size: 0.86rem; font-weight: 700; min-height: 1.3em; text-align: center; }
.math-feedback.is-ok { color: var(--emerald-700); }
.math-feedback.is-hint { color: var(--coral-600); }

.pm-sheet { width: min(100%, 455px); background: #fff; border: 1.5px solid var(--line-warm-strong); border-radius: 14px; padding: 1.12rem 1.25rem; box-shadow: 0 12px 26px -12px rgba(24,38,32,0.22); }
.pm-tasks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.62rem 1rem; margin-top: 0.72rem; }
.pm-task { font-size: 1.02rem; font-weight: 700; font-variant-numeric: tabular-nums; padding: 0.4rem 0.62rem; border-radius: 9px; background: var(--parchment-100); }
.pm-ans { color: var(--emerald-700); font-weight: 800; }
.pm-err { color: var(--coral-600); font-weight: 800; text-decoration: line-through; }

/* QR-Code-Labor Demo */
.qr-demo-layout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: center; width: 100%; max-width: 560px; }
.qr-matrix-box { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
.qr-grid-wrap {
  display: grid; grid-template-columns: repeat(10, 20px) 12px; gap: 2px;
  padding: 10px; background: #fff; border: 2px solid var(--emerald-800); border-radius: 14px; box-shadow: var(--shadow-sm);
}
.qr-cell { width: 20px; height: 20px; border: 1px solid rgba(0,0,0,0.08); border-radius: 3px; padding: 0; transition: transform 0.14s ease; }
.qr-cell:hover { transform: scale(1.12); z-index: 2; }
.qr-cell.is-off { background: #F5F2EB; }
.qr-cell.is-on { background: #1B1813; }
.qr-cell.is-on.tp-finder { background: #C94432; }
.qr-cell.is-off.tp-finder { background: #FCE6E2; }
.qr-cell.is-on.tp-data { background: #23538A; }
.qr-cell.is-off.tp-data { background: #E9F0FA; }
.qr-cell.is-on.tp-parity { background: #19755A; }
.qr-cell.is-off.tp-parity { background: #E4F5EE; }
.qr-cell.is-error { box-shadow: 0 0 0 2.5px #E63946 inset; outline: 2px solid #E63946; }
.qr-lamp { width: 10px; height: 10px; border-radius: 50%; margin: auto; }
.qr-lamp.is-ok { background: #299A73; }
.qr-lamp.is-alarm { background: #E63946; box-shadow: 0 0 6px #E63946; }
.qr-legend { display: flex; flex-wrap: wrap; gap: 0.55rem; font-size: 0.72rem; font-weight: 700; color: var(--ink-500); justify-content: center; }
.qr-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 3px; vertical-align: middle; }
.qr-label { display: block; font-size: 0.78rem; font-weight: 800; color: var(--emerald-800); margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.04em; }
.qr-word-input, .crypto-input {
  width: 100%; padding: 0.52rem 0.8rem; border-radius: 12px; border: 1.5px solid var(--line-warm-strong);
  background: #fff; font: inherit; font-weight: 800; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.qr-status { margin-top: 0.6rem; padding: 0.55rem 0.75rem; border-radius: 11px; font-size: 0.82rem; font-weight: 700; line-height: 1.38; }
.qr-status.is-clean { background: var(--emerald-100); color: var(--emerald-900); }
.qr-status.is-warn { background: #FDECEA; color: #9F2217; border: 1px solid #F5C0BA; }

/* Kryptografie Caesar Wheel Demo */
.crypto-demo-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1.25rem; align-items: center; width: 100%; max-width: 570px; }
.caesar-wrap { display: grid; place-items: center; }
.caesar-svg { width: 236px; height: 236px; filter: drop-shadow(0 12px 24px rgba(13, 53, 45, 0.24)); }
.crypto-slider-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.65rem; }
.crypto-slider-row input[type="range"] { flex: 1; accent-color: var(--emerald-700); }
.crypto-output-box {
  margin-top: 0.7rem; padding: 0.72rem 0.85rem; border-radius: 13px;
  background: var(--emerald-950); color: var(--gold-200); border: 1.5px solid var(--gold-400);
}
.crypto-out-lbl { display: block; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; opacity: 0.85; }
.crypto-out-text { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.05rem; font-weight: 800; letter-spacing: 0.09em; color: #fff; margin-top: 0.25rem; word-break: break-word; }

@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes reelPulse { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }

/* Catalog Controls: Category + Grade + Live Search */
.catalog-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.65rem;
  background: var(--parchment-100);
  padding: 1rem 1.15rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line-warm);
}
.toolbar-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.42rem; }
.filter-btn {
  padding: 0.48rem 0.92rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-warm); background: var(--parchment-50);
  font-size: 0.84rem; font-weight: 700; color: var(--ink-700);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.filter-btn.is-active { background: var(--emerald-800); border-color: var(--emerald-800); color: var(--gold-200); }
.grade-btn {
  padding: 0.38rem 0.78rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-warm); background: transparent;
  font-size: 0.79rem; font-weight: 700; color: var(--ink-500);
}
.grade-btn.is-active { background: var(--gold-200); border-color: var(--gold-400); color: var(--emerald-950); }

.search-wrap { position: relative; flex: 1; min-width: 240px; max-width: 390px; }
.search-input {
  width: 100%; padding: 0.52rem 0.95rem 0.52rem 2.25rem; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-warm-strong); background: #fff; font: inherit; font-size: 0.88rem;
}
.search-icon { position: absolute; left: 0.82rem; top: 50%; transform: translateY(-50%); color: var(--ink-500); pointer-events: none; font-size: 0.88rem; }
.match-count { font-size: 0.82rem; font-weight: 700; color: var(--ink-500); }

/* Product Grid */
.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.45rem; }
.catalog-empty {
  grid-column: 1 / -1; text-align: center; padding: 2.5rem 1.5rem;
  background: var(--parchment-100); border-radius: var(--r-lg); border: 1.5px dashed var(--line-warm-strong);
}

.product-card {
  background: var(--parchment-50); border: 1.5px solid var(--line-warm); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(25, 94, 80, 0.34); }

.product-media {
  position: relative; aspect-ratio: 4 / 3.25;
  background: radial-gradient(circle at 50% 35%, #164C40 0%, #071F1B 100%);
  overflow: hidden; border-bottom: 2px solid rgba(231, 184, 79, 0.42); cursor: pointer;
  padding: 0.9rem 0.9rem 0.85rem;
  display: flex; align-items: center; justify-content: center;
}
.product-media img {
  width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: center;
  border-radius: 10px; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.46);
  transition: transform 0.42s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.035); }
.product-card.is-bundle-card { border-color: var(--gold-400); box-shadow: 0 12px 30px -12px rgba(182, 128, 32, 0.34); }

.card-seal {
  position: absolute; top: 0.65rem; left: 0.7rem; z-index: 3;
  padding: 0.22rem 0.62rem; border-radius: var(--r-pill);
  font-size: 0.69rem; font-weight: 900; letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}
.card-seal.is-quality { background: #149689; color: #fff; }
.card-seal.is-free { background: linear-gradient(135deg, #27A57E, #167658); color: #fff; }
.card-seal.is-bundle { background: linear-gradient(135deg, var(--gold-200), var(--gold-400)); color: var(--emerald-950); }

.price-ribbon {
  position: absolute; top: 0.65rem; right: 0.7rem; z-index: 3;
  padding: 0.22rem 0.65rem; border-radius: var(--r-pill);
  background: rgba(255, 253, 249, 0.96); color: var(--emerald-950);
  font-size: 0.76rem; font-weight: 900; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.26);
}
.price-ribbon s { color: var(--ink-500); font-weight: 700; margin-right: 0.18rem; font-size: 0.7rem; }
.price-ribbon.is-free { background: var(--gold-200); color: var(--emerald-950); }

.filter-btn.is-free-filter { border-color: rgba(25, 94, 80, 0.45); color: var(--emerald-800); }
.product-actions.is-single-row { grid-template-columns: 1fr; }

/* Sister Platform Showcase: einmaleinsrechnen.ch & .com */
.partner-banner {
  background:
    radial-gradient(ellipse 65% 60% at 85% 25%, rgba(231, 184, 79, 0.18) 0%, transparent 65%),
    linear-gradient(155deg, var(--emerald-950) 0%, var(--emerald-900) 58%, var(--emerald-800) 100%);
  color: var(--ink-light);
  border-radius: 28px;
  padding: clamp(1.7rem, 4vw, 3rem);
  border: 2px solid var(--gold-400);
  box-shadow: var(--shadow-lg);
}
.partner-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 3.5vw, 2.8rem);
  align-items: center;
}
.partner-copy h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.14;
  margin: 0 0 0.85rem;
  color: #fff;
}
.partner-lead { margin: 0 0 1.4rem; color: var(--ink-light-muted); font-size: 0.99rem; max-width: 56ch; }
.partner-ctas { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.partner-note { margin: 0.85rem 0 0; font-size: 0.8rem; color: rgba(252, 229, 159, 0.78); }
.partner-visual {
  border-radius: 18px; overflow: hidden; border: 2px solid rgba(252, 229, 159, 0.42);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.48); background: #071F1B;
}
.partner-visual img { width: 100%; height: auto; display: block; }
.partner-features {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
  margin-top: 1.85rem; padding-top: 1.55rem; border-top: 1px solid rgba(252, 229, 159, 0.22);
}
.partner-feat {
  background: rgba(255, 253, 249, 0.07); border: 1px solid rgba(252, 229, 159, 0.2);
  border-radius: var(--r-md); padding: 1.05rem 1.15rem;
}
.partner-feat strong { display: block; color: var(--gold-200); font-size: 0.95rem; margin-bottom: 0.3rem; }
.partner-feat p { margin: 0; font-size: 0.85rem; color: var(--ink-light-muted); line-height: 1.48; }

@media (max-width: 960px) {
  .partner-top, .partner-features { grid-template-columns: 1fr; }
}

.product-body { padding: 1.3rem 1.3rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { margin: 0; font-family: var(--font-serif); font-size: 1.34rem; line-height: 1.2; }
.product-sub { margin: 0.22rem 0 0.7rem; font-size: 0.86rem; font-weight: 700; color: var(--emerald-700); }
.product-desc { margin: 0 0 0.9rem; font-size: 0.89rem; color: var(--ink-500); }
.product-highlights { list-style: none; margin: 0 0 1.15rem; padding: 0; display: grid; gap: 0.4rem; flex: 1; }
.product-highlights li { display: flex; gap: 0.46rem; font-size: 0.83rem; color: var(--ink-700); line-height: 1.42; }
.product-highlights li::before { content: "✦"; color: var(--gold-600); font-size: 0.76rem; margin-top: 0.14rem; flex-shrink: 0; }

.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.product-actions .btn-buy-full { grid-column: 1 / -1; }
.product-app-hint { margin-top: 0.6rem; font-size: 0.76rem; color: var(--ink-500); text-align: center; display: flex; align-items: center; justify-content: center; gap: 0.32rem; }

/* Reels / In Action Showcase */
.reels-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.35rem; }
.reel-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--emerald-950); border: 1.5px solid var(--line-gold);
  box-shadow: var(--shadow-md); display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.reel-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.reel-poster-wrap { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #061D19; }
.reel-poster-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; transition: transform 0.45s var(--ease); }
.reel-card:hover .reel-poster-wrap img { transform: scale(1.05); }
.reel-play-badge {
  position: absolute; bottom: 0.75rem; left: 0.85rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.72rem; border-radius: var(--r-pill);
  background: rgba(6, 29, 25, 0.85); color: var(--gold-200);
  border: 1px solid rgba(252, 229, 159, 0.4); font-size: 0.75rem; font-weight: 800;
}
.reel-body { padding: 1.2rem; color: var(--ink-light); display: flex; flex-direction: column; flex: 1; gap: 0.45rem; }
.reel-body h3 { margin: 0; font-family: var(--font-serif); font-size: 1.18rem; color: #fff; line-height: 1.22; }
.reel-body p { margin: 0; font-size: 0.86rem; color: var(--ink-light-muted); flex: 1; }
.reel-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.55rem; gap: 0.5rem; }

/* How It Works & Devices */
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.3rem; margin-bottom: 2.5rem; }
.step-card { background: var(--parchment-50); border: 1.5px solid var(--line-warm); border-radius: var(--r-lg); padding: 1.45rem; }
.step-num { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-200), var(--gold-400)); color: var(--emerald-950); font-weight: 900; display: grid; place-items: center; margin-bottom: 0.85rem; }
.step-card h3 { margin: 0 0 0.42rem; font-size: 1.06rem; }
.step-card p { margin: 0; font-size: 0.91rem; color: var(--ink-500); }

.devices-box {
  background: linear-gradient(155deg, var(--emerald-950) 0%, var(--emerald-800) 100%);
  color: var(--ink-light); border-radius: 28px; padding: clamp(1.5rem, 3.8vw, 2.7rem);
  border: 1.5px solid rgba(252, 229, 159, 0.3); box-shadow: var(--shadow-lg);
}
.devices-box h3 { font-family: var(--font-serif); font-size: clamp(1.42rem, 2.4vw, 1.92rem); margin: 0 0 1.4rem; color: var(--gold-200); }
.devices-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.device-card { background: rgba(255, 253, 249, 0.07); border: 1px solid rgba(252, 229, 159, 0.2); border-radius: var(--r-md); padding: 1.2rem; }
.device-card h4 { margin: 0 0 0.48rem; font-size: 0.98rem; color: #fff; display: flex; align-items: center; gap: 0.48rem; }
.device-card p { margin: 0; font-size: 0.88rem; color: var(--ink-light-muted); }
.device-app-callout {
  margin-top: 0.82rem; padding: 0.62rem 0.78rem; border-radius: 10px;
  background: rgba(231, 184, 79, 0.14); border: 1px solid rgba(252, 229, 159, 0.32); color: var(--gold-200); font-size: 0.81rem; font-weight: 600;
}

/* About & Contact */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr); gap: 2rem; align-items: start; }
.about-copy p { margin: 0 0 1rem; color: var(--ink-700); font-size: 0.99rem; }
.ai-box { margin-top: 1.15rem; padding: 0.95rem 1.12rem; border-radius: var(--r-md); background: var(--parchment-100); border-left: 4px solid var(--gold-400); font-size: 0.87rem; color: var(--ink-700); }

.contact-card { background: var(--parchment-100); border: 1.5px solid var(--line-warm-strong); border-radius: var(--r-lg); padding: 1.65rem; box-shadow: var(--shadow-sm); }
.contact-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 0.85rem; }
.contact-avatar { width: 56px; height: 56px; border-radius: 16px; border: 2px solid var(--gold-400); flex-shrink: 0; }
.contact-card h3 { font-family: var(--font-serif); margin: 0; font-size: 1.3rem; line-height: 1.2; }
.contact-card p { margin: 0 0 1.15rem; font-size: 0.91rem; color: var(--ink-500); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* FAQ */
.faq-list { display: grid; gap: 0.75rem; max-width: 860px; margin-inline: auto; }
.faq-item { background: var(--parchment-50); border: 1.5px solid var(--line-warm); border-radius: var(--r-md); overflow: hidden; }
.faq-item summary { list-style: none; padding: 1.05rem 1.3rem; font-weight: 800; font-size: 0.98rem; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.32rem; font-weight: 500; color: var(--emerald-700); transition: transform 0.2s var(--ease); flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0; padding: 0 1.3rem 1.1rem; color: var(--ink-500); font-size: 0.93rem; }

/* Footer */
.site-footer { background: var(--emerald-950); color: var(--ink-light); padding: 3.2rem 0 2.1rem; border-top: 3px solid var(--gold-400); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr); gap: 2rem; padding-bottom: 1.9rem; border-bottom: 1px solid rgba(252, 229, 159, 0.16); }
.footer-brand p { margin: 0.8rem 0 0; color: var(--ink-light-muted); font-size: 0.89rem; max-width: 40ch; }
.footer-col h4 { margin: 0 0 0.72rem; font-size: 0.79rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-200); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.44rem; }
.footer-links a, .footer-links button { background: none; border: 0; padding: 0; font-size: 0.89rem; color: var(--ink-light-muted); text-align: left; transition: color 0.16s ease; }
.footer-links a:hover, .footer-links button:hover { color: var(--gold-200); }
.footer-bottom { padding-top: 1.3rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.7rem 1.5rem; font-size: 0.81rem; color: var(--ink-light-muted); }
.footer-bottom a { color: var(--gold-200); text-decoration: underline; text-underline-offset: 2px; }

.version-badge {
  position: fixed; left: 14px; bottom: 12px; z-index: 40;
  padding: 0.22rem 0.62rem; border-radius: var(--r-pill);
  background: rgba(255, 253, 249, 0.9); border: 1px solid var(--line-warm);
  font-size: 0.72rem; font-weight: 700; color: var(--ink-500);
  backdrop-filter: blur(6px); pointer-events: none;
}

/* Modals (Legal, Detail, Gallery) */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 160;
  background: rgba(6, 22, 19, 0.78); backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity 0.22s ease;
}
.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.modal-dialog {
  width: min(760px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--parchment-50); border-radius: var(--r-lg);
  border: 1.5px solid var(--line-gold); box-shadow: var(--shadow-lg); padding: 1.55rem;
}
.modal-dialog.is-gallery { width: min(1060px, 100%); background: var(--emerald-950); color: var(--ink-light); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.modal-head h3 { margin: 0; font-family: var(--font-serif); font-size: 1.42rem; }
.modal-close { border: 1px solid var(--line-warm-strong); background: var(--parchment-100); color: var(--ink-900); border-radius: var(--r-pill); padding: 0.36rem 0.85rem; font-size: 0.83rem; font-weight: 700; }
.modal-dialog.is-gallery .modal-close { background: rgba(255,253,249,0.12); border-color: rgba(252,229,159,0.3); color: #fff; }

.detail-grid { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1.35rem; align-items: start; }
.detail-cover { width: 100%; border-radius: 16px; border: 1.5px solid var(--line-warm-strong); box-shadow: var(--shadow-sm); }
.detail-section-title { font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--emerald-700); margin: 1rem 0 0.45rem; }
.detail-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 0.55rem; margin-top: 0.45rem; }
.detail-thumb-btn {
  padding: 0; border: 1.5px solid var(--line-warm); border-radius: 10px; overflow: hidden; background: #071F1B;
  aspect-ratio: 16 / 10; transition: transform 0.18s var(--ease), border-color 0.18s ease;
}
.detail-thumb-btn:hover { transform: translateY(-2px); border-color: var(--emerald-700); }
.detail-thumb-btn img { width: 100%; height: 100%; object-fit: cover; }

.gallery-stage img { width: 100%; max-height: 66vh; object-fit: contain; border-radius: 14px; background: #041411; }
.gallery-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.gallery-caption { margin: 0; font-size: 0.89rem; color: var(--ink-light-muted); }
.gallery-nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.legal-body p { margin: 0 0 0.82rem; color: var(--ink-700); font-size: 0.93rem; }
.legal-body strong { color: var(--ink-900); }
.legal-body a { color: var(--emerald-700); text-decoration: underline; }

/* Responsive & Print */
@media (max-width: 1040px) {
  .hero-grid, .workbench, .about-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps-grid, .devices-grid, .reels-grid, .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--parchment-50); border-bottom: 1px solid var(--line-warm);
    padding: 0.8rem 1rem 1rem; flex-direction: column; align-items: stretch; box-shadow: var(--shadow-md);
  }
  .main-nav.is-open { display: flex; }
  .mobile-menu-btn { display: inline-flex; }
  .header-eduki-btn { display: none; }
  .qr-demo-layout, .crypto-demo-layout, .detail-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .pillars-grid, .catalog-grid, .pm-tasks { grid-template-columns: 1fr; }
  .hero-metrics { gap: 1rem; }
  .hero-thumb-strip { grid-template-columns: repeat(2, 1fr); }
  .seating-u-grid { grid-template-columns: 1fr; }
  .seating-bottom { grid-template-columns: repeat(2, 1fr); }
  .version-badge { display: none; }
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--emerald-900); color: var(--gold-200);
  padding: 0.6rem 1.1rem; border-radius: var(--r-pill); font-weight: 800;
}
.skip-link:focus { left: 12px; }

.btn-lg { padding: 0.96rem 1.65rem; font-size: 1.02rem; min-height: 48px; }
.btn { min-height: 44px; }
.btn-sm { min-height: 44px; padding: 0.56rem 1.02rem; font-size: 0.86rem; }

.hero-trust-line {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--gold-200);
  opacity: 0.92;
}
.hero-quiet-link {
  display: inline-flex; align-items: center; gap: 0.35rem;
  padding: 0.65rem 0.4rem;
  min-height: 44px;
  font-size: 0.95rem; font-weight: 700; color: var(--ink-light);
  border-bottom: 1.5px solid rgba(252, 229, 159, 0.45);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.hero-quiet-link:hover { color: var(--gold-200); border-color: var(--gold-200); }

/* Criterion 3: Instant Above-the-Fold Playable Mini-Stage */
.hero-stage-top { flex-wrap: wrap; gap: 0.55rem 0.75rem; }
.hero-stage-tag { white-space: nowrap; }
.instant-tabs { display: inline-flex; flex-wrap: nowrap; gap: 0.35rem; }
.instant-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.28rem;
  white-space: nowrap;
  border: 1px solid rgba(252, 229, 159, 0.28);
  background: rgba(255, 253, 249, 0.08);
  color: var(--ink-light-muted);
  border-radius: var(--r-pill);
  padding: 0.42rem 0.78rem;
  min-height: 44px;
  font-size: 0.8rem; font-weight: 800;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.instant-tab.is-active { background: var(--gold-400); border-color: var(--gold-200); color: var(--emerald-950); }
.instant-canvas {
  border-radius: 18px;
  background: radial-gradient(circle at 50% 35%, #FFFDF8 0%, #F4E9D4 100%);
  color: var(--ink-900);
  min-height: 280px;
  padding: 1.15rem 1rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(252, 229, 159, 0.35);
}
.inst-timer, .inst-wheel-box, .inst-dice-box {
  display: flex; flex-direction: column; align-items: center; gap: 0.85rem; width: 100%;
}
.inst-dial-ring { position: relative; width: 172px; height: 172px; display: grid; place-items: center; }
.inst-dial-svg { width: 100%; height: 100%; filter: drop-shadow(0 10px 18px rgba(42,28,8,0.22)); }
.inst-time-badge {
  position: absolute; bottom: 18px; padding: 0.14rem 0.56rem; border-radius: 99px;
  background: rgba(255,253,248,0.95); border: 1px solid var(--line-warm);
  font-weight: 900; font-size: 0.98rem; font-variant-numeric: tabular-nums;
}
.inst-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; }
.inst-presets { display: inline-flex; gap: 0.32rem; }
.inst-chip {
  border: 1.5px solid var(--line-warm-strong); background: #fff; color: var(--ink-700);
  border-radius: var(--r-pill); padding: 0.4rem 0.78rem; min-height: 44px;
  font-size: 0.8rem; font-weight: 800;
}
.inst-chip.is-active { background: var(--emerald-800); border-color: var(--emerald-800); color: var(--gold-200); }
.inst-wheel-wrap { position: relative; width: 176px; height: 176px; display: grid; place-items: center; }
.inst-wheel-ptr { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); color: #B53524; font-size: 18px; z-index: 3; text-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.inst-wheel-cv { width: 100%; height: 100%; cursor: pointer; filter: drop-shadow(0 10px 18px rgba(42,28,8,0.24)); }
.inst-result {
  padding: 0.36rem 0.86rem; border-radius: var(--r-pill); background: #fff;
  border: 1.5px solid var(--line-warm); font-weight: 800; font-size: 0.88rem; color: var(--ink-900);
}
.inst-dice-pair { display: flex; gap: 1rem; padding: 0.9rem 1.2rem; cursor: pointer; transition: transform 0.2s var(--ease); }
.inst-dice-pair.rolling { transform: scale(0.92) rotate(-8deg); }
.inst-die {
  width: 82px; height: 82px; border-radius: 18px; padding: 12px;
  background: linear-gradient(145deg, #FFFDF8 0%, #EAE0C9 100%);
  border: 2px solid rgba(130,96,42,0.34);
  box-shadow: 0 12px 20px -8px rgba(42,28,8,0.32), inset 0 2px 4px #fff;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); place-items: center;
}
.inst-pip { width: 12px; height: 12px; border-radius: 50%; background: transparent; }
.inst-pip.on { background: #1B1813; }
.inst-pip.on.red { width: 15px; height: 15px; background: #C83C25; }

/* Criterion 4: Calm 3-Goal Target-Group Orientation Bar */
.paths-section { padding: clamp(2.4rem, 4.2vw, 3.4rem) 0; background: var(--parchment-50); border-bottom: 1px solid var(--line-warm); }
.paths-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.path-card {
  display: flex; flex-direction: column; gap: 0.42rem; text-align: left;
  padding: 1.45rem 1.5rem; border-radius: var(--r-lg);
  background: var(--parchment-100); border: 1.5px solid var(--line-warm);
  transition: transform 0.22s var(--ease), border-color 0.2s ease, box-shadow 0.22s var(--ease);
}
.path-card:hover { transform: translateY(-3px); border-color: var(--emerald-700); box-shadow: var(--shadow-md); }
.path-card.is-accent-path { background: linear-gradient(160deg, #F5FBF8 0%, #EAF4F0 100%); border-color: rgba(25, 94, 80, 0.28); }
.path-kicker { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--emerald-700); }
.path-card strong { font-family: var(--font-serif); font-size: 1.22rem; line-height: 1.2; color: var(--ink-900); }
.path-desc { font-size: 0.88rem; color: var(--ink-500); line-height: 1.48; flex: 1; }
.path-link { margin-top: 0.4rem; font-size: 0.86rem; font-weight: 800; color: var(--emerald-800); }

/* Criterion 6: Calm Returning-Visitor Progress Bar */
.return-bar-wrap { padding: 1.25rem 0 0; background: var(--parchment-100); }
.return-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.9rem 1.4rem;
  padding: 0.95rem 1.3rem; border-radius: var(--r-md);
  background: var(--parchment-50); border: 1.5px solid var(--line-gold); box-shadow: var(--shadow-sm);
}
.return-left { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; }
.return-badge { font-size: 0.78rem; font-weight: 900; color: var(--emerald-800); text-transform: uppercase; letter-spacing: 0.05em; }
.return-last { font-size: 0.9rem; color: var(--ink-700); }
.return-mid { display: flex; align-items: center; gap: 0.65rem; }
.return-prog-lbl { font-size: 0.82rem; font-weight: 700; color: var(--ink-500); }
.return-prog-track { width: 112px; height: 8px; border-radius: 99px; background: var(--parchment-200); overflow: hidden; }
.return-prog-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--emerald-600), var(--gold-400)); border-radius: 99px; transition: width 0.3s var(--ease); }
.return-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }

/* Calmer Card Meta + Bookmark Star */
.product-meta-top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.35rem; }
.product-meta-plain { font-size: 0.78rem; font-weight: 700; color: var(--ink-500); }
.save-star-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-warm); background: var(--parchment-100);
  color: var(--ink-500); font-size: 1.12rem; display: grid; place-items: center;
  transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}
.save-star-btn:hover { transform: scale(1.08); border-color: var(--gold-600); color: var(--gold-600); }
.save-star-btn.is-saved { background: var(--gold-200); border-color: var(--gold-400); color: var(--emerald-950); }
.filter-btn.is-saved-filter { border-color: var(--gold-400); color: var(--gold-700); }
.compare-eyebrow { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(252,229,159,0.75); }
.devices-head h2 { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.6vw, 2.05rem); margin: 0 0 1.5rem; color: var(--gold-200); }
.device-card h3 { margin: 0 0 0.48rem; font-size: 0.99rem; color: #fff; display: flex; align-items: center; gap: 0.48rem; }
.about-heading { font-family: var(--font-serif); font-size: clamp(1.75rem, 3vw, 2.4rem); margin: 0 0 1rem; line-height: 1.15; }
.demo-tab.is-tried::after { content: " ✓"; font-size: 0.78em; opacity: 0.85; }

@media (max-width: 1040px) {
  .paths-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-stage-top { flex-direction: column; align-items: stretch; gap: 0.65rem; }
  .instant-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .instant-tab { padding: 0.42rem 0.4rem; font-size: 0.78rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .version-badge, .modal-backdrop, .demo-tabs, .hero-ctas { display: none !important; }
  body { background: #fff; color: #000; }
}
