/* Erklara landing page. Plain CSS, no build step, no CDN.
   Colours are the extension's own (extension/content/content.css and popup/popup.css).
   The overlay and tooltip styles come from overlay.css, a copy of content.css, and load first. */

:root {
  /* The page is paper and navy. The product itself (player, specimens, card) stays in the
     extension's dark palette: see the .dark-frame rule below, which restores those values. */
  --ink-0: #fbf6ea;           /* page: warm cream */
  --ink-1: #ffffff;           /* cards */
  --ink-2: #f3ebd6;
  --line: rgba(26, 20, 8, 0.1);
  --line-2: #e6dcc4;

  --text: #1a1408;            /* ink */
  --text-2: #3d3626;
  --text-3: #544c3a;
  --muted: #6b6455;
  --faint: #8b857a;

  /* Brand yellow = the highlight colour of the extension's subtitles (see marketing/brand/BRAND.md).
     Used as a fill with ink text on top. Never as small text on cream (too little contrast). */
  --yellow: #f5b841;
  --yellow-deep: #e0a02c;
  --yellow-soft: #fbe3a6;
  --yellow-tint: #fdf1d3;

  --blue: var(--yellow-deep);
  --blue-deep: var(--yellow);
  --blue-soft: var(--yellow-soft);
  --sky: var(--text);
  --emerald: var(--yellow);
  --emerald-2: var(--yellow);
  --mint: var(--text);
  --amber: #b45309;
  --amber-2: #b45309;
  --gold: #8a5a00;
  --gold-2: var(--yellow-deep);
  --rose: #f43f5e;
  --rose-2: #fda4af;
  --red: #dc2626;
  --red-2: #fca5a5;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --pad: clamp(20px, 4vw, 48px);
  --wrap: 1200px;
}

/* Product frames keep the extension's own dark palette (extension/content/content.css) */
.dark-frame,
.player,
.specimen,
.card-mock {
  --ink-0: #141311;
  --ink-1: #1c1b18;
  --ink-2: #26241f;
  --line: rgba(255, 244, 222, 0.08);
  --line-2: rgba(255, 244, 222, 0.14);
  --text: #f4f1ea;
  --text-2: #d9d4ca;
  --text-3: #bdb7ab;
  --muted: #9a9488;
  --faint: #8b857a;
  --blue: #7fa8ff;
  --sky: #d9d4ca;
  --emerald: #7cc792;
  --emerald-2: #7cc792;
  --mint: #f5b841;
  --amber: #f5b841;
  --amber-2: #ffc95e;
  --gold: #f5b841;
  --red: #ef7a6b;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--ink-0);
  color: var(--text-2);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: var(--sky); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; color: var(--text); }

::selection { background: var(--yellow-soft); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

[hidden] { display: none !important; }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--pad));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--text);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 16px; }

/* ---------- Buttons: the extension's action buttons and PRO styles ---------- */

.text-link {
  color: var(--text-2);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  padding-bottom: 2px;
  transition: background-size 0.35s var(--ease), color 0.2s var(--ease);
}
.text-link:hover { background-size: 100% 1px; color: var(--sky); }

.btn {
  appearance: none;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 10px;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--yellow);
  color: var(--text);
  box-shadow: 0 8px 22px -10px rgba(245, 158, 11, 0.8);
}
.btn-primary:hover {
  background: var(--yellow-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -10px rgba(245, 158, 11, 0.8);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: #cfc6b6;
}
.btn-ghost:hover {
  background: #fff;
  border-color: var(--text);
}

.btn-gold {
  background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-deep) 100%);
  color: var(--text);
  box-shadow: 0 6px 18px -8px rgba(245, 158, 11, 0.6);
}
.btn-gold:hover { transform: translateY(-1px); }

.btn-small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

.btn-muted {
  background: rgba(26, 20, 8, 0.05);
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
  width: 100%;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.88);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-color: var(--line-2); }

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand svg { width: 32px; height: 32px; }

