/* =========================================================================
   Art of Mind Making — site styles
   Colours are taken from the logo: navy lettering, brush blue/teal, "MIND" gold.
   Bootstrap is still loaded for forms, grid and alerts; its variables are
   re-pointed at these tokens so everything reads as one system.
   ========================================================================= */

:root {
    --navy-950: #0b1428;
    --navy-900: #111d3a;
    --navy: #17264a;
    --blue: #1d5a8a;
    --teal: #1f8aa0;
    --gold: #e9a21f;
    --gold-600: #c98610;
    --gold-50: #fdf6e7;
    --cream: #fbf8f2;

    --ink: #16181d;
    --text: #2d3038;
    --muted: #5d6472;
    --line: #e2e5ea;
    --soft: #f5f6f8;
    --white: #fff;
    --success: #1a7f4b;
    --success-50: #e7f6ee;
    --danger: #b42318;
    --danger-50: #fdecea;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .08);
    --shadow: 0 6px 20px rgba(16, 24, 40, .08);
    --shadow-lg: 0 18px 50px rgba(16, 24, 40, .16);

    --font-head: 'Poppins', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --header-h: 72px;
    --wrap: 1240px;
    --gutter: 24px;

    --bs-body-font-family: var(--font-body);
    --bs-body-color: var(--text);
    --bs-body-bg: var(--white);
    --bs-link-color: var(--blue);
    --bs-link-color-rgb: 29, 90, 138;
    --bs-link-hover-color: var(--navy);
    --bs-link-hover-color-rgb: 23, 38, 74;
    --bs-border-color: var(--line);
    --bs-border-radius: var(--radius-sm);
    --bs-primary: var(--navy);
    --bs-primary-rgb: 23, 38, 74;
}

/* ---------- Base ---------- */

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-head);
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

h1:focus { outline: none; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--navy); }

img { max-width: 100%; }

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

.wrap-narrow { max-width: 820px; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: .6rem;
}

.muted { color: var(--muted); }
.text-gold { color: var(--gold); }

/* ---------- Buttons ---------- */

.btn {
    font-family: var(--font-head);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: .6rem 1.15rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
}

.btn-lg { padding: .85rem 1.6rem; font-size: 1.02rem; }
.btn-sm { padding: .35rem .75rem; font-size: .85rem; }

.btn-primary {
    --bs-btn-bg: var(--navy);
    --bs-btn-border-color: var(--navy);
    --bs-btn-hover-bg: var(--navy-950);
    --bs-btn-hover-border-color: var(--navy-950);
    --bs-btn-active-bg: var(--navy-950);
    --bs-btn-active-border-color: var(--navy-950);
    --bs-btn-disabled-bg: var(--navy);
    --bs-btn-disabled-border-color: var(--navy);
}

.btn-accent {
    --bs-btn-color: var(--navy-950);
    --bs-btn-bg: var(--gold);
    --bs-btn-border-color: var(--gold);
    --bs-btn-hover-color: var(--navy-950);
    --bs-btn-hover-bg: #f2b23c;
    --bs-btn-hover-border-color: #f2b23c;
    --bs-btn-active-color: var(--navy-950);
    --bs-btn-active-bg: var(--gold-600);
    --bs-btn-active-border-color: var(--gold-600);
}

.btn-outline-primary {
    --bs-btn-color: var(--navy);
    --bs-btn-border-color: var(--navy);
    --bs-btn-hover-bg: var(--navy);
    --bs-btn-hover-border-color: var(--navy);
    --bs-btn-active-bg: var(--navy);
    --bs-btn-active-border-color: var(--navy);
}

.btn-ghost-light {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .45);
    background: transparent;
}
.btn-ghost-light:hover { color: var(--navy); background: #fff; border-color: #fff; }

.btn:focus-visible, .form-control:focus, .form-select:focus, .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(233, 162, 31, .35);
    border-color: var(--gold);
}

