:root {
    --wine: #6f1638;
    --wine-dark: #4d0e27;
    --wine-soft: #8f3556;
    --ink: #261c20;
    --muted: #71666a;
    --ivory: #faf7f2;
    --paper: #fffdf9;
    --rose: #ead8dc;
    --rose-pale: #f6ecee;
    --sand: #e7d9c5;
    --gold: #bb9258;
    --gold-text: #8a632c;
    --line: rgba(38, 28, 32, 0.13);
    --success: #225f4a;
    --danger: #9a2c2c;
    --shadow: 0 22px 60px rgba(66, 28, 42, 0.1);
    --serif: Iowan Old Style, Baskerville, "Times New Roman", Times, serif;
    --sans: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 30px;
    --shell: min(1180px, calc(100vw - 48px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--ivory);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body::selection {
    color: #fff;
    background: var(--wine);
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid #fff !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 6px var(--wine-dark) !important;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: #fff;
    background: var(--wine-dark);
    border-radius: 8px;
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.preview-bar {
    min-height: 34px;
    padding: 6px 18px;
    color: #4b3022;
    background: #f1dfb9;
    border-bottom: 1px solid #d5ba83;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.preview-bar span {
    margin-right: 8px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    background: rgba(250, 247, 242, 0.92);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
    border-color: var(--line);
    box-shadow: 0 8px 28px rgba(57, 26, 38, 0.06);
}

.header-inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--wine);
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
}

.brand-mark svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.brand-mark circle {
    fill: var(--ivory);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-copy strong {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 31px;
}

.site-nav > a {
    position: relative;
    color: #4e4347;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.site-nav > a:not(.nav-account)::after {
    position: absolute;
    right: 0;
    bottom: -6px;
    left: 0;
    height: 1px;
    background: var(--wine);
    content: "";
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.site-nav > a:hover::after {
    transform: scaleX(1);
}

.nav-account {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 9px 17px;
    color: var(--wine) !important;
    border: 1px solid rgba(111, 22, 56, 0.32);
    border-radius: 999px;
}

.nav-account:hover {
    color: #fff !important;
    background: var(--wine);
}

.avatar {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #fff;
    background: var(--wine);
    border-radius: 50%;
    font-size: 11px;
}

.nav-account:hover .avatar {
    color: var(--wine);
    background: #fff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 0;
    background: transparent;
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 23px;
    height: 1px;
    margin: 6px 0;
    background: var(--ink);
    transition: transform 180ms ease;
}

.flash-stack {
    position: fixed;
    z-index: 120;
    top: 105px;
    right: 0;
    left: 0;
    pointer-events: none;
}

.flash {
    display: flex;
    width: min(560px, 100%);
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-left: auto;
    padding: 12px 16px 12px 20px;
    color: #fff;
    background: var(--ink);
    border-radius: 12px;
    box-shadow: var(--shadow);
    pointer-events: auto;
}

.flash-success {
    background: var(--success);
}

.flash-error {
    background: var(--danger);
}

.flash button {
    width: 30px;
    height: 30px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    font-size: 24px;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 0 0 19px;
    color: var(--wine);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.2em;
    line-height: 1.4;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 28px;
    height: 1px;
    background: currentColor;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:not(:disabled):hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff;
    background: var(--wine);
    border-color: var(--wine);
}

.button-primary:hover {
    background: var(--wine-dark);
    border-color: var(--wine-dark);
}

.button-secondary {
    color: var(--wine);
    background: transparent;
    border-color: rgba(111, 22, 56, 0.35);
}

.button-secondary:hover {
    color: #fff;
    background: var(--wine);
}

.button-ghost {
    color: var(--ink);
    background: transparent;
    border-color: var(--line);
}

.button-ghost:hover {
    border-color: var(--ink);
}

.button-light {
    color: var(--wine);
    background: #fff;
    border-color: #fff;
}

.button-light:hover {
    color: #fff;
    background: transparent;
}

.button-muted,
.button:disabled {
    color: #766c6f;
    background: #e9e3e0;
    border-color: #e9e3e0;
    cursor: not-allowed;
}

.button-full {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--wine);
    font-size: 14px;
    font-weight: 750;
    text-decoration: none;
}

.text-link span {
    transition: transform 180ms ease;
}

.text-link:hover span {
    transform: translateX(4px);
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 72px;
    background:
        radial-gradient(circle at 12% 18%, rgba(187, 146, 88, 0.13), transparent 26%),
        linear-gradient(180deg, #fbf8f4 0%, #f7f1ed 100%);
}

.hero::before {
    position: absolute;
    top: -320px;
    right: -180px;
    width: 720px;
    height: 720px;
    border: 1px solid rgba(111, 22, 56, 0.08);
    border-radius: 50%;
    content: "";
}

.hero-grid {
    position: relative;
    display: grid;
    width: min(1340px, calc(100vw - 48px));
    align-items: center;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 48px;
}

.hero-copy h1 {
    max-width: 720px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(52px, 5.45vw, 78px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 0.99;
}

.hero-copy h1 em {
    color: var(--wine);
    font-weight: 400;
}

.hero-lead {
    max-width: 650px;
    margin: 30px 0 0;
    color: #5f5358;
    font-size: 19px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 42px 0 0;
    padding: 24px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.trust-list li {
    display: grid;
    min-width: 165px;
    grid-template-columns: 26px auto;
    grid-template-rows: auto auto;
    padding-right: 25px;
}

.trust-list li + li {
    padding-left: 25px;
    border-left: 1px solid var(--line);
}

.trust-icon {
    grid-row: 1 / 3;
    color: var(--gold);
    font-family: var(--serif);
    font-size: 20px;
}

.trust-list strong {
    font-size: 12px;
    line-height: 1.4;
}

.trust-list small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
}

.hero-visual {
    position: relative;
    min-height: 680px;
}

.hero-image-wrap {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    width: 88%;
    aspect-ratio: 0.81;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.72);
    border-radius: 220px 220px 28px 28px;
    box-shadow: var(--shadow);
}

.hero-image-wrap::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(33, 14, 21, 0.3));
    content: "";
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-wrap.hero-diagram {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #f7f4ed;
    border-radius: 28px;
}

.hero-image-wrap.hero-diagram::after {
    display: none;
}

.hero-image-wrap.hero-diagram img {
    object-fit: contain;
}

.image-glow {
    position: absolute;
    z-index: 1;
    top: 15%;
    left: 35%;
    width: 120px;
    height: 120px;
    background: rgba(255, 227, 157, 0.32);
    border-radius: 50%;
    filter: blur(24px);
}

.hero-note {
    position: absolute;
    z-index: 4;
    right: auto;
    bottom: 18px;
    left: 34px;
    width: 250px;
    margin: 0;
    padding: 22px 24px;
    color: #fff;
    background: rgba(92, 17, 46, 0.94);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(63, 12, 32, 0.28);
}

.hero-note span {
    display: block;
    height: 22px;
    color: #d9b885;
    font-family: var(--serif);
    font-size: 38px;
    line-height: 1;
}

.hero-note p {
    margin: 5px 0 0;
    font-family: var(--serif);
    font-size: 16px;
    font-style: italic;
    line-height: 1.5;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(111, 22, 56, 0.18);
    border-radius: 50%;
}

.orbit::before {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    content: "";
}

.orbit-one {
    top: 22px;
    right: -54px;
    width: 210px;
    height: 210px;
}

.orbit-one::before {
    top: 44px;
    left: 8px;
}

.orbit-two {
    right: -18px;
    bottom: 34px;
    width: 120px;
    height: 120px;
}

.orbit-two::before {
    right: 12px;
    bottom: 16px;
}

.catalog-section {
    padding: 108px 0 120px;
    background: var(--paper);
}

.section-heading {
    display: grid;
    align-items: end;
    grid-template-columns: 1fr 390px;
    gap: 80px;
}

.section-heading h2,
.approach-copy h2,
.faq-heading h2,
.privacy-card h2,
.program-heading h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(40px, 4.5vw, 58px);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.06;
}

.section-heading > p {
    margin: 0 0 4px;
    color: var(--muted);
}

.catalog-tools {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 52px;
    padding-bottom: 21px;
    border-bottom: 1px solid var(--line);
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.filter {
    min-height: 44px;
    padding: 9px 14px;
    color: #65595e;
    background: transparent;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 650;
}

.filter:hover,
.filter.is-active {
    color: #fff;
    background: var(--wine);
}

.catalog-search {
    display: flex;
    width: 220px;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
    border-bottom: 1px solid #b5aaae;
}

.catalog-search svg {
    width: 17px;
    fill: none;
    stroke: var(--muted);
    stroke-width: 1.5;
}

.catalog-search input {
    width: 100%;
    padding: 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    font-size: 13px;
}

.catalog-search:focus-within {
    border-bottom-color: var(--wine);
}

.catalog-status {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 14px;
    text-align: right;
}

.course-grid {
    display: grid;
    margin-top: 18px;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.course-card {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    background: var(--ivory);
    border: 1px solid rgba(68, 39, 49, 0.08);
    border-radius: var(--radius);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.course-card:hover {
    box-shadow: 0 18px 45px rgba(67, 30, 43, 0.11);
    transform: translateY(-5px);
}

.course-card[hidden] {
    display: none;
}

.course-image {
    position: relative;
    display: block;
    aspect-ratio: 1.52;
    overflow: hidden;
    color: #fff;
}

.course-image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31, 14, 20, 0.06), rgba(31, 14, 20, 0.38));
    content: "";
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 500ms ease;
}

.course-card:hover .course-image img {
    transform: scale(1.035);
}

.course-theme,
.course-number {
    position: absolute;
    z-index: 2;
}

.course-theme {
    top: 16px;
    left: 16px;
    padding: 6px 10px;
    background: rgba(46, 25, 33, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(7px);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.course-number {
    right: 18px;
    bottom: 8px;
    font-family: var(--serif);
    font-size: 43px;
    line-height: 1;
    opacity: 0.72;
}

.course-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 24px 22px;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--wine);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.course-card h3 {
    margin: 12px 0 9px;
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.13;
}

.course-card h3 a {
    text-decoration: none;
}

.course-card-body > p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.course-card-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-top: auto;
    padding-top: 24px;
}

.price {
    display: flex;
    flex-direction: column;
}

.price small {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.price strong {
    margin-top: 1px;
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 600;
}

.circle-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--wine);
    font-size: 12px;
    font-weight: 750;
    text-decoration: none;
}

