html,
body {
    min-height: 100%;
    margin: 0;
}

.ys-bootstrap-loader {
    position: relative;
    display: grid;
    overflow: hidden;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    place-items: center;
    background:
        radial-gradient(circle at 15% 18%, rgba(255, 255, 255, 0.16), transparent 24%),
        radial-gradient(circle at 78% 76%, rgba(255, 227, 145, 0.34), transparent 28%),
        linear-gradient(128deg, #5133B7 0%, #7656E7 44%, #AD75C9 67%, #F2AF3D 100%);
    isolation: isolate;
}

.ys-bootstrap-loader::before,
.ys-bootstrap-loader::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.ys-bootstrap-loader::before {
    top: -220px;
    right: -130px;
    width: 560px;
    height: 560px;
    border: 86px solid rgba(255, 255, 255, 0.08);
}

.ys-bootstrap-loader::after {
    bottom: -260px;
    left: -160px;
    width: 610px;
    height: 610px;
    background: radial-gradient(circle, rgba(255, 205, 77, 0.28), transparent 66%);
}

.ys-bootstrap-loader__orb {
    position: absolute;
    z-index: -1;
    display: block;
    border-radius: 50%;
    pointer-events: none;
}

.ys-bootstrap-loader__orb--one {
    top: 14%;
    left: 8%;
    width: 76px;
    height: 76px;
    background: linear-gradient(145deg, rgba(255, 216, 103, 0.92), rgba(255, 174, 69, 0.68));
    box-shadow: 0 22px 60px rgba(63, 34, 6, 0.18);
}

.ys-bootstrap-loader__orb--two {
    right: 9%;
    bottom: 12%;
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.66);
    box-shadow: 0 14px 34px rgba(73, 47, 6, 0.18);
}

.ys-bootstrap-loader__content {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.ys-bootstrap-loader__panel {
    position: relative;
    display: grid;
    width: 156px;
    height: 156px;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 42px;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    box-shadow:
        0 30px 70px rgba(48, 25, 99, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(20px);
}

.ys-bootstrap-loader__panel::after {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(145deg, #FFE38A, #FFB33F);
    box-shadow: 0 8px 20px rgba(91, 52, 7, 0.24);
    content: "";
}

.ys-bootstrap-loader__ring {
    position: absolute;
    width: 106px;
    height: 106px;
    border: 5px solid rgba(255, 255, 255, 0.18);
    border-top-color: #FFE083;
    border-right-color: #FFE083;
    border-radius: 50%;
    animation: ys-bootstrap-spin 1.15s linear infinite;
}

.ys-bootstrap-loader__mark {
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 20px;
    color: #6544D8;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 32px rgba(41, 22, 88, 0.22);
    font-family: system-ui, sans-serif;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.06em;
}

.ys-bootstrap-loader__label {
    margin-top: 22px;
    color: #fff;
    font-family: system-ui, sans-serif;
    font-size: 1.15rem;
    font-weight: 750;
    letter-spacing: 0.01em;
    text-shadow: 0 8px 24px rgba(45, 23, 92, 0.34);
}

.loading-progress-text {
    min-height: 1.25rem;
    margin-top: 4px;
    color: rgba(255, 232, 165, 0.9);
    font-family: system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-align: center;
}

.loading-progress-text::after {
    content: var(--blazor-load-percentage-text, "0%");
}

@keyframes ys-bootstrap-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .ys-bootstrap-loader__panel {
        width: 138px;
        height: 138px;
        border-radius: 36px;
    }

    .ys-bootstrap-loader__ring {
        width: 94px;
        height: 94px;
    }

    .ys-bootstrap-loader__mark {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ys-bootstrap-loader__ring {
        animation-duration: 2.4s;
    }
}

/* Yo! Students public website */
:root {
    --ys-ink: #21193f;
    --ys-muted: #706a83;
    --ys-purple: #6746db;
    --ys-purple-deep: #4b2ab8;
    --ys-purple-dark: #251056;
    --ys-lilac: #f3efff;
    --ys-sun: #ffc94a;
    --ys-orange: #f58a3d;
    --ys-line: #e8e4f0;
    --ys-paper: #ffffff;
    --ys-cloud: #f8f7fb;
    --ys-shell: 1180px;
    --ys-radius-sm: 16px;
    --ys-radius-md: 24px;
    --ys-radius-lg: 34px;
    --ys-shadow-sm: 0 14px 38px rgba(47, 31, 88, 0.08);
    --ys-shadow-md: 0 26px 70px rgba(47, 31, 88, 0.15);
}

* {
    box-sizing: border-box;
}

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

body {
    min-width: 320px;
    color: var(--ys-ink);
    background: var(--ys-paper);
    font-family: Inter, Manrope, "Segoe UI", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

h1:focus,
#main-content:focus {
    outline: none;
}

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

.ys-site {
    min-height: 100vh;
    overflow: clip;
    background: var(--ys-paper);
}

.ys-shell {
    width: min(calc(100% - 48px), var(--ys-shell));
    margin-inline: auto;
}

.ys-skip-link {
    position: fixed;
    z-index: 1000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    border-radius: 10px;
    color: #fff;
    background: var(--ys-purple-deep);
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

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

/* Header */
.ys-header {
    position: relative;
    z-index: 100;
    border-bottom: 1px solid rgba(232, 228, 240, 0.78);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 30px rgba(31, 21, 64, 0.04);
    backdrop-filter: blur(18px);
}

.ys-header__inner {
    display: flex;
    align-items: center;
    min-height: 80px;
    gap: 28px;
}

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

.ys-brand__mark {
    display: inline-grid;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #7c58ef, #5632c7);
    box-shadow: 0 10px 24px rgba(91, 58, 195, 0.25);
    font-size: 0.94rem;
    font-weight: 950;
    letter-spacing: -0.065em;
}

.ys-brand__copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.ys-brand__copy strong {
    font-size: 1.04rem;
    font-weight: 850;
    letter-spacing: -0.025em;
}

.ys-brand__copy small {
    margin-top: 5px;
    color: var(--ys-muted);
    font-size: 0.63rem;
    font-weight: 650;
    letter-spacing: 0.04em;
}

.ys-desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.ys-desktop-nav a {
    position: relative;
    color: #5e586e;
    font-size: 0.88rem;
    font-weight: 650;
    text-decoration: none;
    transition: color 160ms ease;
}

.ys-desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--ys-purple);
    content: "";
    transform: scaleX(0);
    transition: transform 160ms ease;
}

.ys-desktop-nav a:hover,
.ys-desktop-nav a:focus-visible {
    color: var(--ys-purple-deep);
}

.ys-desktop-nav a:hover::after,
.ys-desktop-nav a:focus-visible::after {
    transform: scaleX(1);
}

.ys-header__portal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 8px;
    padding: 0 18px;
    border-radius: 14px;
    color: #fff;
    background: var(--ys-ink);
    box-shadow: 0 10px 22px rgba(33, 25, 63, 0.16);
    font-size: 0.84rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.ys-header__portal:hover {
    transform: translateY(-2px);
    background: var(--ys-purple-dark);
    box-shadow: 0 15px 28px rgba(33, 25, 63, 0.22);
}

.ys-mobile-nav {
    display: none;
    margin-left: auto;
}

.ys-mobile-nav summary {
    display: grid;
    width: 44px;
    height: 44px;
    border: 1px solid var(--ys-line);
    border-radius: 14px;
    place-content: center;
    gap: 7px;
    list-style: none;
    cursor: pointer;
}

.ys-mobile-nav summary::-webkit-details-marker {
    display: none;
}

.ys-mobile-nav summary span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--ys-ink);
    transition: transform 160ms ease;
}

