/* ClassConnect standalone site styles */

:root {
    --cc-accent: #f2b14f;
    --cc-accent-soft: #ffdca2;
    --cc-panel: #f6f8fc;
    --cc-border: rgba(15, 23, 42, 0.1);
}

body {
    background:
        radial-gradient(circle at 12% 8%, rgba(242, 177, 79, 0.2), transparent 36%),
        radial-gradient(circle at 88% 5%, rgba(30, 64, 175, 0.1), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.hero {
    padding-top: 7rem;
}

.site-nav .cta-link {
    color: #8b5f11;
    font-weight: 700;
}

.cc-grid {
    display: grid;
    gap: var(--space-md);
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.cc-card {
    grid-column: span 4;
    border: 1px solid var(--cc-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow-subtle);
    padding: var(--space-lg);
}

.cc-card h3 {
    margin-top: 0;
}

.cc-card p {
    color: rgba(15, 23, 42, 0.78);
}

.cc-card.wide {
    grid-column: span 6;
}

.cc-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: var(--space-md);
}

.cc-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(242, 177, 79, 0.35);
    background: rgba(242, 177, 79, 0.16);
    color: #8b5f11;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.35rem 0.7rem;
}

.cc-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.1rem;
}

.cc-section h2 {
    margin-bottom: 0.65rem;
}

.cc-muted {
    color: rgba(15, 23, 42, 0.74);
}

.cc-roadmap {
    display: grid;
    gap: var(--space-md);
    margin-top: var(--space-md);
}

.cc-roadmap-item {
    border: 1px solid var(--cc-border);
    border-left: 6px solid var(--cc-accent);
    border-radius: var(--radius-md);
    background: #ffffff;
    padding: var(--space-md);
}

.cc-cta {
    border: 1px solid var(--cc-border);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #10182a 0%, #1f2d4f 100%);
    color: #ffffff;
    padding: var(--space-xl) var(--space-lg);
    box-shadow: var(--shadow-soft);
}

.cc-cta p {
    color: rgba(255, 255, 255, 0.86);
}

.cc-cta .btn-outline {
    border-color: var(--cc-accent);
    color: var(--cc-accent);
}

.cc-cta .btn-outline:hover {
    background: var(--cc-accent);
    color: #121212;
}

.ccs-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
    align-items: center;
}

.ccs-visuals {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
}

.ccs-visuals img {
    width: 100%;
    border-radius: 16px;
    border: 1px solid var(--cc-border);
    box-shadow: var(--shadow-subtle);
}

.support-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: var(--space-md);
}

.support-nav {
    position: sticky;
    top: 24px;
    align-self: start;
    border: 1px solid var(--cc-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    padding: var(--space-md);
}

.support-nav a {
    display: block;
    padding: 0.45rem 0;
    color: var(--color-text);
    text-decoration: none;
}

.support-nav a:hover {
    color: #8b5f11;
}

.support-content section {
    border: 1px solid var(--cc-border);
    border-radius: var(--radius-lg);
    background: #ffffff;
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
}

.mermaid-diagram {
    margin: var(--space-md) 0;
    padding: var(--space-md);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    overflow-x: auto;
}

.mermaid-diagram .mermaid,
.mermaid-diagram svg {
    display: block;
    width: 100%;
}

@media (max-width: 960px) {
    .cc-card,
    .cc-card.wide {
        grid-column: span 12;
    }

    .ccs-hero {
        grid-template-columns: 1fr;
    }

    .support-layout {
        grid-template-columns: 1fr;
    }

    .support-nav {
        position: static;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Enhanced Hover Animations */
.cc-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.cc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.btn {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:active {
    transform: scale(0.96);
}

/* App Store Specific Styles */
.app-store-hero {
    /* Photomator-style hero: large headline with visual preview */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
    max-width: 1200px;
    margin: 1rem auto 2rem;
    padding: 4rem 20px 2rem;
}

.app-store-hero .hero-copy {
    text-align: left;
}

.app-store-hero .hero-copy h1,
.app-store-hero .hero-copy .app-store-title {
    font-size: clamp(32px, 5.2vw, 64px);
    line-height: 1.03;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
}

.app-store-hero .hero-copy .hero-subtitle {
    font-size: 1.125rem;
    color: #475569;
    margin-bottom: 1.25rem;
    max-width: 520px;
}

.app-store-hero .hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.app-store-hero .hero-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-store-hero .hero-preview img {
    width: 100%;
    max-width: 720px;
    border-radius: 18px;
    box-shadow: 0 40px 80px rgba(2,6,23,0.12);
}
.app-store-icon {
    width: 128px;
    height: 128px;
    border-radius: 22.5%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    margin-bottom: 1.5rem;
}
.app-store-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    letter-spacing: -0.02em;
}
.app-store-developer {
    color: #8b5f11;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
}
.app-store-metrics {
    display: flex;
    gap: 3rem;
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid var(--cc-border);
    border-bottom: 1px solid var(--cc-border);
    width: 100%;
    max-width: 600px;
    justify-content: center;
}
.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
}
.metric-stars {
    color: #f2b14f;
    font-size: 0.9rem;
    margin-top: 2px;
}
.metric-label {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    font-weight: 600;
}

.screenshots-section-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
    padding-left: 1rem;
}

.screenshots-scroller {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding: 1rem;
    margin-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.screenshots-scroller::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}
.screenshots-scroller img {
    height: 450px;
    width: auto;
    border-radius: 12px;
    scroll-snap-align: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}
.screenshots-scroller img:hover {
    transform: scale(1.02);
}

.whats-new {
    background: #ffffff;
    border: 1px solid var(--cc-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin: 2rem 0;
    text-align: left;
    width: 100%;
}
.whats-new-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}
.whats-new-header h3 {
    margin: 0;
    font-size: 1.3rem;
}
.whats-new-version {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}
.whats-new-content p {
    color: #334155;
    margin-bottom: 0.5rem;
}

.get-button-wrapper {
    margin: 1rem 0;
}

.btn-get {
    background: #007aff;
    color: #fff;
    border-radius: 20px;
    padding: 8px 32px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    text-decoration: none;
    display: inline-block;
}
.btn-get:hover {
    background: #005bb5;
    color: #fff;
    text-decoration: none;
}

/* Feature Split Layout (Apple-style product page) */
.feature-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1100px;
    margin: 6rem auto;
}

.feature-split.reverse .feature-split-text {
    order: 2;
}
.feature-split.reverse .feature-split-image {
    order: 1;
}

.feature-split-text h2 {
    font-size: 2.8rem;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
    font-weight: 700;
}

.feature-split-text p {
    font-size: 1.25rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.feature-split-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.12);
    transition: transform 0.4s ease;
}

.feature-split-image img:hover {
    transform: scale(1.02) translateY(-4px);
}

