/*
Theme Name: RecoveryEdX
Theme URI: https://recoveryedx.com
Author: The Optimistic Website Company
Author URI: https://optimisticweb.co
Description: Custom learning platform for Young People in Recovery's EPIC curriculum — free & paid peer-recovery courses. Built as a native custom LMS (no LearnDash/WooCommerce), carrying RecoveryEdX's own real brand identity (logo + colors from the client's brand folder).
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: recoveryedx
*/

/* =========================================================================
   1. DESIGN TOKENS — the REAL RecoveryEdX brand (client's own logo files,
   Desktop/RecoveryEdX/): plum violet #78185D + steel blue #34709E + gold
   #F4B940, taken directly from the logo SVG. Typography moves to a modern
   edtech-SaaS pairing (Poppins display / Inter body) instead of the
   marketing site's editorial serif — this is a dashboard-style product,
   not a nonprofit brochure page.
   ========================================================================= */
:root {
  /* Real RecoveryEdX brand colors (from RecoveryEdX Main Logo.svg) */
  --violet:      #78185D;
  --violet-dk:   #500F3E;
  --violet-lt:   #A83D82;
  --violet-pale: #F8EDF4;

  --blue:      #34709E;
  --blue-dk:   #24587F;
  --blue-lt:   #6FA0C4;
  --blue-pale: #EAF3F9;

  --gold:      #F4B940;
  --gold-dk:   #B47F13;
  --gold-lt:   #FBD989;
  --gold-pale: #FDF3DE;

  --black: #000000;
  --white: #ffffff;

  /* Warm neutrals — cream canvas instead of stark white/grey, for the
     inviting, editorial feel of the redesign references (mariakillam.com,
     bionicturtle.com) rather than a cold SaaS-dashboard palette. */
  --ink:      #201A1D;
  --ink-2:    #2B2226;
  --ink-3:    #362A2F;
  --cream:    #FBF5EC;
  --cream-dk: #F3E9DA;
  --grey-50:  #FAF6F0;
  --grey-100: #F3ECE2;
  --grey-200: #E7DDCF;
  --grey-400: #BFB2A4;
  --grey-600: #7A6F65;
  --grey-800: #362E2A;

  /* Type — warm editorial pairing: Merriweather (serif display) + Inter (UI/body) */
  --font-display: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent:  "Caveat", cursive;

  /* Layout */
  --wrap: 1280px;
  --wrap-narrow: 880px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;

  --shadow-sm: 0 2px 12px rgba(24,20,40,.06);
  --shadow-md: 0 12px 32px rgba(24,20,40,.10);
  --shadow-lg: 0 26px 64px rgba(24,20,40,.18);

  --ease: cubic-bezier(.2,.7,.2,1);
}

/* =========================================================================
   2. RESET / BASE
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  font-size: clamp(16px, 0.3vw + 15px, 18px);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  color: var(--grey-800);
  background: var(--cream);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 600; font-family: var(--font-display); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }

.display { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }
.c-yellow, .c-gold { color: var(--gold-dk); }
.c-violet { color: var(--violet); }
.c-blue   { color: var(--blue); }
.c-white  { color: var(--white); }

.section { padding-block: clamp(48px, 7vw, 100px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  font-size: .78rem;
  color: var(--violet);
}
.eyebrow--light { color: var(--gold-lt); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.eyebrow--center { justify-content: center; }

/* Centered section header — the ONE correct way to center+space a heading
   block. Never hand-roll `margin-inline:auto Xrem` inline (that sets
   left:auto/right:Xrem, NOT centering — it was the recurring "leaning
   right" bug). Always reach for this class instead. */
.section-head { text-align: center; max-width: 64ch; margin: 0 auto 2.5rem; }
.section-head--tight { margin-bottom: 1.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-top: .5rem; }
.section-head p { color: var(--grey-600); margin-top: .6rem; }
.section-head--dark p { color: rgba(255,255,255,.65); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* =========================================================================
   3. BUTTONS — modern SaaS: rounded-pill, sentence case, medium weight
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: .9rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:disabled, .btn.is-static { cursor: default; opacity: .6; transform: none !important; box-shadow: none !important; }

.btn--violet { background: var(--violet); color: #fff; }
.btn--violet:hover { background: var(--violet-lt); box-shadow: 0 14px 30px rgba(120,24,93,.32); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-lt); box-shadow: 0 14px 30px rgba(52,112,158,.32); }
.btn--gold { background: var(--gold); color: #3a2705; }
.btn--gold:hover { background: var(--gold-lt); box-shadow: 0 14px 30px rgba(244,185,64,.4); }
.btn--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.14); }
.btn--outline { background: transparent; color: var(--violet); border-color: var(--violet); }
.btn--outline:hover { background: var(--violet); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: .65rem 1.2rem; font-size: .82rem; }

/* =========================================================================
   4. HEADER
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--grey-200);
}
.site-header__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: .8rem;
}
.site-logo { display: flex; align-items: center; }
.site-logo img { height: 34px; width: auto; display: block; }
.site-logo.is-icon img { height: 38px; }

.primary-nav { display: flex; align-items: center; gap: 2rem; }
.primary-nav ul { display: flex; gap: 1.75rem; }
.primary-nav a { font-weight: 600; font-size: .92rem; color: var(--grey-800); transition: color .2s; }
.primary-nav a:hover { color: var(--violet); }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; }
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav { display: none; max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); border-top: 1px solid var(--grey-200); }
.mobile-nav.is-open { max-height: 70vh; overflow-y: auto; }
.mobile-nav nav { padding: 1rem var(--gutter) 1.5rem; }
.mobile-nav ul { display: grid; gap: .2rem; }
.mobile-nav a { display: block; padding: .8rem .2rem; font-weight: 600; font-size: 1rem; border-bottom: 1px solid var(--grey-100); }

@media (max-width: 860px) {
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: block; }
}

/* =========================================================================
   5. FOOTER
   ========================================================================= */
.site-footer { background: var(--ink); color: #fff; padding-block: clamp(40px,6vw,72px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 2.5rem; }
.footer-col h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold-lt); margin-bottom: 1rem; font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col a { color: rgba(255,255,255,.78); font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .9rem; margin-top: .9rem; max-width: 30ch; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem; font-size: .8rem; color: rgba(255,255,255,.5); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* =========================================================================
   6. HERO — modern split layout: copy + CTAs left, real photo + floating
   stat cards right (edtech-dashboard inspired).
   ========================================================================= */
.hero { position: relative; overflow: hidden; background: var(--grey-50); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4rem); align-items: center; padding-block: clamp(48px,7vw,88px); }
.hero--simple { padding-block: clamp(40px,6vw,64px); position: relative; z-index: 1; display: grid; gap: .6rem; }
.hero--simple h1 { font-size: clamp(2rem,4vw,2.8rem); color: var(--ink); }
.hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.6rem); color: var(--ink); margin-block: .9rem .8rem; }
.hero p.lede { font-size: 1.1rem; color: var(--grey-600); max-width: 52ch; }
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.6rem; }
.hero-stats { display: flex; gap: clamp(1.5rem,4vw,3rem); margin-top: 2.2rem; flex-wrap: wrap; }
.hero-stats strong { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; display: block; color: var(--violet); }
.hero-stats span { font-size: .78rem; color: var(--grey-600); }