.ys-mobile-nav[open] summary span:first-child {
    transform: translateY(4.5px) rotate(45deg);
}

.ys-mobile-nav[open] summary span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
}

.ys-mobile-nav nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 20px;
    left: 20px;
    display: flex;
    padding: 14px;
    border: 1px solid var(--ys-line);
    border-radius: 20px;
    flex-direction: column;
    background: #fff;
    box-shadow: var(--ys-shadow-md);
}

.ys-mobile-nav nav a {
    padding: 13px 12px;
    border-radius: 12px;
    color: var(--ys-ink);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.ys-mobile-nav nav a:hover {
    color: var(--ys-purple-deep);
    background: var(--ys-lilac);
}

/* Shared content */
.ys-section {
    position: relative;
    padding: 120px 0;
}

.ys-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ys-purple-deep);
    font-size: 0.7rem;
    font-weight: 850;
    letter-spacing: 0.13em;
    line-height: 1.4;
    text-transform: uppercase;
}

.ys-eyebrow--light {
    color: rgba(255, 255, 255, 0.75);
}

.ys-eyebrow__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ys-sun);
    box-shadow: 0 0 0 5px rgba(255, 201, 74, 0.13);
}

.ys-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    gap: 10px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 16px;
    font-size: 0.88rem;
    font-weight: 780;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.ys-button:hover {
    transform: translateY(-3px);
}

.ys-button--sun {
    color: #352205;
    background: linear-gradient(135deg, #ffdc75, var(--ys-sun));
    box-shadow: 0 16px 35px rgba(86, 43, 5, 0.24);
}

.ys-button--sun:hover {
    box-shadow: 0 20px 42px rgba(86, 43, 5, 0.3);
}

.ys-button--dark {
    color: #fff;
    background: var(--ys-ink);
    box-shadow: 0 16px 32px rgba(47, 28, 8, 0.2);
}

.ys-button--dark:hover {
    background: var(--ys-purple-dark);
}

.ys-section-heading h2,
.ys-workflow-copy h2,
.ys-access-copy h2,
.ys-trust-copy h2,
.ys-final-cta h2 {
    margin: 18px 0 0;
    color: var(--ys-ink);
    font-size: clamp(2.25rem, 5vw, 4.25rem);
    font-weight: 720;
    line-height: 1.06;
    letter-spacing: -0.042em;
}

/* Hero */
.ys-hero {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    padding: 92px 0 100px;
    color: #fff;
    background:
        radial-gradient(circle at 78% 18%, rgba(201, 147, 255, 0.38), transparent 23%),
        radial-gradient(circle at 8% 88%, rgba(255, 179, 75, 0.14), transparent 26%),
        linear-gradient(122deg, #3d208f 0%, #6040c9 46%, #8d5bd0 76%, #ae70bf 100%);
    isolation: isolate;
}

.ys-hero::before {
    position: absolute;
    z-index: -1;
    top: -420px;
    left: -280px;
    width: 860px;
    height: 860px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 120px rgba(255, 255, 255, 0.025), 0 0 0 240px rgba(255, 255, 255, 0.018);
}

.ys-hero::after {
    position: absolute;
    z-index: -1;
    right: -120px;
    bottom: -280px;
    width: 560px;
    height: 560px;
    border: 72px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    content: "";
}

.ys-hero__glow {
    position: absolute;
    z-index: -1;
    display: block;
    border-radius: 50%;
    pointer-events: none;
}

.ys-hero__glow--one {
    top: 14%;
    right: 5%;
    width: 72px;
    height: 72px;
    background: linear-gradient(145deg, #ffe081, #ffac47);
    box-shadow: 0 18px 60px rgba(64, 31, 4, 0.24);
}

.ys-hero__glow--two {
    bottom: 13%;
    left: 4%;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.65);
}

.ys-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(460px, 0.88fr);
    align-items: center;
    gap: clamp(50px, 7vw, 100px);
}

.ys-hero__copy {
    position: relative;
    z-index: 4;
    max-width: 650px;
}

.ys-hero h1 {
    max-width: 720px;
    margin: 26px 0 26px;
    color: #fff;
    font-size: clamp(3.7rem, 7vw, 6.55rem);
    font-weight: 760;
    line-height: 0.92;
    letter-spacing: -0.065em;
}

.ys-hero h1 span {
    color: #ffda72;
}

.ys-hero__lead {
    max-width: 610px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(1rem, 1.5vw, 1.13rem);
    line-height: 1.7;
}

.ys-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.ys-store-links {
    display: inline-flex;
    gap: 10px;
}

.ys-store-link {
    display: grid;
    width: 54px;
    height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    place-items: center;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    backdrop-filter: blur(12px);
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ys-store-link:hover,
.ys-store-link:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.18);
}