.btn-block { width: 100%; }

/* ---------- Forms ---------- */

.form-control, .form-select {
    border-radius: var(--radius-sm);
    border-color: #cfd4dc;
    padding: .6rem .85rem;
}

.form-label { font-weight: 600; font-size: .9rem; color: var(--ink); }

.form-check-input:checked { background-color: var(--navy); border-color: var(--navy); }

.valid.modified:not([type=checkbox]) { outline: 1px solid #26b050; }
.invalid { outline: 1px solid var(--danger); }
.validation-message { color: var(--danger); font-size: .88rem; }
.validation-errors { color: var(--danger); padding-left: 1.1rem; font-size: .9rem; }

.alert { border-radius: var(--radius-sm); }

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: saturate(160%) blur(8px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(16, 24, 40, .04);
}

.header-inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
    color: var(--navy);
}

.brand img { height: 44px; width: auto; }

.brand-text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.08rem;
    letter-spacing: .02em;
    text-transform: uppercase;
    line-height: 1.05;
    color: var(--navy);
}

.brand-text b { color: var(--gold); font-weight: 700; }

.header-search {
    flex: 1;
    max-width: 520px;
    position: relative;
}

.header-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.header-search input {
    width: 100%;
    height: 46px;
    border: 1px solid #c9ced6;
    background: var(--soft);
    border-radius: 999px;
    padding: 0 1.1rem 0 2.6rem;
    font-size: .95rem;
    color: var(--ink);
}

.header-search input:focus {
    outline: none;
    background: #fff;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(233, 162, 31, .25);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: .25rem;
    margin-left: auto;
}

.header-nav > a:not(.btn) {
    color: var(--text);
    font-weight: 500;
    font-size: .95rem;
    padding: .5rem .75rem;
    border-radius: var(--radius-sm);
}

.header-nav > a:not(.btn):hover { color: var(--navy); background: var(--soft); }
.header-nav > a.active { color: var(--navy); font-weight: 600; }
.header-nav .btn { margin-left: .4rem; }

.nav-toggle { display: none; }
.nav-burger { display: none; font-size: 1.7rem; color: var(--navy); cursor: pointer; margin: 0; }

/* User menu — a native <details> so it works without interactivity */
.user-menu { position: relative; margin-left: .5rem; }
.user-menu > summary { list-style: none; cursor: pointer; }
.user-menu > summary::-webkit-details-marker { display: none; }

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--navy);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
}

.user-menu[open] .avatar { box-shadow: 0 0 0 3px rgba(233, 162, 31, .45); }

.user-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 250px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .5rem;
}

.user-menu-head { padding: .65rem .75rem .75rem; border-bottom: 1px solid var(--line); margin-bottom: .35rem; }
.user-menu-head strong { display: block; color: var(--ink); }
.user-menu-head small { color: var(--muted); }

.user-menu-panel a, .user-menu-panel button {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    padding: .55rem .75rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    background: none;
    border: 0;
    text-align: left;
    font-size: .93rem;
}

.user-menu-panel a:hover, .user-menu-panel button:hover { background: var(--soft); color: var(--navy); }
.user-menu-panel hr { margin: .35rem 0; border-color: var(--line); opacity: 1; }

/* ---------- Footer ---------- */