.nav { display: flex; gap: 30px; font-size: 15px; color: var(--muted); }
.nav a {
  color: inherit;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  padding-bottom: 2px;
  transition: background-size 0.35s var(--ease), color 0.2s var(--ease);
}
.nav a:hover { color: var(--text); background-size: 100% 1px; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
  appearance: none;
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 26px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 899px) {
  .nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--pad) 20px;
    background: var(--ink-0);
    border-bottom: 1px solid var(--line-2);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
    background: none;
  }
  .menu-toggle { display: inline-block; }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(80px, 11vw, 132px);
  border-top: 1px solid var(--line);
}

.eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 4px;
  margin-right: 10px;
  border-radius: 2px;
  background: var(--yellow);
  vertical-align: middle;
}

.section-head {
  display: grid;
  gap: 22px;
  margin-bottom: clamp(40px, 5vw, 60px);
}
@media (min-width: 960px) {
  .section-head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
    gap: 72px;
  }
}

h2 {
  font-size: clamp(2.3rem, 4.4vw, 3.7rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.lead {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 34em;
}

/* ---------- The player: the extension's overlay on a silent clip ---------- */

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 80px -46px rgba(26, 20, 8, 0.55), 0 0 0 1px rgba(26, 20, 8, 0.12);
  --de-font-size: 20px;
}

.player-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0));
  color: var(--text-2);
  font: 500 13px/1 var(--sans);
}

.player-bar button {
  appearance: none;
  border: 0;
  padding: 7px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}
.player-bar button:hover { background: rgba(255, 255, 255, 0.12); }
.player-bar button:disabled { opacity: 0.5; cursor: default; }

.player-progress {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}
.player-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 4px;
  background: var(--amber);
  transition: width 0.25s linear;
}