.ys-store-link:focus-visible {
    outline: 3px solid rgba(255, 218, 114, 0.42);
    outline-offset: 3px;
}

.ys-store-link svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.ys-store-link--play {
    color: #ffda72;
}

/* Product preview */
.ys-product-stage {
    position: relative;
    z-index: 2;
    min-height: 560px;
    perspective: 1400px;
}

.ys-stage-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
}

.ys-stage-orbit--one {
    inset: 2% -8% 5% 2%;
    transform: rotate(-9deg);
}

.ys-stage-orbit--two {
    inset: 14% 3% 16% -8%;
    transform: rotate(13deg);
}

.ys-product-window {
    --ys-product-window-scale: scale(1);
    position: absolute;
    top: 34px;
    right: 5px;
    width: min(100%, 480px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 34px;
    color: var(--ys-ink);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 42px 95px rgba(28, 12, 76, 0.36);
    transform-origin: center;
    backdrop-filter: blur(16px);
    animation: ys-product-window-drift 20s cubic-bezier(0.45, 0.05, 0.35, 1) infinite;
    will-change: transform;
}

@keyframes ys-product-window-drift {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotateY(-5deg) rotateZ(1.5deg) var(--ys-product-window-scale);
    }

    22% {
        transform: translate3d(-3px, -5px, 0) rotateY(-4.4deg) rotateZ(0.85deg) var(--ys-product-window-scale);
    }

    51% {
        transform: translate3d(2px, -9px, 0) rotateY(-5.7deg) rotateZ(1.75deg) var(--ys-product-window-scale);
    }

    77% {
        transform: translate3d(4px, -3px, 0) rotateY(-4.7deg) rotateZ(1.05deg) var(--ys-product-window-scale);
    }
}

@keyframes ys-product-window-drift-mobile {
    0%,
    100% {
        transform: translate3d(0, 0, 0) rotateY(-3deg) rotateZ(1deg) var(--ys-product-window-scale);
    }

    22% {
        transform: translate3d(-2px, -4px, 0) rotateY(-2.6deg) rotateZ(0.55deg) var(--ys-product-window-scale);
    }

    51% {
        transform: translate3d(2px, -7px, 0) rotateY(-3.5deg) rotateZ(1.2deg) var(--ys-product-window-scale);
    }

    77% {
        transform: translate3d(3px, -2px, 0) rotateY(-2.8deg) rotateZ(0.7deg) var(--ys-product-window-scale);
    }
}

.ys-product-window__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 66px;
    padding: 0 20px;
    border-bottom: 1px solid #eeeaf6;
}