.circle-link b {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: #fff;
    background: var(--wine);
    border-radius: 50%;
    font-size: 14px;
    transition: transform 180ms ease;
}

.circle-link:hover b {
    transform: rotate(45deg);
}

.empty-results {
    padding: 70px 20px;
    text-align: center;
}

.empty-results > span {
    color: var(--gold);
    font-size: 38px;
}

.empty-results h3 {
    margin: 8px 0;
    font-family: var(--serif);
    font-size: 30px;
}

.empty-results p {
    color: var(--muted);
}

.approach-section {
    overflow: hidden;
    padding: 120px 0;
    color: #fff;
    background:
        radial-gradient(circle at 78% 12%, rgba(187, 146, 88, 0.16), transparent 23%),
        var(--wine-dark);
}

.approach-grid {
    display: grid;
    align-items: center;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 105px;
}

.approach-visual {
    position: relative;
}

.arch-image {
    width: 100%;
    aspect-ratio: 0.79;
    overflow: hidden;
    border-radius: 240px 240px 22px 22px;
}

.arch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.approach-seal {
    position: absolute;
    right: -60px;
    bottom: -25px;
    width: 142px;
    height: 142px;
    padding: 8px;
    color: var(--wine);
    background: #ead9b8;
    border: 8px solid var(--wine-dark);
    border-radius: 50%;
}

