/* ==========================================================================
   BAC ROYAL — PROMO SITE
   Minimal, calm, easy to process. Palette mirrors the Flutter app themes:
   brand indigo #5856D6 / #91A4FF, warm paper light, warm-cream-on-slate dark.
   Theme is synced with the app via data-theme + localStorage.
   ========================================================================== */

:root,
:root[data-theme="light"] {
  --ink: #1d222c;
  --ink-soft: #303846;
  --muted: #596984;
  --border: #d9e0e8;
  --border-strong: #cdd5df;
  --surface: #fdfcf9;
  --paper: #f1f3f6;
  --panel: #e8ecf1;
  --brand: #5856d6;
  --brand-hover: #4745c4;
  --brand-soft: #eceafa;
  --on-brand: #ffffff;
  --green: #3f8b66;
  --green-soft: #e7f3ec;
  --amber: #b9792d;
  --amber-soft: #f9efdd;
  --coral: #c75d49;
  --soft-shadow: 0 10px 30px rgba(29, 34, 44, 0.07);
}

:root[data-theme="dark"] {
  --ink: #f4f1e8;
  --ink-soft: #ddd8c8;
  --muted: #b8b0a0;
  --border: #2d3543;
  --border-strong: #3c4658;
  --surface: #1d222c;
  --paper: #14171e;
  --panel: #262d38;
  --brand: #91a4ff;
  --brand-hover: #a8b7ff;
  --brand-soft: rgba(145, 164, 255, 0.13);
  --on-brand: #101426;
  --green: #79caa2;
  --green-soft: rgba(121, 202, 162, 0.13);
  --amber: #e2b66f;
  --amber-soft: rgba(226, 182, 111, 0.13);
  --coral: #e98a76;
  --soft-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --ink: #f4f1e8;
    --ink-soft: #ddd8c8;
    --muted: #b8b0a0;
    --border: #2d3543;
    --border-strong: #3c4658;
    --surface: #1d222c;
    --paper: #14171e;
    --panel: #262d38;
    --brand: #91a4ff;
    --brand-hover: #a8b7ff;
    --brand-soft: rgba(145, 164, 255, 0.13);
    --on-brand: #101426;
    --green: #79caa2;
    --green-soft: rgba(121, 202, 162, 0.13);
    --amber: #e2b66f;
    --amber-soft: rgba(226, 182, 111, 0.13);
    --coral: #e98a76;
    --soft-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
.topbar-brand strong {
  font-family: "Outfit", "Inter", sans-serif;
}

h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  letter-spacing: -0.015em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.2rem);
  letter-spacing: -0.01em;
  line-height: 1.12;
}

h3 {
  font-size: 1.12rem;
  line-height: 1.25;
}

.promo-main {
  margin: 0 auto;
  max-width: 1140px;
  min-width: 0;
  padding: 20px 32px 64px;
}

.eyebrow {
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.94rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1.2;
  min-height: 46px;
  padding: 0 18px;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease,
    color 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--brand);
  color: var(--on-brand);
}

.button.primary:hover {
  background: var(--brand-hover);
}

.button.secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.button.big {
  font-size: 1rem;
  min-height: 54px;
  padding: 0 26px;
}

/* ---------- Topbar ---------- */

.topbar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-top: 6px;
}

.topbar-nav {
  display: flex;
  gap: 26px;
  margin: 0 auto;
}

.topbar-nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 0.16s ease;
}

.topbar-nav a:hover {
  color: var(--ink);
}

.topbar-brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.brand-mark {
  border: 1px solid var(--border);
  border-radius: 12px;
  height: 44px;
  object-fit: cover;
  width: 44px;
}

.topbar-brand strong {
  color: var(--ink);
  display: block;
  font-size: 1.12rem;
  font-weight: 800;
}

.topbar-brand span {
  color: var(--muted);
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

.theme-toggle-btn {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  height: 46px;
  justify-content: center;
  padding: 0;
  transition: border-color 0.16s ease, color 0.16s ease;
  width: 46px;
}

.theme-toggle-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

:root[data-theme="dark"] .theme-toggle-btn .moon-icon { display: none; }
:root[data-theme="dark"] .theme-toggle-btn .sun-icon { display: block; }
:root[data-theme="light"] .theme-toggle-btn .moon-icon { display: block; }
:root[data-theme="light"] .theme-toggle-btn .sun-icon { display: none; }
:root:not([data-theme]) .theme-toggle-btn .moon-icon { display: block; }
:root:not([data-theme]) .theme-toggle-btn .sun-icon { display: none; }

/* ---------- Hero ---------- */

.hero {
  align-items: center;
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  padding: 40px 0 16px;
}

.hero-copy {
  min-width: 0;
}

.hero-lead {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin: 18px 0 26px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  list-style: none;
  margin-top: 18px;
}

.hero-trust li {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 7px;
}

.hero-trust li::before {
  background: var(--green);
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
  height: 6px;
  width: 6px;
}

/* ---------- Exam map (hero card, mirrors the real math course) ---------- */

.exam-map {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--soft-shadow);
  display: grid;
  gap: 16px;
  padding: 22px;
}

