/* My Ustaad — public site (student dashboard uses dashboard-app.css only) */
:root {
    --ink: #0b0d12;
    --ink-soft: #3d4350;
    --muted: #6b7280;
    --line: rgba(11, 13, 18, 0.1);
    --paper: #f4f3f0;
    --card: #ffffff;
    --accent: #312e81;
    --accent-hover: #1e1b4b;
    --accent-muted: rgba(49, 46, 129, 0.1);
    --sans: "IBM Plex Sans", system-ui, sans-serif;
    --serif: "IBM Plex Serif", Georgia, serif;
    --r: 10px;
    --r2: 14px;
    --shadow: 0 1px 2px rgba(11, 13, 18, 0.05), 0 12px 32px rgba(11, 13, 18, 0.06);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.site-body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

.site-backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 90% 60% at 0% 0%, rgba(49, 46, 129, 0.06), transparent 55%),
        radial-gradient(ellipse 70% 50% at 100% 10%, rgba(11, 13, 18, 0.04), transparent 45%),
        var(--paper);
}

.wrap {
    width: 100%;
    max-width: min(1120px, 100%);
    margin-inline: auto;
    padding-inline: clamp(1.1rem, 4vw, 1.75rem);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ——— Header ——— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
    box-shadow: 0 8px 30px rgba(11, 13, 18, 0.06);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--ink);
}

.brand__mark {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--r);
    flex-shrink: 0;
}

.brand__name {
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--card);
    cursor: pointer;
    color: var(--ink);
}

@media (min-width: 880px) {
    .nav-toggle {
        display: none;
    }
}

.nav-toggle__bars {
    display: block;
    width: 1.1rem;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.2rem;
}

@media (max-width: 879px) {
    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(300px, 88vw);
        height: 100vh;
        height: 100dvh;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 5.25rem 1.25rem 2rem;
        background: rgba(255, 255, 255, 0.98);
        border-left: 1px solid var(--line);
        box-shadow: -12px 0 40px rgba(11, 13, 18, 0.08);
        transform: translateX(100%);
        transition: transform 0.35s var(--ease);
        z-index: 99;
    }

    .site-nav.is-open {
        transform: translateX(0);
    }
}

.site-nav__link {
    display: block;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.site-nav__link:hover {
    color: var(--accent);
    background: var(--accent-muted);
}

.site-nav__link.is-active {
    color: var(--accent);
    font-weight: 600;
    background: var(--accent-muted);
}

.site-nav__link--solid {
    background: var(--accent) !important;
    color: #fff !important;
}

.site-nav__link--solid:hover {
    background: var(--accent-hover) !important;
    color: #fff !important;
}

.site-nav__link--solid.is-active {
    background: var(--accent-hover) !important;
}

.site-nav__link--quiet {
    border: 1px dashed var(--line);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(11, 13, 18, 0.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s, visibility 0.3s;
}

.nav-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

@media (min-width: 880px) {
    .nav-backdrop {
        display: none !important;
    }
}

.site-main {
    flex: 1;
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

body.site-body--auth .site-main {
    display: flex;
    flex-direction: column;
    padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

body.site-body--auth .site-backdrop {
    background:
        radial-gradient(ellipse 90% 55% at 10% 15%, rgba(99, 102, 241, 0.14), transparent 52%),
        radial-gradient(ellipse 70% 50% at 92% 8%, rgba(49, 46, 129, 0.12), transparent 48%),
        radial-gradient(ellipse 55% 40% at 50% 95%, rgba(236, 72, 153, 0.07), transparent 55%),
        var(--paper);
}

/* ——— Buttons ——— */
.btn,
button.btn-primary,
a.btn-primary,
button.btn-secondary,
a.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--r);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn--primary,
.btn-primary {
    background: var(--accent);
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(49, 46, 129, 0.25);
}

.btn--primary:hover,
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn--secondary,
.btn-secondary {
    background: var(--card);
    color: var(--accent) !important;
    border: 1px solid var(--line);
}

.btn--secondary:hover,
.btn-secondary:hover {
    border-color: var(--accent);
    background: var(--accent-muted);
}

.btn--ghost,
.btn-ghost {
    background: transparent;
    color: var(--ink-soft) !important;
    border: 1px solid var(--line);
}

.btn--ghost:hover,
.btn-ghost:hover {
    border-color: var(--ink-soft);
    color: var(--ink) !important;
}

.btn--block,
.btn-primary--block,
.btn-secondary--block {
    width: 100%;
}

.btn-secondary--arrow::after {
    content: "→";
    margin-left: 0.15em;
}

button.btn-primary span {
    position: relative;
    z-index: 1;
}

/* ——— Home ——— */
.home-top {
    padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
}

.home-top__grid {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 900px) {
    .home-top__grid {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 3rem;
    }
}

.home-top__eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
}

.home-top__title {
    margin: 0 0 1rem;
    font-family: var(--serif);
    font-size: clamp(2rem, 4.5vw, 2.85rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.home-top__lead {
    margin: 0 0 1.25rem;
    color: var(--muted);
    font-size: 1.0625rem;
    line-height: 1.65;
    max-width: 38rem;
}

.home-top__bullets {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--ink-soft);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.home-top__bullets li {
    margin-bottom: 0.35rem;
}

.home-top__panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r2);
    padding: 1.35rem 1.35rem 1.25rem;
    box-shadow: var(--shadow);
}

.home-top__panel-label {
    margin: 0 0 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.home-top__form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

@media (min-width: 480px) {
    .home-top__form {
        flex-direction: row;
        align-items: stretch;
    }
}

.home-top__input {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r);
    font-family: inherit;
    font-size: 1rem;
    background: #fafafa;
}

.home-top__input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    background: #fff;
}

.home-top__fineprint {
    margin: 0.85rem 0 0;
    font-size: 0.8125rem;
    color: var(--muted);
}

.home-top__fineprint a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.home-top__fineprint a:hover {
    text-decoration: underline;
}

.home-strip {
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.65);
}

