/* ============================================================
   GudClass — Teaser Website
   Editorial-Swiss. Oversized display serif × Inter × Mono.
   ============================================================ */

:root {
  /* Warm near-white + deep ink */
  --bg: oklch(97.5% 0.008 75);
  --bg-2: oklch(95% 0.010 75);
  --bg-raised: oklch(99% 0.004 75);
  --line: oklch(88% 0.010 75);
  --line-strong: oklch(80% 0.012 75);
  --ink: oklch(18% 0.015 260);
  --ink-2: oklch(38% 0.012 260);
  --ink-3: oklch(55% 0.010 260);
  --ink-4: oklch(70% 0.008 260);

  --accent: oklch(55% 0.17 258);
  --accent-2: oklch(65% 0.16 258);
  --accent-bg: oklch(94% 0.035 258);
  --accent-line: oklch(82% 0.08 258);

  --f-display: "Instrument Serif", "Times New Roman", serif;
  --f-sans: "Inter", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --e-out: cubic-bezier(0.2, 0.7, 0.1, 1);
  --maxw: 1360px;

  --sh-1: 0 1px 2px oklch(18% 0.015 260 / 0.05), 0 0 0 1px oklch(18% 0.015 260 / 0.04);
  --sh-2: 0 4px 18px oklch(18% 0.015 260 / 0.08), 0 0 0 1px oklch(18% 0.015 260 / 0.05);
  --sh-3: 0 20px 50px oklch(18% 0.015 260 / 0.12), 0 0 0 1px oklch(18% 0.015 260 / 0.06);
}

[data-theme="dark"] {
  --bg: oklch(15% 0.012 260);
  --bg-2: oklch(12% 0.010 260);
  --bg-raised: oklch(20% 0.014 260);
  --line: oklch(27% 0.014 260);
  --line-strong: oklch(40% 0.016 260);
  --ink: oklch(96% 0.006 75);
  --ink-2: oklch(78% 0.010 75);
  --ink-3: oklch(62% 0.010 75);
  --ink-4: oklch(48% 0.010 75);
  --accent: oklch(74% 0.14 258);
  --accent-2: oklch(82% 0.13 258);
  --accent-bg: oklch(30% 0.08 258);
  --accent-line: oklch(42% 0.12 258);
}

* { box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
a { color: inherit; text-decoration: none; }
button { background: transparent; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
img { max-width: 100%; display: block; }

::selection { background: var(--accent-bg); color: var(--accent); }

/* ====== Layout primitives ====== */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
@media (max-width: 700px) { .wrap { padding: 0 18px; } }

.mono {
  font-family: var(--f-mono);
  font-feature-settings: "zero", "ss01";
  letter-spacing: 0.02em;
}
.label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.hr { height: 1px; background: var(--line); margin: 0; }

/* ====== Top bar ====== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  /* Solid, opaque background — NO backdrop-filter. A backdrop-filter anywhere
     in the header subtree promotes the whole sticky stacking context to a GPU
     layer that Edge/Windows rasterizes at fractional DPI, making the logo + nav
     look pixelated. Opaque background keeps everything on the crisp main layer. */
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar .inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
  padding: 0 28px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand-mark-img {
  width: 26px; height: 26px;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}
.brand-mark {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg-raised);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.brand-mark .g, .brand-mark .c {
  position: absolute;
  font-family: var(--f-sans);
  line-height: 1;
}
.brand-mark .g {
  top: 2px; left: 4px;
  font-size: 11px; font-weight: 400;
  color: oklch(98% 0 0);
}
.brand-mark .c {
  bottom: 2px; right: 4px;
  font-size: 11px; font-weight: 700;
  letter-spacing: -0.02em;
  color: oklch(98% 0 0);
}
.brand-mark .sep {
  position: absolute;
  left: 50%; top: 50%;
  width: 140%; height: 1.5px;
  background: var(--accent);
  transform: translate(-50%, -50%) rotate(-45deg);
}
.brand-wordmark {
  height: 18px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-text {
  font-size: 15px;
  letter-spacing: -0.015em;
  line-height: 1;
  display: inline-flex; align-items: baseline;
}
.brand-text .gud { color: var(--ink-2); font-weight: 400; }
.brand-text .bar {
  display: inline-block;
  width: 1.5px; height: 11px;
  background: var(--accent);
  margin: 0 5px;
  transform: translateY(1px);
}
.brand-text .product { font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }

.topbar nav {
  display: flex;
  gap: 24px;
  margin-left: 36px;
}
.topbar nav a {
  font-size: 13.5px;
  color: var(--ink-2);
  font-weight: 450;
  transition: color 120ms;
}
.topbar nav a:hover { color: var(--ink); }

.topbar .grow { flex: 1; }

.topbar .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  transition: transform 160ms var(--e-out), background 160ms;
}
.topbar .cta:hover { transform: translateY(-1px); }
.topbar .cta .arrow { width: 14px; height: 14px; }

.topbar .login-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  opacity: 0.75;
  transition: opacity 160ms var(--e-out);
}
.topbar .login-link:hover { opacity: 1; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-raised);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.status-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px oklch(55% 0.17 258 / 0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px oklch(55% 0.17 258 / 0.2); }
  50% { box-shadow: 0 0 0 6px oklch(55% 0.17 258 / 0); }
}

@media (max-width: 900px) {
  .topbar nav { display: none; }
  .topbar .status-pill { display: none; }
}

/* ====== Hero ====== */
.hero {
  padding: 80px 0 60px;
  position: relative;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hero-eyebrow .ticker {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-3);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow .ticker::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--ink-3);
  display: inline-block;
}
/* Example/disclaimer note — frames demos as Sport-from-practice but tool is generic */
.example-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  line-height: 1.4;
}
.example-note::before {
  content: '↳';
  margin-right: 6px;
  color: var(--ink-3);
}
.section-example-note {
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  line-height: 1.5;
}
.section-example-note::before {
  content: '↳ ';
  color: var(--ink-3);
}

.hero-eyebrow .hero-stat {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid var(--accent-line);
  padding: 4px 10px;
  border-radius: 999px;
}