.exam-map-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.exam-map-head strong {
  color: var(--ink);
  display: block;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.04rem;
  font-weight: 800;
}

.exam-map-head span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
}

.exam-map-pill {
  background: var(--brand-soft);
  border-radius: 999px;
  color: var(--brand);
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 11px;
}

.exam-subject {
  display: grid;
  gap: 8px;
}

.exam-subject-head {
  color: var(--muted);
  display: flex;
  font-size: 0.73rem;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.exam-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.slot {
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 600;
  padding: 6px 10px;
}

.slot.done {
  background: var(--green-soft);
  border-color: transparent;
  color: var(--green);
}

.slot.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.exam-map-foot {
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
  padding-top: 14px;
}

.exam-map-foot small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}

.progress-label {
  color: var(--ink-soft);
  display: flex;
  font-size: 0.8rem;
  font-weight: 700;
  gap: 10px;
  justify-content: space-between;
}

#exam-azi {
  transition: opacity 0.28s ease;
}

#exam-azi.fade-out {
  opacity: 0;
}

.progress {
  background: var(--panel);
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.progress span {
  background: var(--brand);
  border-radius: 999px;
  display: block;
  height: 100%;
}

/* ---------- Sections ---------- */

.section {
  padding-top: 96px;
}

.section-heading {
  margin-bottom: 36px;
  max-width: 720px;
}

.section-heading.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-heading h2 {
  margin-bottom: 10px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------- Stat strip (real numbers, no boxes — just air) ---------- */

.stat-strip {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 80px;
  padding: 0;
}

.stat-strip article {
  display: grid;
  gap: 6px;
}

.stat-strip strong {
  color: var(--brand);
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
}

.stat-strip p {
  color: var(--muted);
  font-size: 0.89rem;
  font-weight: 500;
  max-width: 30ch;
}

/* ---------- Steps (how it works) ---------- */

.steps-grid {
  display: grid;
  gap: 36px 32px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.step-card {
  display: grid;
  gap: 12px;
  justify-items: start;
}

.step-tag {
  align-items: center;
  background: var(--brand-soft);
  border-radius: 50%;
  color: var(--brand);
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.step-card p {
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 500;
}

/* ---------- Subjects ---------- */

.subject-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.subject-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  overflow: hidden;
}

.subject-card img {
  height: 100%;
  min-height: 116px;
  object-fit: cover;
  width: 100%;
}

.subject-body {
  display: grid;
  gap: 7px;
  padding: 18px 20px;
}

.subject-body h3 {
  align-items: center;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.subject-tag {
  background: var(--brand-soft);
  border-radius: 999px;
  color: var(--brand);
  font-family: "Inter", sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  text-transform: uppercase;
}

.subject-body p {
  color: var(--muted);
  font-size: 0.89rem;
  font-weight: 500;
}

/* Literature artwork strip */

.lit-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  margin-top: 32px;
}

.lit-strip img {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.2s ease;
  width: 100%;
}

.lit-strip img:hover {
  transform: translateY(-4px);
}

.lit-caption {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
}

/* ---------- Features: calm expandable list ---------- */

.feat-list {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.feat summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 14px;
  list-style: none;
  padding: 16px 18px;
  user-select: none;
}

.feat summary::-webkit-details-marker {
  display: none;
}

.feat-ico {
  align-items: center;
  background: var(--brand-soft);
  border-radius: 12px;
  color: var(--brand);
  display: flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.feat-head {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.feat-head strong {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 700;
}

.feat-head small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.feat-chev {
  flex: 0 0 auto;
  height: 22px;
  margin-left: auto;
  position: relative;
  width: 22px;
}

.feat-chev::before {
  color: var(--muted);
  content: "+";
  font-size: 1.45rem;
  font-weight: 500;
  left: 50%;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease;
}

.feat[open] .feat-chev::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.feat-body {
  display: grid;
  gap: 12px;
  padding: 4px 18px 20px 76px;
}

.feat-body > p {
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 500;
  max-width: 600px;
}

.feat-body .mock {
  max-width: 560px;
}

/* ---------- Honest in-app mockups ---------- */

.mock {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.mock-title {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mock-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 88px minmax(0, 1fr) 50px;
}

.mock-row > span:first-child {
  color: var(--ink-soft);
  font-size: 0.81rem;
  font-weight: 700;
}

.mock-row strong {
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 800;
  text-align: right;
}

.mock-bar {
  background: var(--panel);
  border-radius: 999px;
  display: block;
  height: 7px;
  overflow: hidden;
}

.mock-bar i {
  background: var(--brand);
  border-radius: 999px;
  display: block;
  height: 100%;
}

.mock-bar.gold i {
  background: var(--amber);
}

.mock-total > span:first-child {
  color: var(--muted);
}

.mock-grade {
  background: var(--brand-soft);
  border-radius: 10px;
  color: var(--brand);
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  padding: 9px 12px;
  text-align: center;
}

.bubble {
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.5;
  padding: 11px 13px;
}

.bubble.user {
  background: var(--panel);
  color: var(--ink-soft);
  font-style: italic;
}

.bubble.ai {
  background: var(--brand-soft);
  color: var(--ink-soft);
  display: grid;
  gap: 7px;
}

.bubble.ai b {
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bubble.ai .ok {
  color: var(--green);
  font-weight: 600;
}

.bubble.ai .bad {
  color: var(--coral);
  font-weight: 600;
}

.recap-row {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  display: flex;
  gap: 11px;
  padding: 10px 13px;
}

.recap-dot {
  background: var(--coral);
  border-radius: 50%;
  flex: 0 0 auto;
  height: 8px;
  width: 8px;
}

.recap-dot.warn {
  background: var(--amber);
}

.recap-row strong {
  color: var(--ink);
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
}

.recap-row small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.mock-pet-row {
  align-items: center;
  display: flex;
  gap: 14px;
}

.mock-pet-row img {
  background: var(--panel);
  border-radius: 12px;
  height: 60px;
  object-fit: contain;
  padding: 6px;
  width: 60px;
}

.mock-pet-row strong {
  color: var(--ink);
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
}

.mock-pet-title {
  align-items: center;
  display: flex !important;
  gap: 6px;
}

.mock-pet-row small {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 6px;
}

.reward-inline-icon {
  flex: 0 0 auto;
  height: 22px;
  object-fit: contain;
  width: 22px;
}

.reward-small-icon {
  flex: 0 0 auto;
  height: 18px;
  object-fit: contain;
  width: 18px;
}

.mock-pet-meter {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 84px minmax(0, 1fr);
}

.mock-pet-meter > span:first-child {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

/* ---------- Pricing ---------- */

.conversion-section {
  margin-top: 0;
  padding: 96px 0 0;
}

.pricing-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  margin: 0 auto;
  max-width: 840px;
}

.price-plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  justify-content: space-between;
  padding: 28px;
  position: relative;
}

.price-plan.highlighted {
  border-color: var(--brand);
  box-shadow: var(--soft-shadow);
}

.plan-badge {
  background: var(--brand);
  border-radius: 999px;
  color: var(--on-brand);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 5px 11px;
  position: absolute;
  right: 18px;
  top: -12px;
  text-transform: uppercase;
}

.price-plan strong {
  color: var(--ink);
  display: block;
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.28rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.price-plan p {
  color: var(--muted);
  font-size: 0.91rem;
  font-weight: 500;
}

.plan-price {
  color: var(--ink);
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.95rem;
  font-weight: 800;
  margin: 16px 0;
}

.plan-price.accent {
  color: var(--brand);
}

.price-plan ul {
  color: var(--ink-soft);
  display: grid;
  font-size: 0.91rem;
  font-weight: 600;
  gap: 10px;
  list-style: none;
}

.price-plan li {
  align-items: flex-start;
  display: flex;
  gap: 9px;
}

.price-plan li::before {
  background: var(--green);
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
  height: 7px;
  margin-top: 8px;
  width: 7px;
}

.price-anchor {
  color: var(--muted);
  font-size: 0.89rem;
  font-weight: 600;
  margin-top: 22px;
  text-align: center;
}

/* ---------- Trial timeline (shared landing + checkout) ---------- */

.trial-timeline {
  display: grid;
  margin: 22px 0;
}

.trial-step {
  display: flex;
  gap: 14px;
  text-align: left;
}

.trial-marker {
  align-items: center;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
}

.trial-icon {
  align-items: center;
  background: var(--brand-soft);
  border-radius: 50%;
  color: var(--brand);
  display: flex;
  flex: 0 0 auto;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.trial-icon-filled {
  background: var(--brand);
  color: var(--on-brand);
}

.trial-line {
  background: var(--border-strong);
  flex: 1;
  margin: 4px 0;
  min-height: 18px;
  width: 2px;
}

.trial-text {
  padding-bottom: 20px;
}

.trial-step:last-child .trial-text {
  padding-bottom: 0;
}

.trial-text strong {
  color: var(--ink);
  display: block;
  font-size: 0.98rem;
  font-weight: 800;
  margin-bottom: 4px;
  margin-top: 7px;
}

.trial-text p {
  color: var(--muted);
  font-size: 0.89rem;
  font-weight: 500;
  line-height: 1.45;
}

.trial-timeline.horizontal {
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 36px auto 44px;
  max-width: 880px;
}

.trial-timeline.horizontal .trial-step {
  flex-direction: column;
  gap: 12px;
}

.trial-timeline.horizontal .trial-marker {
  align-items: center;
  flex-direction: row;
  gap: 10px;
  width: 100%;
}

.trial-timeline.horizontal .trial-line {
  flex: 1;
  height: 2px;
  margin: 0;
  min-height: 0;
  width: auto;
}

.trial-timeline.horizontal .trial-text {
  padding-bottom: 0;
}

.trial-timeline.horizontal .trial-text strong {
  margin-top: 0;
}

/* ---------- FAQ ---------- */

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 860px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.faq-item summary {
  color: var(--ink);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 700;
  list-style: none;
  padding: 17px 46px 17px 20px;
  position: relative;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  color: var(--muted);
  content: "+";
  font-size: 1.4rem;
  font-weight: 500;
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-52%);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: translateY(-52%) rotate(45deg);
}

.faq-item p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  padding: 0 20px 18px;
}

/* ---------- Final CTA ---------- */

.final-cta {
  align-items: center;
  background: var(--brand-soft);
  border-radius: 20px;
  display: grid;
  gap: 16px;
  justify-items: center;
  margin-top: 96px;
  padding: 56px 24px;
  text-align: center;
}

.final-cta h2 {
  max-width: 660px;
}

.final-cta small {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

/* ---------- Footer ---------- */

.site-footer {
  align-items: center;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-top: 72px;
  padding: 26px 0 10px;
}

.site-footer p {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--brand);
}

/* ---------- Sticky mobile CTA ---------- */

.mobile-cta-bar {
  align-items: center;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-top: 1px solid var(--border);
  bottom: 0;
  display: none;
  gap: 12px;
  justify-content: space-between;
  left: 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  position: fixed;
  right: 0;
  z-index: 9000;
}

.mobile-cta-text strong {
  color: var(--ink);
  display: block;
  font-size: 0.94rem;
  font-weight: 800;
}

.mobile-cta-text span {
  color: var(--muted);
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
}

.mobile-cta-bar .button {
  flex: 0 0 auto;
  min-width: 110px;
}

/* ---------- Scroll reveal (subtle, respects reduced motion) ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   ONBOARDING MODAL & WIZARD
   ========================================================================== */

.modal-overlay {
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgba(13, 16, 23, 0.55);
  display: flex;
  height: 100vh;
  justify-content: center;
  left: 0;
  overflow-y: auto;
  padding: 16px;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 10000;
}

.modal-card {
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  margin: auto;
  max-width: min(640px, calc(100vw - 32px));
  min-height: 400px;
  overflow: hidden;
  padding: 36px 28px;
  position: relative;
  width: 100%;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.close-modal-button {
  align-items: center;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 2rem;
  font-weight: 300;
  height: 32px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 18px;
  top: 16px;
  transition: background-color 0.18s, color 0.18s;
  width: 32px;
  z-index: 2;
}

.close-modal-button:hover {
  background-color: var(--paper);
  color: var(--ink);
}

.wizard-progress {
  background: var(--panel);
  border-radius: 999px;
  height: 5px;
  margin: -8px 36px 22px 0;
  overflow: hidden;
}

.wizard-progress span {
  background: var(--brand);
  border-radius: 999px;
  display: block;
  height: 100%;
  transition: width 0.3s ease;
  width: 14%;
}

.modal-card.checkout-mode .wizard-progress {
  display: none;
}

.wizard-steps-container {
  height: 100%;
  position: relative;
  width: 100%;
}

.wizard-step {
  display: none;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
}

.wizard-step.active {
  display: flex;
}

.wizard-step h2 {
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 8px;
}

.wizard-step p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 20px;
}

.onboarding-input {
  background: var(--paper);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  padding: 14px 16px;
  transition: border-color 0.2s, background-color 0.2s;
  width: 100%;
}

.onboarding-input:focus {
  background: var(--surface);
  border-color: var(--brand);
}

.wizard-choice-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin: 16px 0;
  width: 100%;
}

.choice-card {
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  gap: 6px;
  justify-content: center;
  padding: 16px 12px;
  position: relative;
  text-align: center;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}

.choice-card:hover {
  background-color: var(--paper);
  border-color: var(--brand);
}

.choice-card.selected {
  background-color: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.choice-icon {
  height: 48px;
  margin-bottom: 2px;
  object-fit: contain;
  width: 48px;
}

.choice-pet {
  height: 52px;
  margin-bottom: 2px;
  object-fit: contain;
  width: 52px;
}

.choice-card strong {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.choice-card.selected strong {
  color: var(--brand);
}

.choice-card small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
}

/* ---------- Grade slider (step 4) ---------- */

.grade-picker {
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 8px auto 0;
  max-width: 420px;
  width: 100%;
}

.grade-display {
  color: var(--brand);
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
}

.grade-label {
  background: var(--brand-soft);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 14px;
}

#grade-slider {
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, var(--brand) var(--fill, 75%), var(--panel) var(--fill, 75%));
  border-radius: 999px;
  cursor: pointer;
  height: 10px;
  margin-top: 10px;
  outline: none;
  width: 100%;
}

#grade-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  background: var(--surface);
  border: 3px solid var(--brand);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: grab;
  height: 28px;
  width: 28px;
}

#grade-slider::-moz-range-thumb {
  background: var(--surface);
  border: 3px solid var(--brand);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  cursor: grab;
  height: 28px;
  width: 28px;
}

#grade-slider:active::-webkit-slider-thumb {
  cursor: grabbing;
}

.grade-scale {
  color: var(--muted);
  display: flex;
  font-size: 0.76rem;
  font-weight: 700;
  justify-content: space-between;
  width: 100%;
}

/* ---------- Checkout (step 7) ---------- */

.modal-card.checkout-mode {
  border-radius: 18px;
  max-width: min(940px, calc(100vw - 32px));
  padding: 0;
}

.modal-card.checkout-mode .close-modal-button {
  background: var(--surface);
  border: 1px solid var(--border);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  min-height: 540px;
}

.checkout-banner {
  overflow: hidden;
  position: relative;
}

.checkout-banner img {
  height: 100%;
  left: 0;
  object-fit: cover;
  position: absolute;
  top: 0;
  width: 100%;
}

.checkout-banner-pill {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 999px;
  bottom: 16px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  left: 16px;
  padding: 7px 14px;
  position: absolute;
  right: 16px;
  text-align: center;
}

.checkout-content {
  display: flex;
  flex-direction: column;
  padding: 38px 36px 30px;
}

.checkout-badge {
  align-self: flex-start;
  background: var(--brand-soft);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  padding: 5px 13px;
  text-transform: uppercase;
}

.checkout-content h2 {
  font-size: 1.65rem;
  margin-bottom: 8px;
}

.checkout-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.checkout-content .trial-timeline {
  margin: 20px 0 18px;
}

.trial-price-row {
  align-items: baseline;
  background: var(--brand-soft);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 18px;
  padding: 12px 16px;
}

.trial-price-row strong {
  color: var(--ink);
  font-family: "Outfit", "Inter", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.trial-price-row span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 600;
}

.checkout-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.checkout-buy-btn {
  font-size: 1rem;
  min-height: 52px;
  padding: 14px 20px;
}

.checkout-microcopy {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 !important;
  text-align: center;
}

.checkout-free-link {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  text-decoration: underline;
}

.checkout-free-link:hover {
  color: var(--ink);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1080px) {
  .hero {
    gap: 26px;
    grid-template-columns: 1fr;
    padding-top: 8px;
  }

  .exam-map {
    max-width: 560px;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lit-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .subject-grid,
  .pricing-grid,
  .trial-timeline.horizontal {
    grid-template-columns: 1fr;
  }

  .feat-body {
    padding-left: 18px;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .checkout-banner {
    height: 170px;
  }

  .checkout-content {
    padding: 22px 20px 24px;
  }

  .checkout-content h2 {
    font-size: 1.4rem;
  }

  .checkout-content .trial-timeline {
    margin: 14px 0;
  }

  .checkout-content .trial-text {
    padding-bottom: 14px;
  }

  .checkout-content .trial-text p {
    font-size: 0.85rem;
  }

  .trial-price-row {
    margin-bottom: 14px;
    padding: 10px 14px;
  }
}

@media (max-width: 760px) {
  .promo-main {
    padding: 14px 16px 100px;
  }

  .section {
    padding-top: 48px;
  }

  .topbar {
    align-items: center;
  }

  /* Hero CTA + sticky bar already cover mobile; keep only the theme toggle */
  .topbar-actions .button {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .stat-strip {
    gap: 18px;
    grid-template-columns: 1fr;
    margin-top: 44px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .subject-card {
    grid-template-columns: 1fr;
  }

  .subject-card img {
    aspect-ratio: 16 / 7;
    min-height: 0;
  }

  .conversion-section {
    padding: 28px 16px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-cta-bar {
    display: flex;
  }

  .modal-card {
    padding: 30px 20px;
  }

  .modal-card.checkout-mode {
    padding: 0;
  }

  /* Checkout pe telefon: fără bannerul decorativ (împingea butonul de plată
     sub fold), buton de plată lipit de marginea vizibilă a ecranului și
     safe-area pentru bara de navigare Android (3 butoane / gesturi). */
  .modal-overlay {
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  /* overflow: visible e necesar ca position: sticky să se poată prinde de
     scrollport-ul overlay-ului (orice strămoș cu overflow: hidden ar rupe
     ancorarea). Bannerul — singurul care avea nevoie de clipping — e ascuns. */
  .modal-card.checkout-mode {
    overflow: visible;
  }

  .checkout-banner {
    display: none;
  }

  .checkout-content {
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .checkout-content .trial-timeline {
    margin: 10px 0;
  }

  .checkout-content .trial-text {
    padding-bottom: 10px;
  }

  .trial-price-row {
    margin-bottom: 10px;
  }

  .checkout-actions {
    background: var(--surface);
    border-radius: 0 0 14px 14px;
    bottom: 0;
    margin-top: 12px;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    position: sticky;
    z-index: 1;
  }
}

@media (max-width: 460px) {
  .lit-strip {
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lit-strip img {
    border-radius: 9px;
  }

  .exam-map {
    padding: 16px;
  }

  .wizard-choice-grid {
    grid-template-columns: 1fr;
  }

  .grade-display {
    font-size: 2.9rem;
  }
}

/* Checkout pe mobil: CTA vizibil mai sus + spațiu pentru bara de navigare
   Android (safe-area). Banner mai scund, timeline mai compact. */
@media (max-width: 860px) {
  .checkout-banner {
    height: 128px;
  }

  .checkout-content {
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom, 12px));
  }

  .checkout-badge {
    margin-bottom: 8px;
  }

  .checkout-content h2 {
    font-size: 1.3rem;
    margin-bottom: 6px;
  }

  .checkout-subtitle {
    font-size: 0.86rem;
  }

  .checkout-content .trial-timeline {
    margin: 10px 0;
  }

  .checkout-content .trial-text {
    padding-bottom: 10px;
  }

  .checkout-content .trial-icon {
    height: 32px;
    width: 32px;
  }

  .checkout-content .trial-text strong {
    font-size: 0.92rem;
    margin-top: 4px;
  }

  .trial-price-row {
    margin-bottom: 10px;
  }

  .checkout-buy-btn {
    min-height: 50px;
  }
}

/* ---------- v6: polish pe elementele de conversie (countdown, preț, tease) ---------- */

/* Countdown-ul din hero și din CTA-ul final: pastilă "live", nu text simplu. */
.bac-countdown-wrap {
  align-items: center;
  background: var(--amber-soft);
  border: 1.5px solid var(--amber);
  border-radius: 999px;
  color: var(--amber);
  display: inline-flex;
  font-weight: 800;
  gap: 7px;
  letter-spacing: 0.01em;
  padding: 3px 12px 3px 9px;
  text-transform: none;
  vertical-align: middle;
}

.bac-countdown-wrap::before {
  animation: bac-pulse 1.6s ease-in-out infinite;
  background: var(--amber);
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
  height: 7px;
  width: 7px;
}

.bac-countdown {
  font-size: 1.06em;
  font-variant-numeric: tabular-nums;
}

@keyframes bac-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.78); }
}

@media (prefers-reduced-motion: reduce) {
  .bac-countdown-wrap::before { animation: none; }
}

/* Ancora cu meditațiile: comparație care se vede, nu o notă timidă. */
.price-anchor {
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 800;
  margin: 22px auto 0;
  max-width: 560px;
  text-align: center;
}

/* A doua linie (clasa a XI-a) rămâne notă discretă. */
.price-anchor + .price-anchor {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  margin-top: 8px;
}

/* Planul recomandat primește un glow de brand, să tragă ochiul. */
.price-plan.highlighted {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand), 0 18px 44px var(--brand-soft);
}

/* Teaser-ul de secret features: șoaptă, nu lozincă. */
.mystery-tease {
  color: var(--brand);
  font-style: italic;
  letter-spacing: 0.01em;
  margin-top: 18px;
  opacity: 0.85;
  text-align: center;
}

/* ==========================================================================
   v7 — REBUILD: planul pe azi, opere interactive, meme deck, OCR, cohortă
   ========================================================================== */

/* ---------- Hero: Planul tău pe azi ---------- */

.plan-tasks {
  display: grid;
  gap: 8px;
}

.plan-task {
  align-items: center;
  background: var(--paper);
  border-radius: 11px;
  display: flex;
  gap: 11px;
  padding: 9px 12px;
}

.plan-task.active {
  background: var(--brand-soft);
}

.plan-check {
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  flex: 0 0 auto;
  height: 18px;
  width: 18px;
}

.plan-check.recap {
  border-color: var(--amber);
}

.plan-check.sim {
  border-color: var(--brand);
}

.plan-task-text {
  flex: 1;
  min-width: 0;
  transition: opacity 0.28s ease;
}

.plan-task-text.fade-out {
  opacity: 0;
}

.plan-task-text strong {
  color: var(--ink);
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
}

.plan-task-text small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.plan-min {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 800;
}

.plan-grade-now {
  color: var(--brand);
  font-weight: 800;
}

.plan-grade-now i {
  color: var(--muted);
  font-size: 0.85em;
  font-style: normal;
  font-weight: 600;
}

.plan-progress {
  overflow: visible;
  position: relative;
}

.plan-progress > span {
  border-radius: 999px;
}

.target-tick {
  background: var(--amber);
  border-radius: 2px;
  display: block;
  height: 13px;
  position: absolute;
  top: -3px;
  width: 3px;
}

/* ---------- Pași: micro-vizualuri ---------- */

.step-mini {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 30px;
}

.mini-chip {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 9px;
}

.mini-chip.active {
  background: var(--brand-soft);
  border-color: transparent;
  color: var(--brand);
}

.mini-slot {
  background: var(--panel);
  border-radius: 4px;
  display: block;
  height: 12px;
  width: 18px;
}

.mini-slot.done {
  background: var(--green-soft);
  outline: 1.5px solid var(--green);
  outline-offset: -1.5px;
}

.mini-slot.active {
  background: var(--brand-soft);
  outline: 1.5px solid var(--brand);
  outline-offset: -1.5px;
}

.mini-slot.wide {
  width: 30px;
}

.mini-gap {
  width: 6px;
}

.mini-state {
  align-items: center;
  border-radius: 50%;
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.mini-state.bad {
  background: color-mix(in srgb, var(--coral) 16%, transparent);
  color: var(--coral);
}

.mini-state.recap {
  background: var(--amber-soft);
  color: var(--amber);
}

.mini-state.ok {
  background: var(--green-soft);
  color: var(--green);
}

.mini-arrow {
  color: var(--muted);
  font-weight: 800;
}

/* ---------- Banda pixel-art (arcul zi→noapte) ---------- */

.pixel-band {
  background-position: center 64%;
  background-size: cover;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--soft-shadow);
  height: 210px;
  margin-top: 96px;
}

/* ---------- Materii: iconițe din aplicație + "Vezi exact ce primești" ---------- */

.subject-ico {
  align-items: center;
  background: var(--paper);
  display: flex;
  justify-content: center;
  padding: 14px;
}

.subject-card .subject-ico img {
  height: 84px;
  min-height: 0;
  object-fit: contain;
  width: 84px;
}

.subject-more {
  margin-top: 2px;
}

.subject-more summary {
  color: var(--brand);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 800;
  list-style: none;
  user-select: none;
}

.subject-more summary::-webkit-details-marker {
  display: none;
}

.subject-more summary::after {
  content: "▸";
  display: inline-block;
  margin-left: 6px;
  transition: transform 0.2s ease;
}

.subject-more[open] summary::after {
  transform: rotate(90deg);
}

.subject-more ul {
  display: grid;
  gap: 7px;
  list-style: none;
  margin-top: 10px;
  padding: 0;
}

.subject-more li {
  align-items: flex-start;
  color: var(--ink-soft);
  display: flex;
  font-size: 0.85rem;
  font-weight: 500;
  gap: 8px;
}

.subject-more li::before {
  background: var(--green);
  border-radius: 50%;
  content: "";
  flex: 0 0 auto;
  height: 6px;
  margin-top: 7px;
  width: 6px;
}

/* ---------- Opere: badge-uri interactive ---------- */

.lit-strip {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.lit-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  display: block;
  padding: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.lit-badge:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
}

.lit-strip .lit-badge img {
  aspect-ratio: 1 / 1;
  border-radius: 0;
  object-fit: contain;
  width: 100%;
}

.lit-strip .lit-badge img:hover {
  transform: none;
}

/* Popover-ul de operă */

.opera-overlay {
  align-items: center;
  backdrop-filter: blur(8px);
  background: rgba(13, 16, 23, 0.55);
  display: flex;
  height: 100vh;
  justify-content: center;
  left: 0;
  overflow-y: auto;
  padding: 16px;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 10000;
}

.opera-pop {
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 4px;
  justify-items: center;
  margin: auto;
  max-width: 380px;
  padding: 26px 22px 22px;
  position: relative;
  text-align: center;
  width: 100%;
}

.opera-pop > img {
  height: 116px;
  object-fit: contain;
  width: 116px;
}

.opera-pop-body {
  display: grid;
  gap: 7px;
  justify-items: center;
}

.opera-chip {
  background: var(--brand-soft);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 11px;
  text-transform: uppercase;
}

.opera-pop h3 {
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.2;
}

.opera-author {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.opera-hook {
  color: var(--ink-soft);
  font-size: 0.94rem;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 4px;
  max-width: 30ch;
}

.opera-foot {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin-top: 10px;
  width: 100%;
}

.opera-barem {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 12px;
}

/* ---------- Sistem: viața unei greșeli + trend simulări + OCR ---------- */

.life-row {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  display: flex;
  gap: 12px;
  padding: 10px 13px;
}

.life-day {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: 66px;
}

.life-dot {
  align-items: center;
  border-radius: 50%;
  display: flex;
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 900;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.life-dot.bad {
  background: color-mix(in srgb, var(--coral) 16%, transparent);
  color: var(--coral);
}

.life-dot.recap {
  background: var(--amber-soft);
  color: var(--amber);
}

.life-dot.ok {
  background: var(--green-soft);
  color: var(--green);
}

.life-row strong {
  color: var(--ink);
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
}

.life-row small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}

.sim-trend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.sim-pt {
  background: var(--panel);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 10px;
}

.sim-pt.now {
  background: var(--green-soft);
  color: var(--green);
}

.sim-target {
  border: 1.5px dashed var(--brand);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  margin-left: auto;
  padding: 4px 10px;
}

.ocr-flow {
  align-items: center;
  display: flex;
  gap: 16px;
}

.ocr-phone {
  align-content: start;
  background: var(--surface);
  border: 2px solid var(--border-strong);
  border-radius: 14px;
  display: grid;
  flex: 0 0 auto;
  gap: 8px;
  height: 132px;
  padding: 13px 11px;
  position: relative;
  width: 94px;
}

.ocr-line {
  background: var(--panel);
  border-radius: 4px;
  display: block;
  height: 6px;
}

.ocr-line.w60 { width: 60%; }
.ocr-line.w80 { width: 80%; }
.ocr-line.w90 { width: 90%; }
.ocr-line.w95 { width: 95%; }

.ocr-snap {
  background: var(--surface);
  border: 2.5px solid var(--brand);
  border-radius: 50%;
  bottom: 8px;
  height: 16px;
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  width: 16px;
}

.ocr-arrow {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 1.2rem;
  font-weight: 800;
}

.ocr-cards {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ocr-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 12px;
}

.ocr-card b {
  color: var(--green);
}

.ocr-card.faded {
  opacity: 0.55;
}

/* ---------- Meme deck (evantai) ---------- */

.meme-deck-wrap {
  margin: 0 auto;
  max-width: 720px;
}

.meme-deck {
  cursor: grab;
  height: 440px;
  position: relative;
  touch-action: pan-y;
}

.meme-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  bottom: 26px;
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  height: 330px;
  left: 50%;
  margin: 0;
  overflow: hidden;
  position: absolute;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, box-shadow 0.3s ease;
  user-select: none;
  width: 250px;
  will-change: transform;
}

.meme-card img {
  background: #faf6ec;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  width: 100%;
}

.meme-card.front {
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
  cursor: default;
}

.deck-nav {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
}

.deck-btn {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.05rem;
  height: 42px;
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
  width: 42px;
}

.deck-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

.deck-count {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.deck-count strong {
  color: var(--brand);
}

/* ---------- Preț: un singur plan + rândul "la anul" ---------- */

.pricing-solo {
  display: grid;
  justify-items: center;
}

.pricing-solo .price-plan {
  max-width: 470px;
  width: 100%;
}

.next-year-row {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 14px;
  max-width: 470px;
  padding: 16px 20px;
  width: 100%;
}

.next-year-row strong {
  color: var(--ink);
  display: block;
  font-size: 0.96rem;
  font-weight: 800;
  margin-bottom: 3px;
}

.next-year-row p {
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.45;
}

.next-year-row .button {
  flex: 0 0 auto;
}

/* ---------- CTA final: scena de noapte (arcul se închide) ---------- */

.final-cta.night {
  background:
    linear-gradient(rgba(13, 16, 23, 0.5), rgba(13, 16, 23, 0.78)),
    url("./assets/web/env_night.jpg") center / cover no-repeat;
  border: 1px solid var(--border);
}

.final-cta.night h2 {
  color: #f4f1e8;
}

.final-cta.night small {
  color: rgba(244, 241, 232, 0.78);
}

.final-cta.night .eyebrow {
  color: #c9d2ff;
}

/* ---------- Checkout: cohortă, plan personalizat, free discret ---------- */

.checkout-planline {
  background: var(--brand-soft);
  border-radius: 10px;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  margin-top: 10px;
  padding: 9px 12px;
}

.checkout-planline strong {
  color: var(--brand);
}

.checkout-planline:empty {
  display: none;
}

.offer-toggle {
  background: var(--panel);
  border-radius: 999px;
  display: flex;
  gap: 4px;
  margin: 12px 0 2px;
  padding: 4px;
  width: fit-content;
}

.offer-pill {
  background: transparent;
  border: none;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 14px;
  transition: background 0.16s ease, color 0.16s ease;
}

.offer-pill.active {
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  color: var(--ink);
}

.offer-panel .trial-timeline {
  margin: 16px 0 14px;
}

/* Linkul de free: există, dar șoptit — conversia merge spre plată. */
.checkout-free-link {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  margin-top: 12px;
  opacity: 0.55;
  text-decoration: none;
}

.checkout-free-link:hover {
  color: var(--muted);
  opacity: 0.85;
  text-decoration: underline;
}

/* ---------- Responsive pentru componentele v7 ---------- */

@media (max-width: 1080px) {
  .plan-card {
    max-width: 560px;
  }

  .lit-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pixel-band {
    border-radius: 14px;
    height: 130px;
    margin-top: 48px;
  }

  .subject-ico {
    padding: 16px 0 0;
  }

  .subject-card .subject-ico img {
    aspect-ratio: auto;
    height: 64px;
    width: 64px;
  }

  .ocr-flow {
    flex-wrap: wrap;
  }

  .meme-deck {
    height: 380px;
  }

  .meme-card {
    height: 274px;
    width: 208px;
  }

  .next-year-row {
    align-items: stretch;
    flex-direction: column;
  }

  .next-year-row .button {
    width: 100%;
  }

  .offer-toggle {
    width: 100%;
  }

  .offer-pill {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 460px) {
  .lit-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lit-badge {
    border-radius: 9px;
    padding: 7px;
  }

  .meme-deck {
    height: 350px;
  }

  .meme-card {
    height: 250px;
    width: 188px;
  }

  .cohort-grid {
    grid-template-columns: 1fr;
  }
}
