/**
 * ==========================================================
 * S'gelaHub — Guest Dashboard / Public Experience
 * ==========================================================
 *
 * File:
 * assets/css/guest-dashboard.css
 *
 * Purpose:
 * Public-facing S'gelaHub landing / guest experience.
 *
 * Standards:
 * - No inline styling required
 * - Responsive-first
 * - Accessible focus states
 * - Reduced-motion support
 * - Component-scoped naming
 * - Minimal interference with WordPress/theme styles
 * ==========================================================
 */

.sgh-public-home {
    --sgh-primary: #2563eb;
    --sgh-primary-dark: #1d4ed8;
    --sgh-primary-soft: #eff6ff;

    --sgh-navy: #0f172a;
    --sgh-navy-2: #1e293b;

    --sgh-text: #0f172a;
    --sgh-text-soft: #475569;
    --sgh-text-muted: #64748b;

    --sgh-white: #ffffff;
    --sgh-surface: #f8fafc;
    --sgh-border: #e2e8f0;

    --sgh-success: #10b981;
    --sgh-warning: #f59e0b;

    --sgh-radius-sm: 12px;
    --sgh-radius-md: 18px;
    --sgh-radius-lg: 28px;
    --sgh-radius-xl: 36px;

    --sgh-shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.06);
    --sgh-shadow-md: 0 18px 45px rgba(15, 23, 42, 0.09);
    --sgh-shadow-lg: 0 30px 80px rgba(15, 23, 42, 0.16);

    --sgh-container: 1180px;

    width: 100%;
    overflow: hidden;
    color: var(--sgh-text);
    background: var(--sgh-white);
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}

.sgh-public-home *,
.sgh-public-home *::before,
.sgh-public-home *::after {
    box-sizing: border-box;
}

/* ==========================================================
   Shared
========================================================== */

.sgh-public-home a {
    text-decoration: none;
}

.sgh-public-section {
    width: min(
        calc(100% - 40px),
        var(--sgh-container)
    );
    margin-inline: auto;
    padding: 100px 0;
}

.sgh-public-section__heading {
    max-width: 760px;
    margin: 0 auto 55px;
    text-align: center;
}

.sgh-public-section__heading--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    max-width: none;
    text-align: left;
}

.sgh-public-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--sgh-primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
}

.sgh-public-section__heading h2,
.sgh-public-why__content h2,
.sgh-public-final-cta h2 {
    margin: 0;
    color: var(--sgh-text);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.04;
}

.sgh-public-section__heading p {
    max-width: 700px;
    margin: 20px auto 0;
    color: var(--sgh-text-soft);
    font-size: 17px;
    line-height: 1.75;
}

/* ==========================================================
   HERO
========================================================== */

.sgh-public-hero {
    position: relative;

    min-height: 760px;
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(420px, 0.9fr);

    align-items: center;
    gap: 45px;

    padding:
        100px
        max(30px, calc((100vw - var(--sgh-container)) / 2));

    color: var(--sgh-white);
    background:
        radial-gradient(
            circle at 76% 38%,
            rgba(37, 99, 235, 0.24),
            transparent 33%
        ),
        radial-gradient(
            circle at 18% 12%,
            rgba(16, 185, 129, 0.12),
            transparent 27%
        ),
        linear-gradient(
            135deg,
            #020617 0%,
            #0f172a 48%,
            #172554 100%
        );
}

.sgh-public-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;

    height: 90px;

    background:
        linear-gradient(
            to bottom right,
            transparent 49%,
            var(--sgh-white) 50%
        );
}

.sgh-public-hero__content {
    position: relative;
    z-index: 3;
    max-width: 680px;
}

.sgh-public-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 25px;
    padding: 9px 14px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;

    color: #dbeafe;
    background: rgba(255, 255, 255, 0.06);

    font-size: 13px;
    font-weight: 700;

    backdrop-filter: blur(14px);
}

.sgh-public-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.12);
}

.sgh-public-kicker {
    margin: 0 0 15px;

    color: #93c5fd;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    line-height: 1.4;

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.sgh-public-kicker.is-changing {
    opacity: 0;
    transform: translateY(4px);
}

.sgh-public-hero h1 {
    margin: 0;

    color: var(--sgh-white);
    font-size: clamp(48px, 6vw, 82px);
    font-weight: 850;
    letter-spacing: -0.055em;
    line-height: 0.98;
}

.sgh-public-hero h1 span {
    display: block;
    color: #60a5fa;
}

.sgh-public-hero__lead {
    max-width: 630px;
    margin: 30px 0 0;

    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.75;
}

.sgh-public-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-top: 34px;
}

