/* Loya — warm editorial (design from Loya-Preconception-standalone) */
:root {
  --bg: #faf7f4;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #57534e;
  --accent: #c45c6a;
  --accent-soft: #fde8eb;
  --accent-dark: #9a3d4a;
  --success: #15803d;
  --success-bg: #dcfce7;
  --warn: #b45309;
  --warn-bg: #ffedd5;
  --border: #e7e5e4;
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --shadow: 0 4px 24px rgba(28, 25, 23, 0.06);
  --mod-intro: #c45c6a;
  --mod-carbs: #2563eb;
  --mod-fats: #15803d;
  --mod-protein: #7c3aed;
  --mod-detox: #db2777;
  --mod-micro: #ca8a04;
  --mod-mind: #0d9488;
  --mod-supp: #0284c7;
  --mod-conditions: #4f46e5;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
}


body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

a {
  color: var(--accent-dark);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 247, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand span {
  color: var(--accent);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.progress-wrap {
  flex: 1;
  max-width: 220px;
  min-width: 100px;
}

.progress-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #e8939d);
  border-radius: 99px;
  transition: width 0.35s ease;
}

.premium-badge {
  flex-shrink: 0;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-soft) 100%);
  border: 1px solid #f5c2c8;
  box-shadow: 0 2px 10px rgba(196, 92, 106, 0.12);
  text-align: center;
  line-height: 1.25;
}

.premium-badge__title {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.premium-badge__sub {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--success);
  margin-top: 0.15rem;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .premium-badge {
    display: none;
  }
}

.btn {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s;
}

a.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:active {
  transform: scale(0.98);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover {
  background: var(--border);
  color: var(--ink);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(196, 92, 106, 0.35);
}

a.btn-primary,
a.btn-primary:visited {
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--accent-dark);
  border: 1px solid #f5c2c8;
  box-shadow: 0 1px 8px rgba(196, 92, 106, 0.12);
}

a.btn-secondary,
a.btn-secondary:visited {
  color: var(--accent-dark);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem 3rem;
  gap: 0;
}

@media (min-width: 960px) {
  .layout-wide {
    grid-template-columns: 260px minmax(0, 640px);
    max-width: 980px;
    gap: 2rem;
    align-items: start;
  }

  .sidebar {
    position: sticky;
    top: 4.5rem;
  }
}

.sidebar {
  display: none;
  padding-top: 1.25rem;
}

@media (min-width: 960px) {
  .sidebar {
    display: block;
  }
}

.sidebar-recipes {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 1.25rem 0 0;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(196, 92, 106, 0.35);
  transition: transform 0.12s ease, background 0.15s, box-shadow 0.12s;
}

.sidebar-recipes:hover {
  background: var(--accent-dark);
  color: #fff;
}

.sidebar-recipes:active {
  transform: scale(0.98);
}

.sidebar h2 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 959px) {
  .sidebar {
    display: block;
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 1.25rem 0;
  }

  .sidebar h2,
  .module-nav {
    display: none;
  }

  .sidebar-recipes {
    margin-top: 0;
  }
}

.module-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.module-nav li {
  margin-bottom: 0.35rem;
}

.module-nav button {
  width: 100%;
  text-align: left;
  font-size: 0.82rem;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-body);
  line-height: 1.35;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.module-nav button:hover {
  background: var(--surface);
  color: var(--ink);
}

.module-nav button.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: #f5c2c8;
  font-weight: 600;
}

.module-nav button.done {
  color: var(--success);
}

.module-nav button.started {
  color: var(--accent-dark);
}

.main {
  min-width: 0;
  padding: 1.25rem 0 0;
  min-height: calc(100dvh - 4rem);
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 1.5rem 1.35rem;
  margin-bottom: 1rem;
}