/* Layout for paired images inside feature blocks */
.feature-split-image {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@media (min-width: 900px) {
    .feature-split-image {
        flex-direction: row;
    }
    .feature-split-image img {
        width: 48%;
    }
}

/* Device-specific screenshot sizing */
.feature-split-image img.device-iphone {
    max-width: 250px;
    width: 100%;
    height: auto;
}
.feature-split-image img.device-ipad {
    max-width: 640px;
}
.feature-split-image img.device-watch {
    max-width: 300px;
}

@media (max-width: 900px) {
    .feature-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin: 4rem auto;
        text-align: center;
    }
    .feature-split.reverse .feature-split-text,
    .feature-split.reverse .feature-split-image {
        order: initial;
    }
    .feature-split-text h2 {
        font-size: 2.2rem;
    }

    /* Stack hero on mobile */
    .app-store-hero {
        grid-template-columns: 1fr;
        padding: 2.5rem 16px;
        margin-top: 1rem;
        text-align: center;
    }
    .app-store-hero .hero-copy { text-align: center; }
    .app-store-hero .hero-preview img { max-width: 420px; }
}

/* Product topbar (Photomator-style) */
.product-topbar {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(15,23,42,0.06);
    background: rgba(255,255,255,0.98);
    position: sticky;
    top: 0; /* sit at top as primary header */
    z-index: 1000;
    box-shadow: 0 6px 20px rgba(2,6,23,0.04);
}
.product-collection {
    color: #64748b;
    font-weight: 600;
    margin-right: 1rem;
    text-decoration: none;
}
.product-title {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    font-size: 1.15rem;
}
.product-title img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
}
.product-nav {
    display: inline-flex;
    align-items: center;
    gap: 24px;
}
.product-nav a {
    color: #64748b;
    text-decoration: none;
    padding: 12px 0;
    font-weight: 600;
}
.product-nav a.active {
    color: #0f172a;
    border-bottom: 3px solid #0f172a;
    padding-bottom: 9px;
}
.btn-buy {
    background: #ff4d7a;
    color: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(255,77,122,0.14);
}

@media (max-width: 700px) {
    .product-topbar { padding: 0 12px; }
    .product-nav { gap: 12px; }
    .product-title { font-size: 1rem; }
}

/* ClassConnect S redesign */
.ccs-page {
    --ccs-orange: #f2b14f;
    --ccs-orange-strong: #8b5f11;
    --ccs-ink: #111111;
    --ccs-muted: rgba(17, 17, 17, 0.68);
    --ccs-soft: #f5f5f7;
    --ccs-line: rgba(17, 17, 17, 0.1);
    --ccs-radius: 16px;
    background: #ffffff;
    color: var(--ccs-ink);
    font-feature-settings: "kern";
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.ccs-page h1,
.ccs-page h2,
.ccs-page h3 {
    text-wrap: balance;
}

.ccs-page p {
    text-wrap: pretty;
}

.ccs-topbar {
    max-width: none;
    padding: 10px clamp(16px, 4vw, 44px);
    border-color: var(--ccs-line);
    box-shadow: none;
    backdrop-filter: saturate(180%) blur(18px);
    overflow: hidden;
}

.product-identity {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.ccs-topbar .product-collection {
    color: rgba(17, 17, 17, 0.58);
}

.ccs-topbar .product-title {
    color: var(--ccs-ink);
    text-decoration: none;
    min-width: 0;
}

.ccs-topbar .product-title img {
    flex: 0 0 auto;
    border-radius: 9px;
}

.ccs-topbar .product-title span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccs-topbar .product-nav a {
    color: rgba(17, 17, 17, 0.62);
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.ccs-topbar .product-nav a.active {
    color: var(--ccs-ink);
    border-bottom-color: var(--ccs-orange);
}

.ccs-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
    gap: clamp(32px, 6vw, 92px);
    align-items: center;
    min-height: calc(100svh - 64px);
    max-width: 1380px;
    margin: 0 auto;
    padding: clamp(64px, 9vw, 118px) clamp(18px, 5vw, 64px) clamp(56px, 8vw, 96px);
}

.ccs-hero-copy {
    max-width: 690px;
    min-width: 0;
}

.ccs-kicker {
    margin: 0 0 14px;
    color: var(--ccs-orange-strong);
    font-size: 0.95rem;
    font-weight: 750;
}

.ccs-hero h1,
.ccs-download-hero h1 {
    margin: 0;
    max-width: 10ch;
    color: var(--ccs-ink);
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.ccs-lede {
    max-width: 62ch;
    margin: 24px 0 0;
    color: var(--ccs-muted);
    font-size: clamp(1.15rem, 1.7vw, 1.42rem);
    line-height: 1.5;
}

.ccs-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 30px;
}

.ccs-page .btn {
    min-height: 46px;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 750;
    text-decoration: none;
}

.ccs-btn-primary {
    border: 1px solid var(--ccs-orange);
    background: var(--ccs-orange);
    color: #111111;
}

.ccs-btn-primary:hover {
    background: #e9a542;
    color: #111111;
    text-decoration: none;
}

.ccs-btn-secondary {
    border: 1px solid rgba(17, 17, 17, 0.18);
    background: #ffffff;
    color: var(--ccs-ink);
}

.ccs-btn-secondary:hover {
    background: #f5f5f7;
    color: var(--ccs-ink);
    text-decoration: none;
}

.ccs-availability,
.ccs-small-note {
    max-width: 56ch;
    margin: 18px 0 0;
    color: rgba(17, 17, 17, 0.58);
    font-size: 0.96rem;
}

.ccs-device-stage {
    position: relative;
    min-height: 620px;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(242, 177, 79, 0.95), rgba(242, 177, 79, 0.58)),
        #f2b14f;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
}

.ccs-device-stage::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(17, 17, 17, 0.16);
    border-radius: 22px;
    pointer-events: none;
}

.ccs-device-stage img {
    position: absolute;
    display: block;
    height: auto;
    user-select: none;
}

.ccs-device-mac {
    width: min(82%, 660px);
    top: 78px;
    right: -54px;
    filter: drop-shadow(0 18px 28px rgba(17, 17, 17, 0.16));
}

.ccs-device-phone {
    width: min(32%, 235px);
    left: 56px;
    bottom: -76px;
    filter: drop-shadow(0 22px 32px rgba(17, 17, 17, 0.2));
}

.ccs-device-watch {
    width: min(20%, 128px);
    right: 78px;
    bottom: 52px;
    filter: drop-shadow(0 16px 24px rgba(17, 17, 17, 0.18));
}

.ccs-shot {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    border: 1px solid rgba(17, 17, 17, 0.12);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 245, 247, 0.96));
    color: var(--ccs-ink);
    box-shadow: 0 18px 50px rgba(17, 17, 17, 0.14);
}

.ccs-shot::before {
    content: "";
    position: absolute;
    inset: 16px 16px auto;
    height: 42%;
    border-radius: 12px;
    background:
        linear-gradient(90deg, rgba(17, 17, 17, 0.12) 0 16%, transparent 16% 20%, rgba(17, 17, 17, 0.1) 20% 100%),
        repeating-linear-gradient(180deg, rgba(242, 177, 79, 0.28) 0 18px, rgba(255, 255, 255, 0) 18px 34px);
}

.ccs-shot span {
    position: relative;
    color: var(--ccs-orange-strong);
    font-size: 0.78rem;
    font-weight: 800;
}

.ccs-shot strong {
    position: relative;
    max-width: 24ch;
    font-size: 1rem;
    line-height: 1.2;
}

.ccs-shot-mac {
    inset: 78px 46px auto auto;
    width: min(78%, 620px);
    height: 350px;
    border-radius: 18px;
    padding: 28px;
    align-items: flex-end;
    text-align: right;
}

