/* English Energy A2: the course page (sales + list of episodes) and the access
   page. Same identity as the homepage (brand-premium.css): wine, ivory and
   powder, terracotta only for actions, champagne and gold as decoration,
   Cormorant Garamond for headings and Manrope for text. The lessons
   themselves keep their own energy.css. */
:root {
  --wine: #4a2636;
  --wine-light: #61394b;
  --ivory: #faf7f3;
  --powder: #eedfd8;
  --tint: #f4ece6;
  --terracotta: #a94a3b;
  --terracotta-hover: #903d31;
  --ink: #392f32;
  --ink-light: #65545b;
  --champagne: #c8b69a;
  --gold: #c9973a;
  --surface: #fffdfa;
  --border: #ded0c5;
  --ok: #4f7a52;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --radius: 4px;
  --shadow: 0 6px 24px rgba(74, 38, 54, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--wine); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 500; line-height: 1.15; color: var(--wine); margin: 0; text-wrap: balance; }
[hidden] { display: none !important; }

.ee-in { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .ee-in { padding: 0 24px; } }
.ee-narrow { max-width: 760px; }

/* ── header ─────────────────────────────────────────────── */
.ee-top { background: var(--ivory); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.ee-top .ee-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.ee-logo { display: flex; align-items: center; }
.ee-logo img { width: 108px; height: auto; display: block; }
.ee-nav { display: flex; align-items: center; gap: 1.4rem; font-size: .9rem; }
.ee-nav a { text-decoration: none; color: var(--ink); }
.ee-nav a:hover { color: var(--terracotta); }
.ee-nav .ee-nav-login { border: 1px solid var(--wine); color: var(--wine); padding: .4rem .9rem; border-radius: var(--radius); }
.ee-nav .ee-nav-login:hover { background: var(--wine); color: var(--ivory); }
@media (max-width: 640px) { .ee-nav .ee-hide-sm { display: none; } }

/* ── buttons ────────────────────────────────────────────── */
.ee-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.4rem; border-radius: var(--radius);
  background: var(--terracotta); color: var(--ivory); border: 1px solid var(--terracotta);
  font: 600 .95rem/1.4 var(--font-body); text-decoration: none; cursor: pointer; text-align: center;
}
.ee-btn:hover { background: var(--terracotta-hover); border-color: var(--terracotta-hover); color: var(--ivory); }
.ee-btn:disabled, .ee-btn.is-off { opacity: .55; cursor: default; pointer-events: none; }
.ee-btn--ghost { background: transparent; color: var(--wine); border-color: var(--wine); }
.ee-btn--ghost:hover { background: var(--wine); border-color: var(--wine); color: var(--ivory); }
.ee-btn--block { width: 100%; }

/* ── sections ───────────────────────────────────────────── */
.ee-sec { padding: 4.5rem 0; scroll-margin-top: 64px; }
.ee-sec--tint { background: var(--tint); }
.ee-sec--wine { background: var(--wine); color: var(--ivory); }
.ee-sec--wine h2, .ee-sec--wine h3 { color: var(--ivory); }
.ee-eyebrow { margin: 0 0 .8rem; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--terracotta); }
.ee-sec h2 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 1rem; }
.ee-lead { font-size: 1.05rem; color: var(--ink-light); max-width: 640px; margin: 0 0 2.4rem; }
@media (max-width: 640px) { .ee-sec { padding: 3.2rem 0; } }