.approach-seal text {
    fill: currentColor;
    font-family: var(--sans);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.seal-star {
    fill: currentColor;
}

.eyebrow-light {
    color: #d9bb87;
}

.approach-copy h2 {
    max-width: 570px;
    color: #fff;
}

.approach-lead {
    max-width: 620px;
    margin: 26px 0 0;
    color: #dbcbd1;
    font-family: var(--serif);
    font-size: 22px;
    line-height: 1.55;
}

.principles {
    margin-top: 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.principles article {
    display: grid;
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    grid-template-columns: 50px 1fr;
}

.principles article > span {
    color: #d9bb87;
    font-family: var(--serif);
    font-size: 14px;
}

.principles h3 {
    margin: 0 0 3px;
    font-family: var(--serif);
    font-size: 23px;
    font-weight: 500;
}

.principles p {
    margin: 0;
    color: #cdbec4;
    font-size: 14px;
}

.care-note {
    margin: 28px 0 0;
    padding-left: 17px;
    color: #bfaeb5;
    border-left: 2px solid #a98754;
    font-size: 12px;
}

.privacy-section {
    padding: 82px 0;
    background: #f4eceb;
}

.privacy-card {
    display: grid;
    align-items: center;
    padding: 50px 58px;
    background: var(--paper);
    border: 1px solid rgba(111, 22, 56, 0.11);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 45px rgba(70, 27, 44, 0.06);
    grid-template-columns: 95px 1fr auto;
    gap: 30px;
}

.privacy-icon {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    color: var(--wine);
    background: var(--rose-pale);
    border-radius: 50%;
}

.privacy-icon svg {
    width: 38px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
}

.privacy-card .eyebrow {
    margin-bottom: 10px;
}

.privacy-card h2 {
    font-size: 38px;
}

.privacy-card p:not(.eyebrow) {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.newsletter-section {
    padding: 82px 0;
    background: #f4eceb;
}

.newsletter-card {
    display: grid;
    align-items: center;
    padding: 48px 56px;
    background: var(--paper);
    border: 1px solid rgba(111, 22, 56, 0.11);
    border-radius: var(--radius-lg);
    box-shadow: 0 16px 45px rgba(70, 27, 44, 0.06);
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 16px 28px;
}

.newsletter-card .eyebrow {
    margin-bottom: 8px;
}

.newsletter-card h2 {
    font-size: clamp(31px, 3.2vw, 42px);
}

.newsletter-card p:not(.eyebrow) {
    max-width: 690px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.newsletter-card > .button {
    justify-self: end;
    white-space: nowrap;
}

.newsletter-card .newsletter-note {
    margin-top: 0;
    grid-column: 2 / -1;
    font-size: 13px;
}

.faq-section {
    padding: 112px 0;
    background: var(--paper);
}

.faq-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 110px;
}

.faq-heading {
    align-self: start;
    position: sticky;
    top: 120px;
}

.faq-heading p:not(.eyebrow) {
    margin: 22px 0 18px;
    color: var(--muted);
}

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

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

.faq-list summary {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    cursor: pointer;
    font-family: var(--serif);
    font-size: 20px;
    list-style: none;
}

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

.faq-list summary span {
    position: relative;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
}

.faq-list summary span::before,
.faq-list summary span::after {
    position: absolute;
    top: 10px;
    left: 3px;
    width: 16px;
    height: 1px;
    background: var(--wine);
    content: "";
    transition: transform 180ms ease;
}

.faq-list summary span::after {
    transform: rotate(90deg);
}

.faq-list details[open] summary span::after {
    transform: rotate(0);
}

.faq-list details p {
    max-width: 680px;
    margin: -5px 48px 24px 0;
    color: var(--muted);
    font-size: 15px;
}

.closing-section {
    position: relative;
    overflow: hidden;
    padding: 105px 0;
    color: #fff;
    background: var(--wine);
    text-align: center;
}

.closing-section::before,
.closing-section::after {
    position: absolute;
    width: 340px;
    height: 340px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    content: "";
}

.closing-section::before {
    top: -180px;
    left: -80px;
}

.closing-section::after {
    right: -120px;
    bottom: -220px;
}

.closing-inner {
    position: relative;
    z-index: 1;
}

.closing-star {
    display: block;
    margin-bottom: 18px;
    color: #d9bb87;
    font-size: 23px;
}

.eyebrow-centered {
    justify-content: center;
    color: #e5c995;
}

.closing-inner h2 {
    max-width: 850px;
    margin: 0 auto;
    font-family: var(--serif);
    font-size: clamp(38px, 4.7vw, 62px);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.07;
}

.closing-inner > p:not(.eyebrow) {
    margin: 20px 0 30px;
    color: #dfcdd4;
}

/* Course detail */
.course-hero {
    padding: 35px 0 96px;
    background:
        radial-gradient(circle at 12% 20%, rgba(187, 146, 88, 0.12), transparent 25%),
        #f8f3ef;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 45px;
    color: var(--muted);
    font-size: 12px;
}

.breadcrumb a {
    color: var(--wine);
    text-decoration: none;
}

.course-hero-grid {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 90px;
}

.course-detail-copy {
    padding-top: 38px;
}

.course-detail-copy h1 {
    max-width: 700px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(54px, 6.3vw, 84px);
    font-weight: 400;
    letter-spacing: -0.05em;
    line-height: 0.98;
}

.course-tagline {
    max-width: 680px;
    margin: 26px 0 0;
    color: var(--wine);
    font-family: var(--serif);
    font-size: 25px;
    font-style: italic;
    line-height: 1.45;
}

.course-summary {
    max-width: 680px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.course-facts {
    display: grid;
    margin: 42px 0 0;
    padding: 24px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
}

.course-facts li {
    padding: 0 20px;
}

.course-facts li:first-child {
    padding-left: 0;
}

.course-facts li + li {
    border-left: 1px solid var(--line);
}

.course-facts small,
.course-facts strong {
    display: block;
}

.course-facts small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.course-facts strong {
    margin-top: 4px;
    font-size: 14px;
}

.course-purchase {
    overflow: hidden;
    scroll-margin-top: 110px;
    background: var(--paper);
    border: 1px solid rgba(75, 35, 50, 0.1);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.purchase-image {
    position: relative;
    aspect-ratio: 1.62;
    overflow: hidden;
}

.purchase-image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(28, 12, 18, 0.46));
    content: "";
}

.purchase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.purchase-image > span {
    position: absolute;
    z-index: 1;
    bottom: 18px;
    left: 20px;
    padding: 6px 10px;
    color: #fff;
    background: rgba(50, 20, 31, 0.68);
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.purchase-body {
    padding: 26px 28px 25px;
}

.purchase-price {
    display: flex;
    align-items: end;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.purchase-price span {
    color: var(--muted);
    font-size: 14px;
}

.purchase-price strong {
    font-family: var(--serif);
    font-size: 35px;
    font-weight: 550;
    line-height: 1;
}

.included-list {
    display: grid;
    gap: 10px;
    margin: 20px 0 22px;
    padding: 0;
    color: #55494e;
    font-size: 14px;
    list-style: none;
}

.included-list span {
    margin-right: 6px;
    color: var(--success);
}

.purchase-note,
.form-notice {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.form-notice {
    margin-bottom: 12px;
    padding: 10px;
    color: #735013;
    background: #f8ebce;
    border-radius: 8px;
    font-size: 14px;
}

.secure-line {
    margin-top: 16px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.secure-line span {
    color: var(--gold);
}

.purchase-form {
    display: grid;
    gap: 12px;
}

.check-row {
    display: grid;
    align-items: start;
    gap: 9px;
    grid-template-columns: 20px 1fr;
    color: #5e5257;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.55;
}

.check-row input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--wine);
}

.check-row a {
    color: var(--wine);
}

.course-body-section {
    padding: 110px 0;
    background: var(--paper);
}

.course-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
    gap: 100px;
}

.prose h2 {
    max-width: 700px;
    margin: 0 0 28px;
    font-family: var(--serif);
    font-size: clamp(42px, 4.5vw, 58px);
    font-weight: 400;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.prose > p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
}

.prose h3 {
    margin: 40px 0 17px;
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 500;
}

.framework-note {
    max-width: 760px;
    margin: 30px 0;
    padding: 20px 22px;
    color: #5d4110;
    background: #fbefd3;
    border-left: 3px solid #c3964f;
    border-radius: 5px 12px 12px 5px;
}

.framework-note strong {
    display: block;
    font-family: var(--serif);
    font-size: 18px;
}

.framework-note p {
    margin: 5px 0 0;
    color: #68563b;
    font-size: 14px;
}

.outcome-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    grid-template-columns: 1fr 1fr;
    list-style: none;
}

.outcome-list li {
    display: grid;
    align-items: start;
    padding: 15px 17px;
    background: var(--rose-pale);
    border-radius: 10px;
    grid-template-columns: 22px 1fr;
    font-size: 13px;
}

.outcome-list span {
    color: var(--gold);
}

.course-aside {
    align-self: start;
    padding: 34px;
    background: #f2e8e8;
    border-radius: 22px;
}

.course-aside > p:first-child {
    margin: 0 0 15px;
    color: var(--wine);
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
}

.course-aside ul {
    display: grid;
    gap: 11px;
    margin: 0;
    padding-left: 20px;
    color: #5e5156;
    font-size: 13px;
}

.aside-note {
    margin: 24px 0 0;
    padding-top: 18px;
    color: var(--muted);
    border-top: 1px solid rgba(75, 35, 50, 0.13);
    font-size: 13px;
}

.program-section {
    padding: 110px 0;
    background: #f5efeb;
}

.program-grid {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 100px;
}

.program-heading {
    align-self: start;
    position: sticky;
    top: 120px;
}

.program-heading p:not(.eyebrow) {
    color: var(--muted);
}

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

.module-row {
    display: grid;
    min-height: 108px;
    align-items: center;
    padding: 18px 4px;
    border-bottom: 1px solid var(--line);
    grid-template-columns: 55px 1fr 30px;
}

.module-row > span {
    color: var(--gold);
    font-family: var(--serif);
    font-size: 13px;
}

.module-row h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
}

.module-row p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.module-row b {
    color: var(--wine);
    font-size: 18px;
    font-weight: 400;
}

.course-cta {
    padding: 82px 0;
    color: #fff;
    background: var(--wine);
}

.course-cta-inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
}

.course-cta h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(40px, 4.6vw, 58px);
    font-weight: 400;
    line-height: 1.05;
}