.sgh-public-hero__note {
    margin: 18px 0 0;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.6;
}

.sgh-public-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
}

.sgh-public-hero__glow--one {
    width: 260px;
    height: 260px;
    top: 12%;
    right: 5%;
    background: rgba(37, 99, 235, 0.12);
}

.sgh-public-hero__glow--two {
    width: 190px;
    height: 190px;
    bottom: 10%;
    left: 35%;
    background: rgba(16, 185, 129, 0.08);
}

/* ==========================================================
   Hero visual
========================================================== */

.sgh-public-hero__visual {
    position: relative;
    min-height: 560px;
    display: grid;
    place-items: center;
}

.sgh-public-orbit {
    position: absolute;

    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 50%;

    animation: sghOrbitPulse 7s ease-in-out infinite;
}

.sgh-public-orbit--outer {
    width: 500px;
    height: 500px;
}

.sgh-public-orbit--inner {
    width: 340px;
    height: 340px;
    animation-delay: -2s;
}

.sgh-public-learning-card {
    position: relative;
    z-index: 5;

    width: min(390px, 80%);
    padding: 30px;

    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.13),
            rgba(255, 255, 255, 0.05)
        );

    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.35);

    backdrop-filter: blur(20px);

    transform: rotate(-3deg);
}

.sgh-public-learning-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.sgh-public-learning-card__icon {
    display: grid;
    place-items: center;

    width: 50px;
    height: 50px;

    border-radius: 15px;

    background: rgba(37, 99, 235, 0.2);
    font-size: 23px;
}

.sgh-public-learning-card__status {
    color: #93c5fd;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sgh-public-learning-card h2 {
    margin: 35px 0 9px;

    color: #fff;
    font-size: 32px;
    letter-spacing: -0.035em;
}

.sgh-public-learning-card p {
    margin: 0;

    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.7;
}

.sgh-public-learning-card small {
    display: block;
    margin-top: 13px;

    color: #94a3b8;
    font-size: 12px;
}

.sgh-public-progress {
    height: 9px;
    margin-top: 24px;

    overflow: hidden;
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);
}

.sgh-public-progress span {
    display: block;

    width: 76%;
    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #60a5fa
        );
}

.sgh-public-floating-card {
    position: absolute;
    z-index: 7;

    display: flex;
    align-items: center;
    gap: 9px;

    padding: 13px 16px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;

    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.72);

    box-shadow:
        0 16px 35px rgba(0, 0, 0, 0.24);

    backdrop-filter: blur(16px);

    font-size: 12px;
}

.sgh-public-floating-card span {
    font-size: 18px;
}

.sgh-public-floating-card--teacher {
    top: 15%;
    right: 0;
}

.sgh-public-floating-card--parent {
    bottom: 17%;
    left: 0;
}

.sgh-public-floating-card--learner {
    right: 7%;
    bottom: 7%;
}

@keyframes sghOrbitPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.035);
        opacity: 1;
    }
}

/* ==========================================================
   VALUE STRIP
========================================================== */

.sgh-public-value-strip {
    position: relative;
    z-index: 5;

    width: min(
        calc(100% - 40px),
        1120px
    );

    margin: -45px auto 0;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    border: 1px solid var(--sgh-border);
    border-radius: 22px;

    background: rgba(255, 255, 255, 0.96);

    box-shadow: var(--sgh-shadow-md);
}

.sgh-public-value-item {
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 22px 23px;
}

.sgh-public-value-item + .sgh-public-value-item {
    border-left: 1px solid var(--sgh-border);
}

.sgh-public-value-item > span {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 43px;
    height: 43px;

    border-radius: 13px;
    background: var(--sgh-primary-soft);

    font-size: 20px;
}

.sgh-public-value-item div {
    display: grid;
    gap: 3px;
}

.sgh-public-value-item strong {
    color: var(--sgh-text);
    font-size: 13px;
}

.sgh-public-value-item div span {
    color: var(--sgh-text-muted);
    font-size: 11px;
    line-height: 1.4;
}