.player-time {
  font: 500 12px/1 var(--mono);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The hero shows the same card as a still frame, without the controls */
.player--hero .overlay-static {
  --de-font-scale: 1.5;
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  width: 92%;
  max-width: 860px;
  transform: translateX(-50%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
}
.keys li { display: inline-flex; align-items: center; gap: 8px; }
.keys kbd {
  font: 600 11px/1 var(--mono);
  color: var(--text-2);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 3px 6px;
}

/* Shortcuts stay folded away until someone asks for them */
.keys-toggle { margin-top: 18px; }
.keys-toggle summary {
  display: inline-block;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.keys-toggle summary:hover { color: var(--text); }
.keys-toggle .keys { margin-top: 14px; }

/* The small reward after saving a word in the demo */
.save-reward {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--yellow-tint);
  border: 1px solid var(--yellow-soft);
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}
.save-reward[hidden] { display: none; }
.save-reward b { font-weight: 700; }
.save-reward.is-new { animation: reward-in 0.5s var(--ease-out); }
@keyframes reward-in {
  from { opacity: 0; transform: translateY(6px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */

.hero { padding-block: clamp(56px, 8vw, 110px) clamp(72px, 9vw, 124px); }

.hero-grid {
  display: grid;
  gap: clamp(48px, 6vw, 84px);
  align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
}

.hero h1 {
  font-size: clamp(3.3rem, 6.4vw, 6.2rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: italic;
  color: var(--text);
  padding: 0 0.06em;
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero .lead { margin-top: 26px; }

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 34px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--muted);
}
.facts li {
  padding-right: 22px;
  margin-right: 22px;
  border-right: 1px solid var(--line-2);
}
.facts li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }

/* Entrance: plays once on load, skipped for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .hero [data-enter] {
    animation: enter 0.9s var(--ease-out) both;
    animation-delay: var(--d, 0ms);
  }
  .hero .d1 { --d: 80ms; }
  .hero .d2 { --d: 180ms; }
  .hero .d3 { --d: 280ms; }
  .hero .d4 { --d: 380ms; }
}
@keyframes enter {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Grammar ---------- */

.rows { border-top: 1px solid var(--line-2); }

.row {
  display: grid;
  gap: 24px 48px;
  align-items: center;
  padding-block: clamp(44px, 6vw, 72px);
  border-bottom: 1px solid var(--line-2);
}
@media (min-width: 900px) {
  .row { grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.08fr); }
}

.row-num {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

.row h3 {
  font-size: clamp(28px, 2.9vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.row p { color: var(--muted); max-width: 34em; }
.row p em { color: var(--text-3); font-style: italic; }

.specimen {
  padding: clamp(24px, 3vw, 38px);
  border-radius: 16px;
  background: var(--ink-1);
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -40px rgba(26, 20, 8, 0.45);
}

.specimen-line {
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
}

.specimen-en {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
}

/* The separable-verb link: the one dealt moment on the page */
.linked {
  position: relative;
  padding-bottom: 58px;
}
.linked .sentence {
  font-size: clamp(20px, 2.1vw, 26px);
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
}
.bracket {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 24px;
  overflow: visible;
  pointer-events: none;
}
.bracket path {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.bracket-label {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-50%);
  padding: 2px 9px;
  border-radius: 9999px;
  background: var(--em-bg, rgba(245, 184, 65, 0.16));
  border: 1px solid rgba(245, 184, 65, 0.5);
  color: var(--amber);
  font: 600 14px/1.2 var(--sans);
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  /* site.js sets the dash length to the measured path length, so the line draws in one pass */
  .js .bracket path {
    transition: stroke-dashoffset 1.2s var(--ease-out) 0.1s;
  }
  .js .bracket-label {
    opacity: 0;
    transition: opacity 0.6s var(--ease) 1s;
  }
  .js .is-in .bracket path { stroke-dashoffset: 0; }
  .js .is-in .bracket-label { opacity: 1; }
}

.gender-list {
  display: grid;
  gap: 14px;
  font-size: clamp(20px, 2.1vw, 26px);
  color: var(--text);
}
.gender-list li { display: flex; align-items: center; gap: 14px; }
.gender-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
}

/* ---------- Anki ---------- */

.split {
  display: grid;
  gap: clamp(48px, 6vw, 84px);
  align-items: center;
}
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.plain-list { margin-top: 32px; border-top: 1px solid var(--line-2); }
.plain-list li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 27px;
  width: 14px;
  height: 2px;
  background: var(--emerald-2);
}

.card-mock {
  padding: clamp(24px, 3vw, 34px);
  border-radius: 16px;
  background: var(--ink-1);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 70px -44px rgba(26, 20, 8, 0.5);
}
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font: 500 13px/1.4 var(--mono);
  color: var(--muted);
}
.card-face { padding: 22px 0; border-bottom: 1px solid var(--line); }
.card-face:last-of-type { border-bottom: 0; padding-bottom: 8px; }
.face-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.card-word {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: clamp(34px, 3.6vw, 46px);
  line-height: 1.05;
  color: var(--text);
}
.card-back { margin-top: 6px; font-size: 20px; color: var(--mint); font-weight: 500; }
.card-sentence { margin-top: 8px; font-size: 15px; color: var(--muted); font-style: italic; }
.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 500 12px/1.4 var(--mono);
  color: var(--faint);
}

/* ---------- Prices: one tag that shrinks, four steps under it ---------- */

.ladder {
  padding: clamp(24px, 4vw, 44px);
  border-radius: 20px;
  background: var(--ink-1);
  border: 1px solid var(--line-2);
}

/* Fixed height so the page does not move while the tag shrinks. */
.tag-stage {
  height: clamp(190px, 26vw, 250px);
  display: grid;
  place-items: center;
}
.tag {
  --s: 1;
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 230px;
  padding: 22px 52px 20px;
  border-radius: 14px 22px 22px 14px;
  background: var(--text);
  color: var(--ink-1);
  transform: scale(var(--s)) rotate(-2deg);
  transition: transform 0.7s var(--ease-out), background-color 0.6s var(--ease);
}
/* The hole a price tag hangs from */
.tag::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink-1);
}
.tag[data-month="2"] { --s: 0.9; }
.tag[data-month="3"] { --s: 0.8; }
.tag[data-month="4"] { --s: 0.7; background: var(--yellow); color: #1a1408; }
.tag[data-month="4"] .tag-chip { background: rgba(26, 20, 8, 0.1); }
.tag-when { font: 500 14px/1.2 var(--sans); opacity: 0.75; }
.tag-price {
  font: 400 clamp(64px, 9vw, 92px)/1 var(--serif);
  font-variant-numeric: tabular-nums;
}
.tag-price.is-changing { animation: tag-drop 0.45s var(--ease-out); }
@keyframes tag-drop {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: none; }
}
.tag-per { font: 500 15px/1.2 var(--sans); opacity: 0.75; }
.tag-chip {
  margin-top: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font: 600 13px/1.4 var(--sans);
}