.course-cta p:not(.eyebrow) {
    margin: 12px 0 0;
    color: #dbc8cf;
}

.course-cta-inner > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 17px;
}

.course-cta-inner > div:last-child > strong {
    font-family: var(--serif);
    font-size: 40px;
    font-weight: 500;
}

/* Shared interior pages */
.interior-hero {
    padding: 72px 0 62px;
    background:
        radial-gradient(circle at 82% 20%, rgba(187, 146, 88, 0.13), transparent 25%),
        #f6efeb;
}

.interior-hero h1 {
    max-width: 850px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(46px, 6vw, 72px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1;
}

.interior-hero p:last-child {
    max-width: 690px;
    margin: 20px 0 0;
    color: var(--muted);
}

.content-section {
    padding: 80px 0 110px;
    background: var(--paper);
}

.content-narrow {
    width: min(760px, 100%);
}

.legal-draft {
    margin-bottom: 30px;
    padding: 18px 20px;
    color: #5d4110;
    background: #fbefd2;
    border: 1px solid #e7cd93;
    border-radius: 12px;
    font-size: 13px;
}

.legal-copy h2 {
    margin: 48px 0 15px;
    font-family: var(--serif);
    font-size: 31px;
    font-weight: 500;
    line-height: 1.2;
}

.legal-copy h3 {
    margin: 28px 0 10px;
    font-size: 17px;
}

.legal-copy p,
.legal-copy li {
    color: #584d51;
    font-size: 15px;
}

.legal-copy a {
    color: var(--wine);
}

.legal-copy table {
    width: 100%;
    min-width: 680px;
    margin: 0;
    border-collapse: collapse;
    font-size: 13px;
}

.table-scroll {
    overflow-x: auto;
    margin: 25px 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    overscroll-behavior-inline: contain;
    scrollbar-gutter: stable;
}

.table-scroll-hint {
    display: none;
    margin: 18px 0 7px;
    color: var(--muted);
    font-size: 13px;
}

.legal-copy th,
.legal-copy td {
    padding: 12px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.legal-copy th {
    background: var(--rose-pale);
}

.table-scroll th:first-child,
.table-scroll td:first-child {
    border-left: 0;
}

.table-scroll th:last-child,
.table-scroll td:last-child {
    border-right: 0;
}

.table-scroll thead tr:first-child th {
    border-top: 0;
}

.table-scroll tbody tr:last-child td {
    border-bottom: 0;
}

/* Authentication */
.auth-section {
    min-height: calc(100vh - 82px);
    padding: 48px 0 86px;
    background:
        radial-gradient(circle at 85% 10%, rgba(187, 146, 88, 0.13), transparent 28%),
        #f7f1ed;
}

.auth-grid {
    display: grid;
    min-height: 690px;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid rgba(67, 30, 43, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    grid-template-columns: 0.88fr 1.12fr;
}

.auth-visual {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: var(--wine-dark);
}

.auth-visual::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(34, 12, 20, 0.04) 35%, rgba(34, 12, 20, 0.82)),
        linear-gradient(135deg, rgba(111, 22, 56, 0.1), rgba(23, 8, 14, 0.25));
    content: "";
}

.auth-visual > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-quote {
    position: absolute;
    z-index: 1;
    right: 45px;
    bottom: 45px;
    left: 45px;
    color: #fff;
}

.auth-quote > span {
    color: #e2c58f;
}

.auth-quote blockquote {
    margin: 15px 0 0;
    font-family: var(--serif);
    font-size: clamp(23px, 2.4vw, 33px);
    font-style: italic;
    line-height: 1.3;
}

.auth-panel {
    width: min(520px, calc(100% - 70px));
    align-self: center;
    justify-self: center;
    padding: 54px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
}

.back-link:hover {
    color: var(--wine);
}

.auth-panel h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(43px, 4.2vw, 58px);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1;
}