.hero h1 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(38px, 6.4vw, 92px);
  line-height: 1.0;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}
.hero h1 .amp {
  color: var(--ink-3);
  font-style: italic;
  padding: 0 0.1em;
}

.hero-layout-left h1 { text-align: left; }
.hero-layout-center h1 { text-align: center; }
.hero-layout-center .hero-eyebrow { justify-content: center; }
.hero-layout-center .hero-below { justify-content: center; }

.hero-below {
  margin-top: 56px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.hero-description {
  max-width: 460px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero-description strong { color: var(--ink); font-weight: 600; }

/* Waitlist form inline */
.waitlist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 360px;
}
.waitlist-form {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 4px;
  transition: box-shadow 200ms, border-color 200ms;
}
.waitlist-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-bg);
}
.waitlist-form input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 10px 18px;
  font-family: var(--f-sans);
  font-size: 14.5px;
  color: var(--ink);
  min-width: 0;
}
.waitlist-form input::placeholder { color: var(--ink-3); }
.waitlist-form button {
  background: var(--ink);
  color: var(--bg);
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 160ms, transform 160ms var(--e-out);
}
.waitlist-form button:hover { transform: translateX(2px); }
.waitlist-form button .arrow {
  width: 14px; height: 14px;
  transition: transform 160ms var(--e-out);
}

.waitlist-hint {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  padding-left: 18px;
}

.waitlist-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-line);
  border-radius: 14px;
  color: var(--accent);
  font-size: 14px;
  animation: rise 300ms var(--e-out);
}
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Hero corner marks (Swiss) */
.corner-marks {
  position: absolute;
  inset: 24px 28px auto auto;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.08em;
  text-align: right;
  pointer-events: none;
}
.corner-marks div + div { margin-top: 4px; }

/* ====== Section frame ====== */
section {
  padding: 96px 0;
  position: relative;
}
@media (max-width: 700px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 0 40px; }
}
.section-head {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.section-head .label { padding-top: 6px; }
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 16ch;
  text-wrap: balance;
}
.section-head h2 em { font-style: italic; color: var(--accent); }
@media (max-width: 700px) {
  .section-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 32px; }
}

/* ====== Product peek ====== */
.peek {
  background: var(--bg-2);
  padding: 96px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.peek-head {
  max-width: var(--maxw);
  margin: 0 auto 48px;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  flex-wrap: wrap;
}
.peek-head h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 12px 0 0;
  max-width: 18ch;
}
.peek-frame {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}
.peek-window {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sh-3);
  transform-style: preserve-3d;
  transition: transform 400ms var(--e-out);
}
.peek-window:hover { transform: translateY(-4px); }
.peek-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--bg-raised) 96%, var(--ink) 4%);
}
.peek-chrome .dots { display: flex; gap: 6px; }
.peek-chrome .dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-strong);
}
.peek-chrome .url {
  flex: 1;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--bg);
  text-align: center;
  border: 1px solid var(--line);
  max-width: 360px;
  margin: 0 auto;
}
.peek-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 440px;
}
@media (max-width: 760px) {
  .peek-body { grid-template-columns: 1fr; min-height: 0; }
  .peek-side { display: none; }
}
.peek-side {
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  font-size: 12.5px;
}
.peek-side .peek-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--ink-2);
}
.peek-side .peek-nav-item.active {
  background: var(--bg-raised);
  color: var(--ink);
  box-shadow: var(--sh-1);
  font-weight: 500;
}
.peek-side .peek-nav-item .kbd {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-4);
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--bg);
}
.peek-side-label {
  padding: 16px 10px 6px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.peek-main {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
}
.peek-main .day-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.peek-main .day-name {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.peek-main .day-date {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.peek-lesson {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 18px;
  padding: 10px 0;
}
.peek-lesson .time {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-2);
}
.peek-lesson h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 550;
  display: flex; align-items: center; gap: 8px;
}
.peek-lesson h4 .typedot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.peek-lesson p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.45;
}
.peek-lesson .space {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 5px;
  background: oklch(95% 0.04 295);
  color: oklch(42% 0.16 295);
  font-weight: 500;
  height: fit-content;
}
[data-theme="dark"] .peek-lesson .space { background: oklch(28% 0.06 295); color: oklch(80% 0.12 295); }
.peek-lesson .space.outdoor { background: oklch(95% 0.05 150); color: oklch(42% 0.14 150); }
[data-theme="dark"] .peek-lesson .space.outdoor { background: oklch(28% 0.06 150); color: oklch(80% 0.13 150); }

/* Sidebar count badge (Aufgaben/Geteilt) */
.peek-side .peek-nav-item .peek-badge {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 1px 6px;
  border-radius: 8px;
  letter-spacing: 0.02em;
}
.peek-side .peek-nav-item .peek-badge + .kbd { margin-left: 6px; }

/* Lesson type pill (Prüfung/Projekt/Exkursion/Ausfall) inside h4 */
.peek-type-pill {
  font-family: var(--f-mono);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 1px 6px;
  border-radius: 3px;
  background: oklch(95% 0.05 25);
  color: oklch(48% 0.16 25);
}
[data-theme="dark"] .peek-type-pill { background: oklch(28% 0.06 25); color: oklch(82% 0.12 25); }

/* Lesson meta row: notes / tasks / files / Plan B / share */
.peek-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.peek-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 1px 6px 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}
.peek-meta-item svg { color: var(--ink-4); flex-shrink: 0; }
.peek-meta-item.peek-meta-planb {
  background: oklch(95% 0.05 70);
  border-color: oklch(85% 0.08 70);
  color: oklch(42% 0.14 70);
}
.peek-meta-item.peek-meta-planb svg { color: oklch(58% 0.16 70); }
[data-theme="dark"] .peek-meta-item.peek-meta-planb { background: oklch(28% 0.06 70); border-color: oklch(38% 0.08 70); color: oklch(82% 0.12 70); }
[data-theme="dark"] .peek-meta-item.peek-meta-planb svg { color: oklch(75% 0.13 70); }
.peek-meta-item.peek-meta-share {
  background: var(--accent-bg);
  border-color: var(--accent-line);
  color: var(--accent);
}
.peek-meta-item.peek-meta-share svg { color: var(--accent); }

