/* Astrid Test Prep & Tutoring — first-draft site styles
   Brand: yellow #F7D84C, purple #614091, orange ribbon / test-tube liquid */

@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("../fonts/nunito-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fredoka";
  src: url("../fonts/fredoka-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --yellow: #F7D84C;
  --yellow-deep: #E8C52A;
  --yellow-soft: #FFE97A;
  --purple: #614091;
  --purple-deep: #4A2C70;
  --purple-soft: #7B59B3;
  --purple-tint: #F3ECFA;
  --orange: #F1AE45;
  --orange-deep: #E08A2C;
  --tube-red: #C42A1A;
  --ink: #2A1B3D;
  --muted: #5C4E6E;
  --paper: #FFFDF5;
  --paper-2: #FFF8DC;
  --line: #E8D48A;
  --white: #FFFFFF;
  --wa: #25D366;
  --wa-deep: #1DA851;
  --danger: #A61B1B;
  --ok: #1F7A4D;
  --shadow: 0 8px 24px rgba(42, 27, 61, 0.1);
  --radius: 18px;
  --header-h: 4.25rem;
  --font: "Nunito", "Segoe UI", sans-serif;
  --display: "Poppins", "Nunito", sans-serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
a:hover { color: var(--purple-deep); }
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.2;
  color: var(--purple-deep);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 3.5vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.2rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--purple);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

/* Draft banner */
.draft-banner {
  background: var(--purple-deep);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  letter-spacing: 0.01em;
}
.draft-banner strong { color: var(--yellow); }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--yellow);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
.logo-link {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}
.logo-link:hover { opacity: 0.9; }
.logo-mark {
  height: 42px;
  width: auto;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--purple);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.9rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  min-height: 44px;
}
.nav-toggle:hover, .nav-toggle:focus-visible { background: var(--purple-deep); }
.site-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 3px solid var(--yellow);
  padding: 0.5rem 1rem 1rem;
  box-shadow: var(--shadow);
}
.site-nav.is-open { display: flex; }
.site-nav a {
  text-decoration: none;
  color: var(--purple-deep);
  font-weight: 700;
  padding: 0.7rem 0.6rem;
  border-radius: 10px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.site-nav a:hover,
.site-nav a:focus-visible { background: var(--purple-tint); color: var(--purple); }
.site-nav a[aria-current="page"] {
  background: var(--yellow);
  color: var(--purple-deep);
}
.site-nav a.nav-account {
  background: var(--purple);
  color: #fff;
  justify-content: center;
  margin-top: 0.25rem;
}
.site-nav a.nav-account:hover { background: var(--purple-deep); color: #fff; }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .header-inner { padding: 0.45rem 1.25rem; }
  .logo-mark { height: 48px; }
  .site-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0;
    gap: 0.15rem;
    background: transparent;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .site-nav a {
    padding: 0.4rem 0.55rem;
    font-size: 0.92rem;
    min-height: 40px;
  }
  .site-nav a.nav-account {
    margin: 0 0 0 0.35rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
  }
}

/* Layout helpers */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}
.section { padding: 3rem 0; }
.section.alt { background: var(--paper-2); }
.section.yellow { background: var(--yellow); }
.section.purple {
  background: var(--purple);
  color: #fff;
}
.section.purple h2, .section.purple h3 { color: var(--yellow); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.note {
  background: var(--purple-tint);
  border-left: 4px solid var(--purple);
  padding: 0.75rem 1rem;
  border-radius: 0 12px 12px 0;
  color: var(--purple-deep);
  font-size: 0.95rem;
}
.note.example {
  background: #FFF4CC;
  border-left-color: var(--orange-deep);
}
.kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 0.4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  min-height: 48px;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--purple-deep); color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--purple-deep); }
.btn-yellow:hover, .btn-yellow:focus-visible { background: var(--yellow-deep); color: var(--purple-deep); }
.btn-ghost {
  background: transparent;
  color: var(--purple-deep);
  border-color: var(--purple);
}
.btn-ghost:hover { background: var(--purple-tint); color: var(--purple-deep); }
.btn-wa { background: var(--wa); color: #083318; }
.btn-wa:hover { background: var(--wa-deep); color: #083318; }
.btn-danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn[disabled], .btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; align-items: center; }
.btn { white-space: nowrap; }
.btn-wa svg { width: 1.25rem; height: 1.25rem; }
.section.purple .btn-ghost:hover,
.section.purple .btn-ghost:focus-visible {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* Hero */
.hero {
  position: relative;
  background: var(--yellow);
  overflow: hidden;
  padding: 2rem 0 2.5rem;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}
.hero-logo {
  width: min(100%, 420px);
  margin: 0 0 1.1rem;
}
.hero-headline {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 6.5vw, 3.15rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 1.1rem;
}
.hero-headline .white { color: var(--white); }
.hero-intro { font-weight: 700; color: var(--purple-deep); margin-bottom: 0.7rem; }
.subject-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
}
.subject-list li {
  position: relative;
  padding: 0.15rem 0 0.15rem 1.3rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple-deep);
  font-size: 0.98rem;
}
.subject-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--purple);
}
.subject-list .sub {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 700;
  font-size: 0.95rem;
  padding-top: 0.35rem;
}
.subject-list .sub::before { display: none; padding: 0; }

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.hw-badge {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 0 rgba(74, 44, 112, 0.18);
  flex: 0 0 auto;
}
.hw-badge .squiggle {
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  font-size: 1.1rem;
}
.hw-badge .badge-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  line-height: 1.15;
  text-transform: uppercase;
  margin: 0.35rem 0 0.45rem;
  padding: 0 0.8rem;
}
.hw-badge .ribbon {
  background: var(--orange);
  color: var(--purple-deep);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.95rem;
  padding: 0.18rem 1.6rem;
  width: 100%;
  transform: rotate(-2deg);
}
.flyer-frame {
  width: min(100%, 320px);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 4px solid #fff;
  transform: rotate(2deg);
}
.flyer-frame img { width: 100%; }

