/* ─────────────────────────────────────────────────────────────────
   BAYGUSH HOMEPAGE — B2C self-study, redesigned 2026-05-09.

   Tokens come from base.css (--bg, --ink, --accent-warm, etc.).
   Display: Fraunces (serif). Body: TwFlags / Inter (sans).
   Cream background + low-opacity topographic pattern overlay in hero.
   Every section uses the eyebrow + h2 + lede pattern.
   ───────────────────────────────────────────────────────────────── */

/* ── Shared section frame ─────────────────────────────────────── */
.hp-section {
  position: relative;
  padding: 5.5rem 0;
}
.hp-section-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}
.hp-eyebrow {
  display: inline-block;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-warm);
  padding: .35rem .8rem;
  border: 1px solid color-mix(in srgb, var(--accent-warm) 38%, transparent);
  border-radius: 99px;
  background: color-mix(in srgb, var(--accent-warm) 8%, transparent);
  margin-bottom: 1.1rem;
}
.hp-section-h {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.95rem);
  font-weight: 500;
  letter-spacing: -.018em;
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 1.1rem;
  max-width: 780px;
}
.hp-lede {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 0 3rem;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .65s ease, transform .65s ease;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Card-grid reveal — the why-cards and course-cards rise + fade in,
   staggered one after another, the first time their grid scrolls
   into view (the observer in homepage.js unobserves each once shown).
   Animated via keyframes on `opacity` + the independent `translate`
   property — NOT `transform` — so the cards' hover-lift transform is
   never locked or delayed by the reveal. */
@keyframes hp-card-in {
  from { opacity: 0; translate: 0 30px; }
  to   { opacity: 1; translate: 0 0; }
}
.hp-why-card[data-reveal],
.hp-course-card[data-reveal] {
  transform: none;          /* cancel the generic [data-reveal] shift */
  translate: 0 30px;
}
.hp-why-card[data-reveal].is-revealed,
.hp-course-card[data-reveal].is-revealed {
  animation: hp-card-in .62s cubic-bezier(.2, .7, .2, 1) both;
}
.hp-why-grid > [data-reveal].is-revealed:nth-child(2),
.hp-course-grid > [data-reveal].is-revealed:nth-child(2) { animation-delay: .10s; }
.hp-why-grid > [data-reveal].is-revealed:nth-child(3),
.hp-course-grid > [data-reveal].is-revealed:nth-child(3) { animation-delay: .20s; }
.hp-why-grid > [data-reveal].is-revealed:nth-child(4),
.hp-course-grid > [data-reveal].is-revealed:nth-child(4) { animation-delay: .30s; }
@media (prefers-reduced-motion: reduce) {
  .hp-why-card[data-reveal],
  .hp-course-card[data-reveal] { translate: none; animation: none; }
}

/* ── Header ───────────────────────────────────────────────────── */
.hp-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #faf1e3;
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.hp-header.is-scrolled {
  background: #faf1e3;
  border-bottom-color: var(--line);
}
.hp-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: .85rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.hp-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.hp-brand img {
  height: 28px;
  width: auto;
  display: block;
}
.hp-nav {
  display: flex;
  gap: 1.6rem;
  margin-left: 1rem;
}
.hp-nav-link {
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color .15s;
}
.hp-nav-link:hover { color: var(--ink); }
.hp-nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: .65rem;
}
.hp-lang-toggle {
  display: inline-flex;
  background: var(--line-soft);
  border-radius: 99px;
  padding: .15rem;
}
.hp-lang-btn {
  border: 0;
  background: transparent;
  color: var(--ink-mute);
  font-size: .76rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: 99px;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.hp-lang-btn:hover { color: var(--ink); }
.hp-lang-btn.is-active {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.hp-signin {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 600;
  padding: .55rem .9rem;
  border-radius: 99px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.hp-signin:hover { background: var(--line-soft); }
.hp-cta-small {
  display: inline-flex;
  align-items: center;
  padding: .55rem 1.05rem;
  background: var(--ink);
  color: var(--bg);
  font-size: .88rem;
  font-weight: 600;
  border-radius: 99px;
  text-decoration: none;
  transition: all .18s;
}
.hp-cta-small:hover {
  background: var(--accent-warm);
  transform: translateY(-1px);
}

/* ── Mobile menu (hamburger) ──────────────────────────────────── */
/* The burger + panel are hidden on desktop and only take over below
   760px, where the inline nav / language toggle / sign-in are hidden. */
.hp-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.hp-burger span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .18s ease;
}
.hp-header.menu-open .hp-burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hp-header.menu-open .hp-burger span:nth-child(2) { opacity: 0; }
.hp-header.menu-open .hp-burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hp-mobile-menu { display: none; }
.hp-mobile-nav {
  display: flex;
  flex-direction: column;
}
.hp-mobile-nav a {
  padding: .95rem .2rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-soft);
}
.hp-mobile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0 1.1rem;
}
.hp-mobile-signin {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: .95rem;
  font-weight: 600;
  padding: .6rem 1.15rem;
  border-radius: 99px;
  cursor: pointer;
}
@media (max-width: 760px) {
  .hp-burger { display: inline-flex; }
  .hp-mobile-menu {
    display: block;
    max-height: 0;
    overflow: hidden;
    padding: 0 1.2rem;
    background: var(--bg-tint);
    transition: max-height .3s ease;
  }
  .hp-header.menu-open .hp-mobile-menu { max-height: 380px; }
  .hp-mobile-menu .hp-lang-toggle { display: inline-flex; }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hp-hero {
  position: relative;
  padding: 5rem 0 5.5rem;
  overflow: hidden;
}
.hp-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url('/svg/pattern.svg');
  background-repeat: repeat;
  opacity: .07;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}