/* ====== Philosophy / manifest ====== */
.manifest {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
}
@media (max-width: 900px) {
  .manifest { grid-template-columns: 1fr; }
}
.manifest-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}
@media (max-width: 700px) {
  .manifest-body { grid-template-columns: 1fr; gap: 32px; }
}
.manifest-block h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
}
.manifest-block h3 em { font-style: italic; color: var(--accent); }
.manifest-block p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-2);
  text-wrap: pretty;
  margin: 0;
}
.manifest-block .label { display: block; margin-bottom: 14px; font-size: 10.5px; }
.manifest-pullquote {
  grid-column: 1 / -1;
  margin: 24px 0;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-display);
  font-size: clamp(26px, 3.5vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  max-width: 22ch;
  color: var(--ink);
}
.manifest-pullquote em { font-style: italic; color: var(--accent); }
.manifest-pullquote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ====== Features grid ====== */
.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 800px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { min-width: 0; }
.feature-demo { min-width: 0; }

.feature {
  padding: 40px 36px 36px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 400px;
  background: var(--bg);
  transition: background 200ms;
}
.feature:hover { background: var(--bg-raised); }
.feature .feature-num {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.feature h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 16ch;
}
.feature h3 em { font-style: italic; color: var(--accent); }
.feature p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  max-width: 42ch;
  text-wrap: pretty;
}
.feature-demo {
  margin-top: auto;
  padding-top: 24px;
  min-height: 140px;
}

/* Specific demos */
.demo-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-timeline .row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  padding: 7px 10px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  align-items: center;
}
.demo-timeline .row .time {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-3);
}
.demo-timeline .row h5 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 550;
  display: flex; align-items: center; gap: 6px;
}
.demo-timeline .row h5 .tdot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.demo-timeline .row .chip {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--accent-bg);
  color: var(--accent);
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.demo-voice {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.demo-voice .mic {
  width: 48px; height: 48px;
  background: var(--accent);
  border-radius: 50%;
  display: grid; place-items: center;
  color: white;
  flex-shrink: 0;
  position: relative;
  animation: pulse-mic 2s infinite;
}
@keyframes pulse-mic {
  0%, 100% { box-shadow: 0 0 0 0 oklch(55% 0.17 258 / 0.4); }
  50% { box-shadow: 0 0 0 10px oklch(55% 0.17 258 / 0); }
}
.demo-voice .wave {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  height: 36px;
}
.demo-voice .wave span {
  flex: 1;
  background: var(--ink-3);
  border-radius: 2px;
  animation: wave 1.1s infinite ease-in-out;
}
@keyframes wave {
  0%, 100% { height: 6px; opacity: 0.5; }
  50% { height: 100%; opacity: 1; }
}
.demo-voice .wave span:nth-child(1) { animation-delay: 0.0s; }
.demo-voice .wave span:nth-child(2) { animation-delay: 0.08s; }
.demo-voice .wave span:nth-child(3) { animation-delay: 0.16s; }
.demo-voice .wave span:nth-child(4) { animation-delay: 0.24s; }
.demo-voice .wave span:nth-child(5) { animation-delay: 0.32s; }
.demo-voice .wave span:nth-child(6) { animation-delay: 0.4s; }
.demo-voice .wave span:nth-child(7) { animation-delay: 0.48s; }
.demo-voice .wave span:nth-child(8) { animation-delay: 0.56s; }
.demo-voice .wave span:nth-child(9) { animation-delay: 0.64s; }
.demo-voice .wave span:nth-child(10) { animation-delay: 0.72s; }
.demo-voice .wave span:nth-child(11) { animation-delay: 0.8s; }
.demo-voice .wave span:nth-child(12) { animation-delay: 0.88s; }
.demo-voice .wave span:nth-child(13) { animation-delay: 0.96s; }
.demo-voice .wave span:nth-child(14) { animation-delay: 1.04s; }

.demo-tasks {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.demo-tasks .task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  transition: background 160ms;
}
.demo-tasks .task:hover { background: var(--bg-raised); }
.demo-tasks .cb {
  width: 15px; height: 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: 4px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.demo-tasks .task.done .cb {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.demo-tasks .task.done .t { text-decoration: line-through; color: var(--ink-4); }
.demo-tasks .t { flex: 1; }
.demo-tasks .week {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-4);
}

.demo-year {
  display: grid;
  grid-template-columns: repeat(14, 1fr);
  gap: 3px;
}
.demo-year .cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transition: transform 120ms;
}
.demo-year .cell:hover { transform: scale(1.3); z-index: 2; }
.demo-year .cell.planned { background: var(--accent-bg); border-color: var(--accent-line); }
.demo-year .cell.filled { background: var(--accent); border-color: var(--accent); }
.demo-year .cell.hot { background: oklch(62% 0.16 25); border-color: oklch(62% 0.16 25); }
.demo-year .cell.cool { background: oklch(62% 0.16 145); border-color: oklch(62% 0.16 145); }
.demo-year .cell.now { background: var(--ink); border-color: var(--ink); }
.demo-year .cell.hol { background: transparent; border: 1px dashed var(--line); opacity: 0.5; }

/* ====== FAQ ====== */
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 26px 0;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-align: left;
  color: var(--ink);
  transition: color 160ms;
}
.faq-q:hover { color: var(--accent); }
.faq-q .plus {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-3);
  transition: transform 280ms var(--e-out), background 200ms, border-color 200ms, color 200ms;
}
.faq-item.open .faq-q .plus {
  transform: rotate(45deg);
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 360ms var(--e-out);
}
.faq-item.open .faq-a { max-height: 500px; }
.faq-a-inner {
  padding: 0 0 28px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
}

