.coming-soon {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(40px, 8vw, 100px) 24px;
    background: linear-gradient(180deg, #fafbff 0%, #f1f4fa 100%);
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - var(--nav-height));
}

body:has(.coming-soon) .site-footer {
    margin-top: 0;
}

.coming-soon::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 720px;
    height: 320px;
    max-width: 90%;
    background: radial-gradient(ellipse at center, rgba(250, 251, 255, 0.95) 0%, rgba(250, 251, 255, 0.7) 45%, transparent 75%);
    pointer-events: none;
    z-index: 1;
    border-radius: 50%;
}

.coming-soon-inner {
    text-align: center;
    max-width: 720px;
    position: relative;
    z-index: 2;
}

.coming-soon-text {
    font-family: "Cormorant Garamond", "Iowan Old Style", "Apple Garamond", "Baskerville", "Times New Roman", "Times", Georgia, serif;
    font-weight: 600;
    font-size: clamp(56px, 11vw, 128px);
    line-height: 1;
    color: var(--blue);
    letter-spacing: 0;
}

.not-found-kicker {
    margin: 0 0 50px;
    font-family: var(--font-gurmukhi);
    font-size: clamp(88px, 18vw, 88px);
    font-weight: 700;
    line-height: 0.88;
    color: var(--orange);
}

.not-found-sub {
    margin: 18px auto 0;
    max-width: 420px;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink-soft);
}

.not-found-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.not-found-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.not-found-btn-primary {
    background: var(--blue);
    color: #fff;
}

.not-found-btn-secondary {
    border: 1px solid var(--line);
    color: var(--blue);
    background: #fff;
}