/* ==========================================================
   Role Cards
========================================================== */

.sgh-public-section--roles {
    padding-top: 125px;
}

.sgh-public-role-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.sgh-public-role-card {
    position: relative;

    padding: 34px;

    border: 1px solid var(--sgh-border);
    border-radius: var(--sgh-radius-lg);

    background: var(--sgh-white);

    box-shadow: var(--sgh-shadow-sm);

    transition:
        transform 200ms ease,
        box-shadow 200ms ease,
        border-color 200ms ease;
}

.sgh-public-role-card:hover {
    transform: translateY(-6px);
    border-color: #bfdbfe;
    box-shadow: var(--sgh-shadow-md);
}

.sgh-public-role-card__icon {
    display: grid;
    place-items: center;

    width: 58px;
    height: 58px;
    margin-bottom: 25px;

    border-radius: 17px;

    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #dbeafe
        );

    font-size: 25px;
}

.sgh-public-role-card__label {
    display: block;
    margin-bottom: 10px;

    color: var(--sgh-primary);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.11em;
}

.sgh-public-role-card h3 {
    margin: 0;

    color: var(--sgh-text);
    font-size: 25px;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.sgh-public-role-card p {
    margin: 16px 0 0;

    color: var(--sgh-text-soft);
    font-size: 15px;
    line-height: 1.75;
}

.sgh-public-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 22px;

    color: var(--sgh-primary);
    font-size: 14px;
    font-weight: 750;

    transition:
        gap 180ms ease,
        color 180ms ease;
}

.sgh-public-text-link:hover {
    gap: 12px;
    color: var(--sgh-primary-dark);
}

/* ==========================================================
   How It Works
========================================================== */

.sgh-public-section--steps {
    max-width: 1280px;
}

.sgh-public-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.sgh-public-step {
    position: relative;
    padding: 30px 45px;
    text-align: center;
}

.sgh-public-step:not(:last-child)::after {
    content: "";
    position: absolute;

    top: 72px;
    right: -1px;

    width: 2px;
    height: 95px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            var(--sgh-border),
            transparent
        );
}

.sgh-public-step__number {
    position: absolute;
    top: 8px;
    left: 50%;

    transform: translateX(80px);

    color: #cbd5e1;
    font-size: 12px;
    font-weight: 850;
}

.sgh-public-step__icon {
    display: grid;
    place-items: center;

    width: 72px;
    height: 72px;
    margin: 0 auto 23px;

    border-radius: 21px;

    background: var(--sgh-navy);
    color: var(--sgh-white);

    font-size: 28px;

    box-shadow:
        0 15px 35px rgba(15, 23, 42, 0.15);
}

.sgh-public-step h3 {
    margin: 0;

    font-size: 20px;
    letter-spacing: -0.02em;
}

.sgh-public-step p {
    max-width: 310px;
    margin: 12px auto 0;

    color: var(--sgh-text-soft);
    font-size: 14px;
    line-height: 1.7;
}

/* ==========================================================
   Stats
========================================================== */

.sgh-public-section--stats {
    width: 100%;
    max-width: none;

    padding:
        95px
        max(20px, calc((100vw - 1180px) / 2));

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eff6ff
        );
}

.sgh-public-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.sgh-public-stat {
    display: grid;
    place-items: center;

    min-height: 185px;

    padding: 28px;

    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 23px;

    text-align: center;
    background: rgba(255, 255, 255, 0.78);

    box-shadow:
        0 8px 26px rgba(15, 23, 42, 0.045);
}

.sgh-public-stat__icon {
    margin-bottom: 10px;
    font-size: 24px;
}

.sgh-public-stat strong {
    display: block;

    color: var(--sgh-navy);
    font-size: 39px;
    font-weight: 850;
    letter-spacing: -0.045em;
}

.sgh-public-stat > span:last-child {
    margin-top: 3px;

    color: var(--sgh-text-muted);
    font-size: 13px;
    font-weight: 650;
}

/* ==========================================================
   Lessons
========================================================== */

.sgh-public-section--lessons {
    max-width: 1180px;
}

.sgh-public-section__mini-note {
    display: flex;
    align-items: center;
    gap: 9px;

    padding: 13px 16px;

    border: 1px solid var(--sgh-border);
    border-radius: 14px;

    color: var(--sgh-text-soft);
    background: var(--sgh-surface);

    font-size: 12px;
    font-weight: 650;

    white-space: nowrap;
}