.ccs-shot-phone {
    left: 52px;
    bottom: 54px;
    width: 210px;
    height: 390px;
    border-radius: 30px;
    padding: 26px 20px;
}

.ccs-shot-watch {
    right: 74px;
    bottom: 64px;
    width: 190px;
    height: 178px;
    border-radius: 34px;
    padding: 22px;
}

.ccs-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(64px, 9vw, 112px) clamp(18px, 4vw, 36px);
}

.ccs-section-heading {
    max-width: 760px;
    margin-bottom: clamp(28px, 4vw, 48px);
}

.ccs-section-heading h2,
.ccs-story-band h2,
.ccs-feature-copy h2,
.ccs-final-cta h2 {
    margin: 0;
    color: var(--ccs-ink);
    font-size: clamp(2.3rem, 5vw, 4.7rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.ccs-section-heading p,
.ccs-story-band p,
.ccs-feature-copy p,
.ccs-final-cta p {
    max-width: 65ch;
    margin: 18px 0 0;
    color: var(--ccs-muted);
    font-size: 1.12rem;
    line-height: 1.6;
}

.ccs-explain-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--ccs-line);
    border-radius: var(--ccs-radius);
    overflow: hidden;
    background: var(--ccs-line);
}

.ccs-explain-grid article {
    background: #ffffff;
    padding: clamp(22px, 3vw, 34px);
}

.ccs-explain-grid h3,
.ccs-role-list h3,
.ccs-feature-list h3 {
    margin: 0;
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    letter-spacing: -0.025em;
}

.ccs-explain-grid p,
.ccs-role-list p,
.ccs-feature-list p {
    margin: 12px 0 0;
    color: var(--ccs-muted);
    line-height: 1.62;
}

.ccs-story-band,
.ccs-feature-stack,
.ccs-final-cta {
    max-width: 1240px;
    margin: 0 auto;
    border-radius: 24px;
}

.ccs-story-band {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    padding: clamp(34px, 6vw, 72px);
    background: #111111;
    color: #ffffff;
}

.ccs-story-band h2,
.ccs-story-band p {
    color: #ffffff;
}

.ccs-story-band p {
    color: rgba(255, 255, 255, 0.76);
}

.ccs-timetable-sample {
    display: grid;
    gap: 12px;
}

.ccs-timetable-sample div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 58px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
}

.ccs-timetable-sample span {
    color: var(--ccs-orange);
    font-weight: 800;
}

.ccs-timetable-sample em {
    color: rgba(255, 255, 255, 0.68);
    font-style: normal;
}

.ccs-role-list {
    display: grid;
    gap: 1px;
    border-top: 1px solid var(--ccs-line);
    border-bottom: 1px solid var(--ccs-line);
}

.ccs-role-list article {
    display: grid;
    grid-template-columns: 120px minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(18px, 4vw, 48px);
    align-items: start;
    padding: clamp(24px, 4vw, 42px) 0;
    border-top: 1px solid var(--ccs-line);
}

.ccs-role-list article:first-child {
    border-top: 0;
}

.ccs-role-list span {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    background: rgba(242, 177, 79, 0.18);
    color: var(--ccs-orange-strong);
    padding: 7px 12px;
    font-weight: 800;
}

.ccs-feature-stack {
    display: grid;
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    gap: clamp(32px, 6vw, 80px);
    padding: clamp(56px, 8vw, 92px) clamp(18px, 5vw, 64px);
    background: var(--ccs-soft);
}

.ccs-feature-copy {
    align-self: start;
}

.ccs-feature-copy img {
    width: min(100%, 520px);
    margin-top: clamp(24px, 4vw, 42px);
    border: 1px solid var(--ccs-line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(17, 17, 17, 0.1);
}

.ccs-feature-list {
    display: grid;
    gap: 24px;
}

.ccs-feature-list article {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ccs-line);
}

.ccs-feature-list article:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.ccs-shot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.ccs-shot-grid figure {
    margin: 0;
}

.ccs-shot-grid img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: contain;
    border-radius: 18px;
    border: 1px solid var(--ccs-line);
    background: #f5f5f7;
    padding: 16px;
}

.ccs-shot-grid figcaption {
    margin-top: 10px;
    color: var(--ccs-muted);
    font-size: 0.95rem;
    line-height: 1.45;
}

.ccs-final-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: clamp(44px, 7vw, 90px);
    margin-bottom: clamp(44px, 7vw, 90px);
    padding: clamp(34px, 5vw, 58px);
    background: var(--ccs-orange);
}

.ccs-final-cta h2 {
    max-width: 12ch;
}

.ccs-final-cta .ccs-btn-primary,
.ccs-support-manual .ccs-btn-primary {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
}

.ccs-final-cta .ccs-btn-primary:hover,
.ccs-support-manual .ccs-btn-primary:hover {
    background: #000000;
    color: #ffffff;
}

.ccs-final-cta .ccs-btn-secondary {
    border-color: #ffffff;
    background: #ffffff;
}

.ccs-final-cta p {
    color: rgba(17, 17, 17, 0.72);
}

.ccs-download-hero {
    display: grid;
    place-items: center;
    min-height: calc(100svh - 64px);
    padding: clamp(42px, 8vw, 96px) 18px;
    background:
        linear-gradient(180deg, rgba(242, 177, 79, 0.22), rgba(255, 255, 255, 0) 46%),
        #ffffff;
}

.ccs-download-card {
    width: min(100%, 820px);
    text-align: center;
    border: 1px solid var(--ccs-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    padding: clamp(30px, 6vw, 68px);
}

.ccs-download-card .ccs-lede,
.ccs-download-card .ccs-small-note {
    margin-left: auto;
    margin-right: auto;
}

.ccs-download-card h1 {
    max-width: 12ch;
    margin-left: auto;
    margin-right: auto;
}

.ccs-download-icon {
    width: 88px;
    height: 88px;
    margin: 0 auto 24px;
    border-radius: 22%;
}

.ccs-download-actions {
    justify-content: center;
}

.ccs-download-info {
    padding-top: clamp(44px, 7vw, 84px);
}

.ccs-support-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
    gap: clamp(28px, 6vw, 76px);
    align-items: end;
    max-width: 1180px;
    margin: 0 auto;
    padding: clamp(72px, 10vw, 132px) clamp(18px, 4vw, 36px) clamp(48px, 7vw, 84px);
}

.ccs-support-hero h1 {
    max-width: 11ch;
    margin: 0;
    color: var(--ccs-ink);
    font-size: clamp(3.2rem, 8vw, 5.7rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.ccs-support-checklist {
    border-radius: 22px;
    background: #111111;
    color: #ffffff;
    padding: clamp(24px, 4vw, 36px);
}

.ccs-support-checklist h2 {
    margin: 0 0 18px;
    font-size: 1.45rem;
    letter-spacing: -0.025em;
}

.ccs-support-checklist ol {
    margin: 0;
    padding-left: 1.2rem;
}

.ccs-support-checklist li {
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.55;
}

.ccs-support-checklist li + li {
    margin-top: 12px;
}

.ccs-support-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--ccs-line);
    border-radius: var(--ccs-radius);
    overflow: hidden;
    background: var(--ccs-line);
}