/* ====== Final waitlist CTA ====== */
.final-cta {
  padding: 120px 0;
  text-align: center;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.final-cta .eyebrow-row {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 28px;
}
.final-cta .count {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.final-cta h2 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(44px, 8vw, 112px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 auto 40px;
  max-width: 14ch;
  text-wrap: balance;
}
.final-cta h2 em { font-style: italic; color: var(--accent); }
.final-cta .waitlist {
  margin: 0 auto;
  max-width: 480px;
}
.final-cta .perks {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.final-cta .perks .perk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.final-cta .perks .perk::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

/* ====== Footer ====== */
footer {
  padding: 64px 0 32px;
  font-size: 13px;
  color: var(--ink-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-col h5 {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-weight: 500;
  margin: 0 0 14px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-col a {
  color: var(--ink-2);
  transition: color 120ms;
}
.footer-col a:hover { color: var(--accent); }
/* "Du bist hier": eigener Eintrag der aktuellen Seite, staerker als die Links
   daneben (--ink, ihre Hover-Farbe). Nie schwaecher — --ink-3 faellt in beiden
   Themes unter 4.5:1 und wirkt wie eine leere Zeile. */
.footer-col .footer-self { color: var(--ink); }

.footer-brand .brand {
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 13px;
  color: var(--ink-3);
  max-width: 28ch;
  line-height: 1.5;
  margin: 0;
}

.footer-meta {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-4);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  flex-wrap: wrap;
}

/* ====== Tweaks panel ====== */
.tweaks-panel {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 280px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--sh-3);
  padding: 14px;
  z-index: 90;
  font-size: 13px;
  animation: rise 260ms var(--e-out);
}
.tweaks-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.tweaks-head h5 {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.tweak-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  gap: 10px;
}
.tweak-label { font-size: 12px; color: var(--ink-2); }
.tweak-pills {
  display: flex;
  gap: 3px;
  background: var(--bg-2);
  padding: 2px;
  border-radius: 6px;
}
.tweak-pills button {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
  color: var(--ink-3);
  font-weight: 500;
}
.tweak-pills button.active {
  background: var(--bg-raised);
  color: var(--ink);
  box-shadow: var(--sh-1);
}
.tweak-swatches {
  display: flex;
  gap: 6px;
}
.tweak-swatches button {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 120ms, transform 160ms;
}
.tweak-swatches button:hover { transform: scale(1.1); }
.tweak-swatches button.active { border-color: var(--ink); }

/* ====== Trilingual ======
   Content marked data-de / data-fr / data-en shown/hidden by root attribute */
[data-lang="de"] [data-en] { display: none; }
[data-lang="de"] [data-fr] { display: none; }
[data-lang="fr"] [data-de] { display: none; }
[data-lang="fr"] [data-en] { display: none; }
[data-lang="en"] [data-de] { display: none; }
[data-lang="en"] [data-fr] { display: none; }

/* ====== Language switcher ====== */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 14px;
}
.lang-switcher button {
  font: 500 11px/1 var(--f-mono);
  letter-spacing: 0.06em;
  padding: 4px 7px;
  border-radius: 4px;
  border: 1px solid transparent;
  color: var(--ink-3);
  background: none;
  cursor: pointer;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.lang-switcher button:hover { color: var(--ink-1); background: var(--bg-2); }
.lang-switcher button.active {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-bg);
}
@media (max-width: 680px) { .topbar .lang-switcher { display: none; } }

/* Small screens: collapse section heads */
@media (max-width: 900px) {
  .hero h1 { font-size: clamp(36px, 8vw, 64px); }
}

/* ====== Year viz v2 — month rows with week bars ====== */
.year-viz {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.year-viz-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 8px;
}
.yv-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.yv-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sw { width: 10px; height: 10px; border-radius: 2px; background: var(--bg-2); border: 1px solid var(--line); display: inline-block; }
.sw-filled { background: var(--ink); border-color: var(--ink); }
.sw-planned { background: var(--accent-bg); border-color: var(--accent-line); }
.sw-now { background: var(--accent); border-color: var(--accent); }

.year-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
}
@media (max-width: 900px) {
  .year-bars { grid-template-columns: 1fr; }
}
.yrow {
  display: grid;
  grid-template-columns: 34px 1fr 38px;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}
.yrow-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.yrow-cells {
  display: flex;
  gap: 3px;
  height: 14px;
}
.yrow-count {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-4);
  text-align: right;
}
.yb {
  flex: 1;
  border-radius: 2px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transform: scaleY(0.4);
  transform-origin: bottom;
  opacity: 0;
  animation: ybRise 500ms var(--e-out) var(--d, 0ms) forwards;
}
@keyframes ybRise {
  to { transform: scaleY(1); opacity: 1; }
}
.yb.done { background: var(--ink); border-color: var(--ink); }
.yb.plan { background: var(--accent-bg); border-color: var(--accent-line); }
.yb.now  { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-bg); animation: ybRise 500ms var(--e-out) var(--d, 0ms) forwards, nowGlow 1.8s infinite; }
.yb.exam { background: oklch(62% 0.16 25); border-color: oklch(62% 0.16 25); }
.yb.hol  { background: transparent; border: 1px dashed var(--line-strong); opacity: 0.5; animation: none; transform: none; }
@keyframes nowGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.15); }
}

/* Heart */
.heart {
  color: oklch(58% 0.20 25);
  font-style: normal;
  display: inline-block;
  animation: heartbeat 1.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes heartbeat {
  0%, 40%, 100% { transform: scale(1); }
  10% { transform: scale(1.18); }
  20% { transform: scale(0.98); }
  30% { transform: scale(1.1); }
}

/* ===== Minimal entrance animations ===== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms var(--e-out), transform 700ms var(--e-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 80ms; }
.reveal.d2 { transition-delay: 160ms; }
.reveal.d3 { transition-delay: 240ms; }
.reveal.d4 { transition-delay: 320ms; }

/* Inner stagger — children animate after parent enters */
.reveal-inner {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 500ms var(--e-out), transform 500ms var(--e-out);
}
.reveal.in .reveal-inner { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in,
  .reveal-inner, .reveal.in .reveal-inner { opacity: 1; transform: none; transition: none; }
  .heart { animation: none; }
  .marquee-track { animation: none; }
}

/* Hero headline subtle letter reveal */
.hero h1 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.3em);
  animation: wRise 700ms var(--e-out) forwards;
}
.hero h1 .w:nth-child(1) { animation-delay: 80ms; }
.hero h1 .w:nth-child(2) { animation-delay: 160ms; }
.hero h1 .w:nth-child(3) { animation-delay: 240ms; }
.hero h1 .w:nth-child(4) { animation-delay: 320ms; }
.hero h1 .w:nth-child(5) { animation-delay: 400ms; }
.hero h1 .w:nth-child(6) { animation-delay: 480ms; }
@keyframes wRise {
  to { opacity: 1; transform: none; }
}

