@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@400;500;600;700&family=Nunito:wght@400;600;700;800;900&display=swap");

:root {
    --purple-50: #f5f3ff;
    --purple-100: #ebe7ff;
    --purple-200: #d9d2fb;
    --purple-300: #b7a9f6;
    --purple-400: #8d7bea;
    --purple-500: #6557dc;
    --purple-600: #5546c6;
    --purple-700: #4535a4;
    --purple-800: #342879;
    --purple-900: #241c54;

    --ink-900: #1b1e2e;
    --ink-800: #202334;
    --ink-700: #3b4154;
    --ink-500: #5b6479;
    --ink-400: #767f93;
    --ink-300: #9aa2b4;
    --ink-200: #c8cddb;
    --ink-100: #e7e7ef;
    --ink-50: #f2f3f9;

    --deep-900: #241f40;
    --deep-800: #2b2550;
    --deep-700: #3a3268;

    --green-600: #0f7a5f;
    --green-500: #18866b;
    --green-100: #e3f4ee;
    --amber-700: #8a5a0c;
    --amber-100: #fdf3da;

    --white: #fff;
    --canvas-tint: #fafaff;
    --soft-lilac: #f3f1ff;

    --text-strong: var(--ink-900);
    --text-body: var(--ink-700);
    --text-muted: var(--ink-500);
    --text-quiet: var(--ink-400);
    --text-brand: var(--purple-700);
    --text-on-deep: #e6e3f5;
    --text-muted-on-deep: #b9b4d4;

    --surface-page: var(--white);
    --surface-sunken: var(--canvas-tint);
    --surface-card: var(--white);
    --surface-brand-soft: var(--soft-lilac);
    --surface-deep: var(--deep-800);

    --border-subtle: var(--ink-100);
    --border-brand: var(--purple-200);
    --border-on-deep: rgba(255, 255, 255, 0.14);

    --action-primary: var(--purple-500);
    --action-primary-hover: var(--purple-600);
    --action-quiet-text: var(--ink-500);

    --status-success: var(--green-600);
    --status-success-soft: var(--green-100);

    --font-display: "Nunito", system-ui, sans-serif;
    --font-body: "Lexend", system-ui, sans-serif;

    --text-h1: clamp(2.4rem, 5vw, 4.45rem);
    --text-h2: clamp(2rem, 3.7vw, 3.25rem);
    --leading-tight: 1.06;
    --leading-normal: 1.55;
    --leading-relaxed: 1.68;
    --tracking-tight: -0.035em;
    --tracking-wide: 0.12em;

    --section-y: 48px;
    --wrap-width: 1160px;
    --wrap-pad: 20px;
    --gap-col: 32px;
    --gap-grid: 8px;

    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 11px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 22px;
    --radius-pill: 999px;

    --shadow-card: 0 12px 30px rgba(37, 35, 59, 0.08);
    --shadow-raised: 0 16px 35px rgba(57, 49, 104, 0.12);
    --shadow-action: 0 9px 22px rgba(101, 87, 220, 0.2);
    --shadow-action-hover: 0 13px 28px rgba(101, 87, 220, 0.25);
    --shadow-overlay: 0 22px 55px rgba(32, 35, 52, 0.1);
    --shadow-mascot: drop-shadow(0 18px 26px rgba(68, 55, 131, 0.14));

    --transition-button: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    --transition-card: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    --lift-hover: translateY(-2px);
    --lift-card-hover: translateY(-4px);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text-strong);
    background: var(--surface-page);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 900;
    letter-spacing: var(--tracking-tight);
    text-wrap: balance;
}

h1,
h2 {
    margin: 0;
    line-height: var(--leading-tight);
}
p {
    text-wrap: pretty;
}
em {
    font-style: normal;
    color: var(--action-primary);
}
a {
    color: var(--text-brand);
    text-decoration: none;
}
img {
    max-width: 100%;
}
:focus-visible {
    outline: 3px solid rgba(101, 87, 220, 0.3);
    outline-offset: 3px;
}

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