.hp-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
}
.hp-hero-text { max-width: 640px; }
.hp-hero-eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-warm);
  padding: .4rem .9rem;
  background: var(--accent-warm-soft);
  border-radius: 99px;
  margin-bottom: 1.4rem;
}
.hp-hero-h {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.8vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.04;
  color: var(--ink);
  margin: 0 0 1.4rem;
}
.hp-hero-sub {
  font-size: 1.12rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.hp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 1.8rem;
}
.hp-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .95rem 1.6rem;
  background: var(--ink);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 99px;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: all .2s;
  box-shadow: 0 6px 18px -10px rgba(0,0,0,.4);
}
.hp-cta-primary:hover {
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px var(--accent-warm);
}
.hp-cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: .95rem 1.4rem;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 99px;
  text-decoration: none;
  border: 1px solid var(--line);
  transition: all .15s;
}
.hp-cta-ghost:hover {
  border-color: var(--ink);
  background: var(--card);
}
.hp-hero-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .85rem 1.4rem;
}
.hp-hero-bullets li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .92rem;
  color: var(--ink-soft);
}
.hp-hero-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: color-mix(in srgb, var(--accent-warm) 14%, var(--card));
  color: var(--accent-warm);
  border-radius: 50%;
  font-size: .76rem;
  font-weight: 700;
}

.hp-hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hp-hero-art::before {
  content: '';
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--accent-warm) 16%, transparent) 0%,
    transparent 70%);
  filter: blur(10px);
}
.hp-hero-owl {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 22px 30px rgba(26,22,16,.2));
}

/* ── Why ──────────────────────────────────────────────────────── */
.hp-why {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-tint) 100%);
  border-top: 1px solid var(--line);
}
/* 2×2 grid, slightly narrower than the section frame so each card
   gets real real-estate. Drops to 1 column on mobile. */
.hp-why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 760px) {
  .hp-why-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* Each card is a tall cream-paper tile. The illustration sits at the
   top with real breathing room — no tinted icon box, no border around
   it. The illustration IS a graphic, not an emoji wrapper. Text lives
   in a clean block below. */
.hp-why-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 1.8rem 1.8rem 1.7rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .22s;
}
.hp-why-card::after {
  /* Bottom-edge accent stripe — lights up on hover, otherwise quiet. */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--accent-warm) 50%, transparent 100%);
  opacity: 0;
  transition: opacity .22s;
}
.hp-why-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent-warm) 38%, var(--line));
  box-shadow: 0 26px 50px -18px rgba(0, 0, 0, .6);
}
.hp-why-card:hover::after { opacity: .9; }
.hp-why-card:hover .hp-why-illustration img {
  transform: translateY(-3px) scale(1.03);
}