/* ── hero ───────────────────────────────────────────────── */
.ee-hero { padding: 3.5rem 0 4rem; }
.ee-hero .ee-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.ee-hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); margin-bottom: 1.2rem; }
.ee-hero h1 em { font-style: italic; color: var(--terracotta); }
.ee-hero .ee-tagline { font-family: var(--font-heading); font-size: clamp(1.45rem, 2.6vw, 1.9rem); line-height: 1.3; color: var(--wine); margin: 0 0 1.1rem; }
.ee-hero .ee-lede { font-size: 1.08rem; color: var(--ink-light); margin: 0 0 1.8rem; max-width: 560px; }
.ee-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.ee-note { margin: .9rem 0 0; font-size: .88rem; color: var(--ink-light); }
.ee-facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 1.8rem; margin: 2.4rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--border); }
.ee-facts b { display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: 500; color: var(--wine); line-height: 1; }
.ee-facts span { font-size: .82rem; color: var(--ink-light); line-height: 1.4; display: block; margin-top: .35rem; }
.ee-hero figure { margin: 0; position: relative; }
.ee-hero figure img { display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.ee-hero figcaption { position: absolute; left: 16px; bottom: 16px; background: rgba(250, 247, 243, .94); padding: .45rem .8rem; border-radius: var(--radius); font-size: .8rem; color: var(--ink); }
@media (max-width: 900px) {
  .ee-hero .ee-in { grid-template-columns: 1fr; gap: 2.2rem; }
  .ee-hero figure { order: -1; }
  .ee-hero figure img { aspect-ratio: 16 / 10; }
}
@media (max-width: 520px) {
  .ee-hero { padding: 1.6rem 0 3rem; }
  .ee-facts { grid-template-columns: repeat(2, auto); gap: 1.2rem 2rem; }
  .ee-ctas .ee-btn { flex: 1 1 100%; }
}

/* ── pains + characters ─────────────────────────────────── */
.ee-pains { list-style: none; padding: 0; margin: 0 0 2.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 2rem; }
.ee-pains li { position: relative; padding-left: 1.6rem; font-size: 1.02rem; }
.ee-pains li::before { content: ''; position: absolute; left: 0; top: .72em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
@media (max-width: 700px) { .ee-pains { grid-template-columns: 1fr; } }
.ee-story { font-family: var(--font-heading); font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.4; color: var(--wine); max-width: 760px; margin: 0 0 2.2rem; }
.ee-people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.ee-person { display: flex; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.ee-person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.ee-person h3 { font-size: 1.3rem; margin-bottom: .15rem; }
.ee-person p { margin: 0; font-size: .9rem; color: var(--ink-light); line-height: 1.55; }
@media (max-width: 860px) { .ee-people { grid-template-columns: 1fr; } }

/* ── how a week works ───────────────────────────────────── */
.ee-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: step; }
.ee-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem 1.5rem; }
.ee-step .n { font-family: var(--font-heading); font-size: 2.6rem; color: var(--champagne); line-height: 1; }
.ee-step h3 { font-size: 1.55rem; margin: .5rem 0 .2rem; }
.ee-step .t { font-size: .82rem; color: var(--terracotta); font-weight: 600; margin: 0 0 .7rem; }
.ee-step p { margin: 0; font-size: .95rem; color: var(--ink-light); }
.ee-extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.6rem; }
.ee-extra { display: flex; gap: .8rem; align-items: flex-start; font-size: .92rem; color: var(--ink-light); }
.ee-extra svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--gold); margin-top: .15rem; }
.ee-extra b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .ee-steps, .ee-extras { grid-template-columns: 1fr; } }

/* ── episodes ───────────────────────────────────────────── */
.ee-progress { margin: -1.4rem 0 2rem; font-size: .92rem; color: var(--ink-light); }
.ee-eps { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 760px) { .ee-eps { grid-template-columns: 1fr; } }
.ee-ep { display: grid; grid-template-columns: 1fr 150px; gap: .2rem 1.2rem; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.ee-ep:hover { transform: translateY(-4px); border-color: var(--champagne); box-shadow: 0 14px 34px rgba(74, 38, 54, .12); }
.ee-ep .top { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem; }
.ee-ep .num { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--ink-light); }
.ee-ep h3 { font-size: 1.4rem; grid-column: 1; margin: .15rem 0 .25rem; }
.ee-ep p { grid-column: 1; margin: 0; font-size: .88rem; color: var(--ink-light); line-height: 1.55; }
.ee-ep .face { grid-column: 2; grid-row: 1 / span 3; align-self: center; display: block; width: 150px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.ee-ep .face img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.ee-ep:hover .face img { transform: scale(1.07); }
@media (max-width: 1000px) and (min-width: 761px) { .ee-ep { grid-template-columns: 1fr 120px; } .ee-ep .face { width: 120px; } }
@media (max-width: 460px) { .ee-ep { grid-template-columns: 1fr 104px; gap: .2rem .9rem; padding: 1rem; } .ee-ep .face { width: 104px; } }
.ee-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: .12rem .55rem; border-radius: 100px; border: 1px solid var(--border); color: var(--ink-light); background: var(--ivory); }
.ee-badge svg { width: 11px; height: 11px; }
.ee-badge--free { background: var(--powder); border-color: var(--powder); color: var(--wine); }
.ee-badge--done { border-color: var(--ok); color: var(--ok); }
.ee-badge--go { border-color: var(--champagne); color: var(--wine); }