.eyebrow {
    margin: 0 0 14px;
    color: var(--text-brand);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

.lead {
    max-width: 560px;
    margin: 22px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.campus-copy > p:not([class]),
.level-journey-copy > p:not([class]),
.pricing-copy > p:not([class]) {
    max-width: 540px;
    margin: 21px 0 0;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: var(--leading-relaxed);
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 19px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    color: var(--white);
    background: var(--action-primary);
    box-shadow: var(--shadow-action);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.1;
    cursor: pointer;
    transition: var(--transition-button);
}

.button span {
    font-size: 1.1rem;
    line-height: 1;
}
.button:hover {
    background: var(--action-primary-hover);
    box-shadow: var(--shadow-action-hover);
    transform: var(--lift-hover);
    color: var(--white);
    text-decoration: none;
}

.button-small {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 0.8rem;
    box-shadow: none;
}
.button-campus {
    box-shadow: none;
}
.button-light {
    color: var(--purple-700);
    background: var(--white);
    box-shadow: none;
}
.button-light:hover {
    color: var(--purple-700);
    background: var(--purple-50);
    box-shadow: var(--shadow-card);
}
.button.full {
    width: 100%;
    min-height: 44px;
    padding: 10px;
    font-size: 0.76rem;
}
.button[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.55;
}

/* Header */
.nav {
    display: flex;
    height: 68px;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--purple-900);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: var(--tracking-tight);
}

.nav .brand {
    order: 1;
}
.brand-mark {
    display: block;
    width: 29px;
    height: 29px;
    border-radius: 9px;
}
.nav-links,
.nav-login {
    display: none;
}
.nav-actions {
    display: flex;
    order: 2;
    margin-left: auto;
    align-items: center;
    gap: 5px;
}

.mobile-menu {
    order: 3;
    position: relative;
}

.mobile-menu summary {
    display: grid;
    width: 40px;
    height: 40px;
    place-content: center;
    gap: 4px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    background: var(--white);
    list-style: none;
    cursor: pointer;
}

.mobile-menu summary::-webkit-details-marker {
    display: none;
}
.mobile-menu summary span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: var(--text-strong);
}

.mobile-menu > div {
    position: absolute;
    z-index: 20;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    min-width: 210px;
    padding: 7px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-overlay);
}

.mobile-menu > div a {
    padding: 10px 11px;
    border-radius: 7px;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 800;
}

.mobile-menu > div a:hover {
    background: var(--purple-50);
    color: var(--text-brand);
    text-decoration: none;
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: linear-gradient(180deg, #fff 0%, #f7f6ff 100%);
}

.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 130px;
    right: -170px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(101, 87, 220, 0.14), rgba(101, 87, 220, 0) 68%);
    opacity: 0.58;
}

.hero-grid {
    display: grid;
    gap: 26px;
    align-items: center;
    padding-top: 34px;
    padding-bottom: 28px;
}

.hero-copy {
    min-width: 0;
}

.hero .eyebrow {
    display: inline-flex;
    padding: 6px 10px;
    border: 1px solid var(--border-brand);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.07em;
}

.hero h1 {
    max-width: 620px;
    font-size: 2.6rem;
}
.hero-actions {
    display: flex;
    align-items: center;
    gap: 11px;
}
.hero-actions .button {
    width: 100%;
}

.microcopy {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 15px 0 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.microcopy::before {
    content: "✓";
    display: grid;
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--status-success);
    background: var(--status-success-soft);
    font-weight: 900;
}

/* Hero product preview */
.product-card {
    overflow: hidden;
    min-width: 0;
    border: 1px solid var(--border-brand);
    border-radius: 18px;
    background: var(--white);
    box-shadow: var(--shadow-raised);
}

.window-bar {
    display: flex;
    height: 42px;
    align-items: center;
    gap: 5px;
    padding: 0 14px;
    border-bottom: 1px solid var(--ink-50);
    color: var(--text-muted);
    background: var(--surface-sunken);
    font-size: 0.66rem;
}