.ccs-support-grid a {
    display: block;
    min-height: 240px;
    padding: clamp(22px, 3vw, 34px);
    background: #ffffff;
    color: var(--ccs-ink);
    text-decoration: none;
}

.ccs-support-grid a:hover {
    background: #f8f8f8;
    text-decoration: none;
}

.ccs-support-grid span {
    display: inline-flex;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(242, 177, 79, 0.18);
    color: var(--ccs-orange-strong);
    padding: 6px 10px;
    font-size: 0.82rem;
    font-weight: 800;
}

.ccs-support-grid h3 {
    margin: 0;
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    letter-spacing: -0.025em;
}

.ccs-support-grid p {
    margin: 12px 0 0;
    color: var(--ccs-muted);
    line-height: 1.58;
}

.ccs-support-manual {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    max-width: 1180px;
    margin: 0 auto clamp(44px, 7vw, 90px);
    padding: clamp(30px, 5vw, 52px);
    border-radius: 24px;
    background: var(--ccs-orange);
}

.ccs-support-manual h2 {
    max-width: 12ch;
    margin: 0;
    color: var(--ccs-ink);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.ccs-support-manual p {
    max-width: 58ch;
    margin: 16px 0 0;
    color: rgba(17, 17, 17, 0.72);
    line-height: 1.58;
}

.ccs-footer {
    padding: 34px 18px;
    border-top: 1px solid var(--ccs-line);
    color: rgba(17, 17, 17, 0.62);
    font-size: 0.92rem;
    text-align: center;
}

.ccs-footer-inner {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(0, auto) minmax(120px, 1fr);
    align-items: center;
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto;
}

.ccs-footer-copy {
    grid-column: 2;
    min-width: 0;
}

.ccs-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 8px;
}

.ccs-footer-links a {
    color: rgba(17, 17, 17, 0.72);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.ccs-footer-links a:hover,
.ccs-footer-links a:focus-visible {
    color: #111111;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.ccs-footer-language {
    grid-column: 3;
    justify-self: end;
}

.ccs-footer p {
    margin: 0;
}

.ccs-footer p + p {
    margin-top: 6px;
}

.ccs-footer .language-switcher-select {
    min-width: 136px;
    border-color: rgba(17, 17, 17, 0.16);
    background: #ffffff;
    color: rgba(17, 17, 17, 0.74);
}

@media (hover: hover) {
    .ccs-btn-primary,
    .ccs-btn-secondary,
    .ccs-shot-grid img {
        transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), background-color 180ms ease, border-color 180ms ease;
    }

    .ccs-btn-primary:hover,
    .ccs-btn-secondary:hover {
        transform: translateY(-1px);
    }
}

@media (max-width: 1040px) {
    .ccs-hero,
    .ccs-story-band,
    .ccs-feature-stack {
        grid-template-columns: 1fr;
    }

    .ccs-device-stage {
        min-height: 560px;
    }

    .ccs-device-mac {
        width: min(92%, 650px);
        right: -34px;
    }

    .ccs-device-phone {
        width: min(34%, 210px);
        left: 34px;
    }

    .ccs-shot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ccs-support-hero,
    .ccs-support-manual {
        grid-template-columns: 1fr;
    }

    .ccs-support-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ccs-role-list article {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 760px) {
    .ccs-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 8px 20px;
    }

    .product-identity {
        width: 100%;
        justify-content: flex-start;
        gap: 12px;
    }

    .ccs-topbar .product-collection {
        flex: 0 1 auto;
        margin-right: 0;
        font-size: 0.92rem;
    }

    .ccs-topbar .product-title {
        flex: 1 1 auto;
        gap: 10px;
        font-size: 1rem;
    }

    .ccs-topbar .product-nav {
        width: 100%;
        gap: 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ccs-footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .ccs-footer-copy,
    .ccs-footer-language {
        grid-column: 1;
    }

    .ccs-hero {
        min-height: auto;
        padding: 44px 20px 64px;
        width: 100vw;
        max-width: 100vw;
        overflow: hidden;
    }

    .ccs-hero-copy,
    .ccs-device-stage {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }

    .ccs-hero h1,
    .ccs-download-hero h1 {
        max-width: 8.6ch;
        font-size: clamp(2.85rem, 13.5vw, 4.1rem);
        letter-spacing: -0.05em;
    }

    .ccs-lede {
        max-width: 100%;
        font-size: 1.08rem;
        line-height: 1.48;
    }

    .ccs-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .ccs-page .btn {
        width: 100%;
        padding-right: 18px;
        padding-left: 18px;
        white-space: nowrap;
    }

    .ccs-device-stage {
        min-height: 520px;
        border-radius: 22px;
    }

    .ccs-device-mac {
        width: 92%;
        top: 44px;
        right: -18px;
    }

    .ccs-device-phone {
        width: 43%;
        left: 18px;
        bottom: -52px;
    }

    .ccs-device-watch {
        width: 24%;
        right: 24px;
        bottom: 48px;
    }

    .ccs-shot-mac {
        width: 84%;
        height: 250px;
        inset: 34px 22px auto auto;
    }

    .ccs-shot-phone {
        left: 24px;
        bottom: 34px;
        width: 178px;
        height: 330px;
    }

    .ccs-shot-watch {
        right: 22px;
        bottom: 48px;
        width: 150px;
        height: 150px;
    }

    .ccs-explain-grid,
    .ccs-shot-grid {
        grid-template-columns: 1fr;
    }

    .ccs-section,
    .ccs-story-band,
    .ccs-feature-stack,
    .ccs-final-cta {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }

    .ccs-section-heading h2,
    .ccs-story-band h2,
    .ccs-feature-copy h2,
    .ccs-final-cta h2 {
        font-size: clamp(2.15rem, 11vw, 3.35rem);
    }

    .ccs-timetable-sample div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .ccs-final-cta {
        align-items: flex-start;
        flex-direction: column;
    }

    .ccs-support-hero,
    .ccs-support-manual {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
    }

    .ccs-support-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .ccs-hero-copy,
    .ccs-device-stage,
    .ccs-section,
    .ccs-story-band,
    .ccs-feature-stack,
    .ccs-final-cta {
        width: min(calc(100vw - 40px), 350px);
        max-width: min(calc(100vw - 40px), 350px);
    }
}

/* ClassConnect S interaction and whitespace pass */
.ccs-page {
    --ccs-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ccs-ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

.ccs-topbar {
    transition: background-color 220ms var(--ccs-ease-out), border-color 220ms var(--ccs-ease-out), box-shadow 220ms var(--ccs-ease-out), padding 220ms var(--ccs-ease-out);
}

.ccs-topbar.is-scrolled {
    border-color: rgba(17, 17, 17, 0.14);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 24px rgba(17, 17, 17, 0.07);
}

.ccs-hero {
    padding-top: clamp(84px, 11vw, 148px);
    padding-bottom: clamp(78px, 10vw, 128px);
}

.ccs-section {
    padding-top: clamp(88px, 11vw, 144px);
    padding-bottom: clamp(88px, 11vw, 144px);
}

.ccs-story-band,
.ccs-feature-stack,
.ccs-final-cta,
.ccs-support-manual {
    margin-top: clamp(32px, 6vw, 76px);
    margin-bottom: clamp(32px, 6vw, 76px);
}

.ccs-story-band,
.ccs-feature-stack {
    padding-top: clamp(64px, 8vw, 104px);
    padding-bottom: clamp(64px, 8vw, 104px);
}

.ccs-download-hero {
    padding-top: clamp(72px, 10vw, 132px);
    padding-bottom: clamp(72px, 10vw, 132px);
}

.ccs-download-info {
    padding-top: clamp(82px, 10vw, 132px);
}

.ccs-support-hero {
    padding-top: clamp(92px, 11vw, 156px);
    padding-bottom: clamp(64px, 8vw, 108px);
}

.ccs-device-stage {
    isolation: isolate;
}

.ccs-device-stage img {
    z-index: 2;
    transition: opacity 340ms var(--ccs-ease-out), transform 520ms var(--ccs-ease-expo), filter 520ms var(--ccs-ease-expo);
}

.ccs-device-stage::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 44%;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0), rgba(17, 17, 17, 0.08));
    pointer-events: none;
}