.sgh-public-lessons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.sgh-public-lesson-card {
    display: flex;
    gap: 17px;

    min-height: 165px;

    padding: 24px;

    border: 1px solid var(--sgh-border);
    border-radius: 21px;

    background: var(--sgh-white);

    box-shadow: var(--sgh-shadow-sm);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.sgh-public-lesson-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--sgh-shadow-md);
}

.sgh-public-lesson-card__icon {
    display: grid;
    place-items: center;

    flex: 0 0 auto;

    width: 49px;
    height: 49px;

    border-radius: 14px;
    background: var(--sgh-primary-soft);

    font-size: 20px;
}

.sgh-public-lesson-card__content {
    min-width: 0;
}

.sgh-public-lesson-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    color: var(--sgh-text-muted);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.sgh-public-lesson-card h3 {
    margin: 8px 0 0;

    color: var(--sgh-text);
    font-size: 18px;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.sgh-public-lesson-card p {
    display: -webkit-box;

    margin: 9px 0 0;

    overflow: hidden;

    color: var(--sgh-text-soft);
    font-size: 13px;
    line-height: 1.65;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.sgh-public-empty-state {
    max-width: 680px;
    margin: 0 auto;
    padding: 55px 35px;

    border: 1px dashed #cbd5e1;
    border-radius: 24px;

    text-align: center;
    background: var(--sgh-surface);
}

.sgh-public-empty-state__icon {
    margin-bottom: 13px;
    font-size: 39px;
}

.sgh-public-empty-state h3 {
    margin: 0;

    font-size: 22px;
    letter-spacing: -0.025em;
}

.sgh-public-empty-state p {
    margin: 11px auto 0;

    color: var(--sgh-text-soft);
    font-size: 14px;
    line-height: 1.7;
}

/* ==========================================================
   Why S'gelaHub
========================================================== */

.sgh-public-section--why {
    padding-bottom: 115px;
}

.sgh-public-why {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 0.85fr);
    gap: 80px;

    align-items: center;

    padding: 70px;

    border-radius: var(--sgh-radius-xl);

    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(37, 99, 235, 0.13),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #f8fafc,
            #eef6ff
        );
}

.sgh-public-why__content h2 {
    max-width: 640px;
}

.sgh-public-why__content > p {
    max-width: 620px;
    margin: 22px 0 0;

    color: var(--sgh-text-soft);
    font-size: 16px;
    line-height: 1.8;
}

.sgh-public-why__principles {
    display: grid;
    gap: 13px;

    margin-top: 30px;
}

.sgh-public-why__principles div {
    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--sgh-text);
    font-size: 14px;
}

.sgh-public-why__principles span {
    display: grid;
    place-items: center;

    width: 25px;
    height: 25px;

    border-radius: 50%;

    color: var(--sgh-white);
    background: var(--sgh-success);

    font-size: 12px;
    font-weight: 800;
}

.sgh-public-why__visual {
    display: grid;
    place-items: center;
}

.sgh-public-why-panel {
    width: 100%;
    max-width: 460px;
    padding: 28px;

    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 25px;

    background: rgba(255, 255, 255, 0.82);

    box-shadow:
        0 25px 65px rgba(15, 23, 42, 0.1);
}

.sgh-public-why-panel__top {
    display: flex;
    justify-content: space-between;

    color: var(--sgh-text-muted);

    font-size: 10px;
    font-weight: 850;
    letter-spacing: 0.1em;
}

.sgh-public-why-panel__top span:last-child {
    color: var(--sgh-success);
}

.sgh-public-journey {
    display: flex;
    align-items: center;

    margin-top: 40px;
}

.sgh-public-journey__point {
    position: relative;

    display: grid;
    justify-items: center;
    gap: 10px;

    color: #94a3b8;
    font-size: 11px;
    text-align: center;
}

.sgh-public-journey__point span {
    display: grid;
    place-items: center;

    width: 44px;
    height: 44px;

    border: 2px solid #e2e8f0;
    border-radius: 50%;

    background: #fff;

    font-size: 15px;
}

.sgh-public-journey__point.is-complete span {
    border-color: #a7f3d0;
    color: #047857;
    background: #ecfdf5;
}