.window-bar span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #eb8b86;
}
.window-bar span:nth-child(2) {
    background: #e7b74d;
}
.window-bar span:nth-child(3) {
    background: #4fb894;
}
.window-bar b {
    margin-left: 8px;
}

.app-body {
    display: flex;
    min-height: 275px;
}
.mini-sidebar {
    display: none;
    width: 55px;
    padding: 24px 16px;
    background: #f6f5fb;
}
.mini-sidebar i {
    display: block;
    height: 14px;
    margin-bottom: 22px;
    border-radius: 4px;
    background: #dbd8e9;
}
.mini-sidebar i:first-child {
    background: var(--action-primary);
}

.dashboard {
    flex: 1;
    min-width: 0;
    padding: 16px 13px;
}
.dashboard-greeting {
    margin: 0 0 18px;
    font-size: 0.9rem;
    font-weight: 700;
}
.dashboard-greeting span {
    color: var(--action-primary);
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}
.stats div {
    padding: 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
}
.stats small {
    display: block;
    color: var(--text-quiet);
    font-size: 0.56rem;
    letter-spacing: 0.06em;
}
.stats strong {
    display: inline-block;
    margin: 6px 6px 0 0;
    font-family: var(--font-display);
    font-size: 1.55rem;
}
.stats b {
    font-size: 0.61rem;
}
.stats .up {
    color: var(--status-success);
}
.stats .purple {
    color: var(--text-brand);
}

.activity {
    margin-top: 19px;
}
.activity-head {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    font-size: 0.69rem;
}
.activity-head a {
    font-size: 0.6rem;
}

.student {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-top: 1px solid var(--ink-50);
    font-size: 0.6rem;
}
.student div {
    flex: 1;
    min-width: 0;
}
.student small {
    display: block;
    color: var(--text-quiet);
    font-size: 0.56rem;
}
.student strong {
    color: var(--status-success);
    font-size: 0.61rem;
}
.student .needs {
    color: var(--text-brand);
}

.avatar {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: var(--radius-sm);
    font-size: 0.58rem;
    font-weight: 800;
}
.avatar.a1 {
    color: #95433f;
    background: #fde2e0;
}
.avatar.a2 {
    color: #433896;
    background: #e9e6ff;
}
.avatar.a3 {
    color: #176952;
    background: #dcf3eb;
}

/* Hero benefit chips */
.trusted {
    display: grid;
    gap: 7px;
    padding-bottom: 26px;
}

.trusted div {
    padding: 14px 15px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.76);
}

.trusted b {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 900;
}
.trusted span {
    display: block;
    color: var(--text-muted);
    font-size: 0.69rem;
    line-height: 1.45;
}

/* Section rhythm */
.campus,
.problem,
.pricing {
    background: var(--surface-sunken);
}
.how {
    background: var(--surface-brand-soft);
}
.campus,
.how,
.pricing {
    padding-block: var(--section-y);
}
.billing,
.problem,
.independent,
.level-journey,
.trust {
    padding-block: var(--section-y);
}

h2 {
    font-size: 2rem;
}

/* Campus */
.campus-grid {
    display: grid;
    gap: var(--gap-col);
    align-items: center;
}
.campus-copy .button {
    margin-top: 27px;
}
.campus-illustration {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
    margin-inline: auto;
    order: -1;
}
.campus-features-wrap {
    margin-top: 34px;
}
.campus-features {
    display: grid;
    gap: var(--gap-grid);
}

.campus-features article,
.trust-item {
    padding: 19px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    background: var(--surface-card);
}

.cf-icon,
.trust-item img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}
.cf-icon {
    margin-bottom: 13px;
}
.trust-item img {
    margin-bottom: 12px;
}
.campus-features h3 {
    margin: 0 0 7px;
    font-size: 0.96rem;
}
.campus-features p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.77rem;
    line-height: var(--leading-normal);
}