@media (min-width: 800px) {
  .hero { padding: 2.5rem 0 3.2rem; }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 2.5rem;
  }
  .hero-logo { width: min(100%, 500px); }
  .hw-badge { width: 230px; height: 230px; }
}

/* Stationery decorations */
.deco {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}
.deco svg { display: block; }
.deco-clip-tl { top: 12px; left: 8px; width: 36px; }
.deco-pen { top: auto; bottom: 22%; left: -28px; width: 90px; transform: rotate(-28deg); }
.deco-pencil { top: 18px; right: 24px; width: 70px; transform: rotate(18deg); }
.deco-note { bottom: 16%; right: 6px; width: 70px; transform: rotate(12deg); }
.deco-ruler { bottom: -8px; right: 12%; width: 180px; transform: rotate(-8deg); opacity: 0.7; }
@media (max-width: 699px) {
  .deco-pen, .deco-ruler, .deco-note { display: none; }
}

/* Cards / how-it-works */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.3rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(97, 64, 145, 0.08);
}
.card .step-num {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--purple-deep);
  font-family: var(--display);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}
.icon-pill {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  background: var(--purple-tint);
  color: var(--purple);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

/* Founder */
.founder {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
.founder-photo {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid var(--yellow);
  max-width: 420px;
}
.founder-photo img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 20%; }
.bio-edit {
  background: #FFF4CC;
  border: 1px dashed var(--orange-deep);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  color: var(--purple-deep);
  margin: 1rem 0;
}
.bio-edit strong { display: block; margin-bottom: 0.2rem; }
@media (min-width: 800px) {
  .founder { grid-template-columns: 0.85fr 1.15fr; gap: 2.5rem; }
  .founder.reverse { grid-template-columns: 1.15fr 0.85fr; }
  .founder.reverse .founder-photo { order: 2; }
}

/* Footer */
.site-footer {
  background: var(--purple-deep);
  color: #f3e9ff;
  padding: 2.4rem 0 5.5rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
.footer-brand {
  background: var(--yellow);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  display: inline-block;
  max-width: 280px;
}
.footer-brand img { width: 100%; }
.site-footer h3 { color: var(--yellow); font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.3rem 0; }
.footer-legal {
  margin-top: 1.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  color: #d7c6ec;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .site-footer { padding-bottom: 2.4rem; }
}

/* Floating WhatsApp */
.wa-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--wa);
  color: #083318;
  text-decoration: none;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.65rem 1rem 0.65rem 0.7rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  min-height: 52px;
}
.wa-float:hover, .wa-float:focus-visible { background: var(--wa-deep); color: #083318; }
.wa-float svg { width: 28px; height: 28px; display: block; }
.wa-float .wa-label { display: none; }
@media (min-width: 700px) {
  .wa-float .wa-label { display: inline; }
}

/* Forms */
form .field { margin-bottom: 1rem; }
label, .label {
  display: block;
  font-weight: 800;
  color: var(--purple-deep);
  margin-bottom: 0.3rem;
}
.hint { font-weight: 600; color: var(--muted); font-size: 0.88rem; }
input:not([type]),
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="date"],
input[type="search"],
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 3px solid var(--yellow);
  border-color: var(--purple);
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
}
.choices label {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.7rem;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.choices input { accent-color: var(--purple); width: 1.1rem; height: 1.1rem; }
.form-card { max-width: 680px; margin: 0 auto; }
.form-error {
  color: var(--danger);
  font-weight: 700;
  font-size: 0.92rem;
  display: none;
  margin: 0 0 1rem;
}
.form-error.is-visible { display: block; }
.thank-you { display: none; text-align: center; padding: 1rem 0 2rem; }
.thank-you.is-visible { display: block; }
.thank-you .big-tick {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--purple-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
}

/* Page intro */
.page-intro {
  background: var(--yellow);
  padding: 2rem 0 1.8rem;
  border-bottom: 6px solid var(--purple);
}
.page-intro h1 { margin-bottom: 0.4rem; }

/* Timetable */
.tt-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.timetable {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 6px;
}
.timetable th, .timetable td {
  text-align: center;
  padding: 0;
  font-weight: 700;
}
.timetable th {
  color: var(--purple-deep);
  padding: 0.4rem;
  font-family: var(--display);
}
.timetable .time {
  width: 5.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.slot {
  display: block;
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: var(--purple-deep);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid var(--line);
  padding: 0.4rem;
}
.slot:hover, .slot:focus-visible { border-color: var(--purple); background: var(--purple-tint); }
.slot.is-booked {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  cursor: default;
}
.slot.is-mine {
  background: var(--yellow);
  color: var(--purple-deep);
  border-color: var(--purple);
}
.slot.is-held {
  background: #efe8f6;
  color: var(--muted);
  border-style: dashed;
  cursor: not-allowed;
}
.legend { display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem; margin: 1rem 0; font-size: 0.9rem; font-weight: 700; }
.legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.swatch {
  width: 1rem; height: 1rem; border-radius: 4px; border: 2px solid var(--line); background: #fff; display: inline-block;
}
.swatch.booked { background: var(--purple); border-color: var(--purple); }
.swatch.mine { background: var(--yellow); border-color: var(--purple); }
.swatch.held { background: #efe8f6; border-style: dashed; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(42, 27, 61, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 80;
}
.modal.is-open { display: flex; }
.modal-card {
  background: var(--paper);
  border-radius: 20px;
  padding: 1.4rem;
  width: min(100%, 440px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  max-height: 90vh;
  overflow: auto;
}
.modal-card h2 { margin-top: 0; }

/* Homework */
.task-list { display: grid; gap: 0.9rem; }
.task {
  background: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.6rem;
  border-left: 6px solid var(--purple);
}
.task.is-done { opacity: 0.72; border-left-color: var(--ok); }
.task-top { display: flex; flex-wrap: wrap; gap: 0.4rem 0.8rem; align-items: center; }
.pill {
  display: inline-block;
  background: var(--purple-tint);
  color: var(--purple-deep);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.pill.example { background: #FFF0C2; }
.due { font-weight: 800; color: var(--purple); }
.task-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.task .upload-status { font-size: 0.9rem; font-weight: 700; color: var(--ok); }

/* Videos */
.video-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .video-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .video-grid { grid-template-columns: repeat(3, 1fr); } }
.video-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.video-thumb {
  background: linear-gradient(145deg, var(--purple) 0%, var(--purple-deep) 70%);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  position: relative;
}
.video-thumb .lock, .video-thumb .play {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.price-tag {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  background: var(--yellow);
  color: var(--purple-deep);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.85rem;
}
.video-card .body { padding: 1rem 1.05rem 1.15rem; flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.video-card h3 { margin: 0; font-size: 1.05rem; }
.video-card .meta { color: var(--muted); font-size: 0.9rem; font-weight: 700; margin: 0; }
.checkout-box {
  background: #fff;
  border: 2px dashed var(--purple);
  border-radius: 12px;
  padding: 0.9rem;
  margin: 0.8rem 0;
  font-size: 0.95rem;
}
.pay-logos { font-weight: 800; color: var(--purple-deep); }

/* Video player */
.player-page { background: #1a1224; color: #f7f2ff; padding: 1.2rem 0 3rem; }
.player-page h1, .player-page h2 { color: var(--yellow); }
.player-shell {
  position: relative;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  user-select: none;
  -webkit-user-select: none;
}
.player-stage {
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(247,216,76,0.25), transparent 40%),
    linear-gradient(160deg, #3a2460, #1a1224 55%, #4a2c70);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  color: #fff;
}
.player-stage .lesson-label { color: var(--yellow); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.8rem; }
.player-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #120c18;
  padding: 0.55rem 0.8rem;
  color: #fff;
}
.player-controls button {
  background: var(--yellow);
  color: var(--purple-deep);
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  padding: 0.35rem 0.8rem;
  min-height: 40px;
  cursor: pointer;
}
.progress {
  flex: 1;
  height: 8px;
  background: #3a2a4d;
  border-radius: 999px;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  width: 18%;
  background: var(--yellow);
}
.watermark {
  position: absolute;
  top: 20%;
  left: 10%;
  color: rgba(255,255,255,0.55);
  font-weight: 700;
  font-size: clamp(0.75rem, 2vw, 1rem);
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
  z-index: 2;
}
.honest-note {
  background: #2a1b3d;
  color: #f3e9ff;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Live lesson */
.live-layout {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .live-layout { grid-template-columns: 280px 1fr; align-items: start; }
}
.video-tiles { display: grid; gap: 0.7rem; }
.tile {
  background: #1a1224;
  color: #fff;
  border-radius: 16px;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
.tile .avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--purple-deep);
  font-weight: 800;
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.4rem;
  overflow: hidden;
}
.tile .avatar img { width: 100%; height: 100%; object-fit: cover; }
.tile .name { font-weight: 800; }
.tile .status { font-size: 0.82rem; color: #cbbbe0; }
.live-flag {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: #c42a1a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}
.board-wrap {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.7rem;
}
.board-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.55rem;
}
.board-tools button, .board-tools label {
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 10px;
  min-height: 40px;
  padding: 0.25rem 0.55rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}
.board-tools button.is-active { border-color: var(--purple); background: var(--purple-tint); }
.swatch-btn {
  width: 36px !important;
  height: 36px;
  min-height: 36px !important;
  padding: 0 !important;
  border-radius: 50% !important;
}
.board-frame {
  border: 2px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(97,64,145,0.05) 1px, transparent 1px),
    linear-gradient(rgba(97,64,145,0.05) 1px, transparent 1px),
    #fffcf3;
  background-size: 28px 28px;
  touch-action: none;
}
#board {
  display: block;
  width: 100%;
  height: auto;
  cursor: crosshair;
  touch-action: none;
}

/* Auth gate */
.gate {
  max-width: 28rem;
  margin: 0 auto;
  text-align: center;
}
.gate .card { text-align: left; }

/* Utilities */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.visually-hidden {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}
.player-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.player-shell .watermark { pointer-events: none; z-index: 2; }

/* Public pricing section */
.price-h {
  margin: 2rem 0 0.75rem;
  font-size: 1.15rem;
}
.price-sub {
  margin: 1.15rem 0 0.7rem;
  font-size: 1rem;
  color: var(--purple-deep);
}
.price-note { margin: 0.25rem 0 0.5rem; color: var(--muted); }
.price-grid { margin-bottom: 0.5rem; }
.price-card {
  text-align: center;
  padding-top: 1.15rem;
  padding-bottom: 1.2rem;
}
.price-band {
  margin: 0;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--purple);
}
.price-amount {
  margin: 0.35rem 0 0.15rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--purple-deep);
}
.price-card-wide {
  margin-top: 1.5rem;
  background: var(--purple);
  color: #fff;
  border: 0;
}
.price-card-wide .price-band { color: var(--yellow); }
.price-card-wide .price-amount { color: var(--yellow); }
.price-card-wide p { color: #f7f2ff; }
.price-card-wide .btn-ghost {
  border-color: #fff;
  color: #fff;
  margin-top: 0.4rem;
}
.price-card-wide .btn-ghost:hover,
.price-card-wide .btn-ghost:focus-visible {
  background: var(--yellow);
  color: var(--purple-deep);
  border-color: var(--yellow);
}
.price-perks {
  list-style: none;
  margin: 1.5rem 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.price-perks li {
  background: var(--white);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  border: 1px solid rgba(97, 64, 145, 0.12);
  font-weight: 700;
}
.price-perks li::before {
  content: "✓ ";
  color: var(--ok);
  font-weight: 800;
}
@media (min-width: 640px) {
  .price-perks { grid-template-columns: 1fr; }
}