/* Hover lift on feature tiles */
.feature h3, .feature p { transition: transform 400ms var(--e-out); }
.feature:hover h3 { transform: translateX(3px); }

/* FAQ item slight hover */
.faq-item { transition: background 200ms; }
.faq-item:hover { background: color-mix(in oklch, var(--bg-raised) 70%, transparent); }

/* Marquee scroll for ticker */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--bg);
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  gap: 48px;
  animation: scroll 40s linear infinite;
  white-space: nowrap;
  width: max-content;
}
.marquee-track span {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 48px;
}
.marquee-track span::after {
  content: '◆';
  font-size: 10px;
  color: var(--accent);
  font-style: normal;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ====== Year-matrix v3 — class × week (mirrors the app) ====== */
.year-matrix {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.year-matrix::-webkit-scrollbar { height: 6px; }
.year-matrix::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }

.ymxr {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 440px;
}
.ymxr-head {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-right: 1px solid var(--line);
  padding-right: 10px;
}
.ymxr-name {
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.ymxr-meta {
  font-family: var(--f-mono);
  font-size: 9.5px;
  color: var(--ink-4);
  letter-spacing: 0.04em;
}
.ymxr-cells {
  display: grid;
  grid-template-columns: repeat(32, 1fr);
  gap: 2px;
}

/* Cell base */
.ymxc {
  height: 18px;
  border-radius: 2px;
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  transform: scaleY(0.4);
  transform-origin: bottom;
  opacity: 0;
  animation: ybRise 500ms var(--e-out) var(--d, 0ms) forwards;
}
.ymxc.empty { animation: none; transform: none; opacity: 1; background: transparent; border: 1px dashed var(--line); }
.ymxc.hol   { animation: none; transform: none; opacity: 0.5; background: transparent; border: 1px dashed var(--line-strong); }

/* Location tints — saturated for done, pale for planned */
.ymxc.loc-gym.done    { background: oklch(88% 0.07 258); border-color: oklch(75% 0.13 258); }
.ymxc.loc-gym.plan    { background: oklch(96% 0.03 258); border-color: oklch(86% 0.06 258); }
.ymxc.loc-out.done    { background: oklch(88% 0.08 150); border-color: oklch(72% 0.13 150); }
.ymxc.loc-out.plan    { background: oklch(96% 0.03 150); border-color: oklch(85% 0.06 150); }
.ymxc.loc-kraft.done  { background: oklch(90% 0.10 70);  border-color: oklch(78% 0.15 70);  }
.ymxc.loc-kraft.plan  { background: oklch(96% 0.04 70);  border-color: oklch(88% 0.08 70);  }
.ymxc.loc-pool.done   { background: oklch(89% 0.08 215); border-color: oklch(74% 0.13 215); }
.ymxc.loc-pool.plan   { background: oklch(96% 0.03 215); border-color: oklch(85% 0.06 215); }

/* Dark theme tints */
[data-theme="dark"] .ymxc.loc-gym.done    { background: oklch(36% 0.10 258); border-color: oklch(50% 0.15 258); }
[data-theme="dark"] .ymxc.loc-gym.plan    { background: oklch(24% 0.05 258); border-color: oklch(36% 0.08 258); }
[data-theme="dark"] .ymxc.loc-out.done    { background: oklch(38% 0.10 150); border-color: oklch(52% 0.14 150); }
[data-theme="dark"] .ymxc.loc-out.plan    { background: oklch(24% 0.05 150); border-color: oklch(36% 0.08 150); }
[data-theme="dark"] .ymxc.loc-kraft.done  { background: oklch(40% 0.11 70);  border-color: oklch(56% 0.15 70);  }
[data-theme="dark"] .ymxc.loc-kraft.plan  { background: oklch(26% 0.05 70);  border-color: oklch(38% 0.08 70);  }
[data-theme="dark"] .ymxc.loc-pool.done   { background: oklch(38% 0.10 215); border-color: oklch(52% 0.14 215); }
[data-theme="dark"] .ymxc.loc-pool.plan   { background: oklch(24% 0.05 215); border-color: oklch(36% 0.08 215); }

/* Now — accent ring */
.ymxc.now {
  box-shadow: 0 0 0 2px var(--accent), 0 0 0 4px var(--accent-bg);
  z-index: 2;
  animation: ybRise 500ms var(--e-out) var(--d, 0ms) forwards, nowGlow 1.8s infinite;
}

/* Ausfall — hatched */
.ymxc.ausfall {
  background: var(--bg-2);
  border: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    45deg,
    transparent, transparent 2px,
    oklch(62% 0.18 25 / 0.55) 2px, oklch(62% 0.18 25 / 0.55) 3px
  );
}

/* Type ribbons — small bar at top */
.ymxc-ribbon {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  border-radius: 2px 2px 0 0;
}
.ymxc-ribbon.ribbon-exam { background: oklch(62% 0.20 25); }
.ymxc-ribbon.ribbon-exk  { background: oklch(60% 0.18 305); }

/* Legend swatches (extend existing .sw) */
.sw-loc-gym    { background: oklch(88% 0.07 258); border-color: oklch(75% 0.13 258); }
.sw-loc-out    { background: oklch(88% 0.08 150); border-color: oklch(72% 0.13 150); }
.sw-loc-kraft  { background: oklch(90% 0.10 70);  border-color: oklch(78% 0.15 70);  }
.sw-loc-pool   { background: oklch(89% 0.08 215); border-color: oklch(74% 0.13 215); }
.sw-ribbon-exam { background: oklch(62% 0.20 25); border-color: oklch(62% 0.20 25); }
.sw-ausfall {
  background-image: repeating-linear-gradient(45deg, transparent, transparent 2px, oklch(62% 0.18 25 / 0.55) 2px, oklch(62% 0.18 25 / 0.55) 3px);
  background-color: var(--bg-2);
}
[data-theme="dark"] .sw-loc-gym    { background: oklch(36% 0.10 258); border-color: oklch(50% 0.15 258); }
[data-theme="dark"] .sw-loc-out    { background: oklch(38% 0.10 150); border-color: oklch(52% 0.14 150); }
[data-theme="dark"] .sw-loc-kraft  { background: oklch(40% 0.11 70);  border-color: oklch(56% 0.15 70);  }
[data-theme="dark"] .sw-loc-pool   { background: oklch(38% 0.10 215); border-color: oklch(52% 0.14 215); }

@media (max-width: 800px) {
  .ymxr { grid-template-columns: 80px 1fr; min-width: 380px; }
  .ymxr-name { font-size: 10px; }
  .ymxc { height: 16px; }
}

/* ====== Demo: KI-Lektionsplan (Feature 05) ====== */
.demo-aiplan {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.aiplan-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
}
.aiplan-prompt { color: var(--accent); font-weight: 600; }
.aiplan-topic { color: var(--ink); flex: 1; }
.aiplan-meta { color: var(--ink-4); font-size: 10.5px; letter-spacing: 0.04em; }
.aiplan-output {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.aiplan-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: baseline;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.4;
}
.aiplan-tag {
  font-family: var(--f-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding-top: 1px;
}
.aiplan-text { color: var(--ink-2); }

/* ====== Demo: Stellvertretung & Teilen (Feature 06) ====== */
.demo-share {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.share-card {
  padding: 12px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.share-card-second { opacity: 0.85; }
.share-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.share-cls {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.share-pill {
  font-family: var(--f-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 3px;
}
.share-pill-write {
  background: oklch(95% 0.05 70);
  color: oklch(45% 0.14 70);
}
.share-pill-read {
  background: var(--bg-2);
  color: var(--ink-3);
  border: 1px solid var(--line);
}
[data-theme="dark"] .share-pill-write { background: oklch(28% 0.06 70); color: oklch(82% 0.12 70); }
.share-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
}
.share-icon { color: var(--accent); display: flex; }
.share-url strong { color: var(--accent); font-weight: 600; }
.share-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0.03em;
}

/* ====== Demo: Volltext-Suche (Feature 07) ====== */
.demo-search {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--accent-line);
  border-radius: 6px;
  font-family: var(--f-mono);
  font-size: 12.5px;
}
.search-icon { color: var(--accent); display: flex; }
.search-query { color: var(--ink); flex: 1; }
.search-count {
  font-size: 10px;
  color: var(--ink-4);
  background: var(--bg-2);
  padding: 2px 7px;
  border-radius: 10px;
  letter-spacing: 0.04em;
}
.search-results {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.search-result {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 0 4px 4px 0;
}
.search-where {
  font-family: var(--f-mono);
  font-size: 9.5px;
  color: var(--ink-4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.search-snippet {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.4;
}
.search-snippet mark {
  background: oklch(92% 0.16 95);
  color: var(--ink);
  padding: 0 2px;
  border-radius: 2px;
}
[data-theme="dark"] .search-snippet mark { background: oklch(50% 0.15 95); color: oklch(98% 0.01 95); }

/* ====== Demo: Plan B (Feature 08) ====== */
.demo-planb {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
}
.planb-card {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.planb-card.planb-a {
  background: var(--bg-2);
  opacity: 0.55;
}
.planb-card.planb-a .planb-text {
  text-decoration: line-through;
  text-decoration-color: var(--ink-4);
}
.planb-card.planb-b {
  background: var(--bg-raised);
  border-color: var(--accent-line);
  border-left: 2px solid var(--accent);
}
.planb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.planb-tag {
  font-family: var(--f-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.planb-tag-active { color: var(--accent); }
.planb-weather {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--f-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: oklch(52% 0.16 25);
}
.planb-active-pill {
  font-family: var(--f-mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-bg);
  color: var(--accent);
  padding: 2px 7px;
  border-radius: 3px;
}
.planb-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--ink-2);
}
.planb-arrow {
  align-self: center;
  color: var(--ink-4);
  display: flex;
}

/* ====== Mobile fixes for the 8-features section ====== */
@media (max-width: 640px) {
  /* Tighter feature card on phones */
  .feature {
    padding: 28px 20px 24px;
    gap: 16px;
    min-height: 0;
  }
  .feature .feature-num { font-size: 10px; }
  .feature h3 {
    font-size: 26px;
    max-width: none;
  }
  .feature p {
    font-size: 14px;
    max-width: none;
  }
  .feature-demo {
    padding-top: 16px;
    min-height: 0;
  }

  /* Year-matrix: smaller everything, fit narrow phones */
  .ymxr {
    grid-template-columns: 70px 1fr;
    gap: 8px;
    min-width: 320px;
  }
  .ymxr-head { padding-right: 8px; }
  .ymxr-name { font-size: 9.5px; }
  .ymxr-meta { font-size: 9px; }
  .ymxc { height: 14px; }

  /* AI plan: stack tag above text, drop the 80px column */
  .aiplan-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .aiplan-input { font-size: 11px; padding: 9px 12px; flex-wrap: wrap; }
  .aiplan-meta { width: 100%; font-size: 10px; }

  /* Share cards: allow head to wrap */
  .share-card-head { flex-wrap: wrap; gap: 6px; }
  .share-link { font-size: 10.5px; }

  /* Search: tighter */
  .search-input { font-size: 11.5px; padding: 9px 12px; }
  .search-snippet { font-size: 12px; }
  .search-where { font-size: 9px; }

  /* Plan B: head wraps */
  .planb-head { flex-wrap: wrap; gap: 6px; }
  .planb-text { font-size: 12px; }

  /* Tasks: tighter spacing */
  .demo-tasks { gap: 4px; }
}

/* Even narrower phones (< iPhone SE) */
@media (max-width: 380px) {
  .feature { padding: 24px 16px 20px; }
  .feature h3 { font-size: 24px; }
  .ymxr { grid-template-columns: 60px 1fr; min-width: 300px; }
}

/* ====== Consent banner ====== */
.gc-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 20px;
  margin: 0 auto;
  max-width: 500px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,0.18), 0 4px 12px -2px rgba(0,0,0,0.08);
  font-size: 13px;
  color: var(--ink-2);
  z-index: 100;
  animation: gc-bounce-in 720ms cubic-bezier(0.34, 1.56, 0.64, 1) both,
             gc-glow 2.4s ease-in-out 900ms 2;
}
@keyframes gc-bounce-in {
  0%   { opacity: 0; transform: translateY(40px) scale(0.92); }
  60%  { opacity: 1; transform: translateY(-6px) scale(1.02); }
  80%  { transform: translateY(2px) scale(0.99); }
  100% { transform: translateY(0) scale(1); }
}
@keyframes gc-glow {
  0%, 100% { box-shadow: 0 12px 32px -8px rgba(0,0,0,0.18), 0 4px 12px -2px rgba(0,0,0,0.08), 0 0 0 0 color-mix(in oklch, var(--accent) 0%, transparent); }
  50%      { box-shadow: 0 14px 38px -6px rgba(0,0,0,0.22), 0 4px 14px -2px rgba(0,0,0,0.10), 0 0 0 6px color-mix(in oklch, var(--accent) 14%, transparent); }
}
.gc-consent-msg {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.gc-consent-more {
  font-size: 11.5px;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--line-strong);
  white-space: nowrap;
}
.gc-consent-more:hover { color: var(--ink); }
.gc-consent-reject {
  font-size: 12px;
  color: var(--ink-3);
  padding: 6px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.gc-consent-reject:hover { color: var(--ink); }
.gc-consent-accept {
  position: relative;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 7px 16px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 8px -2px color-mix(in oklch, var(--accent) 60%, transparent);
  transition: transform 160ms var(--e-out), background 160ms var(--e-out), box-shadow 160ms var(--e-out);
}
.gc-consent-accept::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,0.45) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: gc-shine 3.6s ease-in-out 1.4s infinite;
  pointer-events: none;
}
@keyframes gc-shine {
  0%, 70%, 100% { left: -120%; }
  85%           { left: 130%; }
}
.gc-consent-accept:hover {
  transform: translateY(-1px);
  background: var(--accent-strong, var(--accent));
  box-shadow: 0 4px 14px -2px color-mix(in oklch, var(--accent) 70%, transparent);
}
@media (prefers-reduced-motion: reduce) {
  .gc-consent { animation: rise 280ms var(--e-out); }
  .gc-consent-accept::after { display: none; }
}
@media (max-width: 540px) {
  .gc-consent {
    padding: 8px 8px 8px 14px;
    gap: 8px;
    font-size: 12px;
  }
  .gc-consent-msg { font-size: 11.5px; }
  .gc-consent-more { display: none; }
}

/* ============================================================
   TEIL B — Relaunch: Buttons, Pillars, fobizz, Pricing,
   School/ROI, Datenschutz. Reuses existing tokens.
   ============================================================ */

/* ---- Buttons (standalone CTAs) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 160ms var(--e-out), background 160ms, border-color 160ms, color 160ms;
}
.btn .arrow { width: 15px; height: 15px; transition: transform 160ms var(--e-out); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:hover .arrow { transform: translateX(2px); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { transform: translateY(-1px); }
.btn-accent:hover .arrow { transform: translateX(2px); }
.btn-ghost { color: var(--accent); padding-left: 0; padding-right: 0; }
.btn-ghost:hover .arrow { transform: translateX(3px); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* Hero CTA block (replaces the old waitlist form) */
.hero-cta { display: flex; flex-direction: column; gap: 12px; min-width: 360px; }
.hero-cta .btn-row { gap: 10px; }
.hero-cta .cta-hint {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  padding-left: 2px;
}
@media (max-width: 520px) {
  .hero-cta, .waitlist { min-width: 0; width: 100%; }
  .hero-cta .btn { flex: 1; justify-content: center; }
}

/* ---- Pillars (4 headline promises) ---- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
@media (max-width: 760px) { .pillars-grid { grid-template-columns: 1fr; } }
.pillar {
  position: relative;
  padding: 34px 34px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: background 200ms;
}
.pillar:hover { background: var(--bg-raised); }
.pillar .pillar-num {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.pillar h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 31px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
}
.pillar h3 em { font-style: italic; color: var(--accent); }
.pillar p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
  max-width: 44ch;
  text-wrap: pretty;
}
.pillar .pillar-note {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--ink-4);
}

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.price-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 26px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  position: relative;
}
.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--sh-2);
}
.price-badge {
  position: absolute;
  top: -11px; left: 26px;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
}
.price-tier {
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.price-amount .amount {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.price-amount .period { font-size: 13px; color: var(--ink-3); }
.price-sub {
  font-size: 13px;
  color: var(--ink-3);
  margin: -8px 0 0;
  min-height: 18px;
}
.price-tagline {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  text-wrap: pretty;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
.price-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }
.price-list li.muted { color: var(--ink-4); }
.price-list li.muted svg { color: var(--ink-4); }
.price-cta { width: 100%; justify-content: center; }
.price-foot {
  text-align: center;
  margin-top: 28px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink-4);
  line-height: 1.6;
}

/* ---- School / B2B + ROI ---- */
.roi-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 34px 36px;
  margin-bottom: 48px;
  background: var(--accent-bg);
  border: 1px solid var(--accent-line);
  border-radius: 18px;
}
@media (max-width: 700px) { .roi-callout { grid-template-columns: 1fr; gap: 16px; padding: 26px 22px; } }
.roi-big {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(56px, 9vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--accent);
  white-space: nowrap;
}
.roi-big small { display: block; font-size: 13px; letter-spacing: 0.04em; color: var(--ink-3); font-family: var(--f-mono); margin-top: 8px; text-transform: uppercase; }
.roi-text { font-size: 16px; line-height: 1.55; color: var(--ink); text-wrap: pretty; }
.roi-text strong { font-weight: 600; }
.roi-text .roi-fine { display: block; margin-top: 8px; font-size: 13px; color: var(--ink-3); }

.roi-reasons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 700px) { .roi-reasons { grid-template-columns: 1fr; } }
.roi-reason {
  background: var(--bg-raised);
  padding: 24px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.roi-reason .label { color: var(--accent); }
.roi-reason h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 4px 0 0;
}
.roi-reason p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0; text-wrap: pretty; }
.school-cta { margin-top: 36px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.school-cta .school-note { font-family: var(--f-mono); font-size: 11px; color: var(--ink-3); letter-spacing: 0.03em; }

/* ---- Datenschutz / Trust ---- */
.trust-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 800px) { .trust-cards { grid-template-columns: 1fr; } }
.trust-card {
  padding: 26px 24px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trust-ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}
.trust-card h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0;
}
.trust-card p { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin: 0; text-wrap: pretty; }
.trust-foot {
  margin-top: 28px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}
