/* =====================================================================
   Academy — light, calm, mobile-first design system
   System fonts (SF Pro on Apple devices) so nothing extra downloads.
   One soft accent, pale category tints, generous white space.
   ===================================================================== */
:root {
  --brand: #5856D6;
  --accent: #FF9F0A;
  --ink: #1D1D1F;
  --surface: #F5F5F7;
  --bg: #FFFFFF;
  --muted: #6E6E73;
  --faint: #86868B;
  --line: #E5E5EA;
  --line-2: #D2D2D7;
  --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff);
  --brand-ink: color-mix(in srgb, var(--brand) 80%, #000);
  --ok: #1F8A47;
  --ok-bg: #E8F6ED;
  --err: #C9342B;
  --err-bg: #FDECEB;
  --warn-bg: #FFF5E0;
  --t1: #E8F6EF; --t1i: #1F8A55;   /* mint     */
  --t2: #EEEDFC; --t2i: #5856D6;   /* lavender */
  --t3: #E7F1FD; --t3i: #1C6ED6;   /* sky      */
  --t4: #FDEFE6; --t4i: #C2551B;   /* peach    */

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --wrap: 1160px;
  --gut: clamp(18px, 4vw, 32px);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .02);
  --sh-2: 0 2px 6px rgba(0, 0, 0, .04), 0 16px 40px -16px rgba(0, 0, 0, .14);
  --tabbar: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.55 var(--font); letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 8px; }