.card h1 {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.card p {
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.55;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 0.75rem;
}

.lesson-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lesson-list li {
  margin-bottom: 0.5rem;
}

.lesson-list button {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lesson-list button:hover:not(.locked) {
  border-color: #f5b8c0;
  box-shadow: var(--shadow);
}

.lesson-list button.locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.lesson-list button .status {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.lesson-list button.done .status {
  color: var(--success);
}

.lesson-list button.current .status {
  color: var(--accent);
}

.chapter-row {
  align-items: center;
}

.chapter-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  line-height: 1;
}

.chapter-row--intro .chapter-icon { background: #fff8e6; }
.chapter-row--carbs .chapter-icon { background: #e8f4fc; }
.chapter-row--fats .chapter-icon { background: #e9f7ef; }
.chapter-row--protein .chapter-icon { background: #f3eef8; }
.chapter-row--detox .chapter-icon { background: #fdeef2; }
.chapter-row--micro .chapter-icon { background: #fff8e6; }
.chapter-row--mind .chapter-icon { background: #e9f7ef; }
.chapter-row--supp .chapter-icon { background: #e8f4fc; }
.chapter-row--conditions .chapter-icon { background: #e8f0fc; }

.chapter-text {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.chapter-title {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

.chapter-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.screen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Home — hero (reference: Hey — I'm Loya) */
.hero {
  text-align: center;
  padding: 2rem 0 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.hero-accent {
  color: var(--accent);
}

/* Same sans as chapter lesson rows + module meta (reference .hero p / .lesson-list) */
.hero-lead,
.hero-sub {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-lead {
  margin-bottom: 0.65rem;
}

.hero-sub {
  margin-bottom: 1.75rem;
}

.module-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  overflow: hidden;
}

.module-card--intro { border-left: 4px solid var(--mod-intro); }
.module-card--carbs { border-left: 4px solid var(--mod-carbs); }
.module-card--fats { border-left: 4px solid var(--mod-fats); }
.module-card--protein { border-left: 4px solid var(--mod-protein); }
.module-card--detox { border-left: 4px solid var(--mod-detox); }
.module-card--micro { border-left: 4px solid var(--mod-micro); }
.module-card--mind { border-left: 4px solid var(--mod-mind); }
.module-card--supp { border-left: 4px solid var(--mod-supp); }
.module-card--conditions { border-left: 4px solid var(--mod-conditions); }

.module-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  width: 100%;
  border: none;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.15s;
}

.module-card-head:hover {
  background: rgba(253, 232, 235, 0.35);
}

.module-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.module-card-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
  letter-spacing: -0.02em;
}

.module-card-meta {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--muted);
  margin: 0.2rem 0 0;
}

.module-open-pill {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  white-space: nowrap;
}

.module-lessons {
  padding: 0 1rem 1rem;
  display: none;
  border-top: 1px solid var(--border);
}

.module-card.is-open .module-lessons {
  display: block;
  padding-top: 0.75rem;
}

.lesson-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.lesson-tile:last-child {
  margin-bottom: 0;
}

.lesson-tile:hover:not(:disabled):not(.is-locked) {
  border-color: #f5b8c0;
  box-shadow: var(--shadow);
}

.lesson-tile:disabled,
.lesson-tile.is-locked {
  opacity: 0.45;
  cursor: not-allowed;
}

.lesson-tile-title {
  font-weight: 600;
  display: block;
}

.lesson-tile-min {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.lesson-tile.done .lesson-tile-min {
  color: var(--success);
}

.lesson-tile.done .lesson-tile-title::after {
  content: none;
}

/* Lesson player — height follows content */
.lesson-player {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 1.35rem 1.25rem 1.5rem;
  height: fit-content;
}

.lesson-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.back-btn {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.back-btn:hover {
  background: var(--border);
  color: var(--ink);
}

.lesson-progress-dots {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: auto;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.step-body {
  flex: 0 0 auto;
}

.step-body p {
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.step-body p strong {
  font-weight: 600;
  color: var(--ink);
}

.step-image {
  width: 100%;
  border-radius: 12px;
  margin: 0 0 1rem;
  display: block;
  object-fit: cover;
  max-height: 240px;
  border: 1px solid var(--border);
}

.step-image--tall {
  max-height: 300px;
}

.step-image--missing {
  display: none;
}

.step-choices {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0 0 1rem;
}

.step-choice {
  width: 100%;
  text-align: left;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
  display: block;
}

.step-choice::before {
  display: none;
}

.step-choice:hover:not(:disabled) {
  border-color: var(--accent);
}

.step-choice.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.step-choice.is-correct {
  border-color: var(--success);
  background: var(--success-bg);
}

.step-choice.is-wrong {
  border-color: #dc2626;
  background: #fee2e2;
}

.step-pick-grid {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.step-pick {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem;
  background: var(--surface);
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.step-pick:hover {
  border-color: #f5b8c0;
}

.step-pick img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.step-pick.is-selected {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.step-feedback {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.5;
  background: var(--success-bg);
  border: 1px solid #86efac;
  color: #14532d;
}

.step-feedback.hidden {
  display: none;
}

.step-cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1rem;
  margin-top: 0;
  border-top: 1px solid var(--border);
  flex: 0 0 auto;
}

.step-recipes-link {
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.step-cta {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.2rem;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(196, 92, 106, 0.35);
  transition: transform 0.12s ease, background 0.15s, box-shadow 0.12s;
}

.step-cta:hover:not(:disabled) {
  background: var(--accent-dark);
}

.step-cta:active:not(:disabled) {
  transform: scale(0.98);
}

.step-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.disclaimer-foot {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
  margin-top: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: #f5f5f4;
  border-left: 4px solid var(--warn);
  line-height: 1.5;
}

.toast {
  position: fixed;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--ink);
  color: #fff;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 100;
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.hidden {
  display: none !important;
}

@media (min-width: 960px) {
  .main {
    padding: 1.5rem 1.5rem 3rem;
  }
}

/* Landing — root index.html (editorial + card sections) */
.landing-page {
  background: var(--bg);
}

.landing-header {
  justify-content: flex-start;
}

.landing-header .brand {
  text-decoration: none;
  color: inherit;
}

.landing {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.landing-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
  margin: 0 0 0.5rem;
}

/* Hero — text left, image right */
.landing-hero--split {
  display: grid;
  gap: 2rem;
  align-items: center;
  text-align: left;
  padding: 1.5rem 0 3.5rem;
}

.landing-hero--split .landing-hero__copy {
  max-width: 28rem;
}

.landing-hero--split .landing-eyebrow {
  margin-bottom: 0.75rem;
}

.landing-hero__visual {
  width: 100%;
  margin-left: auto;
  margin-right: 0;
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(28, 25, 23, 0.11);
  border: 1px solid var(--border);
  background: var(--accent-soft);
  aspect-ratio: 5 / 4;
}

.landing-hero__visual img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 5 / 4;
  object-fit: contain;
  object-position: center;
}

.landing-hero__promise {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 1rem;
}

.landing-hero__promise strong {
  color: var(--accent-dark);
  font-weight: 700;
}

.landing-hero__copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.landing-hero__lead {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 0.65rem;
}

.landing-hero__sub {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

@media (min-width: 840px) {
  .landing-hero--split {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
    gap: 2.5rem 3.5rem;
    padding: 2.5rem 0 4.5rem;
    align-items: center;
  }

  .landing-hero--split .landing-hero__copy {
    max-width: 34rem;
  }

  .landing-hero__visual {
    width: 100%;
    max-width: min(32rem, 100%);
    margin-left: auto;
  }
}

@media (min-width: 1100px) {
  .landing-hero--split {
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem 4rem;
  }

  .landing-hero__visual {
    max-width: 30rem;
  }
}

@media (max-width: 839px) {
  .landing-hero__visual {
    max-width: min(88vw, 22rem);
    margin-left: 0;
  }
}

/* Sections */
.landing-block {
  padding: 2.5rem 0;
}

.landing-block--soft {
  margin: 0 -1.25rem;
  padding: 2.5rem 1.25rem;
  background: linear-gradient(180deg, rgba(253, 232, 235, 0.45) 0%, transparent 100%);
  border-radius: 0;
}

@media (min-width: 720px) {
  .landing-block--soft {
    margin: 0;
    padding: 3rem 2rem;
    border-radius: calc(var(--radius) + 6px);
  }
}

.landing-block__head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.landing-block__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
  color: var(--ink);
}

.landing-block__intro {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Cards */
.landing-cards {
  display: grid;
  gap: 1rem;
}

.landing-cards--2 {
  grid-template-columns: 1fr;
}

.landing-cards--3 {
  grid-template-columns: 1fr;
}

.landing-cards--5 {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .landing-cards--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .landing-cards--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .landing-cards--5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .landing-cards--5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.landing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(28, 25, 23, 0.08);
}

.landing-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.25rem;
  background: var(--accent-soft);
  border-radius: 12px;
  margin-bottom: 0.85rem;
}

.landing-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.45rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.landing-card p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.landing-card--horizontal {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.landing-card--horizontal .landing-card__icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.landing-card--pillar {
  border-top: 3px solid var(--accent);
  padding-top: 1.15rem;
}

.landing-card--pillar h3 {
  color: var(--accent-dark);
  font-size: 0.95rem;
}

/* Stats row */
.landing-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
  margin-bottom: 2rem;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.landing-stat {
  text-align: center;
}

.landing-stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.landing-stat__label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Steps */
.landing-steps {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .landing-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.landing-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow);
}

.landing-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  margin-bottom: 0.85rem;
}

.landing-step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.landing-step p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Footer */
.landing-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.landing-disclaimer {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}

.landing-footer__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.i18n-loading main { visibility: hidden; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.language-switch { display: inline-flex; min-width: 0; max-width: 100%; }
.language-switch select {
  font: inherit;
  font-size: 0.82rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.5rem;
  max-width: 190px;
  min-height: 42px;
}
.language-switch select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.locale-error { max-width: 640px; margin: 2rem auto; }
.landing-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.landing-access-status { min-height: 1.5em; font-size: 0.9rem; }
a[aria-disabled="true"] { opacity: 0.65; cursor: wait; }
.recipe-offer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border: 1px solid #eee6d1; border-radius: 18px; background: #fdf7e7; }
.recipe-offer[hidden], [hidden] { display: none !important; }
.course-extra { max-width: 1200px; margin: 18px auto; }
.recipe-offer h2 { margin: 0 0 6px; font-size: 1.15rem; }
.recipe-offer p { margin: 0; font-size: 0.92rem; line-height: 1.5; }
.recipe-offer__actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.btn.recipe-purchase-button { flex-direction: column; gap: 4px; line-height: 1.25; text-align: center; }
.recipe-purchase-button__price { font-size: 0.9em; font-weight: 500; }
html.access-pending .course-extra { visibility: hidden; }
@media (max-width: 700px) {
  .recipe-offer { flex-direction: column; align-items: stretch; padding: 18px; }
  .course-extra { margin: 14px; }
  .recipe-offer__actions .btn { width: 100%; }
  .landing-header .header-actions { flex-wrap: wrap; justify-content: flex-end; }
}
.app-header { flex-wrap: wrap; }
.header-actions { flex-wrap: wrap; min-width: 0; }
@media (max-width: 720px) {
  .app-header { gap: 0.65rem; padding: 0.65rem 0.85rem; }
  .app-header .header-actions { flex: 1; gap: 0.4rem; }
  .app-header .progress-wrap { order: 3; flex-basis: 100%; max-width: none; }
  .language-switch select { max-width: 155px; }
  .premium-badge { white-space: normal; }
}
html.access-pending .layout,
html.access-pending main#app { visibility: hidden; }