.ccs-device-controls {
    position: absolute;
    left: clamp(18px, 4vw, 34px);
    bottom: clamp(18px, 4vw, 34px);
    z-index: 6;
    display: inline-flex;
    gap: 4px;
    padding: 5px;
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px) saturate(150%);
}

.ccs-device-controls button {
    min-width: 74px;
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(17, 17, 17, 0.68);
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800;
    transition: background-color 180ms var(--ccs-ease-out), color 180ms var(--ccs-ease-out), transform 180ms var(--ccs-ease-out);
}

.ccs-device-controls button:hover,
.ccs-device-controls button:focus-visible {
    color: var(--ccs-ink);
}

.ccs-device-controls button:focus-visible {
    outline: 3px solid rgba(17, 17, 17, 0.24);
    outline-offset: 2px;
}

.ccs-device-controls button.is-active {
    background: #111111;
    color: #ffffff;
}

.ccs-device-stage[data-active-device="mac"] .ccs-device-mac {
    transform: translate3d(-10px, -8px, 0) scale(1.035);
}

.ccs-device-stage[data-active-device="phone"] .ccs-device-phone {
    transform: translate3d(20px, -26px, 0) scale(1.1);
}

.ccs-device-stage[data-active-device="watch"] .ccs-device-watch {
    transform: translate3d(-18px, -18px, 0) scale(1.18);
}

.ccs-device-stage[data-active-device="mac"] .ccs-device-phone,
.ccs-device-stage[data-active-device="mac"] .ccs-device-watch,
.ccs-device-stage[data-active-device="phone"] .ccs-device-mac,
.ccs-device-stage[data-active-device="phone"] .ccs-device-watch,
.ccs-device-stage[data-active-device="watch"] .ccs-device-mac,
.ccs-device-stage[data-active-device="watch"] .ccs-device-phone {
    opacity: 0.58;
    filter: saturate(0.86) drop-shadow(0 14px 22px rgba(17, 17, 17, 0.12));
}

.ccs-page .btn,
.ccs-explain-grid article,
.ccs-role-list article,
.ccs-feature-list article,
.ccs-shot-grid figure,
.ccs-support-grid a,
.ccs-timetable-sample div,
.ccs-support-checklist,
.ccs-download-card {
    transition: transform 220ms var(--ccs-ease-out), background-color 220ms var(--ccs-ease-out), border-color 220ms var(--ccs-ease-out), box-shadow 220ms var(--ccs-ease-out);
}

.ccs-page .btn:active,
.ccs-device-controls button:active {
    transform: translateY(1px) scale(0.985);
}

@media (hover: hover) {
    .ccs-explain-grid article:hover,
    .ccs-support-grid a:hover,
    .ccs-shot-grid figure:hover,
    .ccs-timetable-sample div:hover {
        transform: translateY(-4px);
    }

    .ccs-explain-grid article:hover,
    .ccs-support-grid a:hover {
        background: #fbfbfc;
    }

    .ccs-role-list article:hover {
        background: linear-gradient(90deg, rgba(242, 177, 79, 0.12), rgba(242, 177, 79, 0));
    }

    .ccs-feature-list article:hover {
        transform: translateX(8px);
    }

    .ccs-shot-grid figure:hover img,
    .ccs-feature-copy img:hover {
        transform: translateY(-5px) scale(1.015);
    }
}

.ccs-reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .ccs-page.motion-ready .ccs-reveal {
        opacity: 1;
        transform: translate3d(0, 16px, 0);
        filter: none;
        transition: transform 680ms var(--ccs-ease-expo);
        transition-delay: calc(var(--reveal-delay, 0) * 70ms);
    }

    .ccs-page.motion-ready .ccs-reveal.is-visible {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .ccs-page.motion-ready .ccs-device-stage.ccs-reveal {
        transform: translate3d(0, 22px, 0) scale(0.985);
    }

    .ccs-page.motion-ready .ccs-device-stage.ccs-reveal.is-visible {
        transform: none;
    }
}

@media (max-width: 760px) {
    .ccs-hero {
        padding-top: 58px;
        padding-bottom: 76px;
    }

    .ccs-section {
        padding-top: 76px;
        padding-bottom: 76px;
    }

    .ccs-story-band,
    .ccs-feature-stack,
    .ccs-final-cta,
    .ccs-support-manual {
        margin-top: 28px;
        margin-bottom: 28px;
    }

    .ccs-device-controls {
        right: 18px;
        left: 18px;
        justify-content: center;
    }

    .ccs-device-controls button {
        min-width: 0;
        flex: 1 1 0;
    }

    .ccs-device-stage[data-active-device="phone"] .ccs-device-phone {
        transform: translate3d(10px, -18px, 0) scale(1.08);
    }

    .ccs-device-stage[data-active-device="watch"] .ccs-device-watch {
        transform: translate3d(-8px, -16px, 0) scale(1.14);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ccs-reveal {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }

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

/* ClassConnect S richer school-day pass */
.ccs-page:not(.ccp-page) .ccs-hero {
    padding-top: clamp(52px, 7vw, 96px);
    padding-bottom: clamp(58px, 8vw, 104px);
}

.ccs-page:not(.ccp-page) .ccs-hero h1 {
    max-width: 9.8ch;
}

.ccs-school-signals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    max-width: 650px;
    margin-top: 28px;
    border: 1px solid var(--ccs-line);
    border-radius: 16px;
    background: var(--ccs-line);
    overflow: hidden;
}

.ccs-school-signals div {
    min-width: 0;
    background: #ffffff;
    padding: 16px;
}

.ccs-school-signals span,
.ccs-live-card span,
.ccs-widget-card span,
.ccs-dayflow-head span,
.ccs-dayflow-note span,
.ccs-role-preview article > span {
    color: var(--ccs-orange-strong);
    font-size: 0.82rem;
    font-weight: 850;
}

.ccs-school-signals strong,
.ccs-live-card strong,
.ccs-widget-card strong {
    display: block;
    margin-top: 4px;
    color: var(--ccs-ink);
    font-size: 1rem;
    line-height: 1.12;
    letter-spacing: -0.025em;
}

.ccs-school-signals em,
.ccs-live-card em,
.ccs-widget-card em {
    display: block;
    margin-top: 5px;
    color: rgba(17, 17, 17, 0.58);
    font-size: 0.88rem;
    font-style: normal;
    line-height: 1.25;
}

.ccs-live-card,
.ccs-widget-card {
    position: absolute;
    z-index: 5;
    width: min(42%, 260px);
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    padding: 16px;
    box-shadow: 0 8px 8px rgba(17, 17, 17, 0.08);
    transition: transform 520ms var(--ccs-ease-expo), opacity 340ms var(--ccs-ease-out);
}

.ccs-live-next {
    top: 40px;
    left: 40px;
}

.ccs-live-change {
    right: 34px;
    top: 210px;
}

.ccs-widget-card {
    left: 52px;
    bottom: 112px;
}

.ccs-device-stage[data-active-device="mac"] .ccs-live-next,
.ccs-device-stage[data-active-device="phone"] .ccs-live-change,
.ccs-device-stage[data-active-device="watch"] .ccs-widget-card {
    transform: translate3d(0, -8px, 0) scale(1.035);
}

.ccs-device-stage[data-active-device="mac"] .ccs-live-change,
.ccs-device-stage[data-active-device="mac"] .ccs-widget-card,
.ccs-device-stage[data-active-device="phone"] .ccs-live-next,
.ccs-device-stage[data-active-device="phone"] .ccs-widget-card,
.ccs-device-stage[data-active-device="watch"] .ccs-live-next,
.ccs-device-stage[data-active-device="watch"] .ccs-live-change {
    opacity: 0.72;
}

.ccs-dayflow {
    display: grid;
    gap: 12px;
}

.ccs-dayflow-head,
.ccs-dayflow-row,
.ccs-dayflow-note {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
}

.ccs-dayflow-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
}