.home-strip__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.35rem 0;
}

@media (min-width: 720px) {
    .home-strip__inner {
        grid-template-columns: repeat(4, 1fr);
    }
}

.home-strip__item {
    text-align: center;
    padding: 0.5rem;
}

.home-strip__num {
    display: block;
    font-family: var(--serif);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.1;
}

.home-strip__txt {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.home-pillars {
    padding: clamp(2.75rem, 5vw, 4rem) 0;
}

.home-section-head {
    max-width: 36rem;
    margin-bottom: 2rem;
}

.home-section-head__title {
    margin: 0 0 0.5rem;
    font-family: var(--serif);
    font-size: clamp(1.65rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-section-head__lead {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.home-pillars__grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 720px) {
    .home-pillars__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.home-pillar {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r2);
    padding: 1.5rem 1.35rem;
    box-shadow: 0 1px 2px rgba(11, 13, 18, 0.04);
}

.home-pillar__step {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.home-pillar__title {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.home-pillar__text {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--muted);
    line-height: 1.6;
}

.home-links {
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
    background: linear-gradient(180deg, transparent, rgba(49, 46, 129, 0.04));
    border-top: 1px solid var(--line);
}

.home-links__flex {
    display: grid;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 800px) {
    .home-links__flex {
        grid-template-columns: 1fr 1fr;
    }
}

.home-links__title {
    margin: 0 0 0.5rem;
    font-family: var(--serif);
    font-size: 1.65rem;
    font-weight: 700;
}

.home-links__lead {
    margin: 0 0 1.25rem;
    color: var(--muted);
    line-height: 1.65;
}

.home-links__list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: var(--r2);
    overflow: hidden;
    background: var(--card);
}

.home-links__list li {
    border-bottom: 1px solid var(--line);
}

.home-links__list li:last-child {
    border-bottom: none;
}

.home-links__list a {
    display: block;
    padding: 0.85rem 1.1rem;
    color: var(--ink);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.home-links__list a:hover {
    background: var(--accent-muted);
    color: var(--accent);
}

.home-cta {
    padding: clamp(2.5rem, 5vw, 3.5rem) 0 0;
}

.home-cta__inner {
    background: var(--ink);
    color: #e5e7eb;
    border-radius: var(--r2);
    padding: clamp(1.75rem, 4vw, 2.5rem);
    text-align: center;
}

.home-cta__title {
    margin: 0 0 0.5rem;
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    color: #fff;
}

.home-cta__lead {
    margin: 0 0 1.25rem;
    color: rgba(229, 231, 235, 0.85);
    max-width: 32rem;
    margin-inline: auto;
}

.home-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.home-cta .btn--primary {
    background: #fff;
    color: var(--ink) !important;
    box-shadow: none;
}

.home-cta .btn--primary:hover {
    background: #f3f4f6;
}

.home-cta .btn--ghost {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff !important;
}

.home-cta .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ——— Auth gate (split layout) ——— */
.gate--split {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1rem, 3vw, 1.75rem) 0 clamp(1.5rem, 4vw, 2.5rem);
    min-height: min(760px, calc(100vh - 5.5rem));
}

.gate__wrap {
    width: 100%;
    max-width: min(1040px, 100%);
    margin-inline: auto;
}

.gate__layout {
    display: flex;
    flex-direction: column;
    border-radius: clamp(18px, 2.5vw, 26px);
    overflow: hidden;
    background: var(--card);
    box-shadow:
        0 4px 6px -1px rgba(15, 23, 42, 0.05),
        0 22px 50px -12px rgba(15, 23, 42, 0.14);
    border: 1px solid rgba(11, 13, 18, 0.06);
}

@media (min-width: 960px) {
    .gate__layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
        align-items: stretch;
        min-height: 540px;
    }
}

@media (max-width: 959px) {
    .gate__panel-shell {
        order: -1;
    }
}

.gate__visual {
    position: relative;
    padding: clamp(1.75rem, 5vw, 3rem);
    color: #f1f5f9;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 220px;
}

.gate__visual-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(152deg, #1e1b4b 0%, #3730a3 48%, #5b21b6 100%);
}

.gate__visual-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 18px 18px;
    mask-image: linear-gradient(160deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.85));
}

