:root {
  --pink: #eb4671;
  --pink-2: #ff5572;
  --pink-ink: #c92f5c;
  --pink-wash: #fff0f3;
  --maroon: #461322;
  --maroon-2: #6b1d35;
  --ink: #141414;
  --muted: #5e575a;
  --line: #f1e1e6;
  --soft: #fff7f9;
  --error: #b3261e;
  --focus: #2f6fdf;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(70, 19, 34, .06), 0 12px 30px rgba(70, 19, 34, .08);
  --font: "Avenir Next", Avenir, "Nunito Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--pink-ink); }
h1, h2, h3 { font-weight: 800; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }
.muted { color: var(--muted); }
.error { color: var(--error); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: .01em; }
.brand img { width: 27px; height: 46px; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav > a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; }
.site-nav > a:hover, .site-nav > a[aria-current="page"] { color: var(--pink-ink); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.session { display: flex; align-items: center; gap: .9rem; min-width: 90px; justify-content: flex-end; }
.session-placeholder { display: inline-block; width: 90px; height: 38px; }
.session-name { font-weight: 700; color: var(--ink); text-decoration: none; }
.session-name:hover { color: var(--pink-ink); }
.nav-toggle { display: none; border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: .5rem 1rem; font: 700 .9rem var(--font); color: var(--ink); cursor: pointer; }
.nav-toggle:hover { border-color: var(--ink); }
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1rem; padding: 1.25rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-open .site-nav { display: flex; }
  .session { justify-content: flex-start; }
}

/* Buttons and links */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .9rem 1.45rem; border-radius: 999px; border: 2px solid var(--pink-ink); background: var(--pink-ink); color: #fff; font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--maroon-2); border-color: var(--maroon-2); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--maroon); }
.btn-light:hover { background: var(--pink-wash); border-color: var(--pink-wash); color: var(--maroon); }
.btn-small { padding: .6rem 1.05rem; font-size: .9rem; }
.btn-block { width: 100%; }
.text-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { color: var(--pink-ink); }
.text-btn { background: none; border: 0; padding: 0; font: inherit; font-size: .92rem; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.text-btn:hover { color: var(--ink); }

/* Hero */
.hero { padding: clamp(3.5rem, 8vw, 6rem) 0; background: radial-gradient(520px 320px at 92% 8%, rgba(235, 70, 113, .16), transparent 70%), radial-gradient(420px 300px at 64% 100%, rgba(235, 70, 113, .1), transparent 70%), #fff; }
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-ink); margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.logo-card { justify-self: center; width: min(100%, 380px); background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); padding: 2rem 2rem 1.75rem; }
.logo-card > img { width: 95px; height: 160px; margin: 0 auto 1.5rem; }
.wordmarks { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.wordmark { display: flex; align-items: center; gap: .8rem; font-weight: 800; font-size: 1.35rem; color: var(--pink-2); }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .logo-card { justify-self: start; }
}

/* Features */
.features { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { padding: 2rem 1.5rem; border-left: 1px solid var(--line); }
.feature:first-child { border-left: 0; }
.feature svg { width: 30px; height: 30px; color: var(--pink); margin-bottom: .9rem; }
.feature h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.feature p { margin: 0; font-size: .95rem; color: var(--muted); }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3) { border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature { border-left: 0; }
  .feature:nth-child(n+2) { border-top: 1px solid var(--line); }
}

/* Sections and courses */
.section { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 680px; margin-bottom: 2.25rem; }
.course-group + .course-group { margin-top: 2.5rem; }
.group-title { font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--maroon-2); margin-bottom: 1rem; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.course-card { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(70, 19, 34, .05); transition: border-color .15s, box-shadow .15s, transform .15s; }
.course-card:hover { border-color: var(--pink); box-shadow: var(--shadow); transform: translateY(-2px); }
.badge { width: 44px; height: 44px; flex: none; border-radius: 6px; }
.badge-blank { display: inline-block; background: var(--pink-wash); }
.course-text { display: grid; gap: .1rem; }
.course-title { font-weight: 800; font-size: 1.02rem; line-height: 1.3; }
.course-meta { font-size: .86rem; color: var(--muted); }
.course-summary { font-size: .9rem; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.steps p { margin: 0; color: var(--muted); }
.step-num { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--maroon); color: #fff; font-weight: 800; margin-bottom: 1rem; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Page head */
.page-head { color: #fff; padding: clamp(2.75rem, 6vw, 4rem) 0 clamp(2.25rem, 5vw, 3.25rem); background: radial-gradient(520px 260px at 92% 0%, rgba(235, 70, 113, .45), transparent 70%), linear-gradient(150deg, var(--maroon) 0%, var(--maroon-2) 100%); }
.page-head .eyebrow { color: #ffb3c6; }
.page-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); }
.page-head .lead { color: rgba(255, 255, 255, .86); margin: 0; }

/* Plans */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--pink); border-radius: 22px; padding: 2rem; box-shadow: var(--shadow); }
.plan-card h3 { font-size: 1.4rem; }
.plan-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .45rem; margin-bottom: .3rem; }
.plan-price .amount { font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.plan-price .cadence { color: var(--muted); }
.plan-meta { font-size: .92rem; color: var(--muted); margin: 0 0 .25rem; }
.plan-trial { align-self: flex-start; display: inline-block; font-size: .85rem; font-weight: 700; color: var(--maroon); background: var(--pink-wash); border-radius: 999px; padding: .25rem .75rem; margin: .5rem 0 0; }
.plan-desc { margin: 1rem 0; }
.perks { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .6rem; }
.perks li { position: relative; padding-left: 1.8rem; font-size: .97rem; }
.perks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--pink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat; }
.plan-actions { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 1.1rem; }
.grid-msg { grid-column: 1 / -1; }
.plan-detail { max-width: 720px; }
.plan-detail .plan-card { padding: clamp(1.75rem, 4vw, 2.5rem); }
.plan-detail h2 { font-size: 1.15rem; margin-top: 2rem; }
.terms { white-space: pre-wrap; color: var(--muted); font-size: .95rem; }