/* Four steps on a line; the line fills yellow up to the chosen month. */
.steps {
  --done: 0%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.steps::before,
.steps::after {
  content: "";
  position: absolute;
  left: 12.5%;
  top: 9px;
  height: 4px;
  border-radius: 2px;
}
.steps::before { right: 12.5%; background: var(--line-2); }
.steps::after {
  width: var(--done);
  background: var(--emerald);
  transition: width 0.7s var(--ease-out);
}
.step {
  appearance: none;
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 30px 4px 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: 500 14px/1.2 var(--sans);
}
/* The dot on the line */
.step::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  border-radius: 50%;
  background: var(--ink-1);
  border: 3px solid var(--line-2);
  box-sizing: border-box;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease), transform 0.3s var(--ease-out);
}
.step b { font: 600 17px/1.2 var(--sans); color: var(--text-3); font-variant-numeric: tabular-nums; }
.step.is-done::before { border-color: var(--emerald); background: var(--emerald); }
.step.is-current { color: var(--text); }
.step.is-current b { color: var(--text); }
.step.is-current::before { transform: scale(1.35); }
.step[data-month="4"].is-current b { background: linear-gradient(transparent 55%, var(--yellow-soft) 55%, var(--yellow-soft) 90%, transparent 90%); padding: 0 4px; }
.step:hover b { color: var(--text); }
.step:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.ladder-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

/* Ways to pay less, shown under the chart */
.extras { margin-top: 28px; }
.extras-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.extras-list {
  display: grid;
  gap: 12px;
}
@media (min-width: 760px) {
  .extras-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.extras-list li {
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  background: var(--ink-1);
}
.extras-list strong {
  display: block;
  font: 400 21px/1.25 var(--serif);
  color: var(--text);
}
.extras-list span {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  color: var(--muted);
}

/* What PRO gives you: a table with the extension's own colours */
.compare {
  margin-top: 28px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: var(--ink-1);
  overflow: hidden;
}
.compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.compare-row:first-child { border-top: 0; }
.compare-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(26, 20, 8, 0.04);
}
.compare-head .col-pro { color: var(--text); background: var(--yellow-tint); }
.compare-name { color: var(--text-2); }
.compare-name small { display: block; margin-top: 2px; font-size: 13px; color: var(--faint); }

.yes { color: var(--text); font-weight: 700; }
.no { color: var(--faint); }