.ys-mini-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ys-mini-brand span {
    display: inline-grid;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    place-items: center;
    color: #fff;
    background: var(--ys-purple);
    font-size: 0.7rem;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.ys-mini-brand strong {
    font-size: 0.86rem;
    font-weight: 850;
}

.ys-avatar {
    display: grid;
    width: 35px;
    height: 35px;
    border-radius: 12px;
    place-items: center;
    color: #54380a;
    background: #ffe19a;
    font-size: 0.66rem;
    font-weight: 850;
}

.ys-product-window__body {
    padding: 22px;
    background: #faf9fd;
}

.ys-preview-heading,
.ys-preview-subjects__title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ys-preview-heading > div {
    display: flex;
    flex-direction: column;
}

.ys-preview-heading span,
.ys-preview-heading small,
.ys-preview-card small,
.ys-preview-subject small,
.ys-preview-subjects__title span {
    color: #898399;
    font-size: 0.58rem;
}

.ys-preview-heading strong {
    margin-top: 3px;
    font-size: 1.06rem;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.ys-preview-bell {
    display: grid;
    width: 36px;
    height: 36px;
    border: 1px solid #e8e4f0;
    border-radius: 12px;
    place-items: center;
    color: var(--ys-purple);
    background: #fff;
}

.ys-preview-bell .mud-icon-root {
    font-size: 1.08rem;
}

.ys-preview-focus {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #6343d7, #8361e9);
    box-shadow: 0 14px 26px rgba(88, 56, 190, 0.2);
}

.ys-preview-focus__icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    place-items: center;
    color: #ffe084;
    background: rgba(255, 255, 255, 0.13);
}

.ys-preview-focus__copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.ys-preview-focus__copy span,
.ys-preview-focus__copy small {
    color: rgba(255, 255, 255, 0.67);
    font-size: 0.56rem;
}

.ys-preview-focus__copy strong {
    margin: 3px 0;
    overflow: hidden;
    font-size: 0.78rem;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ys-preview-focus__arrow {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 10px;
    place-items: center;
    color: #4b2e0b;
    background: var(--ys-sun);
}

.ys-preview-focus__arrow .mud-icon-root {
    font-size: 0.95rem;
}

.ys-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.ys-preview-card {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 2px 9px;
    padding: 12px;
    border: 1px solid #ece8f2;
    border-radius: 16px;
    background: #fff;
}

.ys-preview-card__icon {
    display: grid;
    grid-row: span 2;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    place-items: center;
}

.ys-preview-card__icon .mud-icon-root {
    font-size: 1rem;
}

.ys-preview-card__icon--purple {
    color: var(--ys-purple);
    background: var(--ys-lilac);
}

.ys-preview-card__icon--gold {
    color: #9a5f05;
    background: #fff3d5;
}

.ys-preview-card strong {
    font-size: 0.68rem;
    font-weight: 800;
}

.ys-preview-subjects {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid #ece8f2;
    border-radius: 17px;
    background: #fff;
}

.ys-preview-subjects__title {
    margin-bottom: 6px;
}

.ys-preview-subjects__title strong {
    font-size: 0.72rem;
    font-weight: 820;
}

.ys-preview-subject {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 82px;
    align-items: center;
    gap: 9px;
    padding: 8px 0;
}

.ys-preview-subject + .ys-preview-subject {
    border-top: 1px solid #f0edf5;
}

.ys-subject-mark {
    display: grid;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    place-items: center;
    font-size: 0.65rem;
    font-weight: 850;
}

.ys-subject-mark--violet {
    color: var(--ys-purple);
    background: #eee9ff;
}

.ys-subject-mark--orange {
    color: #aa5a1b;
    background: #ffeadb;
}

.ys-preview-subject > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ys-preview-subject strong {
    font-size: 0.65rem;
    font-weight: 780;
}

.ys-subject-progress {
    display: block;
    height: 5px;
    overflow: hidden;
    border-radius: 5px;
    background: #eeeaf4;
}

.ys-subject-progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ys-purple), #977bed);
}

.ys-floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 17px;
    color: var(--ys-ink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 42px rgba(26, 13, 65, 0.24);
    backdrop-filter: blur(15px);
}

.ys-floating-card--attendance {
    top: 100px;
    left: -34px;
    padding: 12px 16px 12px 12px;
}

.ys-floating-card--attendance > span {
    display: grid;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    place-items: center;
    color: #5a3bc5;
    background: #eee9ff;
}

.ys-floating-card > div:not(.ys-today-dots) {
    display: flex;
    flex-direction: column;
}

.ys-floating-card strong {
    font-size: 0.7rem;
    font-weight: 820;
}

.ys-floating-card small {
    margin-top: 2px;
    color: #7c758d;
    font-size: 0.56rem;
}

.ys-floating-card--today {
    right: -24px;
    bottom: 58px;
    display: block;
    min-width: 170px;
    padding: 14px;
}

.ys-today-dots {
    display: flex;
    gap: 5px;
    margin: 9px 0 8px;
}

.ys-today-dots i {
    width: 22px;
    height: 6px;
    border-radius: 5px;
    background: var(--ys-purple);
}

.ys-today-dots i:nth-child(4),
.ys-today-dots i:nth-child(5) {
    background: #e7e2ef;
}

/* Role section */
.ys-section--intro {
    background:
        radial-gradient(circle at 90% 2%, rgba(116, 79, 222, 0.08), transparent 24%),
        var(--ys-paper);
}

.ys-section-heading--split {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.72fr);
    align-items: end;
    gap: 80px;
}