/* Illustration block — large, centred, no container chrome.
   The drop-shadow gives it weight against the cream paper so it
   reads as a standalone graphic. A subtle radial honey wash behind
   it grounds the image so it doesn't float in empty space. */
.hp-why-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  margin: -.4rem 0 .55rem;   /* let the image float a little above */
}
.hp-why-illustration::before {
  /* Soft honey halo behind the illustration. */
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--accent-warm) 14%, transparent) 0%,
    transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.hp-why-illustration img {
  position: relative;
  width: 150px;
  height: 150px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 12px 22px rgba(31, 24, 18, .18));
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}

.hp-why-text {
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.hp-why-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -.012em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
.hp-why-card p {
  font-size: .98rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 760px) {
  .hp-why-card { padding: 1.6rem 1.5rem 1.5rem; }
  .hp-why-illustration { height: 140px; }
  .hp-why-illustration::before { width: 160px; height: 160px; }
  .hp-why-illustration img { width: 130px; height: 130px; }
  .hp-why-card h3 { font-size: 1.25rem; }
  .hp-why-card p { font-size: .94rem; }
}

/* ── Course cards ─────────────────────────────────────────────── */
.hp-courses {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.hp-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}
.hp-course-card {
  --accent: var(--accent-warm);
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.8rem 1.7rem 1.7rem;
  overflow: hidden;
  transition: transform .25s, border-color .2s, box-shadow .25s;
}
.hp-course-card.hp-course-pre   { --accent: #5C8A6A; }
.hp-course-card.hp-course-ielts { --accent: #3B6A8A; }
.hp-course-card.hp-course-de    { --accent: #B6442C; }
.hp-course-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg,
    color-mix(in srgb, var(--accent) 8%, transparent) 0%,
    transparent 55%);
  opacity: .8;
  transition: opacity .3s;
  pointer-events: none;
}
.hp-course-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: 0 22px 44px -22px color-mix(in srgb, var(--accent) 55%, rgba(0,0,0,.3));
}
.hp-course-card:hover::before { opacity: 1; }
.hp-course-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.4rem;
}
.hp-course-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent) 18%, var(--card)) 0%,
    color-mix(in srgb, var(--accent) 8%, var(--card)) 100%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
  font-size: 1.9rem;
}
.hp-course-level {
  padding: .35rem .8rem;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  border-radius: 99px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hp-course-name {
  position: relative;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--ink);
  margin: 0 0 .55rem;
}
.hp-course-desc {
  position: relative;
  font-size: .94rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
}
.hp-course-meta {
  position: relative;
  font-size: .82rem;
  color: var(--ink-mute);
  padding-bottom: 1.1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}
.hp-course-prices {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: .8rem;
  margin-bottom: 1.4rem;
}
.hp-course-price {
  display: inline-flex;
  align-items: baseline;
  gap: .25rem;
}
.hp-course-price-num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
}
.hp-course-price-unit {
  font-size: .82rem;
  color: var(--ink-mute);
}
.hp-course-price-or {
  font-size: .8rem;
  color: var(--ink-mute);
  font-style: italic;
}
.hp-course-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: .8rem 1.2rem;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: 99px;
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
}
.hp-course-cta:hover {
  background: var(--accent);
  color: #fff;
  transform: translateX(2px);
}

/* ── Teacher card ─────────────────────────────────────────────── */
.hp-teacher {
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.hp-teacher-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 2rem;
  margin-bottom: 1.6rem;
  align-items: center;
}
.hp-teacher-photo {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--accent-warm) 22%, var(--card)) 0%,
    color-mix(in srgb, var(--accent-warm) 8%, var(--card)) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent-warm) 18%, transparent);
}
.hp-teacher-photo-fallback {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 600;
  color: var(--accent-warm);
  letter-spacing: -.02em;
  opacity: .75;
}
.hp-teacher-name {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 .4rem;
}
.hp-teacher-title {
  font-size: .95rem;
  color: var(--accent-warm);
  font-weight: 600;
  margin: 0 0 1rem;
}
.hp-teacher-bio {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}
.hp-teacher-creds {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 1.6rem;
}
.hp-teacher-creds li {
  display: inline-flex;
  align-items: baseline;
  gap: .35rem;
}
.hp-teacher-creds strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-warm);
}
.hp-teacher-creds span {
  font-size: .9rem;
  color: var(--ink-soft);
}
.hp-teacher-note {
  font-size: .92rem;
  color: var(--ink-mute);
  font-style: italic;
  max-width: 740px;
  line-height: 1.55;
}