.akhar-cloud {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.akhar-cloud .gurmukhi {
    position: absolute;
    font-family: var(--font-gurmukhi);
    color: var(--blue);
    line-height: 1;
    display: inline-block;
    user-select: none;
    font-size: 38px;
    opacity: 0.18;
}

.akhar-cloud .gurmukhi:nth-child(1)  { top:  4%; left:  4%; transform: rotate(-4deg); }
.akhar-cloud .gurmukhi:nth-child(2)  { top:  3%; left: 16%; transform: rotate(3deg); }
.akhar-cloud .gurmukhi:nth-child(3)  { top:  5%; left: 28%; transform: rotate(-2deg); }
.akhar-cloud .gurmukhi:nth-child(4)  { top:  3%; left: 40%; transform: rotate(4deg); }
.akhar-cloud .gurmukhi:nth-child(5)  { top:  5%; left: 52%; transform: rotate(-3deg); }
.akhar-cloud .gurmukhi:nth-child(6)  { top:  3%; left: 64%; transform: rotate(2deg); }
.akhar-cloud .gurmukhi:nth-child(7)  { top:  5%; left: 76%; transform: rotate(-4deg); }
.akhar-cloud .gurmukhi:nth-child(8)  { top:  3%; left: 88%; transform: rotate(3deg); }

.akhar-cloud .gurmukhi:nth-child(9)  { top: 18%; left:  6%; transform: rotate(2deg); }
.akhar-cloud .gurmukhi:nth-child(10) { top: 19%; left: 19%; transform: rotate(-3deg); }
.akhar-cloud .gurmukhi:nth-child(11) { top: 17%; left: 32%; transform: rotate(4deg); }
.akhar-cloud .gurmukhi:nth-child(12) { top: 19%; left: 45%; transform: rotate(-2deg); }
.akhar-cloud .gurmukhi:nth-child(13) { top: 17%; left: 58%; transform: rotate(3deg); }
.akhar-cloud .gurmukhi:nth-child(14) { top: 19%; left: 71%; transform: rotate(-4deg); }
.akhar-cloud .gurmukhi:nth-child(15) { top: 17%; left: 84%; transform: rotate(2deg); }

.akhar-cloud .gurmukhi:nth-child(16) { top: 35%; left:  4%; transform: rotate(-3deg); }
.akhar-cloud .gurmukhi:nth-child(17) { top: 37%; left: 16%; transform: rotate(2deg); }
.akhar-cloud .gurmukhi:nth-child(18) { top: 36%; left: 80%; transform: rotate(-2deg); }
.akhar-cloud .gurmukhi:nth-child(19) { top: 37%; left: 91%; transform: rotate(3deg); }

.akhar-cloud .gurmukhi:nth-child(20) { top: 52%; left:  3%; transform: rotate(3deg); }
.akhar-cloud .gurmukhi:nth-child(21) { top: 53%; left: 15%; transform: rotate(-4deg); }
.akhar-cloud .gurmukhi:nth-child(22) { top: 52%; left: 80%; transform: rotate(2deg); }
.akhar-cloud .gurmukhi:nth-child(23) { top: 53%; left: 91%; transform: rotate(-3deg); }

.akhar-cloud .gurmukhi:nth-child(24) { top: 68%; left:  6%; transform: rotate(2deg); }
.akhar-cloud .gurmukhi:nth-child(25) { top: 70%; left: 19%; transform: rotate(-3deg); }
.akhar-cloud .gurmukhi:nth-child(26) { top: 68%; left: 32%; transform: rotate(4deg); }
.akhar-cloud .gurmukhi:nth-child(27) { top: 70%; left: 45%; transform: rotate(-2deg); }
.akhar-cloud .gurmukhi:nth-child(28) { top: 68%; left: 58%; transform: rotate(3deg); }
.akhar-cloud .gurmukhi:nth-child(29) { top: 70%; left: 71%; transform: rotate(-4deg); }
.akhar-cloud .gurmukhi:nth-child(30) { top: 68%; left: 84%; transform: rotate(2deg); }

.akhar-cloud .gurmukhi:nth-child(31) { top: 84%; left:  4%; transform: rotate(-4deg); }
.akhar-cloud .gurmukhi:nth-child(32) { top: 86%; left: 16%; transform: rotate(3deg); }
.akhar-cloud .gurmukhi:nth-child(33) { top: 84%; left: 28%; transform: rotate(-2deg); }
.akhar-cloud .gurmukhi:nth-child(34) { top: 86%; left: 40%; transform: rotate(4deg); }
.akhar-cloud .gurmukhi:nth-child(35) { top: 84%; left: 52%; transform: rotate(-3deg); }

.akhar-cloud .gurmukhi:nth-child(36) { top: 86%; left: 64%; transform: rotate(2deg); }
.akhar-cloud .gurmukhi:nth-child(37) { top: 84%; left: 76%; transform: rotate(-4deg); }
.akhar-cloud .gurmukhi:nth-child(38) { top: 86%; left: 88%; transform: rotate(3deg); }
.akhar-cloud .gurmukhi:nth-child(39) { top: 36%; left: 32%; transform: rotate(-3deg); }
.akhar-cloud .gurmukhi:nth-child(40) { top: 36%; left: 64%; transform: rotate(4deg); }
.akhar-cloud .gurmukhi:nth-child(41) { top: 52%; left: 48%; transform: rotate(-2deg); }

@media (max-width: 760px) {
    .akhar-cloud .gurmukhi {
        font-size: 22px;
        opacity: 0.14;
    }
    .coming-soon::before {
        width: 320px;
        height: 200px;
    }
}

@media (max-width: 420px) {
    .akhar-cloud .gurmukhi {
        font-size: 18px;
    }
}

/* ============================================================
   Homepage
   ============================================================ */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f4f7fc 0%, #eef3fa 100%);
    padding: clamp(56px, 9vw, 96px) 24px clamp(48px, 7vw, 84px);
    border-bottom: 1px solid var(--line);
}

/* Two-column layout: copy on the left, interactive demo on the right.
   Falls back to single column under 880px so the tiles stack neatly
   under the text on tablets and phones. */
.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: var(--orange);
    padding: 6px 14px;
    background: var(--orange-soft);
    border-radius: 999px;
    margin-bottom: 22px;
}

.hero-title {
    font-family: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    font-weight: 700;
    font-size: clamp(36px, 5.6vw, 64px);
    line-height: 1.04;
    color: var(--ink);
    letter-spacing: 0;
    margin-bottom: 20px;
}