.ys-section-heading--split p {
    margin: 0 0 8px;
    color: var(--ys-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.ys-role-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 64px;
}

.ys-role-card {
    position: relative;
    overflow: hidden;
    min-height: 430px;
    padding: 34px;
    border: 1px solid var(--ys-line);
    border-radius: var(--ys-radius-md);
    background: #fff;
    box-shadow: var(--ys-shadow-sm);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.ys-role-card:hover {
    transform: translateY(-7px);
    border-color: rgba(103, 70, 219, 0.25);
    box-shadow: var(--ys-shadow-md);
}

.ys-role-card--featured {
    border-color: transparent;
    color: #fff;
    background:
        radial-gradient(circle at 98% 4%, rgba(255, 220, 122, 0.22), transparent 26%),
        linear-gradient(145deg, #5937bd, #7655e0);
    box-shadow: 0 22px 54px rgba(76, 48, 164, 0.22);
}

.ys-role-card__number {
    position: absolute;
    top: 30px;
    right: 32px;
    color: #d7d1e1;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.ys-role-card--featured .ys-role-card__number {
    color: rgba(255, 255, 255, 0.45);
}

.ys-role-card__icon {
    display: grid;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    place-items: center;
    color: var(--ys-purple);
    background: var(--ys-lilac);
}

.ys-role-card--featured .ys-role-card__icon {
    color: #4c3107;
    background: var(--ys-sun);
}

.ys-role-card h3 {
    margin: 64px 0 14px;
    color: var(--ys-ink);
    font-size: 1.65rem;
    font-weight: 730;
    letter-spacing: -0.035em;
}

.ys-role-card--featured h3 {
    color: #fff;
}

.ys-role-card p {
    margin: 0;
    color: var(--ys-muted);
    font-size: 0.92rem;
    line-height: 1.68;
}

.ys-role-card--featured p {
    color: rgba(255, 255, 255, 0.7);
}

.ys-role-card ul {
    display: flex;
    gap: 12px;
    margin: 32px 0 0;
    padding: 26px 0 0;
    border-top: 1px solid var(--ys-line);
    flex-direction: column;
    list-style: none;
}

.ys-role-card--featured ul {
    border-color: rgba(255, 255, 255, 0.16);
}

.ys-role-card li {
    position: relative;
    padding-left: 20px;
    color: #4e485e;
    font-size: 0.78rem;
    font-weight: 680;
}

.ys-role-card--featured li {
    color: rgba(255, 255, 255, 0.83);
}

.ys-role-card li::before {
    position: absolute;
    top: 0.42em;
    left: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ys-sun);
    content: "";
}

/* Workflow */
.ys-section--workflow {
    background: var(--ys-cloud);
}

.ys-workflow-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(420px, 0.72fr);
    align-items: center;
    gap: clamp(70px, 10vw, 140px);
}

.ys-workflow-copy > p,
.ys-trust-copy > p,
.ys-access-copy > p {
    max-width: 580px;
    margin: 28px 0 0;
    color: var(--ys-muted);
    font-size: 1rem;
    line-height: 1.76;
}

.ys-workflow-points {
    display: flex;
    gap: 22px;
    margin-top: 42px;
    flex-direction: column;
}

.ys-workflow-points > div {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ys-workflow-points > div > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    place-items: center;
    color: var(--ys-purple);
    background: #ece7ff;
}

.ys-workflow-points > div > span .mud-icon-root {
    font-size: 1.15rem;
}

.ys-workflow-points > div > div {
    display: flex;
    flex-direction: column;
}

.ys-workflow-points strong {
    font-size: 0.92rem;
    font-weight: 800;
}

.ys-workflow-points small {
    max-width: 480px;
    margin-top: 4px;
    color: var(--ys-muted);
    font-size: 0.76rem;
    line-height: 1.55;
}

.ys-week-card {
    position: relative;
    overflow: hidden;
    padding: 30px;
    border: 1px solid rgba(103, 70, 219, 0.13);
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 28px 75px rgba(49, 33, 91, 0.13);
}

.ys-week-card::before {
    position: absolute;
    top: -65px;
    right: -65px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(255, 201, 74, 0.18);
    content: "";
}

.ys-week-card__header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ys-week-card__header > div {
    display: flex;
    flex-direction: column;
}

.ys-week-card__header small {
    color: var(--ys-muted);
    font-size: 0.68rem;
}

.ys-week-card__header strong {
    margin-top: 5px;
    font-size: 1.2rem;
    font-weight: 830;
    letter-spacing: -0.03em;
}

.ys-week-card__menu-button {
    position: relative;
    z-index: 2;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--ys-line);
    border-radius: 13px;
    place-items: center;
    color: var(--ys-muted);
    background: #fff;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.ys-week-card__menu-button:hover,
.ys-week-card__menu-button[aria-expanded="true"] {
    transform: translateY(-2px);
    border-color: rgba(103, 70, 219, 0.3);
    color: var(--ys-purple);
    box-shadow: 0 10px 22px rgba(65, 42, 126, 0.12);
}

.ys-week-card__menu-button:focus-visible,
.ys-week-days > button:focus-visible,
.ys-week-insights button:focus-visible {
    outline: 3px solid rgba(103, 70, 219, 0.25);
    outline-offset: 2px;
}

.ys-week-insights {
    position: absolute;
    z-index: 5;
    top: 78px;
    right: 30px;
    width: min(330px, calc(100% - 60px));
    padding: 18px;
    border: 1px solid rgba(103, 70, 219, 0.16);
    border-radius: 20px;
    color: var(--ys-ink);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(38, 24, 81, 0.22);
    backdrop-filter: blur(18px);
    animation: ys-week-insights-enter 180ms ease-out both;
}

@keyframes ys-week-insights-enter {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ys-week-insights__header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 10px;
}

.ys-week-insights__header > span {
    display: grid;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    place-items: center;
    color: var(--ys-purple);
    background: var(--ys-lilac);
}

.ys-week-insights__header > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ys-week-insights__header small {
    color: var(--ys-muted);
    font-size: 0.58rem;
}

.ys-week-insights__header strong {
    margin-top: 2px;
    font-size: 0.78rem;
    font-weight: 740;
}

.ys-week-insights__header button {
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 9px;
    place-items: center;
    color: var(--ys-muted);
    background: #f5f2fa;
    cursor: pointer;
}

.ys-week-insights__header button .mud-icon-root {
    font-size: 1rem;
}

.ys-week-insights__stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.ys-week-insights__stats > div {
    display: flex;
    min-height: 66px;
    padding: 11px;
    border-radius: 13px;
    justify-content: center;
    flex-direction: column;
    background: #f7f5fa;
}

.ys-week-insights__stats strong {
    color: var(--ys-purple-deep);
    font-size: 1.15rem;
    font-weight: 760;
}

.ys-week-insights__stats small {
    margin-top: 3px;
    color: var(--ys-muted);
    font-size: 0.55rem;
    line-height: 1.35;
}

.ys-week-insights__tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 10px;
    padding: 11px;
    border-radius: 13px;
    color: #594216;
    background: #fff5d9;
    font-size: 0.6rem;
    line-height: 1.5;
}

.ys-week-insights__tip .mud-icon-root {
    flex: 0 0 auto;
    color: #b8780a;
    font-size: 1rem;
}

.ys-week-days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 7px;
    margin-top: 28px;
}