/* ── Pricing ──────────────────────────────────────────────────── */
.hp-pricing {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.hp-pricing-grid {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.hp-pricing-block-h {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
}
.hp-pricing-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-tint);
  font-size: 1.25rem;
}
.hp-pricing-block-h h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--ink);
  margin: 0;
}
.hp-pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.hp-pricing-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.5rem 1.5rem;
  transition: transform .15s, border-color .15s;
}
.hp-pricing-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink-mute);
}
.hp-pricing-card.is-popular {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--accent-warm) 6%, var(--card)) 0%,
    var(--card) 100%);
  border-color: var(--accent-warm);
  box-shadow: 0 12px 30px -18px var(--accent-warm);
}
.hp-pricing-card.is-popular:hover {
  border-color: var(--accent-warm);
  box-shadow: 0 18px 40px -18px var(--accent-warm);
  transform: translateY(-3px);
}
.hp-pricing-badge {
  position: absolute;
  top: -12px;
  right: 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .75rem;
  background: var(--accent-warm);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 99px;
  box-shadow: 0 4px 12px -2px color-mix(in srgb, var(--accent-warm) 60%, transparent);
}
.hp-pricing-badge-icon {
  font-size: .9rem;
  line-height: 1;
}
.hp-pricing-name {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: .55rem;
}
.hp-pricing-card.is-popular .hp-pricing-name { color: var(--accent-warm); }
.hp-pricing-price {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: -.018em;
  color: var(--ink);
  margin-bottom: .35rem;
}
.hp-pricing-price span {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0;
}
.hp-pricing-savings {
  font-size: .82rem;
  color: var(--accent-warm);
  font-weight: 600;
  margin-bottom: 1rem;
}
.hp-pricing-buy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: .75rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 99px;
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .18s;
  margin-top: .5rem;
}
.hp-pricing-buy:hover {
  background: var(--accent-warm);
  transform: translateY(-1px);
}
.hp-pricing-card.is-popular .hp-pricing-buy {
  background: var(--accent-warm);
}
.hp-pricing-card.is-popular .hp-pricing-buy:hover {
  background: var(--ink);
}