.auth-intro {
    margin: 15px 0 28px;
    color: var(--muted);
    font-size: 14px;
}

.stack-form {
    display: grid;
    gap: 18px;
}

.stack-form > label:not(.check-row),
.field {
    display: grid;
    gap: 7px;
}

.stack-form > label > span,
.field > span {
    font-size: 12px;
    font-weight: 700;
}

.stack-form input[type="text"],
.stack-form input[type="email"],
.stack-form input[type="password"],
.field input,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 11px 14px;
    color: var(--ink);
    background: #fff;
    border: 1px solid #cfc3c7;
    border-radius: 9px;
    outline: 0;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.stack-form input:focus,
.field input:focus,
.field textarea:focus {
    border-color: var(--wine);
    box-shadow: 0 0 0 3px rgba(111, 22, 56, 0.1);
}

.stack-form input:disabled {
    color: #776c70;
    background: #eee9e7;
}

.stack-form label small {
    color: var(--muted);
    font-size: 13px;
}

.form-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: -3px;
}

.form-between-end {
    justify-content: flex-end;
}

.form-between a {
    color: var(--wine);
    font-size: 13px;
}

.compact-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 11px;
}

.compact-check input {
    accent-color: var(--wine);
}

.consent-group {
    display: grid;
    gap: 12px;
    padding: 16px;
    background: var(--rose-pale);
    border-radius: 10px;
}

.check-row-large {
    font-size: 14px;
}

.auth-switch {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.auth-switch a {
    color: var(--wine);
    font-weight: 700;
}

.auth-privacy {
    margin: 27px 0 0;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

.auth-privacy span {
    color: var(--gold);
}

.form-errors {
    margin-bottom: 20px;
    padding: 13px 16px;
    color: #742626;
    background: #f9e4e2;
    border: 1px solid #efc5c0;
    border-radius: 9px;
    font-size: 14px;
}

.form-errors ul {
    margin: 5px 0 0;
    padding-left: 20px;
}

/* Account and dashboard */
.dashboard-hero {
    padding: 70px 0 62px;
    background:
        radial-gradient(circle at 84% 8%, rgba(187, 146, 88, 0.17), transparent 26%),
        #f5edeb;
}

.dashboard-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
}

.dashboard-hero h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(48px, 5.7vw, 72px);
    font-weight: 400;
    letter-spacing: -0.045em;
    line-height: 1;
}

.dashboard-hero p:last-child {
    margin: 16px 0 0;
    color: var(--muted);
}

.dashboard-hero-small {
    padding-block: 58px;
}

.dashboard-hero-small h1 {
    font-size: clamp(44px, 5vw, 64px);
}

.dashboard-section {
    min-height: 560px;
    padding: 64px 0 105px;
    background: var(--paper);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 70px;
}

.account-nav {
    display: flex;
    align-self: start;
    position: sticky;
    top: 112px;
    flex-direction: column;
    padding: 10px;
    background: #f5efec;
    border-radius: 14px;
}

.account-nav a {
    display: grid;
    align-items: center;
    gap: 10px;
    padding: 12px 13px;
    color: #695d62;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    grid-template-columns: 20px 1fr;
}

.account-nav a span {
    color: var(--gold-text);
    text-align: center;
}

.account-nav a:hover,
.account-nav a.is-active,
.account-nav a[aria-current="page"] {
    color: var(--wine);
    background: #fff;
    box-shadow: 0 5px 16px rgba(56, 26, 37, 0.06);
}

.dashboard-main {
    min-width: 0;
}

.verification-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 40px;
    padding: 20px 22px;
    color: #6f4e18;
    background: #f9edcf;
    border: 1px solid #ead29d;
    border-radius: 12px;
}

.verification-card strong {
    font-family: var(--serif);
    font-size: 18px;
}

