.hero {
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border: 1px solid rgba(51,153,204,0.25);
  box-shadow: var(--shadow-lg);
}
.hero::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(206,17,38,0.22) 0%, transparent 65%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -50px; left: -50px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(247,170,20,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner    { flex: 1; position: relative; z-index: 1; }
.hero-eyebrow  { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--orange); font-weight: 700; margin-bottom: 0.75rem; }
.hero-title    { font-family: var(--font-head); font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--white); line-height: 1.1; margin-bottom: 1rem; letter-spacing: -0.02em; }
.hero-kicker   { color: rgba(255,255,255,0.88); font-family: var(--font-head); font-size: clamp(1.15rem, 2.5vw, 1.45rem); letter-spacing: -0.01em; margin-bottom: 0.6rem; }
.hero-subtitle { color: rgba(255,255,255,0.6); font-size: 1rem; max-width: 480px; margin-bottom: 2rem; line-height: 1.75; }
.hero-deco     { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; opacity: 0.12; font-family: var(--font-head); font-style: italic; font-size: 2rem; color: var(--cyan); white-space: nowrap; user-select: none; }
.hero--compact { padding: 1.4rem 2rem; margin-bottom: 1.5rem; }
.hero--compact .hero-title { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: 0; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; justify-content: center; }
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
}
.hero-actions .btn-outline { border-color: rgba(255,255,255,0.7); color: var(--white); }
.hero-actions .btn-outline:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(102,204,255,0.08); }
.hero-complete-badge {
  display: inline-block;
  background: rgba(247,170,20,0.15);
  color: var(--orange);
  border: 1.5px solid rgba(247,170,20,0.4);
  border-radius: var(--radius);
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  font-size: 1rem;
}
@media (max-width: 600px) {
  .hero { flex-direction: column; padding: 2rem 1.25rem; gap: 1rem; }
  .hero-deco { flex-direction: row; opacity: 0.08; font-size: 1.1rem; }
  .hero--compact { padding: 1rem 1.25rem; }
}
/* Unit cards — used on home (logged-in) and /learn */
.units-grid { display: flex; flex-direction: column; gap: 0.85rem; }
.unit-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--navy);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.unit-card:hover { border-left-color: var(--red); border-color: var(--border-dark); box-shadow: var(--shadow-lg); transform: translateX(3px); }
.unit-card--locked { opacity: 0.45; pointer-events: none; }
.unit-card__icon  { font-size: 2rem; flex-shrink: 0; }
.unit-card__body  { flex: 1; }
.unit-card__title { font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 0.2rem; color: var(--navy-dark); }
.unit-card__desc  { color: var(--muted); font-size: 0.875rem; }
.unit-card__meta  { display: inline-block; margin-top: 0.4rem; font-size: 0.72rem; color: var(--blue); font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.unit-card__arrow { font-size: 1.1rem; color: var(--border-dark); flex-shrink: 0; transition: color 0.2s; }
.unit-card:hover .unit-card__arrow { color: var(--orange); }
.unit-card--completed { border-left-color: #1a7a3a; }
.unit-card--completed .unit-card__arrow { color: #1a7a3a; font-weight: 700; }
.unit-card--more-locked { cursor: default; pointer-events: none; border-style: dashed; border-color: var(--border-dark); border-left-color: var(--border-dark); background: var(--light); opacity: 0.75; }
.unit-card--more-locked .unit-card__title { color: var(--muted); }
/* Flag images */
.btn-flag      { width: 1.2rem; height: auto; border-radius: 2px; vertical-align: middle; margin-right: 0.1rem; }
.feature-flag  { width: 2.5rem; height: auto; border-radius: 3px; }
.content-section--center { text-align: center; }
/* "Up next" strip */
.learn-next {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.learn-next__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  flex-shrink: 0;
}
.learn-next__title {
  flex: 1;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--white);
  min-width: 120px;
}
.learn-next .btn { flex-shrink: 0; }
/* Overall progress */
.overall-progress {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.overall-progress__header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.6rem; }
.overall-progress__label  { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--navy); }
.overall-progress__fraction { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.overall-progress__track {
  height: 10px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.overall-progress__fill {
  height: 100%;
  background: linear-gradient(to right, var(--navy), var(--blue));
  border-radius: 99px;
  transition: width 0.6s ease;
  min-width: 0;
}
.overall-progress__stats { display: flex; border-top: 1px solid var(--border); padding-top: 1rem; }
.progress-stat { flex: 1; text-align: center; border-right: 1px solid var(--border); }
.progress-stat:last-child { border-right: none; }
.progress-stat__value { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--navy-dark); line-height: 1; margin-bottom: 0.25rem; }
.progress-stat__label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
@media (max-width: 600px) {
  .overall-progress__stats { flex-direction: column; }
  .progress-stat { border-right: none; border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
  .progress-stat:last-child { border-bottom: none; }
}
/* Logged-in action buttons */
.home-actions { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
/* How it works */
.how-it-works { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.how-it-works__summary { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; cursor: pointer; list-style: none; user-select: none; gap: 0.75rem; }
.how-it-works__summary::-webkit-details-marker { display: none; }
.how-it-works__summary:hover { background: var(--light); border-radius: var(--radius-lg); }
.how-it-works__title { font-family: var(--font-head); font-size: 1.1rem; color: var(--navy-dark); margin: 0; }
.how-it-works__chevron { color: var(--muted); font-size: 0.85rem; transition: transform 0.2s ease; flex-shrink: 0; }
details[open] .how-it-works__chevron { transform: rotate(90deg); }
.how-it-works__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; border-top: 1px solid var(--border); padding: 1.25rem 1.5rem 1.5rem; }
.hiw-step { display: flex; gap: 0.85rem; align-items: flex-start; }
.hiw-step__num { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--navy-dark); color: var(--orange); font-size: 0.8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 0.1rem; }
.hiw-step__title { font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 0.25rem; color: var(--navy-dark); }
.hiw-step__desc  { font-size: 0.82rem; color: var(--muted); line-height: 1.55; }
/* Feature cards (landing) */
.features-section { margin-bottom: 3rem; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.feature-card { background: var(--white); border: 1.5px solid var(--border); border-top: 3px solid var(--orange); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s; }
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-card__header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
.feature-card__icon  { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.feature-card__icon img.feature-flag { height: 1.6rem; width: auto; display: block; }
.feature-card__title { font-family: var(--font-head); font-size: 1.05rem; margin: 0; color: var(--navy-dark); }
.feature-card__desc  { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
/* Unit preview grid (landing) */
.units-grid--preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.unit-card--preview { cursor: default; pointer-events: none; padding: 0.75rem 1rem; gap: 0.6rem; border-left-width: 1.5px; }
.unit-card--preview .unit-card__icon  { font-size: 1.2rem; }
.unit-card--preview .unit-card__title { font-size: 0.85rem; font-family: var(--font-body); font-weight: 600; margin: 0; }
/* Landing photos */
.landing-photo { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); margin-bottom: 1.5rem; }
/* Landing photo row */
.landing-photo-row { display: flex; gap: 0.75rem; margin-bottom: 2.5rem; }
.landing-photo--row { flex: 1 1 0; min-width: 0; height: 220px; object-fit: cover; border-radius: var(--radius-lg); display: block; }
/* Testimonials (landing) */
.testimonials-section { margin-bottom: 3rem; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.testimonial-card { background: var(--white); border: 1.5px solid var(--border); border-left: 4px solid var(--orange); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.testimonial-card__quote { font-size: 0.95rem; color: var(--text, #3a5a7a); line-height: 1.65; margin: 0; font-style: italic; }
.testimonial-card__author { font-size: 0.82rem; font-weight: 700; color: var(--navy-dark); margin: 0; }
/* FAQ section */
.faq-section { margin-top: 3rem; }
.faq-list { margin-top: 1.5rem; list-style: none; padding: 0; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item__q { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--navy-dark); margin: 0 0 0.5rem; }
.faq-item__a { font-size: 0.95rem; color: var(--text); line-height: 1.7; margin: 0; }
/* CTA banner (landing) */
.cta-banner { background: var(--navy-dark); border-radius: var(--radius-lg); margin-top: 3rem; overflow: hidden; position: relative; border: 1px solid rgba(51,153,204,0.2); box-shadow: var(--shadow-lg); }
.cta-banner::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(206,17,38,0.15) 0%, transparent 50%, rgba(0,163,224,0.12) 100%); pointer-events: none; }
.cta-banner__inner { position: relative; z-index: 1; padding: 3rem 2.5rem; text-align: center; }
.cta-banner__title { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--white); margin-bottom: 0.75rem; letter-spacing: -0.02em; }
.cta-banner__sub   { color: rgba(255,255,255,0.6); font-size: 1rem; margin-bottom: 2rem; max-width: 480px; margin-left: auto; margin-right: auto; }
@media (max-width: 1100px) {
  .how-it-works__steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .units-grid--preview { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .units-grid--preview { grid-template-columns: repeat(2, 1fr); }
  .unit-card--preview .unit-card__title { word-break: break-word; hyphens: auto; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-banner__inner { padding: 2rem 1.25rem; }
}
@media (max-width: 500px) {
  .units-grid--preview { grid-template-columns: 1fr; }
  .how-it-works__steps { grid-template-columns: 1fr; }
}
/* ── Logged-in dashboard (home page) ─────────────────────────────────────── */
.content-section--center { text-align: center; }
.learn-next {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.learn-next__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cyan);
  flex-shrink: 0;
}
.learn-next__title {
  flex: 1;
  font-family: var(--font-head);
  font-size: 1rem;
  color: var(--white);
  min-width: 120px;
}
.learn-next .btn { flex-shrink: 0; }
.overall-progress {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-top: 3px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.overall-progress__header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.6rem; }
.overall-progress__label  { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--navy); }
.overall-progress__fraction { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.overall-progress__track {
  height: 10px;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.overall-progress__fill {
  height: 100%;
  background: linear-gradient(to right, var(--navy), var(--blue));
  border-radius: 99px;
  transition: width 0.6s ease;
  min-width: 0;
}
.overall-progress__stats { display: flex; border-top: 1px solid var(--border); padding-top: 1rem; }
.progress-stat { flex: 1; text-align: center; border-right: 1px solid var(--border); }
.progress-stat:last-child { border-right: none; }
.progress-stat__value { display: block; font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--navy-dark); line-height: 1; margin-bottom: 0.25rem; }
.progress-stat__label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
@media (max-width: 600px) {
  .overall-progress__stats { flex-direction: column; }
  .progress-stat { border-right: none; border-bottom: 1px solid var(--border); padding: 0.75rem 0; }
  .progress-stat:last-child { border-bottom: none; }
}
/* ── Mobile-collapsible sections ─────────────────────────────────────────── */
@media (min-width: 800px) {
  .mob-collapsible > summary { pointer-events: none; cursor: default; }
  .mob-collapsible__chevron { display: none; }
}
@media (max-width: 799px) {
  .mob-collapsible > summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }
  .mob-collapsible > summary::-webkit-details-marker { display: none; }
  .mob-collapsible > summary .section-title { margin-bottom: 0; border-bottom: none; padding-bottom: 0; }
  .mob-collapsible > summary .section-title::after { display: none; }
  .mob-collapsible__chevron { font-size: 1rem; color: var(--muted); flex-shrink: 0; transition: transform 0.2s; }
  .mob-collapsible[open] > summary .mob-collapsible__chevron { transform: rotate(90deg); }
}
/* ── Tiers section ───────────────────────────────────────────────────────── */
.btn-block { display: block; width: 100%; text-align: center; }
.tiers-section { margin: 3rem 0; }
.tiers-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
@media (max-width: 640px) { .tiers-grid { grid-template-columns: 1fr; } }
.tier-card {
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}
@media (max-width: 600px) { .tier-card { padding: 1.25rem; } }
.tier-card .btn { font-size: clamp(0.62rem, 2vw, 0.8rem); }
.tier-card--featured {
  border-color: var(--orange);
  background: var(--navy-dark);
  color: var(--white);
}
.tier-card__header { display: flex; flex-direction: column; gap: 0.25rem; }
.tier-card__name {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.tier-card--featured .tier-card__name { color: var(--orange); }
.tier-card__price {
  font-family: var(--font-head);
  font-size: clamp(1.2rem, 3.5vw, 1.75rem);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1;
}
.tier-card--featured .tier-card__price { color: var(--white); }
.tier-card__desc {
  font-size: clamp(0.78rem, 2vw, 0.875rem);
  color: var(--muted);
  margin-top: 0.25rem;
  line-height: 1.5;
}
.tier-card--featured .tier-card__desc { color: rgba(255,255,255,0.65); }
.tier-card__features { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.tier-feat {
  font-size: 0.9rem;
  padding-left: 1.6em;
  position: relative;
  line-height: 1.4;
}
.tier-feat::before { position: absolute; left: 0; font-weight: 700; }
.tier-feat--yes::before { content: '✓'; color: #22a06b; }
.tier-feat--no  { color: var(--muted); }
.tier-feat--no::before  { content: '✗'; color: var(--border-dark); }
.tier-card--featured .tier-feat--yes::before { color: #6ee7b7; }
.tier-card--featured .tier-feat--no  { color: rgba(255,255,255,0.35); }
.tier-card--featured .tier-feat--no::before  { color: rgba(255,255,255,0.25); }
.tier-card__units {
  list-style: disc;
  padding-left: 1.4em;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  color: var(--dark);
}
.tier-card--featured .tier-card__units { color: rgba(255,255,255,0.9); }
.units-more {
  width: 100%;
  text-align: center;
  background: var(--white);
  border: 1.5px dashed var(--border-dark);
  border-left: 4px dashed var(--border-dark);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 0.875rem;
  padding: 1.25rem 1.5rem;
  margin-top: 0.6rem;
}
/* ── Upgrade nudge ───────────────────────────────────────────────────────── */
.upgrade-nudge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fffbea;
  border: 1.5px solid var(--orange);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.upgrade-nudge__body { display: flex; flex-direction: column; gap: 0.15rem; flex: 1; min-width: 200px; }
.upgrade-nudge__title { font-size: 0.9rem; color: var(--dark); }
.upgrade-nudge__text  { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
/* ── Guide page ──────────────────────────────────────────────────────────── */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.guide-step {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  box-shadow: var(--shadow);
}
.guide-step__num {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--navy-dark);
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}
.guide-step__title { font-family: var(--font-head); font-size: 0.95rem; margin-bottom: 0.3rem; color: var(--navy-dark); }
.guide-step__desc  { font-size: 0.82rem; color: var(--muted); line-height: 1.55; margin: 0; }
.guide-tips { display: flex; flex-direction: column; gap: 0.75rem; }
.guide-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  box-shadow: var(--shadow);
}
.guide-tip__icon { font-size: 1.1rem; line-height: 1.5; flex-shrink: 0; }
.guide-tip p { margin: 0; font-size: 0.9rem; color: var(--dark); line-height: 1.55; }
@media (max-width: 1000px) { .guide-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px)  { .guide-steps { grid-template-columns: 1fr; } }
.guide-screenshot {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: linear-gradient(135deg, #e8eef5 0%, #f4f7fb 100%);
  border: 1.5px dashed var(--border-dark);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.85rem;
  user-select: none;
  margin: 1.5rem 0;
  cursor: pointer;
  transition: opacity 0.15s;
}
.guide-screenshot:hover { opacity: 0.88; }
.guide-screenshot__icon { font-size: 2rem; line-height: 1; }
.guide-screenshot--half { max-width: 60%; margin-left: auto; margin-right: auto; }
.guide-screenshots-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
@media (max-width: 640px) { .guide-screenshots-row { grid-template-columns: 1fr; } }
.guide-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.guide-lightbox.is-open { display: flex; }
.guide-lightbox__img {
  max-width: min(90vw, 1100px);
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 48px rgba(0,0,0,0.6);
}
.guide-lightbox__close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  opacity: 0.8;
}
.guide-lightbox__close:hover { opacity: 1; }
/* Free lesson landing page — article-style layout for SEO */
.fl { max-width: 760px; margin: 0 auto; }
/* ── Header ──────────────────────────────────────────────────────────────── */
.fl-eyebrow { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--orange-dim); margin-bottom: 0.5rem; }
.fl-title   { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 3rem); color: var(--navy-dark); line-height: 1.15; margin-bottom: 1rem; }
.fl-intro   { font-size: 1.1rem; color: var(--muted); line-height: 1.7; max-width: 600px; margin-bottom: 1.5rem; }
.fl-header  { border-bottom: 2px solid var(--border); padding-bottom: 2rem; margin-bottom: 2.5rem; }
.fl-header-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
/* ── Sections ────────────────────────────────────────────────────────────── */
.fl-section { margin-bottom: 3rem; }
.fl-section__title { font-family: var(--font-head); font-size: 1.5rem; color: var(--navy-dark); margin-bottom: 0.4rem; }
.fl-section__sub   { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.25rem; }
.fl-greetings-snippet { font-size: 1rem; color: var(--text); line-height: 1.75; margin-bottom: 1rem; max-width: 680px; }
/* ── Vocab table ─────────────────────────────────────────────────────────── */
.fl-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1.5px solid var(--border); box-shadow: var(--shadow); }
.fl-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.fl-table thead { background: var(--navy-dark); color: var(--white); }
.fl-table th { padding: 0.75rem 1.1rem; text-align: left; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.fl-table td { padding: 0.7rem 1.1rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.fl-table tbody tr:last-child td { border-bottom: none; }
.fl-table tbody tr:nth-child(even) { background: var(--light); }
.fl-table__ltz  { font-weight: 600; color: var(--navy-dark); }
.fl-table__pron { font-style: italic; color: var(--muted); font-size: 0.88rem; }
/* ── Phrases ─────────────────────────────────────────────────────────────── */
.fl-phrases { display: flex; flex-direction: column; gap: 0.1rem; }
.fl-phrase  { background: var(--white); border: 1.5px solid var(--border); border-left: 4px solid var(--orange); border-radius: var(--radius); padding: 0.85rem 1.1rem; margin-bottom: 0.6rem; }
.fl-phrase__ltz  { font-weight: 700; color: var(--navy-dark); font-size: 1rem; display: block; margin-bottom: 0.2rem; }
.fl-phrase__en   { color: var(--dark); display: block; }
.fl-phrase__note { font-size: 0.82rem; color: var(--muted); font-style: italic; margin-top: 0.25rem; display: block; }
/* ── Grammar ─────────────────────────────────────────────────────────────── */
.fl-grammar { background: var(--white); border: 1.5px solid var(--border); border-top: 4px solid var(--navy); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); }
.fl-grammar__explanation { color: var(--dark); line-height: 1.7; margin-bottom: 1rem; }
.fl-grammar__example { background: var(--light); border-radius: var(--radius); padding: 1rem 1.25rem; border-left: 3px solid var(--navy); }
.fl-grammar__ex-ltz { font-weight: 700; color: var(--navy-dark); margin-bottom: 0.2rem; }
.fl-grammar__ex-en  { color: var(--muted); font-size: 0.9rem; }
/* ── CTA ─────────────────────────────────────────────────────────────────── */
.fl-cta { background: var(--navy-dark); color: var(--white); border-radius: var(--radius-lg); padding: 2.5rem 2rem; text-align: center; margin-top: 1rem; }
.fl-cta__title   { font-family: var(--font-head); font-size: 1.75rem; margin-bottom: 0.75rem; }
.fl-cta__body    { color: rgba(255,255,255,0.75); margin-bottom: 1.75rem; font-size: 1rem; line-height: 1.6; }
.fl-cta__actions { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.fl-cta__note    { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.fl-cta .btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.fl-cta .btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); }
@media (max-width: 600px) {
  .fl-header { padding-bottom: 1.5rem; margin-bottom: 1.75rem; }
  .fl-section { margin-bottom: 2rem; }
  .fl-table th, .fl-table td { padding: 0.6rem 0.75rem; }
  .fl-grammar { padding: 1.25rem 1rem; }
  .fl-cta { padding: 2rem 1.25rem; }
  .fl-cta__actions { flex-direction: column; }
  .fl-cta__actions .btn { width: 100%; justify-content: center; }
}
/* ── Guided Tour ─────────────────────────────────────────────────────────── */
.tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  /* The dark backdrop is created by box-shadow on .tour-spotlight */
  pointer-events: auto;
}
.tour-spotlight {
  position: relative;
  z-index: 902 !important;
  box-shadow: 0 0 0 4px var(--orange), 0 0 0 9999px rgba(5, 13, 80, 0.65) !important;
  border-radius: var(--radius, 8px);
  pointer-events: none;
}
.tour-popover {
  position: fixed;
  z-index: 903;
  background: var(--white, #fff);
  border: 1.5px solid var(--border, #e0e4f0);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 8px 32px rgba(5, 13, 80, 0.18);
  padding: 1.25rem 1.5rem;
  max-width: 320px;
  width: calc(100vw - 2rem);
}
.tour-popover__progress {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange, #e87722);
  margin: 0 0 0.5rem;
}
.tour-popover__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.5rem;
}
.tour-popover__body {
  font-size: 0.9rem;
  color: var(--dark);
  line-height: 1.55;
  margin: 0 0 1rem;
}
.tour-popover__footer {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}
.tour-popover__skip {
  font-size: 0.85rem;
  color: var(--muted, #888);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
}
.tour-popover__skip:hover {
  color: var(--dark);
}
/* ? button in the nav */
.nav-tour-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  background: none;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-tour-btn:hover {
  background: var(--light, #f0f2f8);
}