.hero-title-accent {
    color: var(--orange);
    font-style: italic;
}

.hero-sub {
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.65;
    color: var(--ink-soft);
    max-width: 560px;
    margin: 0 0 32px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
}

.hero-login-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-btn-primary {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
    padding: 14px 28px;
    font-size: 13px;
}

.hero-btn-primary:hover {
    background: var(--blue-dark);
    border-color: var(--blue-dark);
    color: #fff;
}

.hero-btn-ghost {
    padding: 14px 28px;
    font-size: 13px;
    color: var(--blue);
    border-color: rgba(21, 55, 107, 0.28);
    background: rgba(255, 255, 255, 0.5);
}

.hero-btn-ghost:hover {
    background: #fff;
    border-color: var(--blue);
    color: var(--blue);
}

/* ---- Interactive demo (right column) ---- */

.hero-demo {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(20px, 3vw, 28px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 20px 40px -20px rgba(13, 36, 71, 0.15),
        0 6px 12px -6px rgba(13, 36, 71, 0.08);
}

.hero-demo-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin-bottom: 14px;
}

.hero-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.hero-tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 6px 14px;
    cursor: pointer;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    font-family: inherit;
    min-height: 130px;
    justify-content: center;
}

.hero-tile:hover {
    transform: translateY(-2px);
    background: var(--orange-soft);
    border-color: var(--orange);
    box-shadow: var(--shadow-md);
}

.hero-tile:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.hero-tile:active {
    transform: translateY(0);
}

/* Mirror the Akhar chart's soft gold interaction surface while the
   glyph and labels retain their normal colours. */
.hero-tile.is-playing {
    background: var(--orange-soft);
    border-color: var(--orange);
    box-shadow: 0 0 0 1px var(--orange), var(--shadow-md);
}

/* Three-line layout mirrors akhar cards: big glyph, Punjabi name,
   English translit. Margins (not gap) so the visual rhythm matches. */
.hero-tile-glyph {
    font-family: var(--font-gurmukhi);
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
    margin: 0;
}

.hero-tile.is-playing .hero-tile-glyph {
    color: var(--blue);
}

.hero-tile-name {
    font-family: var(--font-gurmukhi);
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
    margin: 22px 0 0;
}

.hero-tile-translit {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: var(--ink-faint);
    text-transform: uppercase;
    line-height: 1;
    margin: 14px 0 0;
}

.hero-demo-more {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: var(--blue);
    transition: color var(--transition);
}

.hero-guest-link {
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
}

.hero-guest-link:hover {
    text-decoration: underline;
}

.home-section.home-paths {
    padding-top: 0;
}

.home-section.home-foundations {
    padding-bottom: clamp(42px, 6vw, 68px);
}

.path-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.path-card {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    padding: 12px;
    text-decoration: none;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

a.path-card:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.path-card img {
    width: 100%;
    aspect-ratio: 1.35;
    object-fit: contain;
}

.path-card span {
    font-size: 14px;
    font-weight: 700;
}

.path-card small {
    display: block;
    margin-top: 3px;
    color: var(--ink-faint);
    font-size: 11px;
    font-weight: 600;
}

@media (max-width: 760px) {
    .path-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.hero-demo-more:hover { color: var(--orange-dark); }

@media (max-width: 880px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text { text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .hero-demo { max-width: 420px; margin: 0 auto; }
}

.home-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(56px, 9vw, 96px) 24px;
}

.home-section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(36px, 5vw, 56px);
}

.home-section-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 14px;
}

.home-section-title {
    font-family: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    font-weight: 600;
    font-size: clamp(30px, 4.5vw, 46px);
    line-height: 1.1;
    color: var(--ink);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 28px);
}

.course-card {
    position: relative;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 4vw, 40px);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.course-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--line-strong);
}