.ccs-dayflow-head strong {
    color: #ffffff;
    font-size: 1.18rem;
    letter-spacing: -0.025em;
}

.ccs-dayflow-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    min-height: 62px;
    padding: 12px 16px;
}

.ccs-dayflow-row span {
    color: var(--ccs-orange);
    font-weight: 850;
}

.ccs-dayflow-row strong {
    color: #ffffff;
    font-size: 1.05rem;
}

.ccs-dayflow-row em {
    color: rgba(255, 255, 255, 0.68);
    font-style: normal;
}

.ccs-dayflow-row.is-now {
    background: rgba(242, 177, 79, 0.18);
}

.ccs-dayflow-note {
    display: grid;
    gap: 6px;
    padding: 18px;
    background: rgba(242, 177, 79, 0.12);
}

.ccs-dayflow-note strong {
    color: #ffffff;
    line-height: 1.35;
}

.ccs-role-workbench {
    display: grid;
    grid-template-columns: minmax(180px, 0.34fr) minmax(0, 0.66fr);
    gap: clamp(18px, 4vw, 44px);
    align-items: stretch;
}

.ccs-role-tabs {
    display: grid;
    align-content: start;
    gap: 10px;
}

.ccs-role-tabs button {
    min-height: 58px;
    border: 1px solid var(--ccs-line);
    border-radius: 14px;
    background: #ffffff;
    color: rgba(17, 17, 17, 0.68);
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    text-align: left;
    padding: 0 18px;
    transition: transform 180ms var(--ccs-ease-out), background-color 180ms var(--ccs-ease-out), border-color 180ms var(--ccs-ease-out), color 180ms var(--ccs-ease-out);
}

.ccs-role-tabs button:hover,
.ccs-role-tabs button:focus-visible {
    color: #111111;
    border-color: rgba(17, 17, 17, 0.18);
}

.ccs-role-tabs button:focus-visible {
    outline: 3px solid rgba(242, 177, 79, 0.45);
    outline-offset: 2px;
}

.ccs-role-tabs button.is-active {
    border-color: var(--ccs-orange);
    background: var(--ccs-orange);
    color: #111111;
}

.ccs-role-preview {
    min-width: 0;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(242, 177, 79, 0.22), rgba(245, 245, 247, 0.72)),
        #f5f5f7;
    padding: clamp(24px, 4vw, 42px);
}

.ccs-role-preview article[hidden] {
    display: none;
}

.ccs-role-preview h3 {
    max-width: 14ch;
    margin: 10px 0 0;
    color: var(--ccs-ink);
    font-size: clamp(2rem, 4.4vw, 4rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.ccs-role-preview p {
    max-width: 58ch;
    margin: 18px 0 0;
    color: var(--ccs-muted);
    font-size: 1.08rem;
    line-height: 1.58;
}

.ccs-mini-timetable {
    display: grid;
    gap: 10px;
    margin-top: clamp(22px, 4vw, 34px);
}

.ccs-mini-timetable div {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 58px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    padding: 12px 14px;
}

.ccs-mini-timetable em {
    color: var(--ccs-orange-strong);
    font-style: normal;
    font-weight: 850;
}

.ccs-mini-timetable strong {
    color: var(--ccs-ink);
}

.ccs-mini-timetable span {
    color: rgba(17, 17, 17, 0.56);
    font-weight: 750;
}

.ccs-feature-list article {
    position: relative;
}

.ccs-feature-list article::before {
    content: "";
    position: absolute;
    top: 3px;
    left: -18px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--ccs-orange);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 180ms var(--ccs-ease-out), transform 180ms var(--ccs-ease-out);
}

@media (hover: hover) {
    .ccs-role-tabs button:hover,
    .ccs-school-signals div:hover,
    .ccs-live-card:hover,
    .ccs-widget-card:hover {
        transform: translateY(-3px);
    }

    .ccs-feature-list article:hover::before {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .ccs-dayflow-row.is-now {
        animation: ccsCurrentLessonPulse 2.8s var(--ccs-ease-out) infinite;
    }
}

@keyframes ccsCurrentLessonPulse {
    0%, 100% {
        box-shadow: inset 0 0 0 1px rgba(242, 177, 79, 0.12);
    }
    50% {
        box-shadow: inset 0 0 0 1px rgba(242, 177, 79, 0.42);
    }
}

@media (max-width: 1040px) {
    .ccs-role-workbench {
        grid-template-columns: 1fr;
    }

    .ccs-role-tabs {
        display: flex;
        flex-wrap: wrap;
    }

    .ccs-role-tabs button {
        flex: 1 1 150px;
        text-align: center;
    }

    .ccs-live-card,
    .ccs-widget-card {
        width: min(40%, 240px);
    }
}

@media (max-width: 760px) {
    .ccs-page:not(.ccp-page) .ccs-hero {
        padding-top: 38px;
    }

    .ccs-page:not(.ccp-page) .ccs-hero h1 {
        max-width: 9.5ch;
        letter-spacing: -0.04em;
    }

    .ccs-school-signals {
        grid-template-columns: 1fr;
        margin-top: 24px;
    }

    .ccs-live-card,
    .ccs-widget-card {
        width: min(58%, 220px);
        padding: 13px;
    }

    .ccs-live-next {
        top: 18px;
        left: 18px;
    }

    .ccs-live-change {
        top: 168px;
        right: 16px;
    }

    .ccs-widget-card {
        left: 18px;
        bottom: 106px;
    }

    .ccs-dayflow-row,
    .ccs-mini-timetable div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .ccs-role-preview {
        padding: 24px;
    }

    .ccs-role-preview h3 {
        font-size: clamp(2rem, 10vw, 3rem);
    }
}

@media (max-width: 520px) {
    .ccs-live-change {
        display: none;
    }

    .ccs-live-card,
    .ccs-widget-card {
        width: min(72%, 210px);
    }
}

/* ClassConnect platform homepage */
.ccp-page {
    --ccp-deep: #111111;
    --ccp-muted: rgba(17, 17, 17, 0.68);
    --ccp-line: rgba(17, 17, 17, 0.1);
    background: #ffffff;
}

.ccp-page h1,
.ccp-page h2,
.ccp-page h3 {
    text-wrap: balance;
}

.ccp-page.motion-ready .ccs-reveal,
.ccp-page.motion-ready .ccs-reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

.ccp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(18px, 4vw, 48px);
    padding-top: 12px;
    padding-bottom: 10px;
}

.ccp-brand-strip {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(10px, 3vw, 28px);
    min-width: 0;
}

.ccp-brand-link {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    color: rgba(17, 17, 17, 0.72);
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: -0.025em;
    text-decoration: none;
}

.ccp-brand-link:hover {
    color: #111111;
    text-decoration: none;
}

.ccp-brand-link img {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
}

.ccp-brand-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccp-brand-dloper {
    color: rgba(17, 17, 17, 0.58);
}

.ccp-brand-link.is-active {
    color: #111111;
    font-size: 1.1rem;
    font-weight: 850;
}

.ccp-page-nav {
    justify-content: flex-end;
    flex: 0 0 auto;
}

.ccp-topbar .product-title img {
    border-radius: 9px;
}

.ccp-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1.08fr);
    gap: clamp(34px, 6vw, 92px);
    align-items: center;
    min-height: calc(100svh - 64px);
    max-width: 1380px;
    margin: 0 auto;
    padding: clamp(84px, 11vw, 148px) clamp(18px, 5vw, 64px) clamp(78px, 10vw, 128px);
}