/* ── pricing ────────────────────────────────────────────── */
.ee-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; align-items: stretch; }
@media (max-width: 960px) { .ee-plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } .ee-plans-foot { justify-content: center; } }
.ee-plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.8rem 1.6rem; }
.ee-plan h3 { font-size: 1.7rem; margin-bottom: .2rem; }
.ee-plan .who { margin: 0 0 1.2rem; font-size: .9rem; color: var(--ink-light); }
.ee-plan .price { font-family: var(--font-heading); font-size: 3rem; line-height: 1; color: var(--wine); }
.ee-plan .price-note { margin: .4rem 0 1.3rem; font-size: .85rem; color: var(--ink-light); }
.ee-plan ul { list-style: none; margin: 0 0 1.6rem; padding: 1.2rem 0 0; border-top: 1px solid var(--border); flex: 1; }
.ee-plan li { position: relative; padding-left: 1.5rem; margin-bottom: .55rem; font-size: .93rem; }
.ee-plan li::before { content: ''; position: absolute; left: .1rem; top: .5em; width: 10px; height: 5px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.ee-plan .after { margin: .7rem 0 0; font-size: .8rem; color: var(--ink-light); text-align: center; }
.ee-plan--main { background: var(--wine); border-color: var(--wine); color: var(--ivory); }
.ee-plan--main h3, .ee-plan--main .price { color: var(--ivory); }
.ee-plan--main .who, .ee-plan--main .price-note, .ee-plan--main .after { color: var(--champagne); }
.ee-plan--main ul { border-top-color: rgba(200, 182, 154, .35); }
.ee-plan--main .ee-btn { border-color: var(--champagne); }
.ee-plan .tag { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--wine); background: var(--champagne); padding: .2rem .6rem; border-radius: 100px; }
/* currency switch at the top of each price card (one choice for all cards) */
.ee-plan-top { display: flex; align-items: center; justify-content: flex-end; gap: .6rem; margin-bottom: 1rem; }
.ee-plan-top .tag { margin: 0 auto 0 0; }
.ee-cur { display: inline-flex; padding: 2px; border: 1px solid var(--border); border-radius: 100px; background: var(--ivory); }
.ee-cur button { min-width: 38px; padding: .4rem .7rem; border: 0; border-radius: 100px; background: none; cursor: pointer;
  font: 600 .8rem/1 var(--font-body); color: var(--ink-light); transition: background-color .2s, color .2s; }
.ee-cur button:hover { color: var(--wine); }
.ee-cur button[aria-pressed="true"] { background: var(--wine); color: var(--ivory); }
.ee-cur button:focus-visible { outline: 2px solid var(--champagne); outline-offset: 1px; }
.ee-plan--main .ee-cur { background: rgba(250, 247, 243, .08); border-color: rgba(200, 182, 154, .45); }
.ee-plan--main .ee-cur button { color: var(--champagne); }
.ee-plan--main .ee-cur button:hover { color: var(--ivory); }
.ee-plan--main .ee-cur button[aria-pressed="true"] { background: var(--champagne); color: var(--wine); }
.ee-plan .price { white-space: nowrap; }
.ee-plan .fx-note { margin: .4rem 0 0; font-size: .78rem; line-height: 1.45; color: var(--ink-light); }
.ee-plan--main .fx-note { color: var(--champagne); }

.ee-plans-foot { margin: 1.6rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 2rem; font-size: .93rem; color: var(--ink-light); }

/* ── teacher ────────────────────────────────────────────── */
.ee-teacher { display: grid; grid-template-columns: 300px 1fr; gap: 3rem; align-items: center; }
.ee-teacher img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.ee-teacher p { margin: 0 0 1rem; }
.ee-teacher .creds { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.ee-teacher .creds span { font-size: .8rem; border: 1px solid var(--border); background: var(--surface); padding: .3rem .7rem; border-radius: 100px; color: var(--ink-light); }
@media (max-width: 760px) { .ee-teacher { grid-template-columns: 1fr; gap: 1.6rem; } .ee-teacher img { max-width: 280px; } }

/* ── book + telegram ────────────────────────────────────── */
.ee-two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 760px) { .ee-two { grid-template-columns: 1fr; } }
.ee-card { display: flex; gap: 1.2rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; text-decoration: none; color: inherit; }
.ee-card img { width: 84px; flex-shrink: 0; border-radius: 2px; box-shadow: 0 4px 14px rgba(74, 38, 54, .18); }
.ee-card h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.ee-card p { margin: 0 0 .5rem; font-size: .9rem; color: var(--ink-light); line-height: 1.55; }
.ee-card .go { font-size: .88rem; font-weight: 600; color: var(--terracotta); }
.ee-card:hover .go { text-decoration: underline; }
.ee-card .ico { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; background: var(--powder); display: grid; place-items: center; color: var(--wine); }