::selection { background: color-mix(in srgb, var(--brand) 22%, #fff); }
h1, h2, h3, h4 { margin: 0 0 .45em; font-weight: 700; line-height: 1.08; letter-spacing: -.028em; color: var(--ink); }
h1 { font-size: clamp(2.35rem, 6.2vw, 4.25rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.i { width: 1.1em; height: 1.1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.sec { padding-block: clamp(56px, 9vw, 112px); }
.sec-sm { padding-block: clamp(32px, 5vw, 56px); }
.gray { background: var(--surface); }
.sec-head { max-width: 680px; margin-bottom: clamp(24px, 4vw, 44px); }
.sec-head p, .lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.5; }
.sec-head p { margin: 0; }
.sec-head.center { margin-inline: auto; text-align: center; }
.row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: clamp(20px, 3vw, 32px); }
.row-head h2 { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 28px; } .mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.ok { color: var(--ok); }

/* ---------- Buttons (iOS pills) ---------- */
.btn {
  --b: var(--brand); --c: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 22px; border-radius: 999px; border: 0;
  background: var(--b); color: var(--c); font: 600 1rem/1 var(--font); letter-spacing: -.01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, filter .15s ease, background-color .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn:active { transform: scale(.97); }
.btn-soft { background: var(--brand-soft); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { background: var(--surface); filter: none; }
.btn-dark { --b: var(--ink); }
.btn-light { --b: #fff; --c: var(--ink); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.06rem; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); cursor: pointer; }
.link { display: inline-flex; gap: 4px; align-items: center; font-weight: 600; }

/* ---------- Header ---------- */
.announce { background: var(--brand-soft); color: var(--brand-ink); font-size: .9rem; font-weight: 500; text-align: center; padding: 9px var(--gut); }
.announce a { color: inherit; text-decoration: underline; }
.hdr { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .07); }
.hdr-in { display: flex; align-items: center; gap: 20px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.08rem; letter-spacing: -.02em; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo img { height: 30px; width: auto; }
.logo-mark { width: 30px; height: 30px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .95rem; font-weight: 700; }
.nav { display: flex; gap: 2px; margin: 0 auto; }
.nav a { color: var(--ink); opacity: .82; font-size: .94rem; font-weight: 500; padding: 7px 12px; border-radius: 999px; }
.nav a:hover { opacity: 1; background: var(--surface); text-decoration: none; }
.nav a[aria-current="page"] { opacity: 1; background: var(--surface); }
.hdr-cta { display: flex; gap: 8px; align-items: center; }
.hdr-cta .txt { color: var(--ink); font-size: .94rem; font-weight: 500; padding: 7px 10px; }
@media (max-width: 860px) {
  .nav, .hdr-cta .txt { display: none; }
  .hdr-in { justify-content: space-between; height: 54px; }
}

/* ---------- Mobile tab bar (app-like) ---------- */
.tabbar { display: none; }
@media (max-width: 860px) {
  :root { --tabbar: calc(62px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: var(--tabbar); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px);
    border-top: 1px solid rgba(0, 0, 0, .08);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); font-size: .7rem; font-weight: 600; letter-spacing: 0; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar .i { width: 24px; height: 24px; stroke-width: 1.8; }
  .tabbar a[aria-current="page"] { color: var(--brand); }
  body { padding-bottom: var(--tabbar); }
  .no-tabbar .tabbar { display: none; }
  .no-tabbar { --tabbar: 0px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--surface) 0%, #fff 100%); }
.hero::before { /* one soft glow, nothing else */
  content: ""; position: absolute; width: 720px; height: 720px; right: -180px; top: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 16%, transparent), transparent);
  pointer-events: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding-block: clamp(44px, 8vw, 104px); }
.hero h1 { max-width: 11ch; }
.hero .lead { max-width: 34ch; margin-bottom: 28px; }
.pill-note { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); font-size: .88rem; color: var(--ink); margin-bottom: 22px; }
.pill-note b { background: var(--brand); color: #fff; font-size: .75rem; padding: 3px 9px; border-radius: 999px; font-weight: 600; }
.pill-note:hover { text-decoration: none; box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.trust li { display: inline-flex; gap: 7px; align-items: center; }
.trust .i { color: var(--ok); }

/* Signature: a phone showing the lesson experience */
.phone-stage { display: grid; place-items: center; }
.phone {
  width: min(300px, 78vw); aspect-ratio: 9 / 19; border-radius: 46px; padding: 11px; background: #1D1D1F;
  box-shadow: 0 50px 80px -40px rgba(30, 30, 60, .45), 0 0 0 1px rgba(0, 0, 0, .1);
  animation: rise 1s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(32px) scale(.98); } }
.phone-scr { height: 100%; border-radius: 36px; background: #fff; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.phone-scr::before { content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 84px; height: 24px; border-radius: 20px; background: #1D1D1F; z-index: 2; }
.ph-video { aspect-ratio: 16 / 10; margin-top: 42px; background: linear-gradient(140deg, color-mix(in srgb, var(--brand) 85%, #000), color-mix(in srgb, var(--brand) 45%, #7cc4ff)); display: grid; place-items: center; position: relative; }
.ph-video span { width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--brand); }
.ph-video .i { width: 20px; height: 20px; margin-left: 3px; }
.ph-video::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 10px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #fff 38%, rgba(255, 255, 255, .35) 38%); }
.ph-body { padding: 14px 14px 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ph-t { font-weight: 700; font-size: .92rem; letter-spacing: -.02em; line-height: 1.2; }
.ph-m { font-size: .72rem; color: var(--muted); margin-top: -6px; }
.ph-prog { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.ph-prog i { display: block; height: 100%; width: 62%; background: var(--ok); border-radius: 6px; }
.ph-list { display: grid; gap: 6px; }
.ph-row { display: flex; gap: 9px; align-items: center; padding: 9px 10px; border-radius: 12px; background: var(--surface); font-size: .74rem; font-weight: 500; }
.ph-row .i { width: 15px; height: 15px; color: var(--ok); }
.ph-row.now { background: var(--brand-soft); color: var(--brand-ink); }
.ph-row.now .i { color: var(--brand); }
.ph-row.lock { color: var(--faint); }
.ph-row.lock .i { color: var(--faint); }
.ph-cert { margin-top: auto; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); font-size: .72rem; }
.ph-cert span { width: 30px; height: 30px; border-radius: 9px; background: var(--warn-bg); color: #B76E00; display: grid; place-items: center; }
.ph-cert .i { width: 16px; height: 16px; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 32px; }
  .hero h1 { max-width: 13ch; }
  .phone { width: 230px; border-radius: 38px; padding: 9px; }
  .phone-scr { border-radius: 30px; }
}

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cat { display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: var(--r-lg); background: var(--tint, var(--surface)); color: var(--ink); min-height: 170px; transition: transform .2s ease; }
.cat:hover { text-decoration: none; transform: translateY(-2px); }
.cat-ic { width: 44px; height: 44px; border-radius: 13px; background: #fff; display: grid; place-items: center; color: var(--tint-i, var(--brand)); box-shadow: var(--sh-1); }
.cat-ic .i { width: 22px; height: 22px; }
.cat strong { font-size: 1.08rem; letter-spacing: -.02em; line-height: 1.2; }
.cat span { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.cat em { font-style: normal; font-size: .85rem; font-weight: 600; color: var(--tint-i, var(--brand)); margin-top: auto; }
.tint-1 { --tint: var(--t1); --tint-i: var(--t1i); }
.tint-2 { --tint: var(--t2); --tint-i: var(--t2i); }
.tint-3 { --tint: var(--t3); --tint-i: var(--t3i); }
.tint-4 { --tint: var(--t4); --tint-i: var(--t4i); }
@media (max-width: 960px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cat { min-height: 150px; padding: 18px; } }

/* ---------- Course card ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid, .grid-2 { grid-template-columns: 1fr; } }
/* Mobile: swipeable rows */
@media (max-width: 640px) {
  .swipe { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gut) * -1); padding: 4px var(--gut) 12px; scrollbar-width: none; }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { scroll-snap-align: start; }
}

.cc { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); color: var(--ink); box-shadow: var(--sh-1), 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.cc:hover { text-decoration: none; box-shadow: var(--sh-2), 0 0 0 1px var(--line); transform: translateY(-2px); }
.cc-media { aspect-ratio: 16 / 9; background: var(--tint, var(--surface)); position: relative; overflow: hidden; }
.cc-media img { width: 100%; height: 100%; object-fit: cover; }
.cc-art { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 18px; }
.cc-art .i { width: 30px; height: 30px; color: var(--tint-i); }
.cc-art b { font-size: 1.35rem; line-height: 1.1; letter-spacing: -.03em; max-width: 13ch; color: color-mix(in srgb, var(--tint-i) 70%, #000); }
.cc-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cc-cat { font-size: .8rem; font-weight: 600; color: var(--tint-i, var(--muted)); }
.cc h3 { margin: 0; font-size: 1.08rem; }
.cc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .84rem; }
.cc-meta span { display: inline-flex; gap: 5px; align-items: center; }
.cc-meta .i { width: 15px; height: 15px; }
.cc-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong { font-size: 1.3rem; font-weight: 700; letter-spacing: -.03em; }
.price s { color: var(--faint); font-size: .9rem; }
.save { font-size: .76rem; font-weight: 600; color: var(--ok); background: var(--ok-bg); padding: 3px 8px; border-radius: 999px; }
.cc-go { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--ink); flex: none; }
.cc:hover .cc-go { background: var(--brand); color: #fff; }
.cc-go .i { width: 16px; height: 16px; }

/* ---------- Steps (true sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; background: #fff; border-radius: var(--r-lg); padding: 26px; box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; margin-bottom: 18px; }
.steps h3 { font-size: 1.25rem; margin-bottom: 6px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.tv-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
@media (max-width: 960px) { .tv-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tv-row { grid-auto-columns: 58%; } }
.tv { position: relative; border: 0; padding: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 9 / 14; background: #000; cursor: pointer; color: #fff; text-align: left; font: inherit; display: block; width: 100%; }
.tv img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .4s ease; }
.tv:hover img { transform: scale(1.03); }
.tv::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .7)); }
.tv-play { position: absolute; top: 14px; right: 14px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); display: grid; place-items: center; }
.tv-play .i { width: 16px; height: 16px; margin-left: 2px; }
.tv-cap { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; }
.tv-cap strong { display: block; font-size: .98rem; }
.tv-cap span { font-size: .82rem; opacity: .85; }
.tv iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; } }
.quote { margin: 0; background: #fff; border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1), 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 14px; }
.quote blockquote { margin: 0; font-size: 1rem; line-height: 1.55; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); font-weight: 700; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote figcaption strong { display: block; font-size: .95rem; }
.quote figcaption span { color: var(--muted); font-size: .85rem; }
.stars { color: var(--accent); display: flex; gap: 2px; }
.stars .i { width: 15px; height: 15px; fill: currentColor; stroke: none; }

/* ---------- FAQ (iOS grouped list) ---------- */
.faq { max-width: 820px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-1), 0 0 0 1px var(--line); overflow: hidden; }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 52px 18px 22px; position: relative; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 22px 20px; color: var(--muted); max-width: 68ch; }
.faq-c { margin-inline: auto; }

/* ---------- CTA ---------- */
.cta { border-radius: var(--r-xl); padding: clamp(32px, 6vw, 72px); background: var(--brand-soft); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta h2 { margin-bottom: 8px; }
.cta p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .cta { grid-template-columns: 1fr; text-align: left; } }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .9rem; font-weight: 500; border: 0; font-family: inherit; cursor: pointer; }
.chip:hover { text-decoration: none; background: var(--line); }
.chip[aria-current="page"] { background: var(--ink); color: #fff; }
.chip .i { width: 16px; height: 16px; }
.chips form { display: contents; }

/* ---------- Page heads ---------- */
.phead { padding-block: clamp(32px, 6vw, 72px) clamp(20px, 3vw, 32px); }
.phead h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); max-width: 20ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--muted); margin: 0 0 14px; padding: 0; list-style: none; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--faint); }
.crumbs a { color: inherit; }
.search { display: flex; gap: 8px; max-width: 520px; margin-top: 20px; }
.search input { flex: 1; border-radius: 999px; padding-left: 20px; background: var(--surface); border-color: transparent; }
.search input:focus { background: #fff; }

/* ---------- Course landing ---------- */
.course-top { background: linear-gradient(180deg, var(--surface), #fff 90%); }
.course-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 5vw, 64px); align-items: start; }
.course-main { min-width: 0; }
.course-hero { padding-block: clamp(24px, 5vw, 56px) clamp(20px, 3vw, 36px); }
.course-hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); max-width: 16ch; }
.tag { display: inline-flex; gap: 6px; align-items: center; padding: 5px 12px; border-radius: 999px; background: var(--tint, var(--brand-soft)); color: var(--tint-i, var(--brand)); font-size: .82rem; font-weight: 600; margin-bottom: 14px; }
.tag:hover { text-decoration: none; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: .88rem; color: var(--ink); }
.facts .i { width: 16px; height: 16px; color: var(--muted); }
.local-note { background: #fff; border-radius: var(--r-md); padding: 16px 18px; box-shadow: inset 0 0 0 1px var(--line); margin-top: 22px; font-size: .96rem; color: var(--muted); }
.local-note p:last-child { margin: 0; }

.buy { position: sticky; top: 80px; margin-top: clamp(24px, 5vw, 56px); background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-2), 0 0 0 1px var(--line); overflow: hidden; }
.buy-media { aspect-ratio: 16 / 9; background: var(--tint, var(--surface)); position: relative; }
.buy-media img { width: 100%; height: 100%; object-fit: cover; }
.buy-body { padding: 20px 22px 22px; display: grid; gap: 14px; }
.buy .price strong { font-size: 2rem; }
.includes { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: .93rem; }
.includes li { display: flex; gap: 10px; align-items: flex-start; }
.includes .i { color: var(--ok); margin-top: 3px; width: 17px; height: 17px; }
.hr { height: 1px; background: var(--line); border: 0; margin: 2px 0; }
.secure { display: flex; align-items: center; gap: 7px; color: var(--faint); font-size: .82rem; justify-content: center; margin: 0; }
.secure .i { width: 15px; height: 15px; }
@media (max-width: 960px) {
  .course-grid { grid-template-columns: 1fr; }
  .buy { position: static; margin-top: 0; }
}

.block { padding-block: clamp(32px, 5vw, 52px); border-top: 1px solid var(--line); }
.block h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.block > p.muted { margin-top: -4px; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 28px; list-style: none; padding: 0; margin: 0; }
.checks li { display: flex; gap: 11px; align-items: flex-start; line-height: 1.45; }
.checks .i { color: var(--ok); margin-top: 2px; width: 20px; height: 20px; }
@media (max-width: 640px) { .checks { grid-template-columns: 1fr; } }

.curr { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1), 0 0 0 1px var(--line); background: #fff; }
.curr details + details { border-top: 1px solid var(--line); }
.curr summary { list-style: none; cursor: pointer; padding: 17px 20px; display: flex; gap: 12px; align-items: center; }
.curr summary::-webkit-details-marker { display: none; }
.curr summary strong { flex: 1; font-size: 1rem; }
.curr summary small { color: var(--faint); white-space: nowrap; font-size: .84rem; }
.curr summary .i { transition: transform .2s ease; color: var(--faint); width: 18px; height: 18px; }
.curr details[open] summary .i { transform: rotate(90deg); }
.curr ol { list-style: none; margin: 0; padding: 0 0 8px; background: var(--surface); }
.curr li { display: flex; gap: 12px; align-items: center; padding: 11px 20px; font-size: .94rem; }
.curr li + li { border-top: 1px solid rgba(0, 0, 0, .04); }
.curr li .i { color: var(--faint); width: 16px; height: 16px; }
.curr li span { flex: 1; }
.curr li small { color: var(--faint); }
.curr .pv { font-weight: 600; font-size: .84rem; }
.curr-sum { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); margin-bottom: 16px; font-size: .94rem; }

.cards-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card-s { background: var(--surface); border-radius: var(--r-md); padding: 20px; }
.card-s h3 { font-size: 1.04rem; margin-bottom: 6px; }
.card-s p { color: var(--muted); margin: 0; font-size: .94rem; }
@media (max-width: 640px) { .cards-2 { grid-template-columns: 1fr; } }

.earn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.earn-col { border-radius: var(--r-lg); padding: 22px; background: var(--tint, var(--surface)); }
.earn-col h3 { display: flex; gap: 10px; align-items: center; font-size: 1.05rem; color: var(--tint-i, var(--ink)); }
.earn-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid rgba(0, 0, 0, .06); font-size: .94rem; }
.earn-row span { flex: 1; }
.earn-row b { font-weight: 600; text-align: right; }
.disclaim { font-size: .82rem; color: var(--faint); margin-top: 14px; }
@media (max-width: 1100px) { .earn { grid-template-columns: 1fr; } }

.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools span { padding: 7px 13px; border-radius: 10px; background: var(--surface); font-size: .9rem; }

.mentor { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start; }
.mentor-ph { width: 96px; height: 96px; border-radius: 50%; background: var(--brand-soft); display: grid; place-items: center; overflow: hidden; color: var(--brand); font-size: 2rem; font-weight: 700; }
.mentor-ph img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 520px) { .mentor { grid-template-columns: 1fr; } }