/* Facturación directa */
.billing-grid {
    display: grid;
    gap: var(--gap-col);
    align-items: center;
    margin-bottom: 32px;
}

.illustration-card {
    display: flex;
    max-width: 480px;
    margin-inline: auto;
    align-items: center;
    justify-content: center;
    order: -1;
}

.illustration-card img {
    display: block;
    width: 100%;
    height: auto;
}
.illustration-card--wide {
    max-width: 850px;
    margin: 42px auto 0;
    order: 0;
}

.independent-grid {
    display: grid;
    gap: 9px;
}

.independent-grid article {
    display: flex;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--surface-card);
}

.ig-icon {
    display: block;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    margin-top: 2px;
    object-fit: contain;
}
.independent-grid strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 900;
}
.independent-grid p {
    max-width: 500px;
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: var(--leading-normal);
}
.billing > .button {
    margin-top: 23px;
}

/* El techo */
.problem-grid {
    display: grid;
    gap: var(--gap-col);
    align-items: end;
}
.problem-grid p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: var(--leading-relaxed);
}

/* Más capacidad */
.independent {
    display: grid;
    gap: var(--gap-col);
    align-items: start;
}

/* Cómo funciona */
.feature-grid {
    display: grid;
    gap: var(--gap-grid);
    margin-top: 32px;
}

.feature {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 13px;
    align-items: start;
    padding: 16px;
    border: 1px solid var(--border-brand);
    border-radius: var(--radius-lg);
    background: var(--surface-card);
}

.feature > span {
    display: none;
}
.feature-icon {
    grid-row: span 2;
}
.feature-icon img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.feature h3 {
    margin: 1px 0 5px;
    font-size: 1rem;
}
.feature p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: var(--leading-normal);
}

/* Práctica, dominio y avance */
.level-journey {
    display: grid;
    gap: var(--gap-col);
    align-items: start;
}
.level-steps {
    margin: 0;
    padding: 0;
    list-style: none;
}

.level-steps li {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    padding: 19px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.level-steps li:first-child {
    border-top: 1px solid var(--border-subtle);
}
.level-steps span {
    color: var(--action-primary);
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 900;
}
.level-steps h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}
.level-steps p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: var(--leading-normal);
}

/* Quanty */
.mascot {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: center;
    margin-block: 24px;
    padding: 24px 0;
}

.mascot-img {
    display: block;
    width: 172px;
    max-width: 100%;
    height: auto;
    justify-self: center;
    filter: var(--shadow-mascot);
}
.mascot-copy h2 {
    font-size: 1.75rem;
}
.mascot .lead {
    margin: 10px 0 0;
    font-size: 0.84rem;
}
.mascot-copy {
    min-width: 0;
}
.mascot-actions {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.mascot-actions li {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    background: var(--white);
    font-size: 0.76rem;
    line-height: 1.4;
}

.mascot-actions img {
    display: block;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    object-fit: contain;
}
.mascot-actions b {
    color: var(--text-strong);
}

/* Planes */
.pricing-copy {
    max-width: 690px;
    margin-bottom: 36px;
}
.price-grid {
    display: grid;
    gap: 12px;
    align-items: stretch;
}

.price-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 21px;
    border: 1px solid var(--border-subtle);
    border-radius: 13px;
    background: var(--surface-card);
    transition: var(--transition-card);
}

.price-card--free {
    border-top: 3px solid var(--status-success);
}
.price-card--institution {
    border-color: var(--deep-800);
    background: var(--surface-deep);
    color: var(--white);
}

.price-label {
    color: var(--text-brand);
    font-family: var(--font-display);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}
.price-card--institution .price-label {
    color: #c7c0ff;
}
.price-card h3 {
    margin: 9px 0 16px;
    font-size: 1.16rem;
}

.price {
    display: flex;
    align-items: center;
    color: var(--purple-700);
}
.price strong {
    font-family: var(--font-display);
    font-size: 2.3rem;
    letter-spacing: -0.05em;
}
.price span {
    margin-left: 9px;
    color: var(--text-muted);
    font-size: 0.65rem;
    line-height: 1.4;
}