/* Login */
.auth { max-width: 470px; margin-inline: auto; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--pink-wash); border-radius: 999px; padding: 4px; margin-bottom: 1.5rem; }
.tab { border: 0; background: transparent; border-radius: 999px; padding: .65rem; font: 700 .95rem var(--font); color: var(--muted); cursor: pointer; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(70, 19, 34, .16); }
.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: .9rem; font-weight: 700; }
.field input { font: inherit; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(47, 111, 223, .2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
.form-error { color: var(--error); font-size: .92rem; min-height: 1.3em; margin: .25rem 0 .9rem; }
.form-note { font-size: .92rem; color: var(--muted); }

/* Library */
.gate-card { max-width: 580px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(1.75rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.gate-card h2 { font-size: 1.6rem; }
.gate-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem; margin-top: 1.5rem; }
.library-section { margin-bottom: 3.5rem; }
.library-section:last-child { margin-bottom: 0; }
.course-picker { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.75rem; }
.course-picker label { font-weight: 700; }
.course-picker select { font: 600 1rem var(--font); color: var(--ink); padding: .7rem 2.6rem .7rem 1rem; min-width: min(100%, 380px); border: 1.5px solid var(--line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23141414' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .9rem center / 12px no-repeat; appearance: none; cursor: pointer; }
.course-picker select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(47, 111, 223, .2); }
.course-picker select:disabled { cursor: wait; opacity: .7; }
.course-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.course-heading:empty { display: none; }
.course-heading .badge { width: 48px; height: 48px; }
.course-heading h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.course-heading .course-meta { display: block; margin-top: .2rem; }
.resource-list { display: grid; gap: .75rem; transition: opacity .15s; }
.resource-list.is-fetching { opacity: .55; }
.resource { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem 1.5rem; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.15rem 1.35rem; }
.resource h3 { font-size: 1.08rem; margin: 0 0 .2rem; }
.resource .meta { font-size: .84rem; font-weight: 700; color: var(--pink-ink); margin: 0 0 .3rem; }
.resource p { margin: 0; font-size: .95rem; }
.resource .soon { font-size: .88rem; color: var(--muted); white-space: nowrap; }
.load-more { margin-top: 1.25rem; }
@media (max-width: 640px) { .resource { grid-template-columns: 1fr; } }
.class-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.class-card { display: flex; flex-direction: column; background: linear-gradient(150deg, var(--maroon), var(--maroon-2)); color: #fff; border-radius: 18px; padding: 1.5rem; }
.class-card .level { font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #ffb3c6; margin: 0 0 .4rem; }
.class-card h3 { margin: 0 0 .35rem; }
.class-card .when { color: rgba(255, 255, 255, .86); margin: 0 0 1.25rem; }
.class-card .btn { margin-top: auto; align-self: flex-start; }
.class-card .soon { margin-top: auto; font-size: .9rem; color: rgba(255, 255, 255, .7); }

/* Footer */
.site-footer { background: var(--maroon); color: rgba(255, 255, 255, .8); padding: 3rem 0 1.5rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand p { margin: 0; }
.logo-tile { display: grid; place-items: center; width: 52px; height: 52px; flex: none; background: #fff; border-radius: 14px; }
.logo-tile img { width: 24px; height: 40px; }
.brand-foot { font-weight: 800; font-size: 1.15rem; color: #fff; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.footer-nav a { color: #fff; text-decoration: none; font-weight: 600; }
.footer-nav a:hover { text-decoration: underline; }
.footer-base { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2rem; padding-top: 1.25rem; font-size: .86rem; }
.footer-base p { margin: 0 0 .35rem; }