.site-footer {
    background: var(--navy-950);
    color: rgba(255, 255, 255, .72);
    padding: 3.5rem 0 1.75rem;
    margin-top: 4rem;
    font-size: .93rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-brand img { height: 56px; margin-bottom: .9rem; }
.footer-brand .brand-text { color: #fff; font-size: 1.1rem; }
.footer-brand p { margin-top: .75rem; max-width: 300px; }

.site-footer h4 {
    color: #fff;
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: var(--gold); }

.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: 1rem;
    font-size: .85rem;
}

/* ---------- Sections ---------- */

.section { padding: 4.5rem 0; }
.section-tight { padding: 3rem 0; }
.section-soft { background: var(--soft); }
.section-cream { background: var(--cream); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 0; }
.section-head p { margin: .5rem 0 0; color: var(--muted); max-width: 640px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }

.link-arrow { font-weight: 600; white-space: nowrap; font-family: var(--font-head); }
.link-arrow i { transition: transform .15s; display: inline-block; }
.link-arrow:hover i { transform: translateX(3px); }

/* ---------- Home hero ---------- */

.hero {
    background:
        radial-gradient(1100px 500px at 90% -10%, rgba(31, 138, 160, .14), transparent 60%),
        radial-gradient(700px 400px at -10% 110%, rgba(233, 162, 31, .14), transparent 60%),
        var(--cream);
    padding: 4.5rem 0 5rem;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.6vw, 3.5rem);
    line-height: 1.08;
    margin-bottom: 1.25rem;
}

.hero h1 em { font-style: normal; color: var(--gold-600); }

.hero .lead {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 560px;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-note {
    margin-top: 1.25rem;
    font-size: .9rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .5rem;
}

.hero-note i { color: var(--success); }

.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 460px;
    justify-self: center;
    width: 100%;
}

.hero-orb {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffffff 0%, #f3efe6 55%, #e9e1cf 100%);
    box-shadow: inset 0 0 0 1px rgba(23, 38, 74, .06), var(--shadow-lg);
}

.hero-orb img {
    position: absolute;
    inset: 16%;
    width: 68%;
    height: 68%;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(17, 29, 58, .18));
}

.hero-chip {
    position: absolute;
    background: #fff;
    border-radius: 14px;
    padding: .7rem 1rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: .65rem;
    font-size: .88rem;
    color: var(--ink);
    font-weight: 600;
    white-space: nowrap;
}

.hero-chip small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }
.hero-chip .chip-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: grid; place-items: center;
    font-size: 1.1rem;
}
.chip-1 { top: 8%; left: -4%; }
.chip-1 .chip-icon { background: var(--gold-50); color: var(--gold-600); }
.chip-2 { bottom: 14%; right: -6%; }
.chip-2 .chip-icon { background: #e6f2f6; color: var(--teal); }
.chip-3 { bottom: 0; left: 6%; }
.chip-3 .chip-icon { background: #e8ecf5; color: var(--navy); }

/* Stats strip */
.stats-strip { background: var(--navy); color: #fff; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat {
    padding: 1.6rem 1rem;
    display: flex;
    align-items: center;
    gap: .9rem;
    justify-content: center;
}

.stat + .stat { border-left: 1px solid rgba(255, 255, 255, .12); }
.stat i { font-size: 1.6rem; color: var(--gold); }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.stat span { font-size: .85rem; color: rgba(255, 255, 255, .7); }

/* ---------- Module cards ---------- */

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
    gap: 1.5rem;
}

.module-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    color: inherit;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}

a.module-card:hover {
    color: inherit;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: #d3d8e0;
}

.module-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--navy);
    overflow: hidden;
}

.module-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
a.module-card:hover .module-thumb img { transform: scale(1.04); }

.module-thumb.is-locked img { filter: saturate(.7) brightness(.82); }

.thumb-fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 80% 20%, rgba(233, 162, 31, .35), transparent 45%),
        linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, var(--teal) 100%);
    color: #fff;
}

.thumb-fallback span {
    font-family: var(--font-head);
    font-size: 3.4rem;
    font-weight: 700;
    opacity: .92;
}