.gate__visual--register .gate__visual-bg {
    background: linear-gradient(152deg, #0f172a 0%, #1e3a8a 45%, #4c1d95 100%);
}

.gate__visual-inner {
    position: relative;
    z-index: 1;
    max-width: 26rem;
}

.gate__eyebrow {
    margin: 0 0 0.65rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(241, 245, 249, 0.75);
}

.gate__visual-title {
    margin: 0 0 0.75rem;
    font-family: var(--serif);
    font-size: clamp(1.45rem, 3.2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.gate__visual-lede {
    margin: 0 0 1.35rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(241, 245, 249, 0.82);
}

.gate__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.gate__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(241, 245, 249, 0.92);
}

.gate__feature-icon {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #e0e7ff;
}

.gate__feature-icon svg {
    display: block;
}

.gate__panel-shell {
    padding: clamp(1rem, 3vw, 1.75rem);
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 55%);
}

.gate__back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

.gate__back:hover {
    color: var(--accent);
}

.gate__back-icon {
    font-size: 1rem;
    line-height: 1;
}

.gate__panel--glass {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 18px;
    padding: clamp(1.35rem, 3.5vw, 2rem);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 1px 2px rgba(15, 23, 42, 0.04);
}

.gate__panel-head {
    margin-bottom: 1.15rem;
}

.gate__panel-eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6366f1;
}

.gate__title {
    margin: 0 0 0.45rem;
    font-family: var(--serif);
    font-size: clamp(1.55rem, 2.8vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.gate__lead {
    margin: 0;
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.55;
}

.gate__banner {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.45;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(49, 46, 129, 0.08));
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.gate__banner a {
    color: #4f46e5;
    font-weight: 600;
}

.gate__form {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0.25rem;
}

.gate__field {
    margin-top: 1rem;
}

.gate__field:first-of-type {
    margin-top: 0.35rem;
}

.gate__hint {
    margin: 0 0 0.4rem;
    font-size: 0.75rem;
    color: var(--muted);
}

.field-label {
    display: block;
    margin: 0 0 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-soft);
}

.field-input {
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--r);
    font-family: inherit;
    font-size: 1rem;
}