.verification-card p {
    margin: 2px 0 0;
    font-size: 11px;
}

.dashboard-title-row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 24px;
}

.dashboard-title-row .eyebrow {
    margin-bottom: 8px;
}

.dashboard-title-row h2,
.account-panel h2,
.request-history h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: 34px;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.dashboard-title-row > span {
    color: var(--muted);
    font-size: 11px;
}

.account-empty {
    padding: 65px 35px;
    background:
        radial-gradient(circle at center 0%, rgba(187, 146, 88, 0.12), transparent 35%),
        #f8f3f0;
    border: 1px dashed rgba(111, 22, 56, 0.22);
    border-radius: 20px;
    text-align: center;
}

.empty-glyph {
    color: var(--gold);
    font-size: 29px;
}

.account-empty h3 {
    margin: 9px 0 8px;
    font-family: var(--serif);
    font-size: 31px;
    font-weight: 500;
}

.account-empty p {
    max-width: 530px;
    margin: 0 auto 24px;
    color: var(--muted);
    font-size: 13px;
}

.library-grid {
    display: grid;
    gap: 18px;
}

.library-card {
    display: grid;
    overflow: hidden;
    background: #f7f2ef;
    border: 1px solid var(--line);
    border-radius: 17px;
    grid-template-columns: 260px 1fr;
}

.library-card > img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: cover;
}

.library-card > div {
    align-self: center;
    padding: 28px 34px;
}

.library-card small {
    color: var(--wine);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.library-card h3 {
    margin: 7px 0;
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 500;
}

.library-card p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 11px;
}

.quiet-card {
    display: grid;
    align-items: center;
    margin-top: 36px;
    padding: 21px 24px;
    background: #edf4f0;
    border-radius: 12px;
    grid-template-columns: 36px 1fr auto;
}

.quiet-card > span {
    color: var(--success);
    font-size: 21px;
}

.quiet-card strong {
    font-family: var(--serif);
    font-size: 16px;
}

.quiet-card p {
    margin: 0;
    color: #58665e;
    font-size: 13px;
}

.quiet-card a {
    color: var(--success);
    font-size: 13px;
    font-weight: 700;
}

.account-content {
    display: grid;
    gap: 24px;
}

.account-panel {
    padding: 34px;
    background: #f9f5f2;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.account-panel > h2 {
    margin-bottom: 24px;
}

.account-panel .stack-form {
    max-width: 560px;
}

.account-panel-compact p {
    color: var(--muted);
    font-size: 13px;
}

.order-list {
    display: grid;
}

.order-list article {
    display: flex;
    min-height: 120px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.order-list article:last-child {
    border-bottom: 0;
}

.order-list small {
    color: var(--muted);
    font-size: 12px;
}

.order-list h3 {
    margin: 3px 0;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 500;
}

.order-list code {
    color: var(--muted);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.order-total {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 7px;
}

.order-total > strong {
    font-family: var(--serif);
    font-size: 21px;
}

.status {
    padding: 4px 8px;
    color: #675b60;
    background: #ece6e3;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 750;
    text-transform: uppercase;
}

.status-paid {
    color: var(--success);
    background: #dcebe3;
}

.status-refunded {
    color: #765d19;
    background: #f1e7c8;
}

.simple-empty {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 30px 0;
    color: var(--muted);
}

.simple-empty > span {
    color: var(--gold);
}

.data-intro {
    display: grid;
    align-items: center;
    grid-template-columns: 82px 1fr;
    gap: 22px;
}

.data-intro h2 {
    margin-bottom: 4px;
}

.data-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.data-actions {
    display: grid;
    gap: 12px;
}

.data-actions article {
    display: grid;
    align-items: center;
    padding: 23px 25px;
    background: #f9f5f2;
    border: 1px solid var(--line);
    border-radius: 14px;
    grid-template-columns: 1fr auto;
    gap: 25px;
}

.data-actions article > div {
    display: grid;
    grid-template-columns: 36px 1fr;
}

.data-actions article > div > span {
    grid-row: 1 / 3;
    color: var(--gold-text);
    font-family: var(--serif);
    font-size: 12px;
}

.data-actions h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 550;
}

.data-actions p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.button-danger {
    color: #fff;
    background: var(--danger);
    border-color: var(--danger);
}

.button-danger:hover {
    color: var(--danger);
    background: transparent;
}

.danger-action {
    border-color: rgba(154, 44, 44, 0.2) !important;
}

.request-history {
    padding: 25px;
    background: #f4efec;
    border-radius: 14px;
}

.request-history h2 {
    margin-bottom: 15px;
    font-size: 23px;
}

.request-history p {
    display: grid;
    align-items: center;
    margin: 0;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    grid-template-columns: 1fr auto auto;
    gap: 20px;
    font-size: 13px;
}

.request-history strong {
    color: var(--success);
}

/* Learning area */
.learn-shell {
    display: grid;
    min-height: 100vh;
    background: #f8f4f0;
    grid-template-columns: 330px minmax(0, 1fr);
}

body.learning-page > .site-header,
body.learning-page > .preview-bar,
body.learning-page > .site-footer {
    display: none;
}

.lesson-sidebar {
    overflow-y: auto;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 28px 24px;
    background: #fff;
    border-right: 1px solid var(--line);
}

.back-dashboard {
    display: block;
    margin-top: 25px;
    color: var(--muted);
    font-size: 12px;
    text-decoration: none;
}

.lesson-course-title {
    margin: 40px 0 25px;
}

.lesson-course-title small {
    color: var(--wine);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.lesson-course-title h1 {
    margin: 7px 0 0;
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 500;
    line-height: 1.15;
}

.lesson-sidebar nav {
    display: grid;
    gap: 4px;
}

.lesson-sidebar nav a {
    display: grid;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    color: #665a5f;
    border-radius: 9px;
    text-decoration: none;
    grid-template-columns: 26px 1fr;
}

.lesson-sidebar nav a:hover,
.lesson-sidebar nav a.is-active,
.lesson-sidebar nav a[aria-current="location"] {
    color: var(--wine);
    background: var(--rose-pale);
}

.lesson-sidebar nav a > span {
    color: var(--gold-text);
    font-family: var(--serif);
    font-size: 12px;
}

.lesson-sidebar nav strong,
.lesson-sidebar nav small {
    display: block;
}

.lesson-sidebar nav strong {
    font-family: var(--serif);
    font-size: 15px;
}

.lesson-sidebar nav small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.lesson-main {
    min-width: 0;
}

.lesson-topbar {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    padding: 0 40px;
    background: rgba(248, 244, 240, 0.9);
    border-bottom: 1px solid var(--line);
}

.lesson-topbar span,
.lesson-topbar a {
    font-size: 13px;
}

.lesson-topbar a {
    color: var(--wine);
}

.lesson-content {
    width: min(840px, calc(100% - 80px));
    margin: 0 auto;
    padding: 70px 0 100px;
}

.lesson-section {
    scroll-margin-top: 24px;
}

.lesson-section + .lesson-section {
    margin-top: 90px;
    padding-top: 90px;
    border-top: 1px solid var(--line);
}

.lesson-content h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(45px, 5vw, 66px);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1;
}

.lesson-lead {
    margin: 17px 0 35px;
    color: var(--wine);
    font-family: var(--serif);
    font-size: 21px;
    font-style: italic;
}

.lesson-placeholder {
    min-height: 360px;
    display: grid;
    place-content: center;
    padding: 55px;
    color: #fff;
    background:
        radial-gradient(circle at 50% 20%, rgba(214, 181, 119, 0.24), transparent 32%),
        var(--wine-dark);
    border-radius: 24px;
    text-align: center;
}

.lesson-placeholder > span {
    color: #ddbf88;
    font-size: 23px;
}

.lesson-placeholder h3 {
    margin: 12px 0 8px;
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 500;
}

.lesson-placeholder p {
    max-width: 580px;
    margin: 0 auto;
    color: #d6c4cb;
    font-size: 14px;
}

.lesson-note {
    margin: 35px 0 25px;
    padding: 25px 28px;
    background: #fff;
    border-left: 3px solid var(--gold);
    border-radius: 5px 12px 12px 5px;
}

.lesson-note h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: 21px;
}