.thumb-badge {
    position: absolute;
    top: .75rem;
    left: .75rem;
    font-family: var(--font-head);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .6rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.badge-free { background: var(--gold); color: var(--navy-950); }
.badge-locked { background: rgba(11, 20, 40, .82); color: #fff; }
.badge-member { background: rgba(255, 255, 255, .92); color: var(--navy); }

.thumb-play {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: var(--navy);
    display: grid;
    place-items: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-sm);
}

.module-body { padding: 1.05rem 1.15rem 1.15rem; display: flex; flex-direction: column; flex: 1; }

.module-number {
    font-family: var(--font-head);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .3rem;
}

.module-body h3 {
    font-size: 1.06rem;
    margin: 0 0 .45rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.module-body p {
    font-size: .9rem;
    color: var(--muted);
    margin: 0 0 .9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.module-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .9rem;
    font-size: .8rem;
    color: var(--muted);
    margin-top: auto;
}

.module-meta i { margin-right: .25rem; }

.module-status {
    margin-top: .9rem;
    padding-top: .8rem;
    border-top: 1px solid var(--line);
    font-size: .84rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: .4rem;
}

.status-done { color: var(--success); }
.status-open { color: var(--blue); }
.status-locked { color: var(--muted); }

/* Horizontal scroller (Udemy-style course row) */
.module-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(268px, calc((100% - 4.5rem) / 4));
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .75rem;
    scrollbar-width: thin;
}

.module-row > * { scroll-snap-align: start; }

/* ---------- Steps / features ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    counter-reset: step;
}

.step {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    position: relative;
}

.step-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.45rem;
    margin-bottom: 1.1rem;
}

.step:nth-child(1) .step-icon { background: #e8ecf5; color: var(--navy); }
.step:nth-child(2) .step-icon { background: #e6f2f6; color: var(--teal); }
.step:nth-child(3) .step-icon { background: var(--gold-50); color: var(--gold-600); }

.step::after {
    counter-increment: step;
    content: "0" counter(step);
    position: absolute;
    top: 1.4rem;
    right: 1.5rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.6rem;
    color: #eef0f3;
}

.step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.step p { color: var(--muted); margin: 0; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.feature {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: 1.4rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
}

.feature i { font-size: 1.5rem; color: var(--blue); }
.feature h3 { font-size: 1rem; margin: .25rem 0 0; }
.feature p { font-size: .9rem; color: var(--muted); margin: 0; }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 1.9rem; margin-bottom: .75rem; }
.check-list li::before {
    content: "\F26E";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 0;
    top: .05rem;
    color: var(--success);
    font-size: 1.15rem;
}

/* ---------- Pricing ---------- */

.pricing-wrap {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 1.5rem;
    max-width: 920px;
    margin: 0 auto;
    align-items: stretch;
}

.price-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    border: 2px solid var(--navy);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.price-ribbon {
    position: absolute;
    top: -14px;
    left: 2rem;
    background: var(--gold);
    color: var(--navy-950);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem .75rem;
    border-radius: 6px;
}

.price-card h3 { font-size: 1.2rem; margin-bottom: .25rem; }
.price-card .muted { font-size: .92rem; }

.price {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--ink);
    font-size: 2.6rem;
    line-height: 1;
    margin: 1.25rem 0 .35rem;
}

.price small { font-size: 1rem; color: var(--muted); font-weight: 500; }
.price-card .check-list { margin: 1.5rem 0 1.75rem; }
.price-card .btn { margin-top: auto; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 2.5rem 1.15rem 0;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
    position: relative;
    font-size: 1.02rem;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "\F64D";
    font-family: "bootstrap-icons";
    position: absolute;
    right: .25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    transition: transform .2s;
}

.faq details[open] summary::after { content: "\F63B"; }
.faq details p { color: var(--muted); padding-right: 2rem; margin: 0 0 1.25rem; }

/* ---------- CTA band ---------- */

.cta-band {
    background:
        radial-gradient(600px 300px at 100% 0%, rgba(233, 162, 31, .28), transparent 60%),
        linear-gradient(120deg, var(--navy-950), var(--navy) 55%, var(--blue));
    color: #fff;
    border-radius: 20px;
    padding: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); margin-bottom: .5rem; }