/* ── FAQ ──────────────────────────────────────────────────────── */
.hp-faq {
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
}
.hp-faq-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  max-width: 820px;
}
.hp-faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.hp-faq-item:hover {
  border-color: color-mix(in srgb, var(--accent-warm) 25%, var(--line));
}
.hp-faq-item[open] {
  border-color: color-mix(in srgb, var(--accent-warm) 50%, var(--line));
  box-shadow: 0 10px 24px -16px color-mix(in srgb, var(--accent-warm) 50%, transparent);
}
.hp-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  user-select: none;
}
.hp-faq-item summary::-webkit-details-marker { display: none; }
.hp-faq-chev {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-tint);
  color: var(--ink-mute);
  font-size: 1.1rem;
  font-weight: 600;
  transition: transform .25s, background .15s, color .15s;
}
.hp-faq-item[open] .hp-faq-chev {
  background: var(--accent-warm);
  color: #fff;
  transform: rotate(45deg);
}
.hp-faq-a {
  padding: 0 1.4rem 1.3rem;
  font-size: .95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* ── Final CTA ────────────────────────────────────────────────── */
.hp-final {
  position: relative;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.hp-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('/svg/pattern.svg');
  background-repeat: repeat;
  opacity: .05;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(115% 85% at 50% 100%, #000 0%, transparent 72%);
          mask-image: radial-gradient(115% 85% at 50% 100%, #000 0%, transparent 72%);
}
.hp-final-inner {
  position: relative;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.hp-final-h {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.07;
  color: var(--ink);
  margin: 0 0 1rem;
}
.hp-final-sub {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}
.hp-final-actions {
  display: flex;
  justify-content: center;
}

/* ── Footer ───────────────────────────────────────────────────── */
.hp-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 3.4rem 0 2rem;
}
.hp-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
}
.hp-footer-top {
  display: flex;
  justify-content: space-between;
  gap: 2.5rem 4rem;
  flex-wrap: wrap;
  padding-bottom: 2.2rem;
}
.hp-footer-brand-block { max-width: 300px; }
.hp-footer-brand { display: inline-flex; }
.hp-footer-brand img {
  height: 26px;
  width: auto;
  display: block;
  opacity: .9;
}
.hp-footer-tagline {
  margin: .95rem 0 0;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--ink-mute);
}
.hp-footer-cols {
  display: flex;
  gap: 3.5rem;
  flex-wrap: wrap;
}
.hp-footer-col {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.hp-footer-col h4 {
  margin: 0 0 .35rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hp-footer-col a {
  font-size: .92rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .15s;
}
.hp-footer-col a:hover { color: var(--accent-warm); }
.hp-footer-bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem;
  padding-top: 1.7rem;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  color: var(--ink-mute);
}
.hp-footer-dot { color: var(--ink-mute); opacity: .5; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hp-hero-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .hp-hero-art { order: -1; }
  .hp-hero-art::before { width: 320px; height: 320px; }
  .hp-hero-owl { max-width: 280px; }
  .hp-pricing-cards { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .hp-section { padding: 4rem 0; }
  .hp-section-inner { padding: 0 1.4rem; }
  .hp-header-inner { padding: .65rem 1.2rem; gap: .6rem; }
  .hp-nav { display: none; }
  .hp-signin { display: none; }
  .hp-cta-small { padding: .5rem .85rem; font-size: .82rem; }
  .hp-lang-toggle { display: none; }
  .hp-hero { padding: 3rem 0 4rem; }
  .hp-hero-inner { padding: 0 1.4rem; }
  .hp-hero-actions { flex-direction: column; align-items: stretch; }
  .hp-cta-primary, .hp-cta-ghost { justify-content: center; }
  .hp-teacher-card {
    grid-template-columns: 1fr;
    gap: 1.4rem;
    padding: 1.5rem;
  }
  .hp-teacher-photo {
    width: 140px;
    height: 140px;
    margin: 0 auto;
  }
  .hp-teacher-photo-fallback { font-size: 3rem; }
  .hp-footer { padding: 2.6rem 0 1.8rem; }
  .hp-footer-top { flex-direction: column; gap: 2rem; padding-bottom: 1.8rem; }
  .hp-footer-cols { gap: 2.8rem; }
}

/* ═════════════════════════════════════════════════════════════════
   HOMEPAGE — DARK CHOCOLATE THEME (2026-05-12)

   The marketing site (baygush.com) now wears the owl's own palette:
   deep chocolate background, cream paper cards floating on top,
   honey accents. Matches the FlyingOwl illustration in the hero and
   keeps brand continuity with the dark IELTS course shell.

   Scope: only when the page contains .hp-header (the marketing
   header), so this NEVER affects the portal / course pages, which
   keep their existing palettes.
   ═════════════════════════════════════════════════════════════════ */

body:has(.hp-header) {
  /* Page-level tokens — warm light cream theme. */
  --bg:        #E8DAC4;            /* warm cream/sand page */
  --bg-tint:   #EFE4D6;
  --card:      #FFFFFF;            /* white paper card */
  --ink:       #2A1F17;            /* dark chocolate text */
  --ink-soft:  #5A4B3A;
  --ink-mute:  #8A7860;
  --line:      rgba(31, 24, 18, .14);
  --line-soft: rgba(31, 24, 18, .07);
  --accent-warm: #B57A2E;          /* honey — deeper, pops on cream */
  --accent-warm-soft: rgba(181, 122, 46, .14);
  --gold:      #B57A2E;
  background: #E8DAC4;
  color: #2A1F17;
}

/* Flip the hero owl so it flies into the page from the right. */
body:has(.hp-header) .hp-hero-owl {
  transform: scaleX(-1);
}

/* Header — light cream sticky bar, a touch lighter than the page. */
body:has(.hp-header) .hp-header {
  background: color-mix(in srgb, #EFE4D6 88%, transparent);
}
body:has(.hp-header) .hp-header.is-scrolled {
  background: color-mix(in srgb, #EFE4D6 96%, transparent);
}
/* Language toggle adapts to the light bg. */
body:has(.hp-header) .hp-lang-toggle {
  background: rgba(31, 24, 18, .05);
  border: 1px solid var(--line);
}
body:has(.hp-header) .hp-lang-btn.is-active {
  background: #FFFFFF;
  color: var(--ink);
}

/* Sign in button — light bg, dark text. */
body:has(.hp-header) .hp-signin {
  color: var(--ink);
}
body:has(.hp-header) .hp-signin:hover {
  background: rgba(31, 24, 18, .05);
}

/* CTA-small ("Join a course") — solid honey, dark text. */
body:has(.hp-header) .hp-cta-small {
  background: var(--accent-warm);
  color: #FFFFFF;
  border: 1px solid var(--accent-warm);
}
body:has(.hp-header) .hp-cta-small:hover {
  background: #C98F3E;
  border-color: #C98F3E;
}

/* Hero pattern — subtle texture tuned for the light bg. */
body:has(.hp-header) .hp-hero-pattern {
  opacity: .05;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}

/* Primary CTA in hero — honey solid, white text. */
body:has(.hp-header) .hp-cta-primary {
  background: var(--accent-warm);
  color: #FFFFFF;
  border-color: var(--accent-warm);
  box-shadow: 0 8px 20px -10px rgba(181, 122, 46, .55);
}
body:has(.hp-header) .hp-cta-primary:hover {
  background: #C98F3E;
  border-color: #C98F3E;
  box-shadow: 0 12px 26px -10px rgba(181, 122, 46, .6);
}
body:has(.hp-header) .hp-cta-ghost {
  color: var(--ink);
  border-color: var(--line);
}
body:has(.hp-header) .hp-cta-ghost:hover {
  border-color: var(--accent-warm);
  background: rgba(181, 122, 46, .09);
  color: var(--ink);
}

/* Hero eyebrow pill — honey tint on cream, honey text inside. */
body:has(.hp-header) .hp-hero-eyebrow {
  background: rgba(181, 122, 46, .12);
  color: var(--accent-warm);
  border: 1px solid rgba(181, 122, 46, .30);
}

/* Hero tick badge — honey on a soft honey tint. */
body:has(.hp-header) .hp-hero-tick {
  background: rgba(181, 122, 46, .16);
  color: var(--accent-warm);
}

/* Drop shadow under the owl needs to be deeper on dark bg. */
body:has(.hp-header) .hp-hero-owl {
  filter: drop-shadow(0 20px 32px rgba(31, 24, 18, .26)) scaleX(-1);
  /* repeating the scaleX here because filter overrides the earlier
     transform on some browsers. The .hp-hero-owl above only sets
     transform; combine both in one rule for safety. */
}

/* "Why Baygush" section — a soft warm band, slightly off the page bg. */
body:has(.hp-header) .hp-why {
  background: linear-gradient(180deg, #EFE3D2 0%, #E4D4BA 100%);
  border-top-color: var(--line);
}

/* ─── CARDS ────────────────────────────────────────────────────
   Every cream-bg card on the homepage uses cream paper styling
   matching the lesson cards in the course shell. Inside each card
   the page-level dark ink flips back to dark-paper-ink so text on
   cream stays readable. The local --ink override only affects
   var(--ink) lookups inside the card subtree. */
body:has(.hp-header) .hp-why-card,
body:has(.hp-header) .hp-course-card,
body:has(.hp-header) .hp-faq-card,
body:has(.hp-header) .hp-faq-item,
body:has(.hp-header) .hp-pricing-card,
body:has(.hp-header) .hp-feature-card,
body:has(.hp-header) .hp-teacher-card {
  background:
    linear-gradient(180deg, #FFFFFF 0%, #FCF7EB 100%);
  border: 1px solid rgba(31, 24, 18, 0.12);
  color: #1F1812;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    0 12px 26px -16px rgba(31, 24, 18, 0.30);
  --ink: #1F1812;
  --ink-soft: #4A3F33;
  --ink-mute: #7A6A55;
  --line: rgba(31, 24, 18, 0.10);
  --line-soft: rgba(31, 24, 18, 0.06);
  --card: #FFFFFF;
}
body:has(.hp-header) .hp-why-card h3,
body:has(.hp-header) .hp-faq-card h3,
body:has(.hp-header) .hp-course-card h3 {
  color: #1F1812;
}
body:has(.hp-header) .hp-why-card p,
body:has(.hp-header) .hp-faq-card p,
body:has(.hp-header) .hp-course-card p {
  color: #4A3F33;
}

/* FAQ accordion — summary text + answer text must read as dark ink
   on the cream card. The chevron background was using --bg-tint
   which is now dark; flip it back to a cream tone so it stays
   visible against the card. */
body:has(.hp-header) .hp-faq-item summary {
  color: #1F1812;
}
body:has(.hp-header) .hp-faq-a {
  color: #4A3F33;
}
body:has(.hp-header) .hp-faq-chev {
  background: rgba(31, 24, 18, 0.06);
  color: #7A6A55;
}
body:has(.hp-header) .hp-faq-item[open] .hp-faq-chev {
  background: var(--accent-warm);
  color: #1F1812;
}
/* Hover state — honey border accent. */
body:has(.hp-header) .hp-why-card:hover,
body:has(.hp-header) .hp-faq-card:hover,
body:has(.hp-header) .hp-course-card:hover {
  border-color: rgba(181, 122, 46, .55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 20px 36px -16px rgba(31, 24, 18, .34);
}
/* The .hp-why-illustration block is styled by the base homepage.css —
   no dark-mode override needed because the illustration sits on the
   cream paper card and the halo uses the same accent token. The
   legacy .hp-why-icon class is dead. */

/* Section frame — keep eyebrow honey, h2 cream-on-dark, lede ink-soft. */
body:has(.hp-header) .hp-section {
  background: transparent;
}
body:has(.hp-header) .hp-eyebrow {
  color: var(--accent-warm);
  border-color: rgba(181, 122, 46, .30);
  background: rgba(181, 122, 46, .10);
}
body:has(.hp-header) .hp-section-h {
  color: var(--ink);
}
body:has(.hp-header) .hp-lede {
  color: var(--ink-soft);
}

/* Footer — a soft warm band closing the light page. */
body:has(.hp-header) .hp-footer {
  background: #E4D4BA;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
}
body:has(.hp-header) .hp-footer a { color: var(--ink-soft); }
body:has(.hp-header) .hp-footer a:hover { color: var(--accent-warm); }
body:has(.hp-header) .hp-footer-dot { color: var(--ink-mute); }

/* ═══════════════════════════════════════════════════════════════════
   HOMEPAGE INLINE EDITOR (god-only)
   Edit affordances applied while body.hp-editing is set by
   js/hp-editor.js. Every [data-i18n] text region becomes a clickable
   editable field. The FAB itself reuses the shared .wr-edit-fab style.
   Every selector is scoped under .shell — the marketing-site wrapper —
   so a stray `hp-editing` body class can never outline [data-i18n]
   elements on the course/portal pages (which have their own editors).
   ═══════════════════════════════════════════════════════════════════ */
body.hp-editing .shell [data-i18n] {
  outline: 1px dashed rgba(181, 122, 46, .55);
  outline-offset: 3px;
  border-radius: 2px;
  cursor: text;
  transition: outline-color .14s, background .14s;
}
body.hp-editing .shell [data-i18n]:hover {
  outline-color: #B57A2E;
  background: rgba(181, 122, 46, .07);
}
body.hp-editing .shell [data-i18n]:focus {
  outline: 2px solid #B57A2E;
  background: rgba(181, 122, 46, .11);
}
/* Brief confirmation pulse after a save is queued. */
.shell [data-i18n].hp-edit-saved {
  background: rgba(95, 150, 75, .22);
  outline-color: #5F964B;
}