.ys-week-days > button {
    display: flex;
    min-height: 62px;
    padding: 0;
    border: 0;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: var(--ys-muted);
    background: #f7f5fa;
    cursor: pointer;
    transition: transform 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.ys-week-days > button:hover:not(.is-active) {
    transform: translateY(-2px);
    color: var(--ys-purple-deep);
    background: #efebfa;
}

.ys-week-days small {
    font-size: 0.56rem;
    font-weight: 750;
}

.ys-week-days strong {
    margin-top: 4px;
    color: var(--ys-ink);
    font-size: 0.78rem;
}

.ys-week-days .is-active {
    color: rgba(255, 255, 255, 0.75);
    background: var(--ys-purple);
    box-shadow: 0 10px 20px rgba(103, 70, 219, 0.22);
}

.ys-week-days .is-active strong {
    color: #fff;
}

.ys-week-timeline {
    display: flex;
    height: 270px;
    gap: 8px;
    margin-top: 24px;
    padding-right: 3px;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-color: rgba(103, 70, 219, 0.28) transparent;
    scrollbar-width: thin;
}

.ys-week-timeline__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 24px;
    padding: 0 3px;
}

.ys-week-timeline__meta strong {
    overflow: hidden;
    color: var(--ys-muted);
    font-size: 0.63rem;
    font-weight: 680;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ys-week-timeline__meta span {
    flex: 0 0 auto;
    color: var(--ys-purple);
    font-size: 0.58rem;
    font-weight: 720;
}

.ys-week-event {
    display: grid;
    grid-template-columns: 45px 4px 1fr;
    align-items: center;
    gap: 11px;
    min-height: 70px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f7f5fa;
    animation: ys-week-event-enter 220ms ease-out both;
}

@keyframes ys-week-event-enter {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ys-week-event time {
    color: var(--ys-muted);
    font-size: 0.66rem;
    font-weight: 750;
}

.ys-week-event > span {
    width: 4px;
    height: 34px;
    border-radius: 4px;
}

.ys-week-event--purple > span {
    background: var(--ys-purple);
}

.ys-week-event--gold > span {
    background: var(--ys-sun);
}

.ys-week-event--soft > span {
    background: #b09de9;
}

.ys-week-event > div {
    display: flex;
    flex-direction: column;
}

.ys-week-event strong {
    font-size: 0.75rem;
    font-weight: 790;
}

.ys-week-event small {
    margin-top: 4px;
    color: var(--ys-muted);
    font-size: 0.59rem;
}

.ys-week-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 218px;
    gap: 12px;
    padding: 22px;
    border: 1px dashed #dcd5eb;
    border-radius: 18px;
    background: #faf9fc;
    text-align: left;
    animation: ys-week-event-enter 220ms ease-out both;
}

.ys-week-empty > span {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 13px;
    place-items: center;
    color: var(--ys-purple);
    background: var(--ys-lilac);
}

.ys-week-empty > div {
    display: flex;
    flex-direction: column;
}

.ys-week-empty strong {
    font-size: 0.74rem;
    font-weight: 740;
}

.ys-week-empty small {
    max-width: 190px;
    margin-top: 4px;
    color: var(--ys-muted);
    font-size: 0.59rem;
    line-height: 1.45;
}

/* Access */
.ys-section--access {
    padding: 56px 0;
    background: #fff;
}

.ys-access-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(430px, 0.72fr);
    overflow: hidden;
    padding: clamp(45px, 7vw, 84px);
    border-radius: 38px;
    gap: clamp(50px, 8vw, 110px);
    color: #fff;
    background:
        radial-gradient(circle at 95% 5%, rgba(255, 205, 86, 0.26), transparent 28%),
        linear-gradient(140deg, #31166f, #5630b8 56%, #744cce);
    box-shadow: 0 35px 80px rgba(57, 31, 116, 0.2);
}

.ys-access-panel::before,
.ys-access-panel::after {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.ys-access-panel::before {
    top: -210px;
    left: -160px;
    width: 430px;
    height: 430px;
}

.ys-access-panel::after {
    right: -170px;
    bottom: -230px;
    width: 480px;
    height: 480px;
}

.ys-access-copy,
.ys-access-options {
    position: relative;
    z-index: 1;
}

.ys-access-copy h2 {
    color: #fff;
}

.ys-access-copy > p {
    color: rgba(255, 255, 255, 0.67);
}

.ys-access-options {
    display: flex;
    gap: 10px;
    flex-direction: column;
}

.ys-platform-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 78px;
    gap: 14px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 19px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    backdrop-filter: blur(12px);
}

.ys-platform-card--active {
    background: rgba(255, 255, 255, 0.14);
    transition: transform 180ms ease, background 180ms ease;
}

.ys-platform-card--active:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.2);
}

.ys-platform-card--soon {
    color: rgba(255, 255, 255, 0.72);
}

.ys-platform-card__icon {
    display: grid;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    place-items: center;
    color: #4a2e06;
    background: var(--ys-sun);
}

.ys-platform-card--soon .ys-platform-card__icon {
    color: rgba(255, 255, 255, 0.73);
    background: rgba(255, 255, 255, 0.1);
}

.ys-platform-card > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ys-platform-card small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.62rem;
}

.ys-platform-card strong {
    margin-top: 3px;
    overflow: hidden;
    font-size: 0.83rem;
    font-weight: 780;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ys-soon-badge {
    padding: 5px 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Trust and legal */
.ys-section--trust {
    background: #fff;
}

.ys-trust-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.68fr);
    align-items: center;
    gap: clamp(70px, 10vw, 140px);
}

.ys-trust-seal {
    display: flex;
    align-items: center;
    max-width: 520px;
    gap: 14px;
    margin-top: 38px;
    padding: 18px;
    border: 1px solid var(--ys-line);
    border-radius: 18px;
    background: var(--ys-cloud);
}