.meter {
  position: relative;
  height: 10px;
  border-radius: 9999px;
  background: rgba(26, 20, 8, 0.08);
  overflow: hidden;
  margin-top: 8px;
}
.meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  border-radius: 9999px;
  background: var(--red);
}
.meter-fill.is-pro { background: var(--emerald-2); }
.meter-label { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

.plan-foot {
  display: grid;
  gap: 14px;
  margin-top: 28px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 760px) {
  .plan-foot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.plan-foot .btn { width: 100%; }
.plan-note {
  margin-top: 16px;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}
.plan-note strong { color: var(--text); }

/* ---------- FAQ ---------- */

.faq { max-width: 860px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.25;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  transition: transform 0.35s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-body {
  max-width: 44em;
  padding: 0 40px 26px 0;
  font-size: 16px;
  color: var(--muted);
}
.faq details[open] .faq-body { animation: reveal 0.4s var(--ease-out); }
@keyframes reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Close and footer ---------- */

.closing-grid {
  display: grid;
  gap: 32px;
  align-items: end;
}
@media (min-width: 960px) {
  .closing-grid { grid-template-columns: minmax(0, 1fr) auto; gap: 80px; }
}
.closing h2 { font-size: clamp(2.6rem, 5.6vw, 5rem); line-height: 1; }
.closing p { margin-top: 20px; max-width: 30em; color: var(--muted); font-size: 18px; }

.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--faint);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px 32px;
}
.site-footer a { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.footer-brand { color: var(--text); font-weight: 600; }

/* ---------- Phones ---------- */

@media (max-width: 639px) {
  .player { aspect-ratio: 3 / 4; --de-font-size: 16px; }
  .player-bar { height: 40px; padding: 0 10px; gap: 8px; }
  .player-bar button { padding: 6px 6px; }
  .player-time { font-size: 11px; }
  .player--hero .overlay-static { bottom: 14px; width: 94%; }
  .facts li { border-right: 0; margin-right: 0; padding-right: 0; }
  .tag { min-width: 0; padding: 18px 40px 16px; }
  .tag::before { left: 14px; top: 14px; }
  .step { font-size: 12px; }
  .step b { font-size: 15px; }
  .compare-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); padding: 14px 14px; font-size: 14px; gap: 10px; }
}

/* ---------- Motion preference ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- The extension's overlay, used on this page ----------
   assets/erklara/overlay.css is a byte-for-byte copy of extension/content/content.css (made by
   tools/website/build_demo.js, never edit it). The real file defines its colour variables only on the
   overlay, popup and modal ids, so the hero still frame and the three small cards get them here. */
.overlay-static,
.specimen {
  --e-bg: rgba(12, 11, 10, 0.78);        /* caption background, see-through like YouTube's */
  --e-panel: #1c1b18;                    /* popups */
  --e-panel-2: #26241f;
  --e-line: rgba(255, 244, 222, 0.10);
  --e-line-strong: rgba(255, 244, 222, 0.18);
  --e-text: #ffffff;
  --e-text-2: #d9d4ca;                   /* translation line */
  --e-muted: #9a9488;
  --e-accent: #f5b841;
  --e-accent-hover: #ffc95e;
  --e-accent-ink: #1a1408;
  --e-accent-soft: rgba(245, 184, 65, 0.16);
  --e-ok: #7cc792;
  --e-danger: #ef7a6b;
  --e-der: #7fa8ff;
  --e-die: #f48a9b;
  --e-das: #7cc792;
  --e-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--e-font);
}
.overlay-static {
  container-type: inline-size;
  --de-font-scale: 1;
  --de-caption: clamp(calc(15px * var(--de-font-scale)), calc(2.9cqw * var(--de-font-scale)), calc(44px * var(--de-font-scale)));
  pointer-events: none;
}
.overlay-static .yt-german-toolbar { display: none; }

/* The three small cards under "What the subtitles show" use the same words, underlines and article colours. */
.specimen .de-word { color: var(--e-text); }
.gender-list .de-gender-pill {
  display: inline-block;
  min-width: 2.4em;
  margin-right: 8px;
  padding: 1px 9px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 0.72em;
  font-weight: 700;
  text-align: center;
}
.gender-list .de-gender-pill.de-gender-der { background: rgba(127, 168, 255, 0.14); }
.gender-list .de-gender-pill.de-gender-die { background: rgba(244, 138, 155, 0.14); }
.gender-list .de-gender-pill.de-gender-das { background: rgba(124, 199, 146, 0.14); }