.ccp-hero-copy {
    max-width: 720px;
    min-width: 0;
}

.ccp-hero h1 {
    max-width: 11ch;
    margin: 0;
    color: var(--ccp-deep);
    font-size: clamp(3.45rem, 7.4vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.ccp-platform-stage {
    min-height: 650px;
    border-radius: 28px;
    background:
        linear-gradient(145deg, rgba(242, 177, 79, 0.98), rgba(242, 177, 79, 0.62)),
        #f2b14f;
    color: var(--ccp-deep);
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.ccp-platform-stage::before {
    content: "";
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(17, 17, 17, 0.16);
    border-radius: 22px;
    pointer-events: none;
}

.ccp-platform-stage::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    z-index: 1;
    height: 42%;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0), rgba(17, 17, 17, 0.1));
    pointer-events: none;
}

.ccp-stage-shell {
    position: absolute;
    inset: clamp(22px, 4vw, 42px);
    z-index: 2;
}

.ccp-stage-header,
.ccp-orbit,
.ccp-stage-preview {
    position: absolute;
    border: 1px solid rgba(17, 17, 17, 0.14);
    background: rgba(255, 255, 255, 0.74);
}

.ccp-stage-header {
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 66px;
    border-radius: 18px;
    padding: 16px 20px;
}

.ccp-stage-header span,
.ccp-orbit span,
.ccp-product-lines span,
.ccp-workflow-list span,
.ccp-roadmap-list span {
    color: var(--ccs-orange-strong);
    font-size: 0.9rem;
    font-weight: 800;
}

.ccp-stage-header strong {
    font-size: 1.12rem;
    letter-spacing: -0.025em;
}

.ccp-orbit {
    width: min(45%, 280px);
    min-height: 116px;
    border-radius: 18px;
    padding: 18px;
    z-index: 4;
}

.ccp-orbit strong {
    display: block;
    margin-top: 8px;
    font-size: clamp(1.12rem, 2vw, 1.38rem);
    line-height: 1.12;
    letter-spacing: -0.035em;
}

.ccp-orbit-timetable {
    top: 112px;
    left: 0;
}

.ccp-orbit-roles {
    top: 204px;
    right: 0;
}

.ccp-orbit-ops {
    bottom: 46px;
    left: 18px;
}

.ccp-stage-preview {
    right: 34px;
    bottom: 68px;
    width: min(72%, 560px);
    border-radius: 20px;
    padding: 14px;
    z-index: 3;
}

.ccp-stage-preview img {
    width: 100%;
    border-radius: 14px;
    filter: drop-shadow(0 18px 28px rgba(17, 17, 17, 0.16));
}

.ccp-capability-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--ccp-line);
    border-radius: var(--ccs-radius);
    background: var(--ccp-line);
    overflow: hidden;
}

.ccp-capability-grid article,
.ccp-product-lines article {
    background: #ffffff;
    padding: clamp(22px, 3vw, 34px);
}

.ccp-capability-grid h3,
.ccp-product-lines h3,
.ccp-workflow-list h3,
.ccp-roadmap-list h3 {
    margin: 0;
    color: var(--ccp-deep);
    font-size: clamp(1.25rem, 2vw, 1.72rem);
    letter-spacing: -0.03em;
    line-height: 1.16;
}

.ccp-capability-grid p,
.ccp-product-lines p,
.ccp-workflow-list p,
.ccp-roadmap-list p {
    margin: 12px 0 0;
    color: var(--ccp-muted);
    line-height: 1.62;
}

.ccp-system-band {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
    gap: clamp(32px, 6vw, 80px);
    align-items: center;
    max-width: 1240px;
    margin: clamp(32px, 6vw, 76px) auto;
    border-radius: 24px;
    background: #111111;
    color: #ffffff;
    padding: clamp(56px, 8vw, 92px) clamp(18px, 5vw, 64px);
}