.hero__media { position: relative; }
.hero__photo { border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/5; box-shadow: var(--shadow-lg); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__float { position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1rem 1.2rem; display: flex; align-items: center; gap: .8rem; }
.hero__float--stat { left: -20px; bottom: 10%; }
.hero__float--rate { right: -16px; top: 12%; }
.hero__float-icon { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.hero__float strong { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.hero__float span { font-size: .74rem; color: var(--grey-600); }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 380px; margin-inline: auto; }
  .hero__float { display: none; }
}

/* =========================================================================
   7. COURSE CATALOG
   ========================================================================= */
.catalog-toolbar { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.pill-filter { padding: .6rem 1.2rem; border-radius: 999px; border: 2px solid var(--grey-200); font-weight: 600; font-size: .85rem; color: var(--grey-600); transition: all .2s; }
.pill-filter:hover { border-color: var(--violet-lt); color: var(--violet); }
.pill-filter.is-active { border-color: var(--violet); color: #fff; background: var(--violet); }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.75rem; }
.course-card { display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform .28s var(--ease), box-shadow .28s var(--ease); border: 1px solid var(--grey-200); }
.course-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -12px rgba(120,24,93,.28); }
.course-card__media { aspect-ratio: 16/10; position: relative; display: flex; align-items: center; justify-content: center; padding: 1rem; overflow: hidden; }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .4s var(--ease); }
.course-card:hover .course-card__media img { transform: scale(1.06); }
.course-card__media::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(200deg, transparent 45%, rgba(18,18,24,.55) 100%); }
.course-card__media-fallback { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; text-align: center; position: relative; z-index: 1; }
.badge { position: absolute; top: .8rem; left: .8rem; z-index: 2; padding: .32rem .75rem; border-radius: 999px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; max-width: calc(100% - 1.6rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge--free { background: var(--gold); color: #3a2705; }
.badge--paid { background: #fff; color: var(--blue-dk); }
.badge--sub { background: var(--violet); color: #fff; }
.course-card__body { padding: 1.25rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.course-card__cat { display: inline-flex; align-self: flex-start; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--violet); background: var(--violet-pale); padding: .22rem .6rem; border-radius: 999px; }
.course-card__title { font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; letter-spacing: 0; line-height: 1.25; }
.course-card__meta { font-size: .84rem; color: var(--grey-600); display: flex; gap: .9rem; flex-wrap: wrap; margin-top: auto; }
.course-card__price { font-weight: 700; color: var(--ink); }
.course-card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: .4rem; }
.course-card__progress { height: 5px; border-radius: 999px; background: var(--grey-200); overflow: hidden; margin-top: .2rem; }
.course-card__progress-bar { height: 100%; background: var(--blue); border-radius: inherit; }

/* Category color mapping — pastel chip per taxonomy term (cycled by nth-child in markup via data attr) */
.course-card__cat[data-cat="ceu"] { color: var(--blue-dk); background: var(--blue-pale); }
.course-card__cat[data-cat="ypr"] { color: var(--violet); background: var(--violet-pale); }
.course-card__cat[data-cat="mfie"], .course-card__cat[data-cat="my-future-is-epic"] { color: var(--gold-dk); background: var(--gold-pale); }

/* =========================================================================
   8. COURSE DETAIL
   ========================================================================= */
.course-hero { background: linear-gradient(150deg, var(--ink) 0%, var(--violet-dk) 140%); color: #fff; }
.course-hero__grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; padding-block: clamp(48px,7vw,88px); align-items: start; }
.course-hero__cat { display: inline-block; background: rgba(244,185,64,.16); color: var(--gold-lt); padding: .32rem .85rem; border-radius: 999px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1.1rem; }
.course-hero h1 { font-size: clamp(2rem,4vw,3rem); margin-bottom: .8rem; }
.course-hero p.lede { color: rgba(255,255,255,.78); max-width: 56ch; }
.enroll-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 1.7rem; box-shadow: var(--shadow-lg); display: grid; gap: 1.1rem; }
.enroll-card__price { font-family: var(--font-display); font-weight: 800; font-size: 2.2rem; color: var(--violet); }
.enroll-card__price small { font-family: var(--font-body); font-size: .55em; font-weight: 600; color: var(--grey-600); text-transform: none; }
.enroll-card ul { display: grid; gap: .55rem; font-size: .9rem; }
.enroll-card li { display: flex; gap: .5rem; align-items: flex-start; }
.enroll-card li::before { content: "✓"; color: var(--blue); font-weight: 800; }

.curriculum { display: grid; gap: .7rem; }
.curr-item { border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 1rem 1.2rem; display: flex; align-items: center; gap: .9rem; transition: border-color .2s; }
.curr-item:not(.is-locked):hover { border-color: var(--violet-lt); }
.curr-item__num { width: 32px; height: 32px; border-radius: 10px; background: var(--violet-pale); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .82rem; color: var(--violet); flex-shrink: 0; }
.curr-item__title { font-weight: 600; flex: 1; }
.curr-item__done { color: var(--blue); font-weight: 700; font-size: .8rem; }
.curr-item.is-locked { opacity: .55; }

/* =========================================================================
   9. LESSON PLAYER
   ========================================================================= */
.player-shell { display: grid; grid-template-columns: 1fr 320px; min-height: 70vh; }
.player-main { padding: clamp(24px,4vw,48px); }
.player-video { aspect-ratio: 16/9; background: var(--ink); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 1.5rem; }
.player-video iframe, .player-video video { width: 100%; height: 100%; border: 0; }
.player-content { max-width: 70ch; line-height: 1.7; }
.player-content p { margin-bottom: 1rem; }
.player-nav { display: flex; justify-content: space-between; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--grey-200); gap: 1rem; }
.player-nav .btn { white-space: normal; text-align: center; }
.player-sidebar { background: var(--grey-50); padding: clamp(20px,3vw,32px) 1.5rem; border-left: 1px solid var(--grey-200); }
.player-sidebar h4 { font-size: .95rem; margin-bottom: 1rem; }
.player-lesson-list { display: grid; gap: .35rem; }
.player-lesson-list a { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: var(--radius-sm); font-size: .86rem; font-weight: 600; color: var(--grey-800); }
.player-lesson-list a.is-current { background: var(--violet); color: #fff; }
.player-lesson-list a.is-done::before { content: "✓"; color: var(--blue); font-weight: 800; }
.player-lesson-list a.is-current.is-done::before { color: #fff; }
.player-lesson-list a:not(.is-done)::before { content: "○"; color: var(--grey-400); }
.player-progress { height: 6px; border-radius: 999px; background: var(--grey-200); overflow: hidden; margin-bottom: 1rem; }
.player-progress__bar { height: 100%; background: linear-gradient(90deg, var(--violet), var(--blue)); border-radius: inherit; transition: width .4s var(--ease); }
@media (max-width: 900px) { .player-shell { grid-template-columns: 1fr; } .player-sidebar { border-left: none; border-top: 1px solid var(--grey-200); } }

/* =========================================================================
   10. MY LEARNING DASHBOARD — bento cards + progress ring
   ========================================================================= */
.dash-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 2rem; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 1.5rem; }
.dash-card { border: 1px solid var(--grey-200); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; gap: 1.1rem; align-items: center; box-shadow: var(--shadow-sm); }
.dash-card__title { font-size: 1.08rem; font-weight: 600; margin-bottom: .3rem; }
.dash-card__body { flex: 1; display: grid; gap: .6rem; min-width: 0; }
.dash-empty { text-align: center; padding: 4rem 1rem; color: var(--grey-600); }

.progress-ring { position: relative; width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.progress-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--violet) calc(var(--pct,0) * 1%), var(--grey-200) 0); }
.progress-ring::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; }
.progress-ring span { position: relative; z-index: 1; font-size: .78rem; font-weight: 800; color: var(--violet); }