.lesson-note p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

/* Status and errors */
.status-section {
    display: grid;
    min-height: 650px;
    padding: 85px 0;
    place-items: center;
    background:
        radial-gradient(circle at 50% 15%, rgba(187, 146, 88, 0.15), transparent 26%),
        #f7f1ed;
}

.status-card {
    max-width: 740px;
    padding: 65px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
}

.status-glyph {
    display: block;
    margin-bottom: 18px;
    color: var(--gold);
    font-size: 32px;
}

.status-card h1 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(42px, 5vw, 62px);
    font-weight: 400;
    letter-spacing: -0.04em;
    line-height: 1;
}

.status-card > p:not(.eyebrow) {
    max-width: 570px;
    margin: 20px auto 0;
    color: var(--muted);
}

.status-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px;
    margin-top: 30px;
}

.error-code {
    display: block;
    color: var(--rose);
    font-family: var(--serif);
    font-size: 100px;
    line-height: 0.8;
}

.withdrawal-model {
    margin: 25px 0;
    padding: 25px 28px;
    background: #f5efec;
    border: 1px solid var(--line);
    border-radius: 12px;
}

/* Footer */
.site-footer {
    color: #d7c8cd;
    background: #25161c;
}

.footer-main {
    display: grid;
    padding: 72px 0 55px;
    grid-template-columns: 1.55fr 0.8fr 0.8fr 1fr;
    gap: 58px;
}

.brand-light {
    color: #fff;
}

.brand-light .brand-mark circle {
    fill: #25161c;
}

.brand-light .brand-copy small {
    color: #bca9b0;
}