/* ── forms ──────────────────────────────────────────────── */
.ee-form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
@media (max-width: 520px) { .ee-form-card { padding: 1.4rem 1.1rem; } }
.ee-form { display: grid; gap: 1rem; }
.ee-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .ee-form .row { grid-template-columns: 1fr; } }
.ee-form label, .ee-form legend { display: grid; gap: .35rem; font-size: .88rem; font-weight: 600; color: var(--wine); }
.ee-form label small { font-weight: 400; color: var(--ink-light); }
.ee-form input, .ee-form select, .ee-form textarea {
  width: 100%; font: 400 1rem/1.5 var(--font-body); color: var(--ink);
  background: var(--ivory); border: 1px solid var(--border); border-radius: var(--radius); padding: .7rem .85rem; }
.ee-form textarea { min-height: 90px; resize: vertical; }
.ee-form input:focus, .ee-form select:focus, .ee-form textarea:focus { outline: 2px solid var(--champagne); outline-offset: 1px; border-color: var(--champagne); }
.ee-form fieldset { border: 0; padding: 0; margin: 0; }
.ee-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin-top: .35rem; }
.ee-choice label { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; color: var(--ink); background: var(--ivory);
  border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem .85rem; cursor: pointer; }
.ee-choice label span small { display: block; font-weight: 400; color: var(--ink-light); font-size: .8rem; }
.ee-choice input { width: auto; margin-top: .35rem; accent-color: var(--terracotta); }
.ee-choice label:has(input:checked) { border-color: var(--terracotta); background: var(--surface); }
.ee-err { margin: 0; color: #a3271d; font-size: .9rem; }
.ee-ok { text-align: center; padding: 1rem 0; }
.ee-ok h3 { font-size: 1.7rem; margin-bottom: .5rem; }
.ee-ok p { margin: 0; color: var(--ink-light); }
.ee-legal { margin: 0; font-size: .78rem; color: var(--ink-light); }

/* ── faq ────────────────────────────────────────────────── */
.ee-faq details { border-bottom: 1px solid var(--border); }
.ee-faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; font-weight: 600; color: var(--wine); position: relative; }
.ee-faq summary::-webkit-details-marker { display: none; }
.ee-faq summary::after { content: ''; position: absolute; right: .4rem; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--terracotta); border-bottom: 2px solid var(--terracotta); transform: translateY(-70%) rotate(45deg); transition: transform .18s; }
.ee-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.ee-faq .a { padding: 0 0 1.2rem; color: var(--ink-light); font-size: .97rem; }

/* ── footer ─────────────────────────────────────────────── */
.ee-foot { background: var(--wine); color: var(--champagne); padding: 2rem 0; font-size: .85rem; }
.ee-foot .ee-in { display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: space-between; }
.ee-foot a { color: var(--ivory); text-decoration: none; }
.ee-foot a:hover { text-decoration: underline; }

/* ── motion ─────────────────────────────────────────────── */
.ee-btn { transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s; }
.ee-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(74, 38, 54, .14); }
.ee-plan, .ee-step, .ee-person, .ee-card { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.ee-plan:hover, .ee-step:hover, .ee-person:hover, .ee-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(74, 38, 54, .12); }
.ee-plan--main:hover { box-shadow: 0 16px 40px rgba(74, 38, 54, .3); }
.ee-person img, .ee-card img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.ee-person:hover img, .ee-card:hover img { transform: scale(1.06); }
.ee-teacher img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.ee-teacher:hover img { transform: scale(1.02); }
.ee-hero figure img { animation: ee-settle 1.4s cubic-bezier(.2,.7,.2,1) both; }
.ee-hero .ee-in > div { animation: ee-rise .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes ee-settle { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: none; } }
@keyframes ee-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* blocks rise into place on scroll; the hidden state exists only once the
   script has added html.ee-motion (so nothing hides without JavaScript) */
.ee-motion [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.ee-motion [data-reveal].is-in { opacity: 1; transform: none; }
.ee-motion .ee-ep[data-reveal].is-in:hover, .ee-motion .ee-plan[data-reveal].is-in:hover,
.ee-motion .ee-step[data-reveal].is-in:hover, .ee-motion .ee-person[data-reveal].is-in:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ee-ep:hover, .ee-plan:hover, .ee-step:hover, .ee-person:hover, .ee-card:hover, .ee-btn:hover { transform: none; }
  .ee-ep:hover .face img, .ee-person:hover img, .ee-card:hover img, .ee-teacher:hover img { transform: none; }
}