.cta-band p { color: rgba(255, 255, 255, .78); margin: 0; max-width: 560px; }
.cta-band .actions { display: flex; gap: .75rem; flex-wrap: wrap; flex-shrink: 0; }

/* ---------- Page bands (dark page headers) ---------- */

.page-band {
    background:
        radial-gradient(800px 360px at 100% 0%, rgba(31, 138, 160, .3), transparent 60%),
        var(--navy-900);
    color: rgba(255, 255, 255, .8);
    padding: 3rem 0 3.25rem;
}

.page-band h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: .6rem; }
.page-band p.lead { font-size: 1.08rem; max-width: 720px; margin: 0; }

.crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, .6);
}

.crumbs a { color: #9cc9e0; }
.crumbs a:hover { color: #fff; }

/* Catalogue toolbar */
.catalog-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.catalog-search { position: relative; flex: 1; max-width: 440px; }
.catalog-search i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.catalog-search input { padding-left: 2.4rem; height: 46px; }

.filter-chips { display: flex; gap: .5rem; flex-wrap: wrap; }

.chip {
    border: 1px solid #cfd4dc;
    background: #fff;
    color: var(--text);
    border-radius: 999px;
    padding: .45rem 1rem;
    font-size: .88rem;
    font-weight: 600;
    cursor: pointer;
}

.chip:hover { border-color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

.membership-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--gold-50);
    border: 1px solid #f3dca8;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
}

.membership-banner p { margin: 0; color: var(--ink); }
.membership-banner i { color: var(--gold-600); margin-right: .4rem; }

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--muted);
}

.empty-state i { font-size: 2.5rem; color: #c3c8d0; display: block; margin-bottom: .75rem; }

/* ---------- Module (course) page ---------- */

.course-hero {
    background: var(--navy-900);
    color: rgba(255, 255, 255, .82);
    padding: 2.5rem 0 3rem;
}

.course-hero-inner { max-width: calc(100% - 400px); }

.course-hero h1 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .75rem; }
.course-hero .lead { font-size: 1.1rem; margin-bottom: 1.25rem; }

.course-facts {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.4rem;
    font-size: .9rem;
}

.course-facts i { color: var(--gold); margin-right: .35rem; }

.course-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 2.5rem;
    align-items: start;
}

.course-main { padding-top: 2.25rem; min-width: 0; }

.course-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
    margin-top: -15rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    z-index: 5;
}

.course-sidebar .module-thumb { aspect-ratio: 16 / 9; }
.sidebar-body { padding: 1.4rem; }
.sidebar-body .price { font-size: 2rem; margin: 0 0 .25rem; }
.sidebar-body h4 { font-size: .95rem; margin: 1.4rem 0 .7rem; }

.includes-list { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.includes-list li { display: flex; gap: .65rem; align-items: center; margin-bottom: .5rem; }
.includes-list i { color: var(--muted); width: 1.1rem; text-align: center; }

.access-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 700;
    font-family: var(--font-head);
    padding: .35rem .7rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}

.access-pill.free { background: var(--gold-50); color: var(--gold-600); }
.access-pill.member { background: var(--success-50); color: var(--success); }
.access-pill.locked { background: var(--soft); color: var(--muted); }

.course-block {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.75rem;
    margin-bottom: 2rem;
}

.course-block > h2 { font-size: 1.35rem; margin-bottom: 1rem; }

.video-frame {
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.resource-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .9rem 0;
    border-bottom: 1px solid var(--line);
}

.resource-row:last-child { border-bottom: 0; padding-bottom: 0; }
.resource-row:first-of-type { padding-top: 0; }