.course-card-glyphs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.course-card-glyphs .gurmukhi {
    font-family: var(--font-gurmukhi);
    font-size: 30px;
    color: var(--blue);
    line-height: 1;
    background: var(--blue-soft);
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.course-level {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 8px;
}

.course-name {
    font-family: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    font-weight: 600;
    font-size: clamp(28px, 3.5vw, 36px);
    line-height: 1.1;
    color: var(--ink);
    margin-bottom: 12px;
}

.course-desc {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ink-soft);
    margin-bottom: 24px;
}

.course-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.course-link {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    color: var(--blue);
    transition: color var(--transition);
}

.course-link:hover {
    color: var(--orange-dark);
}

.course-link-ghost {
    color: var(--ink-soft);
    font-weight: 600;
}

.course-link-ghost:hover {
    color: var(--blue);
}

.home-feature {
    background: #f4f7fc;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: clamp(56px, 9vw, 96px) 24px;
}

/* Homepage ends on the feature band (no closing CTA), so kill the
   footer's default margin-top so they sit flush against each other. */
body:has(.home-feature:last-of-type) .site-footer {
    margin-top: 0;
}

.home-feature-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: clamp(32px, 6vw, 72px);
    align-items: center;
}

.home-feature-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 14px;
}

.home-feature-title {
    font-family: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    font-weight: 600;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.12;
    color: var(--ink);
    margin-bottom: 16px;
}

.home-feature-sub {
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink-soft);
    margin-bottom: 24px;
}

.home-feature-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-feature-list li {
    position: relative;
    padding-left: 4px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
}

.home-feature-list strong {
    color: var(--ink);
    font-weight: 600;
}

.home-feature-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    vertical-align: -4px;
}

.home-feature-note {
    font-size: 13px;
    color: var(--ink-faint);
    margin-top: 18px;
}

/* ---- Realistic dashboard mock ---- */
/* Mirrors the real Santhiya page (stage cards + stat tiles) so the
   homepage shows what registered users actually get, not invented data. */

.home-mock {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.home-mock-stages {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-mock-stage {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    box-shadow: var(--shadow-sm);
}

.home-mock-stage.current {
    border-color: var(--orange);
    box-shadow: 0 0 0 1px var(--orange), var(--shadow-md);
}

.home-mock-badge {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.home-mock-badge.done {
    background: #ecfdf5;
    color: #16a34a;
}

.home-mock-badge.cur {
    background: var(--orange-soft);
    color: var(--orange-dark);
}

.home-mock-stage-main {
    flex: 1;
    min-width: 0;
}

.home-mock-stage-name {
    font-family: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 4px;
}

.home-mock-stage-meta {
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.45;
    margin-bottom: 8px;
}

.home-mock-rowdots {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.home-mock-dot {
    width: 18px;
    height: 4px;
    border-radius: 2px;
    background: #e7e9ef;
    display: inline-block;
}

.home-mock-dot.done {
    background: #16a34a;
}

.home-mock-dot.cur {
    background: var(--orange);
}

.home-mock-pill {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    white-space: nowrap;
}

.home-mock-pill.done {
    background: transparent;
    color: var(--orange-dark);
}

.home-mock-pill.cur {
    background: var(--blue);
    color: #fff;
}

.home-mock-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.home-mock-stat {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow-sm);
}

.home-mock-stat-value {
    font-family: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 6px;
}

.home-mock-stat-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--ink-faint);
}

/* Tighten the mock at narrow widths so it doesn't crowd */
@media (max-width: 540px) {
    .home-mock-stage {
        padding: 12px;
        gap: 12px;
    }
    .home-mock-badge {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }
    .home-mock-stage-name { font-size: 16px; }
    .home-mock-pill { font-size: 10px; padding: 4px 9px; }
    .home-mock-stat-value { font-size: 18px; }
}

@media (max-width: 760px) {
    .course-grid,
    .home-feature-inner {
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .hero-login-stack {
        width: 100%;
    }
}

/* Live vs coming-soon course cards */
.path-card.is-soon {
    opacity: 0.6;
    cursor: default;
}

.path-card.is-soon img {
    filter: grayscale(0.6);
}

.path-card small.path-open {
    color: var(--blue);
}