/* Welcome banner */
.dash-welcome { background: linear-gradient(135deg, var(--violet-dk), var(--violet)); border-radius: var(--radius-xl); padding: clamp(1.6rem,3vw,2.4rem) clamp(1.6rem,3vw,2.6rem); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; position: relative; overflow: hidden; }
.dash-welcome h1 { font-size: clamp(1.6rem,3vw,2.1rem); position: relative; z-index: 1; }
.dash-welcome p { color: rgba(255,255,255,.78); margin-top: .3rem; position: relative; z-index: 1; }

/* KPI stat row */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1.25rem; margin-bottom: 2.25rem; }
.kpi-card { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow-sm); }
.kpi-card__ic { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.kpi-card__num { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: var(--ink); line-height: 1; }
.kpi-card__lbl { font-size: .78rem; color: var(--grey-600); margin-top: .2rem; }

/* Horizontal "continue learning" cards */
.learn-grid { display: grid; gap: 1.25rem; }
.learn-card { display: grid; grid-template-columns: 160px 1fr auto; gap: 1.5rem; align-items: center; background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-lg); padding: 1rem; box-shadow: var(--shadow-sm); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.learn-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.learn-card__media { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; }
.learn-card__media img { width: 100%; height: 100%; object-fit: cover; }
.learn-card__cat { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--violet); background: var(--violet-pale); padding: .2rem .55rem; border-radius: 999px; align-self: flex-start; }
.learn-card__title { font-size: 1.1rem; font-weight: 600; margin: .5rem 0 .7rem; }
.learn-card__progress-row { display: flex; align-items: center; gap: .7rem; }
.learn-card__progress-row .player-progress { flex: 1; margin-bottom: 0; }
.learn-card__pct { font-size: .78rem; font-weight: 700; color: var(--violet); white-space: nowrap; }
.learn-card__actions { display: flex; flex-direction: column; gap: .5rem; }
@media (max-width: 640px) { .learn-card { grid-template-columns: 90px 1fr; } .learn-card__actions { grid-column: 1 / 3; flex-direction: row; } }

/* =========================================================================
   11. QUIZ
   ========================================================================= */
.quiz-q { border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 1rem; }
.quiz-q p.qtext { font-weight: 600; margin-bottom: .8rem; }
.quiz-opt { display: flex; align-items: center; gap: .6rem; padding: .6rem .3rem; border-radius: var(--radius-sm); cursor: pointer; }
.quiz-opt:hover { background: var(--grey-100); }
.quiz-result { padding: 1.2rem 1.4rem; border-radius: var(--radius); background: var(--grey-100); font-weight: 600; }
.quiz-result.is-pass { background: var(--blue-pale); color: var(--blue-dk); }
.quiz-result.is-fail { background: var(--violet-pale); color: var(--violet-dk); }

/* =========================================================================
   12. UTILITY BANDS
   ========================================================================= */
.band--dark { background: var(--ink); color: #fff; }
.band--violet { background: linear-gradient(135deg, var(--violet-dk), var(--violet)); color: #fff; }
.stat-row { display: flex; gap: clamp(1.5rem,4vw,3.5rem); flex-wrap: wrap; }
.stat-row strong { font-family: var(--font-display); font-weight: 800; font-size: 2rem; display: block; }
.stat-row span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; opacity: .75; }

/* Photo strip / social-proof band */
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.photo-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 700px) { .photo-strip { grid-template-columns: repeat(2, 1fr); } }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================================
   13. WARM EDITORIAL ACCENTS — dotted patterns, script flourish, "choose
   your path" audience cards. Ported from the redesign references
   (mariakillam.com's colour-path cards + circular icons; bionicturtle.com's
   dotted decorative grids near photography).
   ========================================================================= */
.script-accent { font-family: var(--font-accent); font-weight: 700; color: var(--violet); font-size: 1.4em; line-height: 1; display: inline-block; transform: rotate(-3deg); }

.dots-pattern { position: absolute; width: 140px; height: 90px; background-image: radial-gradient(currentColor 1.5px, transparent 1.5px); background-size: 14px 14px; color: var(--blue-lt); opacity: .5; pointer-events: none; z-index: 0; }
.dots-pattern--gold { color: var(--gold); }
.dots-pattern--violet { color: var(--violet-lt); }