.footer-brand p {
    max-width: 300px;
    margin: 20px 0 0;
    color: #a9949c;
    font-family: var(--serif);
    font-size: 15px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-column h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-column a,
.link-button {
    padding: 0;
    color: #bba8af;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
}

.footer-column a:hover,
.link-button:hover {
    color: #fff;
}

.footer-column form {
    margin: 0;
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    color: #9cb9a9;
    font-size: 12px;
}

.privacy-badge span {
    width: 6px;
    height: 6px;
    background: #70a487;
    border-radius: 50%;
}

.footer-bottom {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer-bottom p {
    margin: 0;
    color: #a9949c;
    font-size: 12px;
}

.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal-delay {
    transition-delay: 120ms;
}

.reveal.is-visible,
.no-js .reveal {
    opacity: 1;
    transform: none;
}

@media (max-width: 1020px) {
    :root {
        --shell: min(100% - 40px, 900px);
    }

    .hero-grid {
        width: var(--shell);
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 40px;
    }

    .hero-visual {
        min-height: 520px;
    }

    .hero-image-wrap {
        width: 100%;
    }

    .trust-list li {
        min-width: 148px;
    }

    .course-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .approach-grid,
    .course-content-grid {
        gap: 60px;
    }

    .approach-grid {
        grid-template-columns: 0.8fr 1.2fr;
    }

    .faq-grid,
    .program-grid {
        gap: 60px;
    }

    .privacy-card {
        grid-template-columns: 80px 1fr;
    }

    .privacy-card > .text-link {
        grid-column: 2;
    }

    .course-hero-grid {
        gap: 45px;
        grid-template-columns: minmax(0, 1fr) 370px;
    }

    .footer-main {
        grid-template-columns: 1.4fr repeat(3, 1fr);
        gap: 30px;
    }

    .dashboard-layout {
        gap: 40px;
    }
}

@media (max-width: 780px) {
    :root {
        --shell: calc(100% - 32px);
    }

    html {
        scroll-padding-top: 75px;
    }

    body {
        font-size: 16px;
    }

    .preview-bar {
        font-size: 11px;
    }

    .header-inner {
        min-height: 70px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-toggle[aria-expanded="true"] span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .site-nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        padding: 14px 16px 22px;
        background: var(--ivory);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 18px 35px rgba(50, 22, 33, 0.1);
    }

    .site-nav.is-open {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .site-nav > a {
        padding: 12px;
        font-size: 15px;
    }

    .nav-account {
        justify-content: center;
        margin-top: 8px;
    }

    .hero {
        padding: 62px 0 70px;
    }

    .hero-grid {
        display: flex;
        width: var(--shell);
        flex-direction: column;
        gap: 48px;
    }

    .hero-copy h1 {
        font-size: clamp(47px, 14vw, 68px);
    }

    .hero-lead {
        font-size: 17px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .trust-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        row-gap: 18px;
    }

    .trust-list li + li {
        padding-left: 0;
        border-left: 0;
    }

    .hero-visual {
        width: min(430px, 100%);
        min-height: 490px;
        margin: 0 auto;
    }

    .hero-image-wrap {
        right: 0;
        width: 90%;
    }

    .hero-note {
        right: auto;
        bottom: 0;
        left: 0;
        width: 220px;
    }

    .catalog-section,
    .approach-section,
    .faq-section,
    .course-body-section,
    .program-section {
        padding: 80px 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 20px;
    }

    .catalog-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .filter {
        flex: 0 0 auto;
    }

    .catalog-search {
        width: 100%;
    }

    .catalog-status {
        text-align: left;
    }

    .course-grid {
        grid-template-columns: 1fr;
    }

    .course-card {
        max-width: 540px;
        margin-inline: auto;
    }

    .approach-grid,
    .faq-grid,
    .program-grid,
    .course-content-grid {
        grid-template-columns: 1fr;
    }

    .approach-visual {
        width: min(430px, calc(100% - 28px));
    }

    .approach-seal {
        right: -38px;
        width: 120px;
        height: 120px;
    }

    .faq-heading,
    .program-heading {
        position: static;
    }

    .privacy-card {
        padding: 32px 26px;
        grid-template-columns: 1fr;
    }

    .privacy-card > .text-link {
        grid-column: 1;
    }

    .course-hero {
        padding-bottom: 70px;
    }

    .course-hero-grid {
        display: flex;
        flex-direction: column;
    }

    .course-detail-copy {
        padding-top: 0;
    }

    .course-purchase {
        width: min(460px, 100%);
        margin-inline: auto;
    }

    .course-facts {
        grid-template-columns: 1fr 1fr;
        row-gap: 20px;
    }

    .course-facts li:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .outcome-list {
        grid-template-columns: 1fr;
    }

    .course-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .course-cta-inner > div:last-child {
        width: 100%;
        align-items: flex-start;
    }

    .auth-grid {
        display: block;
    }

    .auth-visual {
        min-height: 300px;
        max-height: 380px;
    }

    .auth-panel {
        width: min(560px, calc(100% - 40px));
        padding: 52px 0;
    }

    .auth-quote {
        right: 28px;
        bottom: 28px;
        left: 28px;
    }

    .dashboard-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-layout {
        grid-template-columns: 1fr;
    }

    .account-nav {
        overflow-x: auto;
        position: static;
        flex-direction: row;
    }

    .account-nav a {
        flex: 0 0 auto;
    }

    .learn-shell {
        grid-template-columns: 1fr;
    }

    .lesson-sidebar {
        position: static;
        width: 100%;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .lesson-sidebar nav {
        display: flex;
        overflow-x: auto;
    }

    .lesson-sidebar nav a {
        min-width: 220px;
    }

    .lesson-content {
        width: min(100% - 40px, 840px);
    }

    .lesson-section + .lesson-section {
        margin-top: 70px;
        padding-top: 70px;
    }

    .table-scroll-hint {
        display: block;
    }

    .table-scroll {
        margin-top: 7px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .brand-copy strong {
        font-size: 19px;
    }

    .preview-bar span {
        display: block;
        margin: 0;
    }

    .hero-copy h1,
    .course-detail-copy h1 {
        overflow-wrap: anywhere;
    }

    .trust-list {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: 430px;
    }

    .hero-note {
        padding: 18px;
    }

    .auth-section {
        padding: 22px 0 55px;
    }

    .auth-visual {
        display: none;
    }

    .auth-quote blockquote {
        font-size: 21px;
    }

    .verification-card,
    .data-actions article,
    .quiet-card {
        align-items: flex-start;
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .library-card {
        grid-template-columns: 1fr;
    }

    .library-card > img {
        min-height: 190px;
        max-height: 230px;
    }

    .data-intro {
        grid-template-columns: 1fr;
    }

    .order-list article {
        align-items: flex-start;
        flex-direction: column;
    }

    .order-total {
        align-items: flex-start;
    }

    .request-history p {
        align-items: start;
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .lesson-topbar {
        padding-inline: 20px;
    }

    .lesson-content {
        width: calc(100% - 28px);
        padding-top: 50px;
    }

    .lesson-placeholder {
        min-height: 300px;
        padding: 35px 24px;
    }

    .status-card {
        padding: 45px 24px;
    }

    .privacy-section {
        padding: 55px 0;
    }

    .course-facts {
        grid-template-columns: 1fr;
    }

    .course-facts li,
    .course-facts li:first-child,
    .course-facts li:nth-child(3) {
        padding: 0;
        border-left: 0;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

.archived-terms {
    white-space: pre-wrap;
    padding: clamp(1.25rem, 3vw, 2rem);
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--paper);
    color: var(--ink);
    font: 0.96rem/1.7 var(--sans);
}

@media (forced-colors: active) {
    :focus-visible {
        outline: 3px solid CanvasText !important;
        box-shadow: none !important;
    }
}

@media (max-width: 780px) {
    .newsletter-section {
        padding: 55px 0;
    }

    .newsletter-card {
        padding: 32px 26px;
        grid-template-columns: 1fr;
    }

    .newsletter-card > .button {
        justify-self: start;
        white-space: normal;
    }

    .newsletter-card .newsletter-note {
        grid-column: 1;
    }
}