.ccp-system-band h2 {
    max-width: 12ch;
    margin: 0;
    color: #ffffff;
    font-size: clamp(2.3rem, 5vw, 4.7rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.ccp-system-band p {
    max-width: 65ch;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.12rem;
    line-height: 1.6;
}

.ccp-system-band .ccs-btn-secondary {
    border-color: rgba(255, 255, 255, 0.24);
    background: transparent;
    color: #ffffff;
}

.ccp-system-band .ccs-btn-secondary:hover {
    border-color: #ffffff;
    background: #ffffff;
    color: #111111;
}

.ccp-product-lines {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 1px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    overflow: hidden;
}

.ccp-product-lines article {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ccp-product-lines article:first-child img {
    width: min(74%, 260px);
    margin: 28px auto 0;
    filter: drop-shadow(0 20px 30px rgba(17, 17, 17, 0.18));
}

.ccp-organisation-map {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
}

.ccp-organisation-map strong {
    grid-column: 1 / -1;
    display: grid;
    place-items: center;
    min-height: 124px;
    border-radius: 16px;
    background: #f2b14f;
    color: #111111;
    font-size: clamp(1.75rem, 4vw, 3rem);
    letter-spacing: -0.04em;
}

.ccp-organisation-map em {
    display: grid;
    place-items: center;
    min-height: 74px;
    border-radius: 14px;
    background: #f5f5f7;
    color: rgba(17, 17, 17, 0.72);
    font-style: normal;
    font-weight: 800;
}

.ccp-workflow-list {
    display: grid;
    gap: 1px;
    border-top: 1px solid var(--ccp-line);
    border-bottom: 1px solid var(--ccp-line);
}

.ccp-workflow-list article {
    display: grid;
    grid-template-columns: 180px minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(18px, 4vw, 48px);
    align-items: start;
    padding: clamp(24px, 4vw, 42px) 0;
    border-top: 1px solid var(--ccp-line);
}

.ccp-workflow-list article:first-child {
    border-top: 0;
}

.ccp-roadmap {
    max-width: 1240px;
    margin: 0 auto;
    padding: clamp(64px, 9vw, 112px) clamp(18px, 4vw, 36px);
}

.ccp-roadmap-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--ccp-line);
    border-radius: var(--ccs-radius);
    background: var(--ccp-line);
    overflow: hidden;
}

.ccp-roadmap-list article {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    background: #ffffff;
    padding: clamp(22px, 3vw, 34px);
}

.ccp-roadmap-list h3 {
    margin-top: 18px;
}

.ccp-final-cta h2 {
    max-width: 11ch;
}

@media (hover: hover) {
    .ccp-capability-grid article,
    .ccp-product-lines article,
    .ccp-workflow-list article,
    .ccp-roadmap-list article,
    .ccp-stage-preview,
    .ccp-orbit {
        transition: transform 220ms var(--ccs-ease-out), background-color 220ms var(--ccs-ease-out);
    }

    .ccp-capability-grid article:hover,
    .ccp-roadmap-list article:hover,
    .ccp-product-lines article:hover {
        background: #fbfbfc;
    }

    .ccp-capability-grid article:hover,
    .ccp-roadmap-list article:hover,
    .ccp-stage-preview:hover,
    .ccp-orbit:hover {
        transform: translateY(-4px);
    }

    .ccp-workflow-list article:hover {
        background: linear-gradient(90deg, rgba(242, 177, 79, 0.12), rgba(242, 177, 79, 0));
    }
}

@media (max-width: 1040px) {
    .ccp-hero,
    .ccp-system-band {
        grid-template-columns: 1fr;
    }

    .ccp-platform-stage {
        min-height: 590px;
    }

    .ccp-capability-grid,
    .ccp-roadmap-list {
        grid-template-columns: 1fr;
    }

    .ccp-product-lines {
        grid-template-columns: 1fr;
    }

    .ccp-workflow-list article {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (max-width: 760px) {
    .ccp-topbar {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
        padding: 8px 16px 9px;
    }

    .ccp-brand-strip {
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ccp-brand-link {
        gap: 7px;
        font-size: 0.88rem;
        letter-spacing: -0.02em;
    }

    .ccp-brand-main {
        font-size: 0.96rem;
    }

    .ccp-brand-link img {
        width: 30px;
        height: 30px;
        border-radius: 8px;
    }

    .ccp-page-nav {
        width: 100%;
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ccp-hero {
        min-height: auto;
        width: 100vw;
        max-width: 100vw;
        padding: 58px 20px 76px;
        overflow: hidden;
    }

    .ccp-hero-copy,
    .ccp-platform-stage,
    .ccp-system-band,
    .ccp-roadmap {
        width: calc(100vw - 40px);
        max-width: calc(100vw - 40px);
    }

    .ccp-hero h1 {
        max-width: 9.2ch;
        font-size: clamp(2.8rem, 13vw, 4.1rem);
        letter-spacing: -0.04em;
    }

    .ccp-platform-stage {
        min-height: 540px;
        border-radius: 22px;
    }

    .ccp-stage-shell {
        inset: 18px;
    }

    .ccp-stage-header {
        min-height: 58px;
        padding: 14px;
    }

    .ccp-orbit {
        width: 76%;
        min-height: 104px;
        padding: 16px;
    }

    .ccp-orbit-timetable {
        top: 88px;
    }

    .ccp-orbit-roles {
        top: 182px;
    }

    .ccp-orbit-ops {
        bottom: 22px;
        left: 0;
    }

    .ccp-stage-preview {
        right: 0;
        bottom: 122px;
        width: 82%;
    }

    .ccp-system-band {
        margin-top: 28px;
        margin-bottom: 28px;
        padding: clamp(46px, 8vw, 64px) 20px;
    }

    .ccp-system-band h2 {
        font-size: clamp(2.15rem, 11vw, 3.35rem);
    }

    .ccp-product-lines article {
        min-height: 0;
    }

    .ccp-roadmap {
        padding-top: 76px;
        padding-bottom: 76px;
    }

    .ccp-organisation-map {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .ccp-brand-link {
        gap: 6px;
        font-size: 0.82rem;
    }

    .ccp-brand-main {
        font-size: 0.9rem;
    }

    .ccp-brand-link img {
        width: 28px;
        height: 28px;
    }

    .ccp-hero-copy,
    .ccp-platform-stage,
    .ccp-system-band,
    .ccp-roadmap {
        width: min(calc(100vw - 40px), 350px);
        max-width: min(calc(100vw - 40px), 350px);
    }

    .ccp-stage-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .ccp-orbit {
        width: 86%;
    }

    .ccp-stage-preview {
        bottom: 116px;
        width: 94%;
    }
}

@media (max-width: 360px) {
    .ccp-brand-dloper span,
    .ccp-brand-s span {
        max-width: 62px;
    }
}

/* Legal page */
.legal-page {
    background:
        radial-gradient(circle at 9% 11%, rgba(242, 177, 79, 0.24), transparent 34%),
        radial-gradient(circle at 88% 12%, rgba(17, 17, 17, 0.08), transparent 29%),
        linear-gradient(180deg, #ffffff 0%, #f7f8fb 100%);
}

.legal-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.58fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(78px, 9vw, 116px) 0 clamp(64px, 8vw, 96px);
}

.legal-hero h1 {
    max-width: 10.8ch;
    margin: 0;
    color: #111111;
    font-size: clamp(3.4rem, 8vw, 6rem);
    line-height: 0.93;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.legal-hero .ccs-lede {
    max-width: 58ch;
}

.legal-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: clamp(28px, 5vw, 54px);
}

.legal-brand-row img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
}

.legal-document-panel {
    border: 1px solid rgba(17, 17, 17, 0.14);
    border-radius: 16px;
    background: #111111;
    color: #ffffff;
    padding: clamp(26px, 4vw, 38px);
}

.legal-document-panel span {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    background: rgba(242, 177, 79, 0.18);
    color: #f2b14f;
    padding: 7px 10px;
    font-size: 0.78rem;
    font-weight: 800;
}

.legal-document-panel h2 {
    margin: 24px 0 28px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.legal-document-panel dl {
    display: grid;
    gap: 0;
    margin: 0;
}

.legal-document-panel dl > div {
    display: grid;
    gap: 5px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.legal-document-panel dt {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
    font-weight: 800;
}

.legal-document-panel dd {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
}

@media (hover: hover) {
    .legal-brand-row img,
    .legal-document-panel {
        transition: transform 220ms var(--ccs-ease-out);
    }

    .legal-brand-row img:hover,
    .legal-document-panel:hover {
        transform: translateY(-3px);
    }
}

@media (max-width: 900px) {
    .legal-hero {
        grid-template-columns: 1fr;
    }

    .legal-hero h1 {
        max-width: 9.5ch;
        font-size: clamp(3rem, 13vw, 4.5rem);
    }
}