.price-per-student {
    display: inline-block;
    align-self: flex-start;
    margin: 9px 0 0;
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    color: var(--status-success);
    background: var(--status-success-soft);
    font-size: 0.67rem;
    font-weight: 700;
}

.price-per-student:empty {
    display: none;
}
.price-note {
    margin: 7px 0 17px;
    color: var(--text-muted);
    font-size: 0.71rem;
    line-height: 1.5;
}
.price-card--institution .price-note {
    color: #d6d2df;
}

.price-card ul {
    flex: 1;
    margin: 0 0 12px;
    padding: 15px 0 5px;
    border-top: 1px solid var(--border-subtle);
    list-style: none;
}
.price-card li {
    margin: 9px 0;
    color: var(--text-body);
    font-size: 0.75rem;
    line-height: 1.42;
}
.price-card li::before {
    content: "✓";
    margin-right: 7px;
    color: var(--status-success);
    font-weight: 900;
}
.price-card--institution ul {
    border-top-color: var(--border-on-deep);
}
.price-card--institution li {
    color: #d6d2df;
}
.price-card--institution li::before {
    color: #a8e6cd;
}

.price-card--free .button {
    color: var(--text-brand);
    background: var(--white);
    border-color: var(--border-brand);
    box-shadow: none;
}
.price-card--free .button:hover {
    color: var(--text-brand);
    background: var(--purple-50);
}
.price-card--institution .button {
    color: var(--deep-800);
    background: var(--white);
    box-shadow: none;
}
.price-card--institution .button:hover {
    color: var(--deep-800);
    background: var(--purple-50);
}

.plans-loading {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.institution-contact {
    display: grid;
    gap: 4px;
    margin: 10px 0 0;
}
.institution-contact a {
    color: #c7c0ff;
    font-size: 0.75rem;
}

/* Por qué confiar */
.trust-grid {
    display: grid;
    gap: var(--gap-grid);
}
.trust-item h3 {
    margin: 0 0 6px;
    font-size: 0.95rem;
}
.trust-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: var(--leading-normal);
}

/* Preguntas */
.faq {
    max-width: 860px;
    padding-top: 16px;
    padding-bottom: var(--section-y);
}
.faq h2 {
    margin: 0 0 25px;
    font-size: 1.9rem;
}
.faq-list {
    display: grid;
    gap: 8px;
}

.faq-list details {
    padding: 15px 17px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--surface-card);
}

.faq-list summary {
    display: flex;
    justify-content: space-between;
    gap: 11px;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 800;
    list-style: none;
    cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}
.faq-list summary::after {
    content: "+";
    color: var(--action-primary);
    font-size: 1.1rem;
    line-height: 1;
}
.faq-list details[open] summary::after {
    content: "−";
}
.faq-list p {
    margin: 11px 0 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.58;
}

/* Cierre */
.cta {
    padding-block: var(--section-y);
    color: var(--white);
    background: var(--purple-600);
}
.cta-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
}
.cta .eyebrow {
    color: #dcd7ff;
}
.cta h2,
.cta h2 em {
    color: var(--white);
}
.cta .button {
    flex: 0 0 auto;
    width: 100%;
}

.footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-block: 28px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.footer .brand {
    font-size: 1.45rem;
}
.footer .brand-mark {
    width: 27px;
    height: 27px;
}
.footer p {
    margin: 0;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.footer-links a {
    color: var(--ink-500);
    font-weight: 600;
}
.footer-links a:hover {
    color: var(--text-brand);
}
.footer span {
    font-size: 0.69rem;
}

@media (min-width: 800px) {
    :root {
        --section-y: 72px;
        --wrap-pad: 24px;
        --gap-col: 62px;
        --gap-grid: 10px;
    }

    h2 {
        font-size: var(--text-h2);
    }

    .nav {
        height: 76px;
    }
    .brand {
        font-size: 1.45rem;
    }
    .nav-links {
        display: flex;
        order: 2;
        margin-left: auto;
        align-items: center;
        gap: 2px;
    }

    .nav-links a,
    .nav-login {
        display: inline-flex;
        padding: 8px 10px;
        border-radius: var(--radius-sm);
        color: var(--action-quiet-text);
        font-family: var(--font-display);
        font-size: 0.8rem;
        font-weight: 800;
        transition:
            background 0.18s ease,
            color 0.18s ease;
    }

    .nav-links a:hover,
    .nav-login:hover {
        color: var(--text-brand);
        background: var(--purple-50);
        text-decoration: none;
    }
    .nav-actions {
        order: 3;
        margin-left: 14px;
    }
    .mobile-menu {
        display: none;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(410px, 1.05fr);
        gap: 64px;
        padding-top: 72px;
        padding-bottom: 64px;
    }

    .hero h1 {
        font-size: var(--text-h1);
    }
    .lead {
        font-size: 1.02rem;
    }
    .hero-actions .button {
        width: auto;
    }
    .microcopy {
        align-items: center;
    }

    .app-body {
        min-height: 342px;
    }
    .mini-sidebar {
        display: block;
    }
    .dashboard {
        padding: 24px;
    }

    .trusted {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    .trusted div {
        padding: 17px 18px;
    }

    .campus-grid,
    .billing-grid,
    .problem-grid,
    .independent,
    .level-journey {
        grid-template-columns: 1fr 1fr;
    }
    .campus-illustration {
        max-width: none;
        order: 0;
    }
    .campus-features-wrap {
        margin-top: 52px;
    }
    .campus-features,
    .feature-grid,
    .trust-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .feature-grid {
        gap: 12px;
    }
    .illustration-card {
        max-width: none;
        order: 0;
    }
    .illustration-card--wide {
        max-width: 850px;
    }

    .feature {
        display: block;
        padding: 21px;
    }
    .feature > span {
        display: block;
        color: var(--text-brand);
        font-family: var(--font-display);
        font-size: 0.68rem;
        font-weight: 900;
    }
    .feature-icon {
        height: 42px;
        margin: 21px 0 15px;
    }
    .feature-icon img {
        width: 46px;
        height: 46px;
    }
    .feature h3 {
        margin: 0 0 7px;
        font-size: 1.04rem;
    }
    .feature p {
        font-size: 0.81rem;
    }

    .level-steps li {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 13px;
    }
    .level-steps h3 {
        font-size: 1.02rem;
    }

    .mascot {
        grid-template-columns: 0.68fr 1fr;
        gap: 52px;
        margin-block: 56px;
        padding: 0;
    }
    .mascot-img {
        width: 100%;
        max-width: 205px;
    }
    .mascot-copy h2 {
        font-size: var(--text-h2);
    }
    .mascot .lead {
        margin: 18px 0;
        font-size: 1.02rem;
    }
    .mascot-actions {
        grid-column: auto;
        margin-top: 0;
    }
    .mascot-actions li {
        padding: 9px 11px;
        font-size: 0.8rem;
    }

    .price-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    .price-card {
        padding: 23px;
    }
    .price-card:hover {
        transform: var(--lift-card-hover);
        box-shadow: var(--shadow-raised);
    }

    .faq h2 {
        font-size: clamp(1.9rem, 3vw, 2.45rem);
    }

    .cta {
        padding-block: 64px;
    }
    .cta-inner {
        flex-direction: row;
        align-items: center;
    }
    .cta .button {
        width: auto;
    }

    .footer {
        flex-direction: row;
        flex-wrap: wrap;
        min-height: 96px;
        align-items: center;
        gap: 20px;
        padding-block: 0;
    }
    .footer p {
        margin-right: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .button,
    .price-card {
        transition: none;
    }
    .button:hover,
    .price-card:hover {
        transform: none;
    }
}