.cert-card { border-radius: var(--r-lg); padding: 24px; background: linear-gradient(135deg, var(--warn-bg), #fff 70%); box-shadow: inset 0 0 0 1px var(--line); display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.cert-seal { width: 64px; height: 64px; border-radius: 20px; background: #fff; display: grid; place-items: center; color: #B76E00; box-shadow: var(--sh-1); }
.cert-seal .i { width: 30px; height: 30px; }

.loc-links { columns: 3 200px; column-gap: 24px; padding: 0; list-style: none; margin: 0; }
.loc-links li { break-inside: avoid; padding: 4px 0; }
.loc-links a { color: var(--muted); font-size: .92rem; }
.loc-links a:hover { color: var(--brand); }

.buybar { display: none; }
@media (max-width: 960px) {
  .buybar { display: flex; position: fixed; inset: auto 0 0 0; z-index: 46; gap: 12px; align-items: center; justify-content: space-between;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(1.8) blur(20px); backdrop-filter: saturate(1.8) blur(20px); border-top: 1px solid rgba(0, 0, 0, .08); }
  .buybar .price strong { font-size: 1.25rem; }
  .buybar small { display: block; color: var(--faint); font-size: .75rem; }
  .has-buybar { padding-bottom: 76px; }
}

/* ---------- Prose ---------- */
.prose { max-width: 70ch; font-size: 1.04rem; line-height: 1.65; }
.prose h2 { font-size: 1.6rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose img { border-radius: var(--r-md); margin: 1.4em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--brand); color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose pre { background: var(--surface); padding: 16px; border-radius: 12px; overflow-x: auto; font-size: .9rem; }
.post-card { color: var(--ink); display: flex; flex-direction: column; gap: 10px; }
.post-card:hover { text-decoration: none; }
.post-card:hover h2 { color: var(--brand); }
.post-card .cc-media { border-radius: var(--r-lg); }
.post-card h2 { font-size: 1.2rem; margin: 4px 0 0; }
.post-card p { color: var(--muted); margin: 0; font-size: .95rem; }
.post-cover { border-radius: var(--r-xl); margin-bottom: 32px; width: 100%; max-width: 860px; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; }
.field { margin-bottom: 16px; }
.field small { display: block; color: var(--faint); font-size: .84rem; margin-top: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 15px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--font); -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 38px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 72px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--brand); font: 600 .88rem var(--font); cursor: pointer; padding: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }

.alert { padding: 13px 16px; border-radius: var(--r-sm); margin-bottom: 18px; font-size: .94rem; display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.alert .i { margin-top: 2px; }
.alert-error { background: var(--err-bg); color: var(--err); }
.alert-success { background: var(--ok-bg); color: var(--ok); }
.alert-info { background: var(--brand-soft); color: var(--brand-ink); }
.flash { margin: 14px 0 0; }

/* ---------- Focused layout: checkout & auth ---------- */
.focus-hdr { background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.focus-hdr .wrap { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.focus-main { background: var(--surface); min-height: calc(100vh - 56px); padding-block: clamp(20px, 5vw, 56px) 48px; }
.co { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; max-width: 980px; margin: 0 auto; }
.panel-w { background: #fff; border-radius: var(--r-xl); padding: clamp(20px, 4vw, 34px); box-shadow: var(--sh-1), 0 0 0 1px rgba(0, 0, 0, .04); }
.co-sum { position: sticky; top: 76px; }
.co h1 { font-size: clamp(1.55rem, 3vw, 2rem); margin-bottom: 6px; }
.co-item { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.co-thumb { width: 88px; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: var(--tint, var(--surface)); flex: none; display: grid; place-items: center; color: var(--tint-i, var(--brand)); }
.co-thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-item strong { font-size: 1rem; line-height: 1.25; letter-spacing: -.015em; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .96rem; color: var(--muted); }
.sum-row span:last-child { color: var(--ink); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.25rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.coupon { display: flex; gap: 8px; margin-top: 14px; }
.coupon input { min-height: 44px; text-transform: uppercase; border-radius: 999px; padding-left: 18px; background: var(--surface); border-color: transparent; }
.coupon-msg { font-size: .86rem; margin: 6px 0 0; min-height: 1.2em; }
.coupon-msg.ok { color: var(--ok); }
.coupon-msg.bad { color: var(--err); }
.steps-mini { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.steps-mini span { display: inline-flex; gap: 6px; align-items: center; font-size: .82rem; color: var(--faint); background: var(--surface); padding: 5px 11px 5px 5px; border-radius: 999px; }
.steps-mini b { width: 20px; height: 20px; border-radius: 50%; display: inline-grid; place-items: center; background: #fff; color: var(--muted); font-size: .72rem; }
.steps-mini .on { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.steps-mini .on b { background: var(--brand); color: #fff; }
@media (max-width: 900px) { .co { grid-template-columns: 1fr; } .co-sum { position: static; order: -1; } }
.auth-card { max-width: 440px; margin: 0 auto; }
.auth-card h1 { font-size: 1.9rem; }
.status { max-width: 520px; margin: 0 auto; text-align: center; }
.status-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: var(--ok-bg); color: var(--ok); }
.status-ic .i { width: 34px; height: 34px; }
.status-ic.wait { background: var(--brand-soft); color: var(--brand); }
.status-ic.bad { background: var(--err-bg); color: var(--err); }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */
footer { background: var(--surface); color: var(--muted); padding-block: 48px 28px; font-size: .9rem; }
.ft { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; }
.ft h4 { color: var(--ink); font-size: .85rem; margin-bottom: 12px; font-weight: 600; letter-spacing: -.01em; }
.ft ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ft a { color: var(--muted); }
.ft a:hover { color: var(--ink); }
footer .logo { margin-bottom: 12px; }
.ft-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .82rem; }
@media (max-width: 860px) { .ft { grid-template-columns: 1fr 1fr; } .ft > div:first-child { grid-column: 1 / -1; } }

/* ---------- Student area ---------- */
progress { width: 100%; height: 6px; border-radius: 99px; overflow: hidden; -webkit-appearance: none; appearance: none; background: var(--line); border: 0; margin: 0 0 6px; display: block; }
progress::-webkit-progress-bar { background: var(--line); border-radius: 99px; }
progress::-webkit-progress-value { background: var(--ok); border-radius: 99px; }
progress::-moz-progress-bar { background: var(--ok); border-radius: 99px; }
.me-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.me-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0; }
.mc { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1), 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.mc .cc-body { gap: 10px; }
.mc-actions { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 6px; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-weight: 600; font-size: .8rem; color: var(--faint); background: #fff; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot th { font-size: 1.1rem; border-bottom: 0; border-top: 1px solid var(--line); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: .78rem; font-weight: 600; background: var(--surface); color: var(--muted); }
.badge-paid, .badge-published, .badge-active { background: var(--ok-bg); color: var(--ok); }
.badge-pending, .badge-draft { background: var(--warn-bg); color: #9A5B00; }
.badge-failed, .badge-refunded, .badge-revoked, .badge-blocked { background: var(--err-bg); color: var(--err); }
.dev-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.dev-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; }
.dev-list .i { margin-top: 2px; color: var(--faint); }

.empty { text-align: center; padding: 48px 20px; border-radius: var(--r-xl); background: var(--surface); color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 1.25rem; }
.err-page { text-align: center; padding-block: 96px; }
.err-page .code { font-size: clamp(4.5rem, 15vw, 8rem); font-weight: 700; letter-spacing: -.05em; color: var(--line-2); line-height: 1; margin-bottom: 8px; }
.err-msg { margin-inline: auto; }
.err-actions { justify-content: center; margin-top: 24px; }

.wa-float { position: fixed; right: 18px; bottom: calc(18px + var(--tabbar)); width: 54px; height: 54px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; z-index: 44; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4); }
.wa-float .i { width: 28px; height: 28px; fill: currentColor; stroke: none; }
.has-buybar .wa-float { bottom: 92px; }
.h3 { font-size: 1.3rem; }

.m-buy { display: none; }
@media (max-width: 960px) {
  .course-grid > .buy { display: none; }
  .m-buy { display: grid; gap: 12px; margin-top: 22px; padding: 18px; border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
  .m-buy .price strong { font-size: 1.7rem; }
  .course-hero .hero-actions .btn:first-child { display: none; }
  .course-hero .hero-actions { margin-top: 4px; }
}
.co-alert { max-width: 980px; margin-inline: auto; }
.plain-link { color: inherit; } .plain-link:hover { text-decoration: none; color: var(--brand); }
@media (max-width: 860px) {
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 14px; }
  .hero .lead { font-size: 1.05rem; }
  .trust { gap: 6px 16px; font-size: .86rem; margin-top: 20px; }
  .phone { width: 208px; }
  .ph-cert { font-size: .64rem; }
  .hero-in { padding-bottom: 36px; }
}
@media (max-width: 640px) { .facts { gap: 6px; } .facts li { font-size: .8rem; padding: 6px 11px; } }