.trust-foot a { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.trust-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Final CTA (button instead of waitlist form) ---- */
.final-cta .cta-block { display: flex; flex-direction: column; align-items: center; gap: 14px; }

/* ====== № 05 · Mobile / Everywhere ====== */
.apps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}
.apps-lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 40ch;
  margin: 0 0 28px;
}
.apps-points { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 14px; }
.apps-points li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
}
.apps-points li svg { color: var(--accent); margin-top: 1px; }
.apps-points strong { color: var(--ink); font-weight: 600; }
.apps-note { font-size: 13.5px; color: var(--ink-3); margin: 4px 0 0; }
.apps-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Store badges ---- */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--bg-raised);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms var(--e-out), border-color 160ms;
}
.store-badge .store-logo { width: 26px; height: 26px; flex: none; }
.store-badge .store-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-pre { font-size: 10.5px; letter-spacing: 0.02em; color: var(--ink-3); text-transform: uppercase; }
.store-name { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.store-flag {
  position: absolute;
  top: -8px; right: -8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 6px oklch(55% 0.17 258 / 0.35);
}
.store-badge.is-soon { cursor: default; opacity: 0.92; }
.store-badge.is-soon .store-logo { filter: saturate(0.65); }
a.store-badge:hover { transform: translateY(-2px); border-color: var(--ink); }
.store-badge-sm { padding: 8px 14px; border-radius: 12px; gap: 9px; }
.store-badge-sm .store-logo { width: 21px; height: 21px; }
.store-badge-sm .store-name { font-size: 14.5px; }
.store-badge-sm .store-pre { font-size: 9.5px; }
.hero-stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

/* ---- Device frames (real screenshots) ---- */
.apps-devices { position: relative; padding: 8px 0 56px; }
/* Light/dark screenshot swap, tied to the site theme */
.shot { display: block; width: 100%; height: auto; }
.shot-dark { display: none; }
[data-theme="dark"] .shot-light { display: none; }
[data-theme="dark"] .shot-dark { display: block; }

.device-desktop {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--sh-3);
}
.device-chrome {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklch, var(--bg-raised) 96%, var(--ink) 4%);
}
.device-dots { display: flex; gap: 6px; }
.device-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.device-url {
  flex: 1; text-align: center;
  font-family: var(--f-mono); font-size: 11px; color: var(--ink-3);
}
.device-desktop .device-screen { line-height: 0; }