.resource-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.resource-icon.pdf { background: var(--danger-50); color: var(--danger); }
.resource-icon.video { background: #e6f2f6; color: var(--teal); }
.resource-row .grow { flex: 1; min-width: 0; }
.resource-row strong { display: block; color: var(--ink); }
.resource-row small { color: var(--muted); }

.rich-text { font-size: 1.04rem; line-height: 1.75; color: var(--text); }
.rich-text h1, .rich-text h2, .rich-text h3 { margin: 1.75rem 0 .75rem; }
.rich-text h1 { font-size: 1.6rem; }
.rich-text h2 { font-size: 1.35rem; }
.rich-text h3 { font-size: 1.15rem; }
.rich-text p { margin-bottom: 1rem; }
.rich-text blockquote {
    border-left: 4px solid var(--gold);
    background: var(--cream);
    padding: 1rem 1.25rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin: 1.5rem 0;
    color: var(--ink);
}
.rich-text img { border-radius: var(--radius-sm); }
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }

.locked-panel {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: var(--radius);
    background:
        radial-gradient(500px 220px at 50% 0%, rgba(233, 162, 31, .14), transparent 70%),
        var(--soft);
    border: 1px dashed #c9ced6;
    margin-bottom: 2rem;
}

.locked-panel .lock-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    margin: 0 auto 1.1rem;
}

.locked-panel h2 { font-size: 1.45rem; }
.locked-panel p { color: var(--muted); max-width: 520px; margin: 0 auto 1.5rem; }
.locked-panel .actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }

/* Quiz */
.quiz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.quiz-count { color: var(--muted); font-size: .88rem; font-weight: 600; }

.quiz-progress { height: 6px; border-radius: 999px; background: var(--soft); overflow: hidden; margin: .25rem 0 1rem; }
.quiz-progress span { display: block; height: 100%; background: var(--teal); transition: width .25s; }

.quiz-steps { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }

.quiz-step {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--muted);
    font-size: .85rem;
    font-weight: 600;
    padding: 0;
    transition: border-color .15s, background-color .15s, color .15s;
}