.field-input--gate {
    width: 100%;
    padding: 0.78rem 1rem;
    margin: 0;
    border: 1.5px solid rgba(11, 13, 18, 0.1);
    border-radius: 12px;
    background: #fff;
    font-size: 0.9375rem;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field-input--gate::placeholder {
    color: #9ca3af;
}

.field-input--gate:hover {
    border-color: rgba(99, 102, 241, 0.35);
}

.field-input--gate:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.gate__input-wrap {
    position: relative;
}

.gate__input-wrap--password .field-input--gate {
    padding-right: 3rem;
}

.gate__peek {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 2.65rem;
    height: 2.65rem;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s, background 0.2s;
}

.gate__peek:hover {
    color: var(--accent);
    background: rgba(49, 46, 129, 0.08);
}

.gate__peek .gate__peek-hide {
    display: none;
}

.gate__peek.is-revealed .gate__peek-show {
    display: none;
}

.gate__peek.is-revealed .gate__peek-hide {
    display: block;
}

.gate__form .btn--gate {
    margin-top: 1.35rem;
    padding: 0.85rem 1.35rem;
    font-size: 0.95rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5 0%, #312e81 52%, #1e1b4b 100%);
    box-shadow:
        0 4px 14px rgba(49, 46, 129, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gate__form .btn--gate:hover {
    background: linear-gradient(135deg, #6366f1 0%, #3730a3 55%, #1e1b4b 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(49, 46, 129, 0.42);
}

.gate__foot {
    margin: 1.35rem 0 0;
    font-size: 0.9rem;
    color: var(--muted);
    text-align: center;
}

.gate__foot a {
    color: #4f46e5;
    font-weight: 600;
    text-decoration: none;
}

.gate__foot a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Legacy single-column gate (if used elsewhere) */
.gate:not(.gate--split) {
    padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.gate:not(.gate--split) .gate__shell {
    display: flex;
    justify-content: center;
}

.gate:not(.gate--split) .gate__panel {
    width: min(420px, 100%);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r2);
    padding: clamp(1.5rem, 4vw, 2rem);
    box-shadow: var(--shadow);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.55s var(--ease),
        transform 0.55s var(--ease);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ——— Pricing tiers ——— */
.tiers {
    padding: clamp(2rem, 5vw, 3rem) 0;
}

.tiers__head {
    margin-bottom: 2rem;
}

.tiers__title {
    margin: 0 0 0.35rem;
    font-family: var(--serif);
    font-size: clamp(1.85rem, 3.5vw, 2.35rem);
    font-weight: 700;
}

.tiers__lead {
    margin: 0;
    color: var(--muted);
    max-width: 40rem;
}

.tiers__grid {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

@media (min-width: 900px) {
    .tiers__grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: stretch;
    }
}

.tier {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r2);
    padding: 1.5rem 1.35rem 1.65rem;
    display: flex;
    flex-direction: column;
}

.tier--focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent), var(--shadow);
}

.tier__ribbon {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

.tier__name {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.tier__price {
    margin: 0 0 1rem;
    font-family: var(--serif);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}

.tier__price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
}

.tier__list {
    margin: 0 0 1.25rem;
    padding-left: 1.1rem;
    flex: 1;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.55;
}

.tier__badge {
    display: inline-block;
    margin-top: auto;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: var(--r);
    text-align: center;
}

.tier__form {
    margin-top: auto;
}

.tiers__note {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
}

/* ——— Discover / search ——— */
.discover {
    padding: clamp(1.75rem, 4vw, 2.5rem) 0 3rem;
}

.discover__head {
    margin-bottom: 1.5rem;
}

.discover__title {
    margin: 0 0 0.35rem;
    font-family: var(--serif);
    font-size: clamp(1.75rem, 3.5vw, 2.15rem);
    font-weight: 700;
}

.discover__lead {
    margin: 0;
    color: var(--muted);
    max-width: 40rem;
    line-height: 1.65;
}

.discover__form-wrap {
    margin-bottom: 2rem;
}

.discover__hint,
.discover__meta {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.discover__meta strong {
    color: var(--ink);
}

.adv-search-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r2);
    padding: 1.35rem 1.35rem 1.5rem;
    box-shadow: var(--shadow);
}

.adv-search-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .adv-search-grid {
        grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    }
}

.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: var(--r);
    font-family: inherit;
    font-size: 0.9375rem;
    background: #fafafa;
}

.form-input:focus,
.form-select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 0;
    background: #fff;
}

.adv-search-cats {
    margin: 0 0 1rem;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: #fafafa;
}

.adv-search-cats legend {
    padding: 0 0.25rem;
}

.adv-search-hint {
    margin: 0 0 0.65rem;
    font-size: 0.8125rem;
    color: var(--muted);
}

.adv-search-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}

.adv-check {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.875rem;
    cursor: pointer;
}

.adv-check--solo {
    margin-bottom: 1rem;
}

.adv-search-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
    align-items: center;
}

.discover__list .results-section-title {
    margin: 1.75rem 0 0.75rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.discover__list .result-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.discover__list .result-card {
    margin: 0;
    padding: 1.15rem 1.2rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r2);
}

.discover__list .result-badge {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-muted);
    border-radius: 4px;
}