.path-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.path-card { background: #fff; border-radius: var(--radius-lg); padding: 2rem 1.75rem; text-align: center; box-shadow: var(--shadow-sm); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.path-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.path-card__dot { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 1.1rem; }
.path-card__title { font-size: 1.15rem; font-weight: 700; margin-bottom: .6rem; }
.path-card__desc { color: var(--grey-600); font-size: .92rem; margin-bottom: 1rem; }
.path-card__link { font-weight: 700; font-size: .88rem; display: inline-flex; align-items: center; gap: .4em; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================================
   13. FLAGSHIP PROGRAM PAGE (My Future Is EPIC) — richer marketing layout
   reused from the Super Recovery program-detail page, adapted to this
   theme's tokens + reused for a real, enrollable course.
   ========================================================================= */
.prog-hero { position: relative; color: #fff; overflow: hidden; }
.prog-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.prog-hero__scrim { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(18,18,24,.94) 10%, rgba(52,112,158,.82) 100%); }
.prog-hero__inner { position: relative; padding-block: clamp(64px,9vw,110px); max-width: 720px; }
.prog-hero__logo { height: 64px; width: auto; background: #fff; padding: .7rem 1.1rem; border-radius: var(--radius); margin-bottom: 1.6rem; }
.prog-hero__tag { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-lt); margin-bottom: .8rem; }
.prog-hero h1 { font-size: clamp(2.2rem,4.6vw,3.6rem); }
.prog-hero p.lede { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-top: 1rem; max-width: 56ch; }
.prog-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

.prog-overview { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.prog-facts { display: grid; gap: 1rem; background: #fff; border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.pfact { display: grid; gap: .15rem; padding-block: .5rem; border-bottom: 1px solid var(--grey-100); }
.pfact:last-child { border-bottom: none; }
.pfact__k { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--grey-600); font-weight: 700; }
.pfact__v { font-weight: 600; color: var(--ink); }
@media (max-width: 860px) { .prog-overview { grid-template-columns: 1fr; } }

.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1.25rem; }
.module { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-lg); padding: 1.4rem; position: relative; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.module:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.module__num { position: absolute; top: 1.1rem; right: 1.2rem; font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--grey-200); }
.module__ic { font-size: 1.6rem; display: block; margin-bottom: .8rem; }
.module h4 { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.module h4 small { display: block; font-weight: 500; font-size: .78rem; color: var(--blue-dk); margin-top: .2rem; }

.peek-gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1rem; }
.peek-gallery a { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.peek-gallery a:first-child { grid-row: 1 / 3; }
.peek-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.peek-gallery a:hover img { transform: scale(1.04); }
@media (max-width: 780px) { .peek-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .peek-gallery a:first-child { grid-row: auto; grid-column: 1 / 3; } }

.outcomes-band { background: var(--ink); color: #fff; }
.outcomes-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2.5rem; align-items: end; margin-bottom: 2.5rem; }
.outcomes-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.outcomes-stats strong { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; display: block; color: var(--gold); }
.outcomes-stats span { font-size: .74rem; color: rgba(255,255,255,.6); }
.obar { display: grid; grid-template-columns: 200px 1fr auto; align-items: center; gap: 1rem; margin-bottom: .85rem; font-size: .88rem; }
.obar__label { font-weight: 600; line-height: 1.3; }
.obar__track { height: 8px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; }
.obar__fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--blue-lt)); width: var(--w, 0%); }
.obar__val { color: var(--gold-lt); font-weight: 700; font-size: .82rem; }
@media (max-width: 780px) { .outcomes-head { grid-template-columns: 1fr; } .obar { grid-template-columns: 120px 1fr auto; } }

.provide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1.75rem; }
.provide-col { text-align: center; }
.provide-col__ic { width: 56px; height: 56px; border-radius: 50%; background: var(--blue-pale); color: var(--blue-dk); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-inline: auto; margin-bottom: 1rem; }
.provide-col h4 { font-size: 1.02rem; margin-bottom: .4rem; }
.provide-col p { font-size: .88rem; color: var(--grey-600); }

/* Interactive "try a real question" demo widget */
.demo-quiz-section { position: relative; overflow: hidden; }
.demo-quiz { display: grid; grid-template-columns: .85fr 1.15fr; gap: 3rem; align-items: center; max-width: 1080px; margin-inline: auto; }
.demo-quiz__intro { display: grid; gap: .2rem; align-content: start; }
.demo-quiz__card { background: #fff; border-radius: var(--radius-xl); padding: clamp(1.6rem,3vw,2.4rem); box-shadow: var(--shadow-lg); border: 2px solid var(--gold-pale); position: relative; }
.demo-quiz__tag { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-dk); background: var(--gold-pale); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem; }
.demo-quiz__q { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; color: var(--ink); margin-bottom: 1.2rem; }
.demo-quiz__opts { display: grid; gap: .7rem; }
.demo-opt { text-align: left; padding: .9rem 1.1rem; border: 2px solid var(--grey-200); border-radius: var(--radius); font-size: .92rem; font-weight: 500; color: var(--grey-800); transition: all .18s var(--ease); }
.demo-opt:not(:disabled):hover { border-color: var(--violet-lt); background: var(--violet-pale); }
.demo-opt:disabled { cursor: default; opacity: .7; }
.demo-opt.is-correct { border-color: var(--blue); background: var(--blue-pale); color: var(--blue-dk); font-weight: 700; opacity: 1; }
.demo-opt.is-wrong { border-color: var(--violet); background: var(--violet-pale); color: var(--violet-dk); opacity: 1; }
.demo-quiz__result { margin-top: 1.2rem; display: grid; gap: 1rem; }
.demo-quiz__feedback { padding: 1rem 1.2rem; border-radius: var(--radius); font-weight: 600; font-size: .92rem; }
.demo-quiz__feedback.is-pass { background: var(--blue-pale); color: var(--blue-dk); }
.demo-quiz__feedback.is-fail { background: var(--gold-pale); color: var(--gold-dk); }
@media (max-width: 860px) { .demo-quiz { grid-template-columns: 1fr; } }

/* Decorative organic blob accents — the friendly, illustrative energy modern
   learning platforms (Khan Academy, Duolingo) lean on instead of flat panels. */
.blob { position: absolute; border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%; pointer-events: none; z-index: 0; opacity: .5; filter: blur(2px); }
.blob--gold { background: var(--gold); }
.blob--blue { background: var(--blue-lt); }
.blob--violet { background: var(--violet-lt); }

/* Featured-program band on the homepage */
.feature-band { background: linear-gradient(135deg, var(--blue-dk), var(--blue)); border-radius: var(--radius-xl); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow-lg); }
.feature-band__copy { padding: clamp(2rem,4vw,3.2rem); color: #fff; display: grid; align-content: center; gap: 1rem; }
.feature-band__logo { height: 46px; width: auto; background: #fff; padding: .5rem .8rem; border-radius: 10px; width: fit-content; }
.feature-band__media { position: relative; min-height: 260px; }
.feature-band__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
@media (max-width: 860px) { .feature-band { grid-template-columns: 1fr; } .feature-band__media { order: -1; min-height: 200px; } }

/* =========================================================================
   14. EPIC-FIRST PLATFORM — conversion homepage, video loops, modals, demo
   ========================================================================= */
[hidden] { display: none !important; }
.btn--lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.link-quiet { font-weight: 600; font-size: .9rem; color: var(--grey-800); transition: color .2s; background: none; border: 0; padding: 0; cursor: pointer; }
.link-quiet:hover { color: var(--violet); }
.eyebrow--gold { color: var(--gold); }
.c-gold { color: var(--gold-dk); }
.hero-epic .c-gold, .outcomes-band .c-gold, .final-cta .c-gold, .prog-hero .c-gold, .epic-hero .c-gold { color: var(--gold); }
.vid { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--ink-2); }
body.has-modal { overflow: hidden; }

.pill { display: inline-flex; align-items: center; gap: .55rem; font-size: .8rem; font-weight: 700; letter-spacing: .02em; padding: .45rem .95rem; border-radius: 999px; background: var(--violet-pale); color: var(--violet); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(120,24,93,.15); }
.pill--glass { background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.28); }
.pill--glass .pill__dot { background: var(--gold); box-shadow: 0 0 0 4px rgba(244,185,64,.25); }

.header-actions__secondary { white-space: nowrap; }
@media (max-width: 640px) { .header-actions__secondary { display: none; } .header-actions .btn { padding: .6rem 1rem; font-size: .78rem; } }
.mobile-nav__cta { display: grid; gap: .6rem; margin-top: 1.2rem; }