.sgh-public-journey__point.is-active span {
    border-color: #bfdbfe;
    color: #1d4ed8;
    background: #eff6ff;

    box-shadow:
        0 0 0 7px rgba(37, 99, 235, 0.07);
}

.sgh-public-journey__point strong {
    color: var(--sgh-text);
    font-size: 11px;
}

.sgh-public-journey__line {
    flex: 1;
    height: 2px;
    margin: 0 4px 27px;

    background:
        linear-gradient(
            90deg,
            #a7f3d0,
            #bfdbfe,
            #e2e8f0
        );
}

/* ==========================================================
   Final CTA
========================================================== */

.sgh-public-final-cta {
    position: relative;
    overflow: hidden;

    padding:
        110px
        max(25px, calc((100vw - 1180px) / 2));

    color: var(--sgh-white);

    background:
        radial-gradient(
            circle at 75% 40%,
            rgba(59, 130, 246, 0.2),
            transparent 28%
        ),
        radial-gradient(
            circle at 15% 70%,
            rgba(16, 185, 129, 0.1),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #020617,
            #172554
        );
}

.sgh-public-final-cta__pattern {
    position: absolute;
    inset: 0;

    opacity: 0.2;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.045) 1px,
            transparent 1px
        );

    background-size: 42px 42px;

    mask-image:
        radial-gradient(
            ellipse at center,
            black 0%,
            transparent 75%
        );
}

.sgh-public-final-cta__content {
    position: relative;
    z-index: 2;

    max-width: 780px;
    margin: 0 auto;

    text-align: center;
}

.sgh-public-final-cta .sgh-public-eyebrow {
    color: #93c5fd;
}

.sgh-public-final-cta h2 {
    color: var(--sgh-white);
}

.sgh-public-final-cta p {
    max-width: 650px;
    margin: 22px auto 0;

    color: #cbd5e1;
    font-size: 17px;
    line-height: 1.75;
}

.sgh-public-final-cta__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;

    margin-top: 32px;
}

.sgh-public-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #dbeafe;

    font-size: 14px;
    font-weight: 750;

    transition:
        gap 180ms ease,
        color 180ms ease;
}

.sgh-public-cta-link:hover {
    gap: 12px;
    color: #fff;
}

/* ==========================================================
   Responsive — Tablet
========================================================== */

@media (max-width: 1024px) {

    .sgh-public-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 85px;
        padding-bottom: 125px;
        text-align: center;
    }

    .sgh-public-hero__content {
        max-width: 760px;
        margin: 0 auto;
    }

    .sgh-public-hero__lead {
        margin-inline: auto;
    }

    .sgh-public-hero__actions {
        justify-content: center;
    }

    .sgh-public-hero__visual {
        min-height: 470px;
    }

    .sgh-public-value-strip {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -35px;
    }

    .sgh-public-value-item:nth-child(3) {
        border-top: 1px solid var(--sgh-border);
    }

    .sgh-public-value-item:nth-child(4) {
        border-top: 1px solid var(--sgh-border);
    }

    .sgh-public-role-grid,
    .sgh-public-lessons {
        grid-template-columns: repeat(2, 1fr);
    }

    .sgh-public-steps {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .sgh-public-step:not(:last-child)::after {
        top: auto;
        right: auto;
        bottom: -8px;
        left: 50%;

        width: 80px;
        height: 2px;

        transform: translateX(-50%);

        background:
            linear-gradient(
                90deg,
                transparent,
                var(--sgh-border),
                transparent
            );
    }

    .sgh-public-step__number {
        display: none;
    }

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

    .sgh-public-why {
        grid-template-columns: 1fr;
        padding: 55px;
    }

}

/* ==========================================================
   Responsive — Mobile
========================================================== */