/* Phones overlapping the desktop, slightly fanned */
.device-phone {
  position: absolute;
  width: 162px;
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  padding: 7px;
  box-shadow: 0 24px 48px -16px oklch(18% 0.015 260 / 0.4);
}
.device-phone .device-screen {
  position: relative;
  border-radius: 19px;
  overflow: hidden;
  line-height: 0;
}
.device-notch {
  position: absolute;
  top: 11px; left: 50%; transform: translateX(-50%);
  z-index: 2;
  width: 46px; height: 5px; border-radius: 999px;
  background: oklch(0% 0 0 / 0.18);
}
.device-phone-front { right: -8px; bottom: 0; z-index: 3; transform: rotate(3deg); }
.device-phone-back  { right: 118px; bottom: 24px; z-index: 1; transform: rotate(-5deg); width: 150px; opacity: 0.97; }

@media (max-width: 980px) {
  .apps-grid { grid-template-columns: 1fr; gap: 36px; }
  .apps-devices { max-width: 600px; margin: 0 auto; padding-bottom: 40px; }
}
@media (max-width: 560px) {
  .device-phone { width: 132px; }
  .device-phone-front { right: 0; }
  .device-phone-back { right: 96px; bottom: 18px; width: 122px; }
  .store-badge { flex: 1 1 auto; }
}
@media (max-width: 400px) {
  .device-phone-back { display: none; }
}