.ys-trust-seal > span {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    place-items: center;
    color: var(--ys-purple);
    background: var(--ys-lilac);
}

.ys-trust-seal > div {
    display: flex;
    flex-direction: column;
}

.ys-trust-seal strong {
    font-size: 0.83rem;
    font-weight: 800;
}

.ys-trust-seal small {
    margin-top: 4px;
    color: var(--ys-muted);
    font-size: 0.7rem;
    line-height: 1.5;
}

.ys-legal-links {
    display: flex;
    gap: 9px;
    flex-direction: column;
}

.ys-legal-links a {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 76px;
    gap: 14px;
    padding: 12px 15px;
    border: 1px solid var(--ys-line);
    border-radius: 18px;
    background: #fff;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ys-legal-links a:hover {
    transform: translateX(5px);
    border-color: rgba(103, 70, 219, 0.28);
    box-shadow: var(--ys-shadow-sm);
}

.ys-legal-links a > span {
    display: grid;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    place-items: center;
    color: var(--ys-purple);
    background: var(--ys-lilac);
}

.ys-legal-links a > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.ys-legal-links strong {
    font-size: 0.82rem;
    font-weight: 800;
}

.ys-legal-links small {
    margin-top: 4px;
    color: var(--ys-muted);
    font-size: 0.68rem;
}

.ys-legal-links a > .mud-icon-root {
    color: #aaa4b6;
    font-size: 1.1rem;
}

.ys-final-cta {
    padding: 0 0 100px;
}

.ys-final-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 48px 56px;
    border-radius: 30px;
    background:
        radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.48), transparent 30%),
        linear-gradient(135deg, #ffe58e, #ffc94a 68%, #ffb64d);
    box-shadow: 0 24px 60px rgba(153, 96, 12, 0.16);
}

.ys-final-cta span {
    color: rgba(63, 43, 8, 0.67);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ys-final-cta h2 {
    margin-top: 8px;
    font-size: clamp(2rem, 4vw, 3.2rem);
}

/* Footer */
.ys-footer {
    padding: 70px 0 24px;
    color: rgba(255, 255, 255, 0.7);
    background: #1c1535;
}

.ys-footer__main {
    display: grid;
    grid-template-columns: minmax(250px, 1.5fr) repeat(3, minmax(140px, 0.72fr));
    gap: 48px;
    padding-bottom: 54px;
}

.ys-brand--footer {
    color: #fff;
}

.ys-brand--footer .ys-brand__copy small {
    color: rgba(255, 255, 255, 0.47);
}

.ys-footer__brand p {
    max-width: 300px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.47);
    font-size: 0.78rem;
    line-height: 1.65;
}

.ys-footer__column {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.ys-footer__column strong {
    margin-bottom: 8px;
    color: #fff;
    font-size: 0.73rem;
    font-weight: 800;
}

.ys-footer__column a,
.ys-footer__column span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
    line-height: 1.45;
    text-decoration: none;
    transition: color 160ms ease;
}

.ys-footer__column a:hover {
    color: var(--ys-sun);
}

.ys-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.36);
    font-size: 0.64rem;
}

/* Legal pages */
.ys-legal-page {
    min-height: 70vh;
    padding: 80px 0 110px;
    background:
        radial-gradient(circle at 85% 0%, rgba(112, 76, 218, 0.1), transparent 25%),
        var(--ys-cloud);
}

.ys-legal-container {
    width: min(calc(100% - 48px), 880px) !important;
    max-width: none !important;
    padding: 0 !important;
}

.ys-legal-hero {
    margin-bottom: 34px;
}

.ys-legal-hero__icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
    border-radius: 18px;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #7552e7, #5633c5);
    box-shadow: 0 14px 30px rgba(82, 51, 181, 0.23);
}

.ys-legal-hero h1,
.ys-legal-title {
    margin: 14px 0 12px !important;
    color: var(--ys-ink) !important;
    font-family: inherit !important;
    font-size: clamp(2.45rem, 6vw, 4.1rem) !important;
    font-weight: 850 !important;
    line-height: 1.03 !important;
    letter-spacing: -0.055em !important;
}

.ys-legal-hero p,
.ys-legal-lead {
    max-width: 720px;
    margin: 0 !important;
    color: var(--ys-muted) !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

.ys-legal-card,
.ys-legal-page .mud-paper,
.ys-legal-page .mud-expand-panel {
    border: 1px solid var(--ys-line) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: var(--ys-shadow-sm) !important;
}

.ys-legal-page .mud-expand-panel {
    overflow: hidden;
    margin-bottom: 10px;
}

.ys-legal-page .mud-expand-panel-header {
    min-height: 68px;
    padding: 0 22px !important;
    font-family: inherit;
    font-weight: 760;
}

.ys-legal-page .mud-expand-panel-content {
    padding: 0 22px 24px !important;
    color: var(--ys-muted);
    font-size: 0.9rem;
    line-height: 1.72;
}

.ys-legal-page .mud-alert {
    border-radius: 18px !important;
    background: #f0ecff !important;
}

.ys-legal-page .mud-input-outlined-border {
    border-radius: 14px !important;
}

.ys-legal-page .mud-button-root {
    min-height: 48px;
    border-radius: 14px;
    font-weight: 750;
    letter-spacing: 0;
    text-transform: none;
}

.ys-legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.ys-legal-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    gap: 6px;
    padding: 0 11px;
    border: 1px solid var(--ys-line);
    border-radius: 10px;
    color: var(--ys-muted);
    background: #fff;
    font-size: 0.66rem;
    font-weight: 700;
}