/* ---- Hero (video background) ---- */
.hero-epic { position: relative; color: #fff; background: var(--ink); overflow: hidden; display: flex; align-items: center; min-height: clamp(560px, 82vh, 760px); }
.hero-epic__video { position: absolute; inset: 0; }
.hero-epic__scrim { position: absolute; inset: 0; background: linear-gradient(95deg, rgba(48,10,38,.95) 0%, rgba(72,14,57,.84) 40%, rgba(72,14,57,.28) 78%, rgba(72,14,57,.12) 100%), linear-gradient(0deg, rgba(20,10,24,.55) 0%, rgba(20,10,24,0) 40%); }
.hero-epic__inner { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 110px); }
.hero-epic__copy { max-width: 640px; display: grid; gap: 1.2rem; justify-items: start; }
.hero-epic h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.08; color: #fff; }
.hero-epic .lede { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.86); max-width: 54ch; }
.hero-epic__cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: .4rem; }
.hero-epic__chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .6rem; }
.hero-epic__chips li { font-size: .84rem; padding: .4rem .85rem; border-radius: 999px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(6px); color: rgba(255,255,255,.9); }
.hero-epic__chips strong { color: var(--gold); font-weight: 800; }
@media (max-width: 700px) { .hero-epic { min-height: 600px; } .hero-epic__scrim { background: linear-gradient(0deg, rgba(48,10,38,.94) 0%, rgba(72,14,57,.78) 55%, rgba(72,14,57,.45) 100%); } }

/* ---- Proof bar ---- */
.proof { background: #fff; border-bottom: 1px solid var(--grey-200); padding-block: clamp(28px, 4vw, 44px) 14px; }
.proof__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.proof__item { display: grid; gap: .25rem; }
.proof__item strong { font-family: var(--font-display); font-weight: 900; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--violet); line-height: 1; }
.proof__item span { font-size: .84rem; color: var(--grey-600); max-width: 24ch; }
.proof__note { font-size: .74rem; color: var(--grey-400); margin-top: 1.1rem; }
@media (max-width: 760px) { .proof__row { grid-template-columns: 1fr 1fr; } }

/* ---- How it works ---- */
.steps-section { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.step { background: #fff; border-radius: var(--radius-lg); padding: 1rem 1rem 1.6rem; box-shadow: var(--shadow-sm); }
.step__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.2rem; }
.step__video { position: absolute; inset: 0; }
.step__num { position: absolute; left: .8rem; top: .8rem; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: #3a2705; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.step h3 { font-size: 1.15rem; margin: 0 .5rem .5rem; }
.step p { font-size: .94rem; color: var(--grey-600); margin: 0 .5rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---- Video card (poster + play) ---- */
.vcard { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--ink); padding: 0; cursor: pointer; }
.vcard picture { display: block; height: 100%; }
.vcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.vcard:hover .vcard__img { transform: scale(1.04); }
.vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,10,24,.5), rgba(20,10,24,0) 55%); }
.vcard__play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--gold); color: #3a2705; font-size: 1.6rem; padding-left: 5px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 0 rgba(244,185,64,.6); animation: pulse 2.4s infinite; }
.vcard__label { position: absolute; z-index: 2; left: 1.1rem; bottom: 1rem; font-size: .8rem; font-weight: 700; color: #fff; background: rgba(20,10,24,.55); padding: .35rem .8rem; border-radius: 999px; backdrop-filter: blur(6px); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(244,185,64,.55); } 70% { box-shadow: 0 0 0 22px rgba(244,185,64,0); } 100% { box-shadow: 0 0 0 0 rgba(244,185,64,0); } }
@media (prefers-reduced-motion: reduce) { .vcard__play { animation: none; } }

/* ---- See it / try it ---- */
.seetry { position: relative; overflow: hidden; background: var(--cream-dk); }
.seetry__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.seetry__try { display: grid; gap: 1rem; align-content: center; }
.seetry__try h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.seetry__try > p { color: var(--grey-600); }
@media (max-width: 900px) { .seetry__grid { grid-template-columns: 1fr; } }

/* ---- What's inside ---- */
.inside { background: #fff; }
.lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.lesson-tile { position: relative; background: var(--cream); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 1.3rem 1.2rem 1.2rem; display: grid; gap: .5rem; align-content: start; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.lesson-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--violet-lt); }
.lesson-tile__num { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; color: var(--violet-lt); line-height: 1; }
.lesson-tile h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.lesson-tile__meta { font-size: .78rem; font-weight: 600; color: var(--blue-dk); }
.inside__cta { text-align: center; margin-top: 2.2rem; }

/* ---- Mosaic ---- */
.mosaic-section { background: linear-gradient(160deg, #3a0e2e 0%, var(--violet-dk) 55%, #2b0a22 100%); }
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 240px); gap: 1rem; }
.mosaic__tile { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--ink-2); }
.mosaic__tile picture { position: absolute; inset: 0; display: block; }
.mosaic__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mosaic__tag { position: absolute; left: .8rem; bottom: .8rem; font-size: .74rem; font-weight: 700; color: #fff; background: rgba(20,10,24,.6); padding: .3rem .7rem; border-radius: 999px; backdrop-filter: blur(6px); }
.mosaic__tile--a { grid-column: 1 / 3; grid-row: 1 / 3; }
.mosaic__tile--b { grid-column: 3; grid-row: 1; }
.mosaic__tile--c { grid-column: 4; grid-row: 1; }
.mosaic__tile--d { grid-column: 3; grid-row: 2; }
.mosaic__tile--e { grid-column: 4; grid-row: 2; }
@media (max-width: 760px) { .mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } .mosaic__tile--a { grid-column: 1 / 3; grid-row: auto; height: 220px; } .mosaic__tile--b, .mosaic__tile--c, .mosaic__tile--d, .mosaic__tile--e { grid-column: auto; grid-row: auto; } }

/* ---- Outcomes (shared partial) ---- */
.outcomes-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-top: .5rem; }
.outcomes-head p { color: rgba(255,255,255,.65); margin-top: .6rem; }
.outcomes-note { margin-top: 1.5rem; font-size: .82rem; color: rgba(255,255,255,.5); }

/* ---- Groups ---- */
.groups { background: #fff; }
.groups__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.groups__media { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg); }
.groups__video { position: absolute; inset: 0; }
.groups__copy { display: grid; gap: 1rem; }
.groups__copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.groups__copy > p { color: var(--grey-600); }
.groups__list { display: grid; gap: 1rem; margin-top: .4rem; }
.groups__list li { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; }
.groups__ic { width: 44px; height: 44px; border-radius: 50%; background: var(--blue-pale); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.groups__list strong { display: block; font-size: .98rem; }
.groups__list span { font-size: .88rem; color: var(--grey-600); }
.groups__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }
@media (max-width: 900px) { .groups__grid { grid-template-columns: 1fr; } .groups__media { aspect-ratio: 16 / 10; } }