/* ====== Hero with phone preview ====== */
/* Two columns: text+CTAs+badges on the left, phone on the right */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: clamp(40px, 5vw, 80px);
  align-items: center;
}
.hero-content { min-width: 0; }
/* Below the headline: actions (text + CTAs) next to the store badges */
.hero-grid .hero-below {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(28px, 3.5vw, 52px);
  flex-wrap: wrap;
}
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
/* Store badges, stacked, sitting beside the CTAs */
.hero-grid .hero-stores {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  margin-top: 0;
  width: auto;
}
.hero-visual { display: flex; align-items: center; justify-content: flex-end; }
.hero-phone {
  position: relative;
  right: auto; bottom: auto;
  width: clamp(196px, 19vw, 248px);
  margin-right: clamp(16px, 3.5vw, 56px);
  transform: none;
  transition: transform 400ms var(--e-out);
  flex: none;
}
.hero-phone:hover { transform: translateY(-4px); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; row-gap: 26px; justify-items: start; }
}
@media (max-width: 600px) {
  /* Stack badges under the CTAs and drop the phone; shrink the badges */
  .hero-phone { display: none; }
  .hero-grid .hero-below { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero-grid .hero-stores { align-items: flex-start; gap: 8px; }
  .hero-grid .store-badge { padding: 7px 13px; gap: 9px; }
  .hero-grid .store-logo { width: 21px; height: 21px; }
  .hero-grid .store-name { font-size: 14px; }
  .hero-grid .store-pre { font-size: 9px; }
  .hero-grid .store-flag { font-size: 9px; padding: 2px 7px; }
}