.ys-terms-list {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

.ys-terms-list article {
    padding: 28px 30px;
}

.ys-terms-list h2 {
    margin: 0 0 10px;
    color: var(--ys-ink);
    font-size: 1.12rem;
    font-weight: 820;
    letter-spacing: -0.025em;
}

.ys-terms-list p,
.ys-terms-list li {
    color: var(--ys-muted);
    font-size: 0.88rem;
    line-height: 1.72;
}

.ys-terms-list p {
    margin: 0;
}

.ys-terms-list ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

#blazor-error-ui {
    z-index: 1000;
    border-top: 1px solid #d8d1e4;
    color: var(--ys-ink);
    background: #fff5d9;
    box-shadow: 0 -8px 30px rgba(34, 25, 65, 0.12);
}

/* Responsive */
@media (max-width: 1050px) {
    .ys-desktop-nav {
        gap: 19px;
    }

    .ys-hero__grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(410px, 0.78fr);
        gap: 44px;
    }

    .ys-product-window {
        right: -20px;
    }

    .ys-floating-card--attendance {
        left: -18px;
    }
}

@media (max-width: 900px) {
    .ys-desktop-nav,
    .ys-header__portal {
        display: none;
    }

    .ys-mobile-nav {
        display: block;
    }

    .ys-hero {
        padding: 76px 0 84px;
    }

    .ys-hero__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .ys-hero__copy {
        max-width: 720px;
    }

    .ys-product-stage {
        width: min(100%, 590px);
        min-height: 540px;
        margin-inline: auto;
    }

    .ys-product-window {
        right: 6%;
        width: 480px;
    }

    .ys-section-heading--split,
    .ys-workflow-grid,
    .ys-access-panel,
    .ys-trust-grid {
        grid-template-columns: 1fr;
    }

    .ys-section-heading--split {
        gap: 28px;
    }

    .ys-section-heading--split p {
        max-width: 620px;
    }

    .ys-role-grid {
        grid-template-columns: 1fr;
    }

    .ys-role-card {
        min-height: 0;
    }

    .ys-role-card h3 {
        margin-top: 42px;
    }

    .ys-workflow-grid,
    .ys-trust-grid {
        gap: 60px;
    }

    .ys-week-card,
    .ys-legal-links {
        width: min(100%, 620px);
    }

    .ys-access-panel {
        gap: 46px;
    }

    .ys-access-options {
        width: min(100%, 580px);
    }

    .ys-footer__main {
        grid-template-columns: 1.4fr 1fr 1fr;
    }

    .ys-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .ys-shell,
    .ys-legal-container {
        width: min(calc(100% - 32px), var(--ys-shell)) !important;
    }

    .ys-header__inner {
        min-height: 70px;
    }

    .ys-brand__mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .ys-hero {
        min-height: auto;
        padding: 60px 0 72px;
    }

    .ys-hero h1 {
        font-size: clamp(3.1rem, 15vw, 4.5rem);
    }

    .ys-hero__lead {
        font-size: 0.96rem;
        line-height: 1.65;
    }

    .ys-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ys-button {
        width: 100%;
    }

    .ys-product-stage {
        min-height: 450px;
    }

    .ys-product-window {
        --ys-product-window-scale: scale(0.86);
        top: 24px;
        right: -11%;
        width: 108%;
        transform-origin: top center;
        animation-name: ys-product-window-drift-mobile;
    }

    .ys-floating-card--attendance {
        top: 67px;
        left: -4px;
        transform: scale(0.88);
        transform-origin: left center;
    }

    .ys-floating-card--today {
        right: -5px;
        bottom: 16px;
        transform: scale(0.88);
        transform-origin: right center;
    }

    .ys-section {
        padding: 82px 0;
    }

    .ys-section-heading h2,
    .ys-workflow-copy h2,
    .ys-access-copy h2,
    .ys-trust-copy h2 {
        font-size: clamp(2.25rem, 11vw, 3.35rem);
    }

    .ys-role-grid {
        margin-top: 42px;
    }

    .ys-role-card {
        padding: 28px;
        border-radius: 22px;
    }

    .ys-week-card {
        padding: 20px;
        border-radius: 24px;
    }

    .ys-week-insights {
        top: 70px;
        right: 20px;
        width: calc(100% - 40px);
    }

    .ys-week-event {
        grid-template-columns: 42px 4px 1fr;
        padding-inline: 10px;
    }

    .ys-section--access {
        padding: 24px 0;
    }

    .ys-access-panel {
        padding: 38px 22px;
        border-radius: 26px;
    }

    .ys-platform-card {
        grid-template-columns: 44px minmax(0, 1fr) auto;
        padding: 10px 12px;
    }

    .ys-platform-card__icon {
        width: 44px;
        height: 44px;
    }

    .ys-platform-card strong {
        font-size: 0.73rem;
    }

    .ys-final-cta {
        padding: 0 0 72px;
    }

    .ys-final-cta__inner {
        align-items: stretch;
        padding: 34px 24px;
        border-radius: 24px;
        flex-direction: column;
    }

    .ys-footer {
        padding-top: 55px;
    }

    .ys-footer__main {
        grid-template-columns: 1fr 1fr;
        gap: 38px 24px;
    }

    .ys-footer__brand {
        grid-column: 1 / -1;
    }

    .ys-footer__column:last-child {
        grid-column: 1 / -1;
    }

    .ys-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .ys-legal-page {
        padding: 58px 0 78px;
    }

    .ys-legal-page .mud-paper {
        padding: 20px !important;
    }

    .ys-terms-list article {
        padding: 23px 22px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