@media (max-width: 700px) {

    .sgh-public-section {
        width: min(
            calc(100% - 28px),
            var(--sgh-container)
        );

        padding: 75px 0;
    }

    .sgh-public-hero {
        padding:
            65px
            20px
            105px;
    }

    .sgh-public-hero h1 {
        font-size: clamp(43px, 14vw, 62px);
    }

    .sgh-public-hero__lead {
        font-size: 16px;
        line-height: 1.7;
    }

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

    .sgh-public-hero__actions .sgh-btn {
        width: 100%;
    }

    .sgh-public-hero__visual {
        min-height: 375px;
    }

    .sgh-public-orbit--outer {
        width: 330px;
        height: 330px;
    }

    .sgh-public-orbit--inner {
        width: 230px;
        height: 230px;
    }

    .sgh-public-learning-card {
        width: min(330px, 90%);
        padding: 23px;

        transform: rotate(-2deg);
    }

    .sgh-public-learning-card h2 {
        margin-top: 27px;
        font-size: 27px;
    }

    .sgh-public-floating-card {
        padding: 10px 12px;
        font-size: 10px;
    }

    .sgh-public-floating-card--teacher {
        top: 8%;
        right: 0;
    }

    .sgh-public-floating-card--parent {
        bottom: 12%;
        left: 0;
    }

    .sgh-public-floating-card--learner {
        right: 0;
        bottom: 0;
    }

    .sgh-public-value-strip {
        width: min(
            calc(100% - 28px),
            600px
        );

        grid-template-columns: 1fr;
    }

    .sgh-public-value-item + .sgh-public-value-item {
        border-top: 1px solid var(--sgh-border);
        border-left: 0;
    }

    .sgh-public-section__heading,
    .sgh-public-section__heading--split {
        margin-bottom: 40px;
        text-align: left;
    }

    .sgh-public-section__heading--split {
        display: block;
    }

    .sgh-public-section__heading h2,
    .sgh-public-why__content h2,
    .sgh-public-final-cta h2 {
        font-size: clamp(32px, 10vw, 45px);
    }

    .sgh-public-section__heading p {
        margin-left: 0;
        margin-right: 0;
        font-size: 15px;
    }

    .sgh-public-section__mini-note {
        display: inline-flex;
        margin-top: 22px;
    }

    .sgh-public-role-grid,
    .sgh-public-lessons,
    .sgh-public-stats-grid {
        grid-template-columns: 1fr;
    }

    .sgh-public-role-card {
        padding: 27px;
    }

    .sgh-public-step {
        padding: 25px 10px;
    }

    .sgh-public-step:not(:last-child)::after {
        width: 55px;
    }

    .sgh-public-section--stats {
        padding:
            75px
            14px;
    }

    .sgh-public-stat {
        min-height: 160px;
    }

    .sgh-public-why {
        gap: 45px;
        padding: 35px 24px;
        border-radius: 28px;
    }

    .sgh-public-why-panel {
        padding: 21px;
    }

    .sgh-public-journey {
        transform: scale(0.86);
        transform-origin: center;
    }

    .sgh-public-final-cta {
        padding:
            80px
            20px;
    }

    .sgh-public-final-cta__actions {
        flex-direction: column;
    }

    .sgh-public-final-cta__actions .sgh-btn {
        width: 100%;
    }

}

/* ==========================================================
   Very Small Screens
========================================================== */

@media (max-width: 420px) {

    .sgh-public-hero {
        padding-left: 15px;
        padding-right: 15px;
    }

    .sgh-public-badge {
        font-size: 11px;
    }

    .sgh-public-hero__visual {
        min-height: 330px;
    }

    .sgh-public-orbit--outer {
        width: 290px;
        height: 290px;
    }

    .sgh-public-orbit--inner {
        width: 200px;
        height: 200px;
    }

    .sgh-public-floating-card {
        transform: scale(0.88);
    }

    .sgh-public-learning-card {
        width: 285px;
    }

    .sgh-public-journey {
        transform: scale(0.76);
    }

}

/* ==========================================================
   Reduced Motion
========================================================== */

@media (prefers-reduced-motion: reduce) {

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

    .sgh-public-orbit {
        animation: none;
    }

}

/* ==========================================================
   Accessibility — Keyboard
========================================================== */

.sgh-public-home a:focus-visible,
.sgh-public-home button:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.4);
    outline-offset: 4px;
}

/* ==========================================================
   Print
========================================================== */

@media print {

    .sgh-public-hero,
    .sgh-public-final-cta {
        color: #000;
        background: #fff;
    }

    .sgh-public-hero__visual,
    .sgh-public-floating-card,
    .sgh-public-orbit,
    .sgh-public-final-cta__pattern {
        display: none !important;
    }

    .sgh-public-home {
        box-shadow: none;
    }

}