.quiz-step:hover { border-color: #b9c0cb; }
.quiz-step.answered { background: #f3f5fa; border-color: var(--navy); color: var(--navy); }
.quiz-step.correct { background: var(--success-50); border-color: var(--success); color: var(--success); }
.quiz-step.wrong { background: var(--danger-50); border-color: var(--danger); color: var(--danger); }
.quiz-step.current { box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--navy); }

.quiz-question {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
}

.quiz-question .q-label { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem; }
.quiz-question .q-text { font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: 1rem; }

.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.quiz-nav-end { display: flex; gap: .75rem; flex-wrap: wrap; margin-left: auto; }

.quiz-option {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: .5rem;
    cursor: pointer;
    background: var(--white);
    transition: border-color .15s, background-color .15s;
}

.quiz-option:hover { border-color: #b9c0cb; }
.quiz-option input { margin: 0; flex-shrink: 0; }
.quiz-option.selected { border-color: var(--navy); background: #f3f5fa; }
.quiz-option.correct { border-color: var(--success); background: var(--success-50); }
.quiz-option.wrong { border-color: var(--danger); background: var(--danger-50); }
.quiz-option .verdict { margin-left: auto; font-size: .82rem; font-weight: 700; }
.quiz-option.correct .verdict { color: var(--success); }
.quiz-option.wrong .verdict { color: var(--danger); }

.quiz-result {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    background: var(--success-50);
    color: var(--success);
    margin: 1.25rem 0 0;
    font-weight: 600;
}

.quiz-result .score { font-family: var(--font-head); font-size: 1.6rem; }

.module-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.module-pager a {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    color: var(--ink);
}

.module-pager a:hover { border-color: var(--navy); box-shadow: var(--shadow-sm); }
.module-pager small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.module-pager strong { font-family: var(--font-head); }
.module-pager .next { text-align: right; grid-column: 2; }

/* ---------- My learning ---------- */

.learning-summary {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.panel h2, .panel h3 { font-size: 1.1rem; margin-bottom: .75rem; }

.continue-card { display: flex; gap: 1.25rem; align-items: center; }
.continue-card .module-thumb { width: 220px; flex-shrink: 0; border-radius: var(--radius-sm); }

.progress-track { height: 8px; background: #eceef2; border-radius: 999px; overflow: hidden; margin: .75rem 0 .4rem; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 999px; }

/* ---------- Auth ---------- */

.auth-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - var(--header-h));
}

.auth-art {
    background:
        radial-gradient(500px 300px at 100% 0%, rgba(233, 162, 31, .25), transparent 60%),
        linear-gradient(150deg, var(--navy-950), var(--navy) 60%, var(--blue));
    color: rgba(255, 255, 255, .82);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-art img {
    width: 120px;
    background: rgba(255, 255, 255, .95);
    border-radius: 24px;
    padding: 14px;
    margin-bottom: 2rem;
}

.auth-art blockquote {
    font-family: var(--font-head);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1.35;
    font-weight: 600;
    margin: 0 0 1rem;
    max-width: 460px;
}

.auth-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem var(--gutter);
}

.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 1.85rem; margin-bottom: .5rem; }
.auth-card > p { color: var(--muted); margin-bottom: 1.75rem; }

.phone-input { display: flex; }
.phone-input span {
    display: flex;
    align-items: center;
    padding: 0 .9rem;
    border: 1px solid #cfd4dc;
    border-right: 0;
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    background: var(--soft);
    color: var(--muted);
    font-weight: 600;
}
.phone-input .form-control { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.otp-input {
    letter-spacing: .6em;
    font-family: var(--font-head);
    font-size: 1.4rem;
    text-align: center;
    padding: .7rem;
}

.auth-foot { margin-top: 1.5rem; font-size: .88rem; color: var(--muted); }

/* ---------- Content pages ---------- */

.prose { font-size: 1.05rem; line-height: 1.8; }
.prose h2 { font-size: 1.5rem; margin: 2.5rem 0 1rem; }
.prose p { margin-bottom: 1.15rem; }

.pull-quote {
    font-family: var(--font-head);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--navy);
    border-left: 4px solid var(--gold);
    padding-left: 1.25rem;
    margin: 2rem 0;
    line-height: 1.45;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; }

.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item i {
    width: 44px; height: 44px; border-radius: 12px;
    display: grid; place-items: center;
    background: var(--gold-50); color: var(--gold-600); font-size: 1.2rem;
    flex-shrink: 0;
}
.contact-item strong { display: block; color: var(--ink); }

/* ---------- Messages ---------- */

.ticket-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
    margin-bottom: 1.25rem;
}

.ticket-card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.ticket-card-head strong { font-family: var(--font-head); color: var(--ink); }

.chat-thread {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    max-height: 420px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--soft);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.chat-bubble {
    max-width: 75%;
    padding: .65rem .95rem;
    border-radius: 14px;
    line-height: 1.4;
    white-space: pre-wrap;
}

.chat-bubble small { display: block; opacity: .65; margin-top: .3rem; font-size: .72rem; }
.chat-bubble.from-user { align-self: flex-start; background: #fff; border: 1px solid var(--line); }
.chat-bubble.from-admin { align-self: flex-end; background: var(--navy); color: #fff; }

.badge-open, .badge-closed, .badge-draft, .badge-published, .badge-tag {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-open, .badge-published { color: var(--success); background: var(--success-50); }
.badge-closed, .badge-draft { color: var(--muted); background: #eef0f3; }
.badge-tag.free { color: var(--gold-600); background: var(--gold-50); }
.badge-tag.paid { color: var(--navy); background: #e8ecf5; }

/* ---------- Admin ---------- */

.admin-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: calc(100vh - var(--header-h));
    background: var(--soft);
}

.admin-nav {
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 1.5rem 1rem;
}

.admin-nav h6 {
    font-size: .72rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 0 .75rem;
    margin-bottom: .75rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .6rem .75rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    margin-bottom: .15rem;
}

.admin-nav a:hover { background: var(--soft); color: var(--navy); }
.admin-nav a.active { background: var(--navy); color: #fff; }

.admin-main { padding: 2rem 2.25rem 3rem; min-width: 0; }
.admin-main h1 { font-size: 1.6rem; margin-bottom: 1.25rem; }
.admin-main .table { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.admin-main .table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fafbfc; font-weight: 600; }
.admin-main .table td, .admin-main .table th { padding: .8rem 1rem; vertical-align: middle; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem 1.4rem;
}

.stat-card .label { font-size: .85rem; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: .45rem; }
.stat-card .value { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--ink); margin: .35rem 0; }
.stat-card a { font-size: .87rem; font-weight: 600; }

/* Admin editor pieces still use these generic cards */
.pillar-card {
    padding: 1.25rem;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--line);
}

.pillar-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }

.quill-editor-host { min-height: 240px; background: #fff; }

.ticket-list-item {
    display: block;
    padding: .9rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: .6rem;
    color: inherit;
    background: #fff;
}

.ticket-list-item:hover { border-color: #c9ced6; color: inherit; box-shadow: var(--shadow-sm); }

/* ---------- Errors ---------- */

.blazor-error-boundary {
    background: #b32121;
    padding: 1rem 1rem 1rem 1.25rem;
    color: white;
}

.blazor-error-boundary::after { content: "An error has occurred." }

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .header-search { display: none; }
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .module-row { grid-auto-columns: minmax(260px, 42%); }
}

@media (max-width: 960px) {
    .nav-burger { display: block; }
    .header-inner { gap: .75rem; }

    .header-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: .15rem;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: .75rem var(--gutter) 1.25rem;
        display: none;
    }

    .nav-toggle:checked ~ .header-nav { display: flex; }
    .header-nav .btn { margin: .4rem 0 0; }
    .user-menu { margin: .5rem 0 0; }
    .user-menu-panel { position: static; width: 100%; box-shadow: none; margin-top: .5rem; }

    .hero-grid, .split, .contact-grid, .learning-summary { grid-template-columns: 1fr; }
    .hero-visual { max-width: 340px; order: -1; }
    .steps { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat:nth-child(3) { border-left: 0; }
    .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
    .pricing-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .cta-band { flex-direction: column; align-items: flex-start; padding: 2.25rem; }

    .course-hero-inner { max-width: none; }
    .course-layout { grid-template-columns: 1fr; gap: 0; }
    .course-sidebar { position: static; margin-top: 1.5rem; order: -1; box-shadow: var(--shadow); }

    .auth-shell { grid-template-columns: 1fr; }
    .auth-art { display: none; }

    .admin-shell { grid-template-columns: 1fr; }
    .admin-nav { border-right: 0; border-bottom: 1px solid var(--line); padding: .75rem var(--gutter); display: flex; gap: .25rem; overflow-x: auto; }
    .admin-nav h6 { display: none; }
    .admin-nav a { white-space: nowrap; margin: 0; }
    .admin-main { padding: 1.5rem var(--gutter) 2.5rem; }
}

@media (max-width: 600px) {
    :root { --gutter: 16px; --header-h: 64px; }
    .brand img { height: 38px; }
    .brand-text { font-size: .92rem; }
    .section { padding: 3.25rem 0; }
    .hero { padding: 2.5rem 0 3.5rem; }
    .chip-1 { left: 0; }
    .chip-2 { right: 0; }
    .feature-grid { grid-template-columns: 1fr; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .module-row { grid-auto-columns: 82%; }
    .continue-card { flex-direction: column; align-items: stretch; }
    .continue-card .module-thumb { width: 100%; }
    .module-pager { grid-template-columns: 1fr; }
    .module-pager .next { grid-column: auto; }
    .course-block { padding: 1.25rem; }
    .price-card { padding: 1.5rem; }
}