.discover__list .result-card h3 {
    margin: 0 0 0.65rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.discover__list .exam-details {
    margin: 0;
    display: grid;
    gap: 0.65rem 0;
}

.discover__list .exam-details dt {
    margin: 0;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
}

.discover__list .exam-details dd {
    margin: 0.15rem 0 0;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.55;
}

.discover__list .result-meta {
    font-size: 0.875rem;
    color: var(--muted);
}

/* ——— Inner sheet pages ——— */
.sheet-hero {
    padding: clamp(2rem, 5vw, 2.75rem) 0 1.25rem;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, transparent);
}

.sheet-hero__eyebrow {
    margin: 0 0 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.sheet-hero__title {
    margin: 0 0 0.5rem;
    font-family: var(--serif);
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.sheet-hero__lead {
    margin: 0;
    max-width: 42rem;
    font-size: 1.0625rem;
    color: var(--muted);
    line-height: 1.6;
}

.content-page {
    padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(2.5rem, 5vw, 4rem);
}

.sheet.prose {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r2);
    padding: clamp(1.35rem, 3vw, 2rem);
    box-shadow: 0 1px 2px rgba(11, 13, 18, 0.04);
}

.prose {
    max-width: 100%;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--ink-soft);
}

.prose > h2 {
    margin: 2rem 0 0.65rem;
    font-family: var(--serif);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--ink);
}

.prose > h2:first-child {
    margin-top: 0;
}

.prose > h3 {
    margin: 1.35rem 0 0.4rem;
    font-size: 1.08rem;
    font-weight: 600;
    color: var(--ink);
}

.prose p,
.prose li {
    margin: 0 0 0.85rem;
}

.prose ul,
.prose ol {
    padding-left: 1.25rem;
}

.prose a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

.prose code {
    font-size: 0.9em;
    padding: 0.1em 0.35em;
    background: #f3f4f6;
    border-radius: 4px;
}

.note-box {
    padding: 1rem 1.1rem;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: var(--r);
    font-size: 0.9375rem;
    margin: 1rem 0;
}

.guide-grid {
    display: grid;
    gap: 0.85rem;
    margin: 1.25rem 0;
}

@media (min-width: 640px) {
    .guide-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .guide-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.guide-card {
    display: block;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: var(--r2);
    text-decoration: none;
    color: inherit;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
}

.guide-card:hover {
    border-color: var(--accent);
    background: var(--accent-muted);
}

.guide-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.guide-card p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted);
}

.sitemap-columns {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .sitemap-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sitemap-columns h2 {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.sitemap-columns ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.sitemap-columns li {
    margin-bottom: 0.4rem;
}

.sitemap-columns a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
}

.sitemap-columns a:hover {
    text-decoration: underline;
}

.auth-form,
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-form .form-label,
.contact-form .form-label {
    margin-top: 0.35rem;
}

.auth-form .form-input,
.contact-form .form-input {
    margin-bottom: 0.15rem;
}

.contact-form textarea.form-input {
    min-height: 120px;
    resize: vertical;
}

.contact-form .btn-primary,
.contact-form button[type="submit"],
.auth-form .btn-primary {
    margin-top: 0.65rem;
}

/* ——— Flash / legacy messages ——— */
.flash {
    padding: 0.85rem 1rem;
    border-radius: var(--r);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.flash--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.flash--ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.flash--warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.message,
.message-muted {
    color: var(--muted);
    margin: 0 0 1rem;
}

.message-error {
    color: #991b1b;
}

.form-error {
    padding: 0.65rem 0.85rem;
    background: #fef2f2;
    border-radius: var(--r);
    color: #991b1b;
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.form-success {
    padding: 0.65rem 0.85rem;
    background: #ecfdf5;
    border-radius: var(--r);
    color: #065f46;
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

/* ——— Footer ——— */
.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    background: #fff;
}

.site-footer__grid {
    display: grid;
    gap: 2rem;
    padding: 2.5rem 0 2rem;
}

@media (min-width: 720px) {
    .site-footer__grid {
        grid-template-columns: 1.4fr repeat(3, 1fr);
    }
}

.site-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--serif);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.65rem;
}

.site-footer__tagline {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.55;
    max-width: 260px;
}

.site-footer__heading {
    margin: 0 0 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.site-footer__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer__list a {
    display: inline-block;
    padding: 0.25rem 0;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.9rem;
}

.site-footer__list a:hover {
    color: var(--accent);
}

.site-footer__bar {
    border-top: 1px solid var(--line);
    padding: 1.1rem 0 1.5rem;
}

.site-footer__copy {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
}

/* ——— Motion ——— */
[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