/* ---- Pricing ---- */
.pricing { position: relative; overflow: hidden; background: var(--cream); }
.pricing__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.pricing__copy { display: grid; gap: 1rem; }
.pricing__copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.pricing__copy > p { color: var(--grey-600); max-width: 52ch; }
.checklist { display: grid; gap: .6rem; margin-top: .4rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; font-weight: 600; }
.checklist li::before { content: "\2713"; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .8rem; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.price-card { background: #fff; border-radius: var(--radius-xl); padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-lg); display: grid; gap: .9rem; border-top: 6px solid var(--gold); }
.price-card__tag { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--violet); }
.price-card__price { font-family: var(--font-display); font-weight: 900; font-size: 3.4rem; line-height: 1; color: var(--ink); }
.price-card__price small { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--grey-600); margin-left: .3rem; }
.price-card__sub { color: var(--grey-600); font-size: .92rem; margin-top: -.3rem; }
.price-card__fine { font-size: .82rem; color: var(--grey-600); text-align: center; }
.price-card__fine a { color: var(--violet); font-weight: 600; text-decoration: underline; }
@media (max-width: 900px) { .pricing__grid { grid-template-columns: 1fr; } }

/* ---- FAQ ---- */
.faq { background: #fff; }
.faq__list { display: grid; gap: .8rem; }
.faq__item { background: var(--cream); border: 1px solid var(--grey-200); border-radius: var(--radius); overflow: hidden; }
.faq__item summary { cursor: pointer; list-style: none; padding: 1.15rem 3.2rem 1.15rem 1.4rem; font-weight: 700; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 1.3rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--violet); transition: transform .2s var(--ease); }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item[open] { background: #fff; border-color: var(--violet-lt); }
.faq__item p { padding: 0 1.4rem 1.3rem; color: var(--grey-600); }

/* ---- CEU band (deliberately quiet) ---- */
.ceu-band { background: var(--cream-dk); }
.ceu-band__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.ceu-band__copy { display: grid; gap: .8rem; justify-items: start; }
.ceu-band__copy h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); }
.ceu-band__copy > p { color: var(--grey-600); font-size: .95rem; }
.ceu-band__list { display: grid; gap: .5rem; }
.ceu-band__list a { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; background: #fff; border-radius: var(--radius-sm); padding: .8rem 1.1rem; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.ceu-band__list a:hover { box-shadow: var(--shadow-sm); transform: translateX(3px); }
.ceu-band__title { font-weight: 600; font-size: .92rem; line-height: 1.35; }
.ceu-band__price { font-weight: 700; font-size: .85rem; color: var(--violet); white-space: nowrap; }
@media (max-width: 860px) { .ceu-band__row { grid-template-columns: 1fr; } }

/* ---- Final CTA ---- */
.final-cta { position: relative; overflow: hidden; color: #fff; background: var(--violet-dk); text-align: center; }
.final-cta__video { position: absolute; inset: 0; }
.final-cta__scrim { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(48,10,38,.92), rgba(120,24,93,.78)); }
.final-cta__inner { position: relative; z-index: 1; padding-block: clamp(64px, 9vw, 120px); display: grid; gap: 1.1rem; justify-items: center; }
.final-cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; color: #fff; }
.final-cta p { color: rgba(255,255,255,.82); max-width: 52ch; font-size: 1.05rem; }
.final-cta__actions { display: flex; gap: .9rem; flex-wrap: wrap; justify-content: center; margin-top: .6rem; }

/* ---- Sticky conversion bar ---- */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: rgba(32,26,29,.96); color: #fff; backdrop-filter: blur(10px); box-shadow: 0 -8px 30px rgba(0,0,0,.25); }
.sticky-cta__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.sticky-cta__text { font-size: .9rem; display: flex; gap: .6rem; flex-wrap: wrap; align-items: baseline; }
.sticky-cta__text span { color: rgba(255,255,255,.7); }
.sticky-cta__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
@media (max-width: 640px) { .sticky-cta__text span { display: none; } }

/* ---- Modals ---- */
.vmodal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.vmodal__backdrop { position: absolute; inset: 0; background: rgba(20,10,24,.8); backdrop-filter: blur(4px); }
.vmodal__box { position: relative; background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); max-height: 94vh; overflow: auto; }
.vmodal__box--video { width: min(980px, 94vw); background: #000; padding: 0; overflow: hidden; }
.vmodal__frame { aspect-ratio: 16 / 9; }
.vmodal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.vmodal__close { position: absolute; z-index: 3; top: .6rem; right: .8rem; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1.5rem; line-height: 1; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.vmodal__box--auth { width: min(460px, 94vw); padding: clamp(1.6rem, 4vw, 2.2rem); display: grid; gap: .5rem; }
.vmodal__box--auth h2 { font-size: 1.6rem; }
.auth__sub { color: var(--grey-600); font-size: .92rem; margin-bottom: .6rem; }
.auth__field { display: grid; gap: .3rem; margin-bottom: .8rem; }
.auth__field span { font-size: .82rem; font-weight: 700; }
.auth__field small { font-weight: 500; color: var(--grey-600); }
.auth__field input { padding: .8rem 1rem; border: 2px solid var(--grey-200); border-radius: var(--radius-sm); background: #fff; }
.auth__field input:focus { outline: none; border-color: var(--violet); }
.auth__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.auth__error { background: var(--violet-pale); color: var(--violet-dk); font-weight: 600; font-size: .86rem; padding: .7rem .9rem; border-radius: var(--radius-sm); margin-bottom: .8rem; }
.auth__alt { text-align: center; font-size: .86rem; color: var(--grey-600); margin-top: .8rem; }
.auth__alt a { color: var(--violet); font-weight: 700; }

/* ---- Free demo page ---- */
.demo-hero { position: relative; overflow: hidden; background: var(--cream); }
.demo-hero__inner { position: relative; z-index: 1; padding-block: clamp(44px, 6vw, 80px) clamp(28px, 4vw, 44px); display: grid; gap: 1rem; justify-items: center; text-align: center; }
.demo-hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.demo-hero p { color: var(--grey-600); max-width: 54ch; font-size: 1.05rem; }
.demo-steps { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; margin-top: .6rem; }
.demo-steps li { display: flex; align-items: center; gap: .55rem; font-size: .88rem; font-weight: 700; color: var(--grey-600); padding: .45rem 1rem .45rem .5rem; border-radius: 999px; background: #fff; border: 2px solid var(--grey-200); }
.demo-steps li span { width: 26px; height: 26px; border-radius: 50%; background: var(--grey-100); display: flex; align-items: center; justify-content: center; font-size: .78rem; }
.demo-steps li.is-active { border-color: var(--violet); color: var(--violet); }
.demo-steps li.is-active span { background: var(--violet); color: #fff; }
.demo-steps li.is-done span { background: var(--blue); color: #fff; }
.demo-stage { background: var(--cream); padding-top: 0; }
.wrap--demo { max-width: 860px; }
.demo-panel { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); padding: clamp(1.2rem, 3vw, 2.2rem); }
.demo-video { aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.demo-video .vcard { height: 100%; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.demo-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.demo-hint { color: var(--grey-600); font-size: .92rem; text-align: center; margin: 1rem 0 0; }
.demo-nav { display: flex; justify-content: center; margin-top: 1.4rem; }
.demo-q-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .82rem; font-weight: 700; color: var(--grey-600); margin-bottom: 1rem; }
.demo-q-bar { flex: 1; max-width: 260px; height: 8px; border-radius: 999px; background: var(--grey-200); overflow: hidden; }
.demo-q-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--violet), var(--blue)); border-radius: inherit; transition: width .35s var(--ease); }
.demo-quiz__card--plain { box-shadow: none; border: 2px solid var(--gold-pale); }
#demoQFeedback { margin-top: 1rem; }
.demo-results { display: grid; gap: 1.6rem; }
.demo-results__top { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.demo-results__top h2 { font-size: 1.9rem; }
.demo-results__top p { color: var(--grey-600); }
.score-ring { position: relative; flex: none; width: 104px; height: 104px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.score-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--violet) calc(var(--pct, 0) * 1%), var(--grey-200) 0); }
.score-ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.score-ring span { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; color: var(--violet); }
.demo-results__list { display: grid; gap: .6rem; }
.demo-results__list li { display: grid; grid-template-columns: 30px 1fr; gap: .8rem; padding: .9rem 1rem; border-radius: var(--radius-sm); background: var(--cream); font-size: .92rem; }
.demo-results__list li.is-ok .demo-results__mark { background: var(--blue); }
.demo-results__list li.is-miss .demo-results__mark { background: var(--violet); }
.demo-results__mark { width: 26px; height: 26px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 800; margin-top: 2px; }
.demo-results__list strong { display: block; font-weight: 700; line-height: 1.35; }
.demo-results__list span { color: var(--grey-600); font-size: .84rem; }
.demo-results__cta { display: grid; gap: 1.1rem; background: linear-gradient(135deg, var(--violet-dk), var(--violet)); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem); }
.demo-results__cta h3 { font-size: 1.4rem; color: #fff; }
.demo-results__cta p { color: rgba(255,255,255,.82); }
.demo-results__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.demo-results__actions .btn--outline { border-color: rgba(255,255,255,.6); color: #fff; }
.demo-results__actions .btn--outline:hover { background: #fff; color: var(--violet); }
.demo-results__retry { text-align: center; font-size: .86rem; color: var(--grey-600); }
.demo-results__retry a { color: var(--violet); font-weight: 600; text-decoration: underline; }

/* =========================================================================
   15. MY FUTURE IS EPIC — course page
   ========================================================================= */
section[id] { scroll-margin-top: calc(var(--header-h, 80px) + 64px); }
.admin-bar .site-header { top: 32px; }
.admin-bar .jumpnav { top: calc(var(--header-h, 80px) + 32px); }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } .admin-bar .jumpnav { top: calc(var(--header-h, 80px) + 46px); } }

.epic-hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.epic-hero__video { position: absolute; inset: 0; }
.epic-hero__scrim { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(48,10,38,.95) 0%, rgba(72,14,57,.88) 48%, rgba(72,14,57,.55) 100%); }
.epic-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(48px, 7vw, 96px); }
.epic-hero__copy { display: grid; gap: 1.1rem; justify-items: start; }
.epic-hero__logo { height: 58px; width: auto; background: #fff; padding: .65rem 1rem; border-radius: var(--radius); }
.epic-hero__tag { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-lt); }
.epic-hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.1; color: #fff; }
.epic-hero .lede { color: rgba(255,255,255,.86); font-size: 1.08rem; max-width: 56ch; }
.epic-hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: .3rem; }
.epic-hero .btn--ghost { color: #fff; }
.epic-progress { display: grid; gap: .4rem; width: min(380px, 100%); font-size: .84rem; color: rgba(255,255,255,.8); }
.epic-progress .player-progress { background: rgba(255,255,255,.2); margin: 0; }
.epic-hero__media { align-self: center; }
.notice { padding: .7rem 1rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .9rem; }
.notice--ok { background: rgba(244,185,64,.18); color: var(--gold-lt); border: 1px solid rgba(244,185,64,.4); }
@media (max-width: 900px) { .epic-hero__grid { grid-template-columns: 1fr; } .epic-hero__media { order: -1; } }

.jumpnav { position: sticky; top: var(--header-h, 80px); z-index: 80; background: rgba(251,245,236,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--grey-200); }
.jumpnav__row { display: flex; gap: .4rem; overflow-x: auto; padding-block: .55rem; scrollbar-width: none; }
.jumpnav__row::-webkit-scrollbar { display: none; }
.jumpnav a { flex: none; font-size: .86rem; font-weight: 600; color: var(--grey-800); padding: .4rem .95rem; border-radius: 999px; transition: background .2s, color .2s; }
.jumpnav a:hover { background: var(--violet-pale); color: var(--violet); }

.prog-section { background: #fff; }
.prog-overview h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: .5rem 0 1rem; }
.prog-overview p { color: var(--grey-600); margin-top: 1rem; }
.prog-facts { background: var(--cream); box-shadow: none; border: 1px solid var(--grey-200); }
.pfact { border-bottom-color: var(--grey-200); }

.curriculum-section { background: var(--cream); }
.cgroups { display: grid; gap: .8rem; }
.cgroup { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.cgroup[open] { border-color: var(--violet-lt); box-shadow: var(--shadow-sm); }
.cgroup summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 44px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 3rem 1rem 1.1rem; position: relative; }
.cgroup summary::-webkit-details-marker { display: none; }
.cgroup summary::after { content: ""; position: absolute; right: 1.3rem; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.cgroup[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.cgroup__num { width: 44px; height: 44px; border-radius: 50%; background: var(--violet-pale); color: var(--violet); font-family: var(--font-display); font-weight: 900; font-size: .95rem; display: flex; align-items: center; justify-content: center; }
.cgroup.is-done .cgroup__num { background: var(--blue); color: #fff; }
.cgroup__title { font-weight: 700; line-height: 1.3; }
.cgroup__meta { font-size: .78rem; font-weight: 600; color: var(--grey-600); white-space: nowrap; }
.cgroup__steps { border-top: 1px solid var(--grey-100); padding: .4rem 1.1rem .8rem; display: grid; }
.cstep { display: flex; align-items: center; gap: .8rem; padding: .65rem .2rem; border-bottom: 1px dashed var(--grey-100); font-size: .92rem; }
.cstep:last-child { border-bottom: 0; }
.cstep__ic { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--grey-100); color: var(--grey-600); font-size: .68rem; display: flex; align-items: center; justify-content: center; }
.cstep.is-done .cstep__ic { background: var(--blue); color: #fff; }
.cstep__title { flex: 1; min-width: 0; font-weight: 600; }
a.cstep__title:hover { color: var(--violet); text-decoration: underline; }
.cstep__meta { font-size: .78rem; color: var(--grey-600); white-space: nowrap; }
.cstep__lock { font-size: .8rem; opacity: .55; }
.cstep__preview { flex: none; font-size: .74rem; font-weight: 800; padding: .3rem .75rem; border-radius: 999px; background: var(--gold); color: #3a2705; }
.cstep__preview:hover { background: var(--gold-lt); }
@media (max-width: 560px) { .cgroup summary { grid-template-columns: 40px 1fr; padding-right: 2.6rem; } .cgroup__meta { grid-column: 2; } }

.try-band { background: var(--cream-dk); }
.try-band__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.try-band__media { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.try-band__media picture { display: block; height: 100%; }
.try-band__img { width: 100%; height: 100%; object-fit: cover; }
.try-band__copy { display: grid; gap: 1rem; justify-items: start; }
.try-band__copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.try-band__copy p { color: var(--grey-600); max-width: 50ch; }
@media (max-width: 860px) { .try-band__grid { grid-template-columns: 1fr; } }

.peek-section { background: linear-gradient(160deg, #3a0e2e 0%, var(--violet-dk) 100%); }

.checkout-error { flex-basis: 100%; background: var(--violet-pale); color: var(--violet-dk); font-weight: 600; font-size: .86rem; padding: .7rem .9rem; border-radius: var(--radius-sm); margin-top: .8rem; }
.demo-results__mark svg { display: block; }

/* ---- CEU pages ---- */
.hero--catalog .hero__sub { color: var(--grey-600); font-size: 1.05rem; max-width: 56ch; }
.epic-banner { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; background: linear-gradient(120deg, var(--violet-dk), var(--violet)); color: #fff; border-radius: var(--radius-lg); padding: 1.1rem 1.4rem; margin-bottom: 2.2rem; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.epic-banner:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.epic-banner__logo { height: 42px; width: auto; background: #fff; padding: .4rem .7rem; border-radius: 10px; }
.epic-banner__copy { flex: 1; min-width: 220px; font-size: .95rem; color: rgba(255,255,255,.9); }
.epic-banner__copy strong { color: #fff; }

/* ---- Lesson player: grouped sidebar ---- */
.player-groups { display: grid; gap: .5rem; }
.pgroup { background: #fff; border: 1px solid var(--grey-200); border-radius: var(--radius-sm); overflow: hidden; }
.pgroup[open] { border-color: var(--violet-lt); }
.pgroup summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 26px 1fr auto; gap: .6rem; align-items: center; padding: .65rem .7rem; }
.pgroup summary::-webkit-details-marker { display: none; }
.pgroup__num { width: 26px; height: 26px; border-radius: 50%; background: var(--violet-pale); color: var(--violet); font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pgroup__title { font-size: .84rem; font-weight: 700; line-height: 1.3; }
.pgroup__count { font-size: .72rem; font-weight: 700; color: var(--grey-600); }
.pgroup .player-lesson-list { padding: 0 .4rem .5rem; }
.player-lesson-list a { font-size: .82rem; }

/* ==========================================================================
   16. Cart, trial badge, subscription box
   ========================================================================== */
.cart-link{position:relative;display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:50%;color:var(--ink);transition:background .2s}
.cart-link:hover{background:var(--violet-pale);color:var(--violet)}
.cart-link__n{position:absolute;top:2px;right:0;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--violet);color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center}
.cart-link__n[hidden]{display:none}
.cart-add.is-added{background:var(--violet-pale);border-color:var(--violet);color:var(--violet)}
.cart-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:2rem;align-items:start}
.cart-list{list-style:none;margin:0;padding:0;display:grid;gap:.9rem}
.cart-item{display:grid;grid-template-columns:84px minmax(0,1fr) auto auto;gap:1rem;align-items:center;background:#fff;border:1px solid var(--line,#E7DDCF);border-radius:18px;padding:.8rem 1rem .8rem .8rem}
.cart-item__img{width:84px;height:64px;border-radius:12px;object-fit:cover;background:var(--violet-pale)}
.cart-item__main{display:grid;gap:.15rem;min-width:0}
.cart-item__main a{font-weight:700;color:var(--ink);overflow-wrap:anywhere}
.cart-item__main span{font-size:.85rem;color:var(--muted,#7A6F65)}
.cart-item__price{font-size:1.1rem}
.cart-item__rm{background:none;border:0;color:var(--violet);font-weight:600;cursor:pointer;padding:.4rem .2rem;text-decoration:underline}
.cart-summary{background:#fff;border:1px solid var(--line,#E7DDCF);border-radius:22px;padding:1.5rem;position:sticky;top:calc(var(--header-h,80px) + 1rem);display:grid;gap:1rem}
.cart-summary h2{font-size:1.3rem;margin:0}
.cart-summary__row{display:flex;justify-content:space-between;font-size:1.15rem}
.cart-summary__fine{font-size:.85rem;color:var(--muted,#7A6F65);margin:0}
.cart-summary__more{text-align:center;color:var(--violet);font-weight:600}
@media (max-width:820px){.cart-grid{grid-template-columns:1fr}.cart-summary{position:static}.cart-item{grid-template-columns:64px minmax(0,1fr) auto}.cart-item__img{width:64px;height:52px}.cart-item__rm{grid-column:2 / -1;justify-self:start}}
.price-card__trial{display:block;width:fit-content;align-self:flex-start;margin:0 0 .5rem;padding:.3rem .8rem;border-radius:999px;background:var(--gold);color:#3a2a00;font-weight:700;font-size:.85rem}
.sub-box{display:flex;gap:1rem;justify-content:space-between;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid var(--line,#E7DDCF);border-left:6px solid var(--violet);border-radius:18px;padding:1.1rem 1.3rem;margin-bottom:1.2rem}
.sub-box p{margin:.25rem 0 0;color:var(--muted,#7A6F65)}
.sub-box__state{margin-left:.6rem;padding:.15rem .6rem;border-radius:999px;font-size:.8rem;font-weight:700;background:var(--violet-pale);color:var(--violet)}
.sub-box__state--past_due{background:#FDE7E7;color:#9b1c1c}
.sub-box__state--canceled{background:#eee;color:#666}

/* ---- Create-account modal: split card ---- */
.vmodal__box--auth { width: min(900px, 94vw); padding: 0; display: block; overflow: hidden; }
.authbox { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); min-height: 520px; }
.authbox__aside { position: relative; overflow: hidden; background: #2a0b21; color: #fff; display: flex; align-items: flex-end; }
.authbox__aside picture, .authbox__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.authbox__aside::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(120,24,93,.25) 0%, rgba(32,10,26,.92) 100%); }
.authbox__asidecopy { position: relative; z-index: 2; padding: 1.8rem; display: grid; gap: .3rem; }
.authbox__asidecopy strong { font: 700 1.35rem var(--font-display); }
.authbox__asidecopy span { font-size: .95rem; color: rgba(255,255,255,.85); }
.authbox__form { padding: clamp(1.6rem, 4vw, 2.6rem); display: grid; align-content: center; gap: .4rem; }
.authbox__form h2 { font-size: 1.7rem; margin: 0 0 .2rem; }
.authbox .auth__field input { height: 50px; border-radius: 14px; background: var(--grey-50); border-color: transparent; }
.authbox .auth__field input:focus { background: #fff; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(120,24,93,.12); }
@media (max-width: 760px) { .authbox { grid-template-columns: 1fr; min-height: 0; } .authbox__aside { display: none; } }
