/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
}

:root {
    --primary-orange: #1a73e8;
    --primary-coral: #4285f4;
    --cta-gradient-hover-blend: 16%;
    --gradient-primary: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
    --gradient-primary-flipped: linear-gradient(
        135deg,
        color-mix(in srgb, #1a73e8 var(--cta-gradient-hover-blend), #4285f4) 0%,
        color-mix(in srgb, #4285f4 var(--cta-gradient-hover-blend), #1a73e8) 100%
    );
    --gradient-soft: linear-gradient(145deg, #f5f9ff 0%, #eef6ff 45%, #f3fbf6 100%);
    --text-dark: #202124;
    --text-light: #5f6368;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 8px rgba(26, 115, 232, 0.12);
    --shadow-md: 0 4px 16px rgba(26, 115, 232, 0.16);
    --shadow-lg: 0 8px 32px rgba(26, 115, 232, 0.2);

    /* Vars used by ported GradeSight .problem + .mid-cta sections */
    --blue: #4285f4;
    --green: #34a853;
    --primary: #1a73e8;
    --primary-hover: #1557b0;
    --cta: #4285f4;
    --cta-hover: #3367d6;
    --text: #202124;
    --text-muted: #5f6368;
    --bg: #ffffff;
    --bg-card: #ffffff;
    --bg-muted: #f8f9fa;
    --surface-soft: #ffffffcc;
    --border: #e0e0e0;
    --radius: 8px;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --at-risk-bg: #ffcccc;
    --at-risk-border: #d32f2f;
    --high-performing-bg: #ccffcc;
    --high-performing-border: #388e3c;

    /* Hero tucks under the nav bubble; reduced when the RS suite banner is present */
    --hero-nav-pull: 75px;
    --hero-padding-top: 140px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Menu */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    border: 0;
    z-index: 9999;
    padding: 15px 30px;
    transition: box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.navbar.scrolled {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.nav-brand:hover .nav-title {
    text-decoration: underline;
}

.nav-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-3px) rotate(1deg); }
}

.nav-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--nav-title-color, var(--service-primary, var(--primary, #0c7489)));
    letter-spacing: -0.02em;
}

.nav-toggle {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--service-primary, #0c7489) 22%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--service-primary, #0c7489) 8%, #ffffff);
    color: var(--nav-title-color, var(--service-primary, var(--primary, #0c7489)));
    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.nav-toggle:hover {
    background: color-mix(in srgb, var(--service-primary, #0c7489) 14%, #ffffff);
    border-color: color-mix(in srgb, var(--service-primary, #0c7489) 36%, transparent);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--nav-title-color, var(--service-primary, var(--primary, #0c7489)));
    outline-offset: 2px;
}

.nav-toggle__icon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 20px;
    height: 16px;
}

.nav-toggle__bar {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition:
        transform 0.25s ease,
        opacity 0.2s ease;
}

.navbar--nav-open .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar--nav-open .nav-toggle__bar:nth-child(2) {
    opacity: 0;
}

.navbar--nav-open .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--nav-link-hover-color, var(--service-primary, var(--primary, #0c7489)));
}

/* Animated underline for standard nav links (not CTA) */
.nav-link:not(.nav-link-cta)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--nav-link-hover-color, var(--service-primary, var(--primary, #0c7489)));
    transition: width 0.3s ease;
}

.nav-link:not(.nav-link-cta):hover::after {
    width: 100%;
}

.nav-link-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.48rem 0.9rem;
    border-radius: 999px;
    font-weight: 700;
    color: #ffffff !important;
    background: var(--gradient-primary, linear-gradient(135deg, #4285f4 0%, #1a73e8 100%));
    border: none;
    box-shadow: 0 8px 18px color-mix(in srgb, var(--service-primary, #1a73e8) 18%, transparent);
    position: relative;
    overflow: hidden;
    z-index: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.nav-link-cta::after {
    display: none !important;
    content: none !important;
}

.nav-link-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transition: left 0.5s ease;
    z-index: -1;
    pointer-events: none;
}

.nav-link-cta:hover::before {
    left: 100%;
}

.nav-link-cta:hover {
    color: #ffffff !important;
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--service-accent, #4285f4) 92%, #000) 0%,
        var(--service-primary-hover, var(--service-primary, #1a73e8)) 100%
    );
    box-shadow: 0 10px 22px color-mix(in srgb, var(--service-primary, #1a73e8) 26%, transparent);
    transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
    .nav-link-cta::before,
    .nav-link:not(.nav-link-cta)::after,
    .nav-toggle__bar,
    .nav-links {
        transition: none;
    }

    .nav-link-cta:hover::before {
        left: -100%;
    }
}

/* Hero Section */
.hero {
    background:
        radial-gradient(circle at 18% 12%, rgba(66, 133, 244, 0.14) 0%, rgba(66, 133, 244, 0) 42%),
        radial-gradient(circle at 82% 88%, rgba(52, 168, 83, 0.1) 0%, rgba(52, 168, 83, 0) 45%),
        linear-gradient(145deg, #f6f9ff 0%, #eef5ff 52%, #f4fbf7 100%);
    padding: 140px 20px 80px 20px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: calc(-1 * var(--hero-nav-pull));
    padding-top: var(--hero-padding-top);
}

/* Suite banner sits above .navbar; default hero pull would overlap it */
body:has([data-rs-service-context-widget]) {
    --hero-nav-pull: 70px;
    --hero-padding-top: 135px;
    --legal-hero-pull: var(--hero-nav-pull);
    --legal-hero-padding-top: calc(var(--legal-hero-pull) + 3rem);
}

body:has([data-rs-service-context-widget]) [data-rs-service-context-widget] {
    position: relative;
    z-index: 25;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.38) 100%);
    pointer-events: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.ghost-icon-large {
    margin-bottom: 20px;
    /* display: inline-block; */
    display: none;
    width: 120px;
    height: 120px;
}

.ghost-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ghost-svg-small {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.ghost-inline {
    width: 50px;
    height: 50px;
    vertical-align: middle;
    margin-left: 10px;
    display: inline-block;
}

.hero-title {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin-bottom: 20px;
    text-align: left;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin: 0 0 1.75rem;
    max-width: 520px;
    line-height: 1.55;
}

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

.hero-title .hero__title-word {
    opacity: 0;
    transition: opacity 260ms ease-in-out;
}

.hero-title .hero__title-word.is-visible {
    opacity: 1;
}

.hero-title .highlight {
    color: #4285f4;
}

.cta-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.85rem 1.6rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--cta-border-radius, 8px);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.45s ease;
    width: fit-content;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
    background: var(--gradient-primary-flipped);
    color: var(--white);
    transition: transform 0.28s ease, box-shadow 0.28s ease, background 0.55s ease 0.1s;
}

.cta-button:active {
    transform: translateY(-1px) scale(1);
}

.cta-button-large {
    font-size: 1.1rem;
    padding: 1rem 2rem;
}

@media (prefers-reduced-motion: reduce) {
    .cta-button,
    .cta-button:hover {
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .cta-button:hover {
        background: var(--gradient-primary);
    }

    .cta-button:hover,
    .cta-button:active {
        transform: none;
    }
}

.button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
}

.button-ghost-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

.cta-note {
    margin: 16px 0 0;
    color: var(--text-light);
    font-size: 1rem;
    text-align: left;
}

.hero-visual {
    position: relative;
    display: block;
}

.showcase__image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid rgba(18, 42, 76, 0.14);
    box-shadow:
        0 16px 34px rgba(16, 37, 66, 0.16),
        0 3px 10px rgba(16, 37, 66, 0.08);
}

.demo-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.demo-item {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-text-wrapper {
    position: relative;
    z-index: 1;
    width: 100%;
    text-align: center;
}

.demo-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: inline-block;
    letter-spacing: 2px;
}

.demo-text .letter {
    display: inline-block;
    transition: color 0.2s ease, opacity 0.2s ease;
    position: relative;
}

.demo-text .letter.changing {
    color: var(--primary-orange);
    transform: scale(1.1);
}

.demo-text .letter.changed {
    color: var(--text-dark);
}

.demo-text .letter.cloaked {
    background: linear-gradient(135deg, #76a7fa 0%, #4285f4 50%, #1a73e8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 8px rgba(26, 115, 232, 0.2);
    font-weight: 800;
}

.ghost {
    position: absolute;
    width: 80px;
    height: 80px;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
}

.ghost .ghost-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Ghost animation states */
.ghost-1 {
    left: calc(50% - 250px);
    animation: floatVertical 2s ease-in-out infinite;
}

.ghost-1.moving-right {
    animation: moveRight 2s ease-in-out forwards, floatVertical 2s ease-in-out infinite;
}

.ghost-1.moving-left {
    animation: moveLeft 2s ease-in-out forwards, floatVertical 2s ease-in-out infinite;
}

.ghost-1.on-right {
    left: calc(50% + 250px);
    animation: floatVertical 2s ease-in-out infinite;
}

.ghost-2 {
    left: calc(50% - 280px);
    animation: floatVertical 2s ease-in-out infinite;
}

.ghost-2.moving-right {
    animation: moveRight2 2s ease-in-out forwards, floatVertical 2s ease-in-out infinite;
}

.ghost-2.moving-left {
    animation: moveLeft2 2s ease-in-out forwards, floatVertical 2s ease-in-out infinite;
}

.ghost-2.on-right {
    left: calc(50% + 280px);
    animation: floatVertical 2s ease-in-out infinite;
}


/* Animation keyframes */
@keyframes floatVertical {
    0%, 100% {
        transform: translateY(-50%) translateY(0);
    }
    50% {
        transform: translateY(-50%) translateY(-20px);
    }
}

@keyframes moveRight {
    0% {
        left: calc(50% - 250px);
    }
    100% {
        left: calc(50% + 250px);
    }
}

@keyframes moveLeft {
    0% {
        left: calc(50% + 250px);
    }
    100% {
        left: calc(50% - 250px);
    }
}

@keyframes moveRight2 {
    0% {
        left: calc(50% - 280px);
    }
    100% {
        left: calc(50% + 280px);
    }
}

@keyframes moveLeft2 {
    0% {
        left: calc(50% + 280px);
    }
    100% {
        left: calc(50% - 280px);
    }
}


/* Problem Section */
.problem {
    padding: 100px 20px;
    background: var(--white);
}

.section-title {
    font-family: var(--font);
    font-size: clamp(2.5rem, 5.2vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    text-align: center;
    max-width: 980px;
    margin: 0 auto 2.6rem;
}

.solution .section-title {
    max-width: none;
    white-space: normal;
}

@media (max-width: 700px) {
    .solution .section-title {
        white-space: normal;
    }
}

.section-title .highlight {
    color: #4285f4;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.problem-card {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-orange);
}

.problem-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.problem-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Solution Section */
.solution {
    padding: 100px 20px;
    background: var(--gradient-soft);
}

.solution-features {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.feature {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.feature-icon {
    width: 280px;
    max-width: 100%;
    min-height: 96px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.2) 0%, rgba(52, 168, 83, 0.14) 100%);
    border: 1px solid rgba(66, 133, 244, 0.22);
    box-shadow: 0 10px 24px rgba(26, 115, 232, 0.12);
    overflow: hidden;
}

.feature-icon > img,
.feature-icon > svg,
.feature-icon > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.feature-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.feature-text p {
    color: var(--text-light);
    line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
    padding: 100px 20px;
    background: var(--white);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-md);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.step-cta {
    margin: 4px 0 24px;
}

.step-media {
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: var(--white);
    max-width: 100%;
}

.step-video,
.step-gif {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.step-video {
    max-height: 400px;
    object-fit: contain;
}

/* Use Cases Section */
.use-cases {
    padding: 100px 20px;
    margin-bottom: -250px;
    background: var(--gradient-soft);
}

.use-cases-carousel {
    position: relative;
    max-width: 1200px;
    margin: 60px auto 0;
    overflow: visible;
    transform: scale(0.65);
    transform-origin: center top;
}

.use-cases-track {
    position: relative;
    min-height: 400px;
    overflow: hidden;
}

.use-case-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 700px;
    background: var(--white);
    padding: 10% 20%;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.use-case-card.active {
    opacity: 1;
    transform: translateY(0px);
    pointer-events: all;
    position: relative;
    z-index: 2;
}

.use-case-icon {
    font-size: 8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 280px;
    height: 280px;
    margin: 0 auto 15px;
    overflow: hidden;
}

.use-case-icon > img,
.use-case-icon > svg,
.use-case-icon > video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.use-case-card h3 {
    font-size: 4em;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.use-case-card p {
    color: var(--text-light);
    font-size: 1.8em;
    line-height: 1.5;
}

.use-case-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    padding-bottom: 10px;
    position: relative;
    z-index: 10;
}

.use-case-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(26, 115, 232, 0.4);
    border: 2px solid rgba(26, 115, 232, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    position: relative;
    z-index: 10;
}

.use-case-dot:hover {
    background: rgba(26, 115, 232, 0.6);
    transform: scale(1.2);
}

.use-case-dot.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
    transform: scale(1.4);
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.5);
}

/* Privacy Commitment Section */
.privacy-commitment {
    padding: 100px 20px;
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0%, rgba(66, 133, 244, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.privacy-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.privacy-visual {
    text-align: center;
}

.privacy-ghost {
    width: 300px;
    height: 300px;
    object-fit: contain;
    animation: floatSubtle 3s ease-in-out infinite;
    filter: drop-shadow(0 8px 16px rgba(26, 115, 232, 0.2));
}

.privacy-text {
    position: relative;
    z-index: 1;
    background: var(--white);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(26, 115, 232, 0.15);
    border: 2px solid rgba(26, 115, 232, 0.1);
}

.privacy-intro {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.7;
    font-weight: 500;
}

.privacy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.privacy-list li {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 30px;
    position: relative;
}

.privacy-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Social Proof Section */
.social-proof {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 100px max(20px, (100vw - 1200px) / 2);
    box-sizing: border-box;
    background: var(--white);
}

.social-proof .section-title {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-carousel {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: visible;
    padding: 80px 60px 80px 60px; /* Extra padding top/bottom to accommodate quotation marks */
    box-sizing: border-box;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
    align-items: stretch; /* Stretch all items to same height */
}

.testimonial {
    min-width: calc(33.333% - 14px);
    max-width: calc(33.333% - 14px);
    flex-shrink: 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.15);
    border: 2px solid rgba(26, 115, 232, 0.1);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
    opacity: 1 !important; /* Ensure all testimonials are visible */
    transform: none !important; /* Remove any transform that might offset them */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically when height is standardized */
}

.testimonial:hover {
    box-shadow: 0 6px 30px rgba(26, 115, 232, 0.2);
    border-color: rgba(26, 115, 232, 0.3);
    transform: translateY(-2px);
}

.testimonial blockquote {
    font-size: 1rem;
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.5;
    position: relative;
    padding: 0 40px;
}

.testimonial blockquote::before {
    content: '\201C';
    font-size: 120px;
    line-height: 1;
    color: rgba(26, 115, 232, 0.2);
    position: absolute;
    left: -10px;
    top: -30px;
    font-family: "Times New Roman", Times, serif;
    font-weight: 800;
    font-style: italic;
}

.testimonial blockquote::after {
    content: '\201D';
    font-size: 120px;
    line-height: 1;
    color: rgba(26, 115, 232, 0.2);
    position: absolute;
    right: -10px;
    bottom: -80px;
    font-family: "Times New Roman", Times, serif;
    font-weight: 800;
    font-style: italic;
}

.testimonial-author {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    box-sizing: border-box;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(26, 115, 232, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 2rem;
    color: var(--primary-orange);
    transition: all 0.3s ease;
    pointer-events: all;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.2);
}

.carousel-btn:hover {
    background: var(--primary-orange);
    color: white;
    border-color: var(--primary-orange);
    transform: scale(1.1);
}

.carousel-btn-prev {
    left: 10px;
}

.carousel-btn-next {
    right: 10px;
}

.carousel-dots {
    display: none; /* Hidden - not needed with auto-scroll */
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(26, 115, 232, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary-orange);
    transform: scale(1.2);
}

.button-ghost-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: inline-block;
    vertical-align: middle;
}

/* Final CTA Section */
.final-cta {
    padding: 100px 20px;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-ghost {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: block;
}

.cta-ghost .ghost-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.cta-box > p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.final-cta .cta-button {
    background: var(--white);
    color: var(--primary-orange);
    display: inline-flex;
}

.final-cta .cta-button:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-orange);
    transform: translateY(-3px) scale(1.02);
    filter: none;
    box-shadow: 0 10px 28px color-mix(in srgb, var(--service-primary, var(--primary-orange, #1a73e8)) 22%, transparent);
}

.final-cta .cta-note {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 15px;
    text-align: center;
    width: auto;
}

/* Mid CTA Section */
.mid-cta {
    padding: 80px 20px;
    background: var(--white);
}

.mid-cta-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mid-cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.mid-cta-box > p {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.mid-cta .cta-button {
    display: inline-flex;
}

.mid-cta .cta-note {
    margin-top: 12px;
    color: var(--text-light);
    font-size: 0.9rem;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.faq {
    padding: 100px 20px;
    background: var(--gradient-soft);
    position: relative;
    overflow: hidden;
}

.faq::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(26, 115, 232, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(66, 133, 244, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.faq-item {
    margin-bottom: 20px;
    border: 2px solid rgba(26, 115, 232, 0.2);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(26, 115, 232, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(26, 115, 232, 0.2);
    border-color: var(--primary-orange);
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.faq-item:hover::before {
    transform: scaleX(1);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    color: var(--primary-orange);
}

.faq-question[aria-expanded="true"] {
    color: var(--primary-orange);
}

.faq-question span:first-child {
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-orange);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
    background: rgba(26, 115, 232, 0.1);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-question:hover .faq-icon {
    background: rgba(26, 115, 232, 0.2);
    color: var(--primary-coral);
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    background: rgba(26, 115, 232, 0.25);
    color: var(--primary-coral);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 25px;
    background: rgba(255, 255, 255, 0.5);
}

.faq-question[aria-expanded="true"] + .faq-answer {
    max-height: 500px;
    padding: 0 25px 20px 25px;
    background: rgba(255, 255, 255, 0.6);
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

.faq-answer a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
}

.faq-answer a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 40px 20px;
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-ghost {
    width: 40px;
    height: 40px;
    display: inline-block;
}

.footer-ghost .ghost-svg-small {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 15px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes floatSubtle {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-3px);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    body:has([data-rs-service-context-widget]) {
        --legal-hero-pull: calc(var(--hero-nav-pull) + 3rem);
        --legal-hero-padding-top: calc(var(--legal-hero-pull) + 3rem);
    }

    .navbar {
        padding: 10px 16px;
    }

    .nav-content {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-links {
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
        max-height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            max-height 0.32s ease,
            opacity 0.22s ease,
            visibility 0.22s ease,
            padding 0.22s ease;
    }

    .navbar--nav-open .nav-links {
        max-height: min(80vh, 420px);
        padding-top: 10px;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links > li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 14px 2px;
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    }

    .nav-link:not(.nav-link-cta)::after {
        display: none;
    }

    .nav-link-cta {
        width: 100%;
        margin-top: 10px;
        padding: 12px 16px;
        box-sizing: border-box;
    }

    .nav-link-cta:hover {
        transform: none;
    }
    
    .testimonial {
        min-width: calc(50% - 10px);
        max-width: calc(50% - 10px);
        padding: 25px 20px;
    }
    
    .testimonial blockquote {
        font-size: 0.95rem;
    }
    
    
    .carousel-controls {
        position: static;
        transform: none;
        margin-top: 20px;
        justify-content: center;
    }
    
    .carousel-btn-prev {
        left: auto;
        margin-right: 10px;
    }
    
    .carousel-btn-next {
        right: auto;
        margin-left: 10px;
    }
    
    .testimonials-carousel {
        padding: 0 50px;
    }
    
    .carousel-btn-prev {
        left: 5px;
    }
    
    .carousel-btn-next {
        right: 5px;
    }

    .nav-title {
        font-size: 1.2rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .mid-cta-box h2 {
        font-size: 2rem;
    }

    .mid-cta-box > p {
        font-size: 1.1rem;
    }

    .problem-grid,
    .use-case-card {
        padding: 30px;
    }
    
    .privacy-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .privacy-ghost {
        width: 200px;
        height: 200px;
    }
    
    .privacy-list li {
        font-size: 1rem;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .feature {
        flex-direction: column;
        text-align: center;
    }

    .cta-box h2 {
        font-size: 2rem;
    }

    .testimonial {
        padding: 40px 20px;
    }

    .testimonial blockquote {
        font-size: 1.25rem;
    }

    .faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-question[aria-expanded="true"] + .faq-answer {
        padding: 0 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 20px;
        min-height: auto;
    }

    body:has([data-rs-service-context-widget]) .hero {
        margin-top: 0;
    }

    .mid-cta {
        padding: 60px 20px;
    }
    
    .testimonial {
        min-width: 100%;
        max-width: 100%;
        padding: 25px 20px;
    }
    
    .testimonials-carousel {
        padding: 0 50px;
    }
    
    .carousel-btn-prev {
        left: 5px;
    }
    
    .carousel-btn-next {
        right: 5px;
    }

    .mid-cta-box h2 {
        font-size: 1.75rem;
    }

    .mid-cta-box > p {
        font-size: 1rem;
    }

    .ghost-icon-large {
        width: 80px;
        height: 80px;
        display: none !important;
    }

    .hero-visual {
        height: 600px;
    }

    .demo-container {
        gap: 40px;
    }

    .demo-item {
        height: 100px;
    }

    .ghost {
        width: 60px;
        height: 60px;
    }

    .demo-text {
        font-size: 1.5rem;
    }

    .ghost-1 {
        left: calc(50% - 150px);
    }

    .ghost-1.on-right {
        left: calc(50% + 150px);
    }

    .ghost-2 {
        left: calc(50% - 170px);
    }

    .ghost-2.on-right {
        left: calc(50% + 170px);
    }


    @keyframes moveRight {
        0% {
            left: calc(50% - 150px);
            transform: translateY(-50%) translateY(0);
        }
        50% {
            transform: translateY(-50%) translateY(-10px);
        }
        100% {
            left: calc(50% + 150px);
            transform: translateY(-50%) translateY(0);
        }
    }

    @keyframes moveLeft {
        0% {
            left: calc(50% + 150px);
            transform: translateY(-50%) translateY(0);
        }
        50% {
            transform: translateY(-50%) translateY(-10px);
        }
        100% {
            left: calc(50% - 150px);
            transform: translateY(-50%) translateY(0);
        }
    }

    @keyframes moveRight2 {
        0% {
            left: calc(50% - 170px);
            transform: translateY(-50%) translateY(0);
        }
        50% {
            transform: translateY(-50%) translateY(-10px);
        }
        100% {
            left: calc(50% + 170px);
            transform: translateY(-50%) translateY(0);
        }
    }

    @keyframes moveLeft2 {
        0% {
            left: calc(50% + 170px);
            transform: translateY(-50%) translateY(0);
        }
        50% {
            transform: translateY(-50%) translateY(-10px);
        }
        100% {
            left: calc(50% - 170px);
            transform: translateY(-50%) translateY(0);
        }
    }


    .cta-ghost {
        width: 100px;
        height: 100px;
    }

    .ghost-inline {
        width: 40px;
        height: 40px;
    }

    .cta-button {
        padding: 16px 28px;
        font-size: 1rem;
    }

    .cta-button-large {
        padding: 18px 36px;
        font-size: 1.1rem;
    }
}

/* Service context banner */
.site-header.service-context {
  width: 100%;
  background: linear-gradient(90deg, #3a96a9 0%, #0c7489 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0;
  margin: 0;
  min-height: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 0;
}

.site-header.service-context .service-context-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 34px;
}

.site-header.service-context .service-context-row--full {
  width: 100%;
  max-width: none;
  padding: 0 20px;
}

.site-header.service-context .service-context-link,
.site-header.service-context .service-context-nav a {
  color: #ffffff !important;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

.site-header.service-context .service-context-nav {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.site-header.service-context .service-context-link:hover,
.site-header.service-context .service-context-nav a:hover {
  text-decoration: underline;
}

/* RS service context banner: hard-locked shared rendering */
.site-header.service-context,
.site-header.service-context *,
.site-header.service-context *::before,
.site-header.service-context *::after {
  box-sizing: border-box;
}

.site-header.service-context {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, #3a96a9 0%, #0c7489 100%) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset !important;
  z-index: 20 !important;
}

.site-header.service-context .service-context-row,
.site-header.service-context .service-context-row--full {
  width: min(1140px, 100%) !important;
  min-height: 34px !important;
  margin: 0 auto !important;
  padding: 6px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
  background: linear-gradient(90deg, #3a96a9 0%, #0c7489 100%) !important;
}

.site-header.service-context .service-context-link,
.site-header.service-context .service-context-nav a {
  color: #f7fbff !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  text-rendering: geometricPrecision !important;
}

.site-header.service-context .service-context-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
}

.site-header.service-context .service-context-mark {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
  vertical-align: middle !important;
  object-fit: contain !important;
}

.site-header.service-context .service-context-nav {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.site-header.service-context .service-context-link:hover,
.site-header.service-context .service-context-nav a:hover {
  color: #ffffff !important;
  opacity: 1 !important;
}

/* =========================================================================
   Ported GradeSight sections: .problem + .mid-cta (above privacy-commitment)
   - .problem and .before-after/.mock-* are exclusive to this block
   - .mid-cta variant is scoped via .mid-cta--problem-cta so the existing
     BOILERPLATE .mid-cta below the privacy section keeps its current look
   ========================================================================= */

/* Outer section shells (matches GradeSight's max-width-1200 row) */
.problem {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4.5rem 20px 2rem;
    background: var(--surface-soft);
    border: 0;
    border-radius: 0;
}

.problem__heading {
    font-family: var(--font);
    font-size: clamp(1.55rem, 2.8vw, 2.15rem);
    line-height: 1.2;
    text-align: left;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -0.01em;
    margin: 0.6rem 0 1.25rem;
}

.problem__heading strong {
    display: block;
    color: var(--text);
    font-size: clamp(2rem, 4.8vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-top: 0.22rem;
    font-weight: 800;
}

.problem__heading .highlight {
    color: var(--blue);
}

/* Before / After comparison */
.before-after {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    background: var(--bg);
}

.before-after__img {
    display: none;
    width: 100%;
    height: auto;
    vertical-align: top;
}

.before-after__placeholder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 280px;
}

.before-after__half {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.before-after__half--plain {
    background: var(--bg-muted);
    border-right: 1px solid var(--border);
}

.before-after__half--enhanced {
    background: var(--bg);
}

.before-after__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.before-after__half--enhanced .before-after__label {
    color: var(--blue);
}

.before-after__enhanced-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mock-gradebook-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.mock-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text);
    padding: 8px 10px;
    background: #e8f0fe;
    border: 1px solid var(--blue);
    border-radius: 6px;
}

.mock-stats__item strong {
    color: var(--primary);
    font-weight: 700;
}

.mock-table {
    display: grid;
    gap: 0;
    font-size: 0.7rem;
    flex: 1;
    min-height: 0;
}

.mock-table--plain {
    grid-template-columns: 1fr auto auto auto;
}

.mock-table--enhanced {
    grid-template-columns: 1fr auto auto auto auto;
}

.mock-table__row {
    display: contents;
}

.mock-table__row > span {
    padding: 4px 6px;
    border-bottom: 1px solid var(--border);
}

.mock-table--plain .mock-table__row span {
    color: var(--text);
    background: var(--bg);
}

.mock-table--plain .mock-table__header span {
    background: var(--bg-muted);
    font-weight: 600;
    color: var(--text-muted);
}

.mock-table--enhanced .mock-table__row span {
    background: var(--bg);
    color: var(--text);
}

.mock-table--enhanced .mock-table__header span {
    background: var(--bg-muted);
    font-weight: 600;
    color: var(--text-muted);
}

.mock-table--enhanced span.at-risk {
    background: var(--at-risk-bg) !important;
    border: 1px solid var(--at-risk-border);
    border-radius: 4px;
    font-weight: 600;
}

.mock-table--enhanced span.high {
    background: var(--high-performing-bg) !important;
    border: 1px solid var(--high-performing-border);
    border-radius: 4px;
    font-weight: 600;
}

.mock-dots-cell {
    display: flex;
    align-items: center;
    padding: 4px 6px !important;
    vertical-align: middle;
}

.mock-dots {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-wrap: nowrap;
}

.mock-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    min-width: 4px;
    min-height: 4px;
    border-radius: 50%;
    flex-shrink: 0;
    border: none;
}

.mock-dot.at-risk {
    background: var(--at-risk-border);
}

.mock-dot.high {
    background: var(--high-performing-border);
}

/* Scoped mid-cta variant — only the section ported above privacy uses these */
.mid-cta--problem-cta {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 28px max(20px, (100vw - 1200px) / 2);
    box-sizing: border-box;
    background: linear-gradient(135deg, #4285f4 0%, #1a73e8 100%);
    border-top: 0;
    border-bottom: 0;
}

.mid-cta--problem-cta .mid-cta-box {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 22px;
    text-align: left;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.mid-cta--problem-cta .mid-cta-box h2 {
    margin: 0;
    font-family: var(--font);
    font-size: clamp(1.2rem, 2.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #ffffff;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    white-space: nowrap;
}

.mid-cta--problem-cta .btn {
    display: inline-block;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.mid-cta--problem-cta .btn--primary {
    background: #ffffff;
    color: #1a73e8;
    border: 2px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 10px 22px rgba(8, 39, 84, 0.22);
}

.mid-cta--problem-cta .btn--large {
    font-size: 0.95rem;
    padding: 0.62rem 1.05rem;
    line-height: 1.05;
    flex: 0 0 auto;
    white-space: nowrap;
}

.mid-cta--problem-cta .btn--primary:hover {
    background: #f5f9ff;
    color: #1557b0;
}

.mid-cta--problem-cta .btn--primary:active {
    transform: scale(0.98);
}

/* Responsive overrides for the ported sections */

@media (max-width: 820px) {
    .mid-cta--problem-cta .mid-cta-box {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .mid-cta--problem-cta .mid-cta-box h2 {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .before-after__placeholder {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .before-after__half--plain {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
}

@media (min-width: 600px) {
    .before-after__placeholder {
        min-height: 320px;
    }

    .mock-table {
        font-size: 0.75rem;
    }

    .mock-table__row > span {
        padding: 6px 8px;
    }
}

/* Service legal hub (legal.html) — service summary + links to RS canonical policies */
.service-legal-hero {
    position: relative;
    z-index: 1;
    margin-top: calc(-1 * var(--legal-hero-pull, 0px));
    padding: var(--legal-hero-padding-top, 120px) 20px 48px;
    background: linear-gradient(145deg, #f6f9ff 0%, #eef5ff 52%, #f4fbf7 100%);
}

.service-legal-hero__inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.service-legal-lead {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.65;
    max-width: 720px;
    margin: 16px auto 0;
}

.service-legal-suite {
    margin-top: 20px;
    font-size: 1rem;
    color: var(--text-dark);
}

.service-legal-body {
    padding: 48px 20px 80px;
    background: var(--white);
}

.service-legal-body__inner {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-dark);
}

.service-legal-h2 {
    font-family: var(--font-display, "Poppins", sans-serif);
    font-size: 1.35rem;
    margin: 0 0 16px;
    color: var(--text-dark);
}

.service-legal-intro {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0 0 20px;
}

.service-legal-bullets {
    margin: 0 0 40px;
    padding-left: 1.25rem;
    line-height: 1.75;
    color: var(--text-light);
}

.service-legal-bullets li {
    margin-bottom: 10px;
}

.service-legal-bullets li:empty {
    display: none;
}

.service-legal-docs {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
}

.service-legal-docs li {
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border);
}

.service-legal-docs li:last-child {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.service-legal-docs a {
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.service-legal-docs a:hover {
    text-decoration: underline;
}

.service-legal-docs span {
    display: block;
    margin-top: 6px;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.5;
}

.service-legal-contact {
    padding-top: 8px;
}

.service-legal-contact a {
    color: var(--primary);
    font-weight: 600;
}

.footer-legal-links {
    font-size: 0.9rem;
    margin-top: 10px;
    line-height: 1.6;
}

/* =========================================================================
   Ported GradeSight soft CTA (.mid-cta--soft) — lives between social-proof
   and how-it-works. Self-contained class namespace so it doesn't inherit
   from BOILERPLATE's existing .mid-cta / .mid-cta-box rules.
   ========================================================================= */
.mid-cta-soft {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 28px max(20px, (100vw - 1200px) / 2);
    box-sizing: border-box;
    background: linear-gradient(135deg, #eef4ff 0%, #ffffff 55%, #eaf1fe 100%);
    border-top: 1px solid rgba(66, 133, 244, 0.18);
    border-bottom: 1px solid rgba(66, 133, 244, 0.18);
}

.mid-cta-soft__box {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    text-align: center;
    padding: 0;
}

.mid-cta-soft__title {
    margin: 0;
    font-family: var(--font);
    font-size: clamp(1.2rem, 2.5vw, 1.85rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.005em;
    color: #1a73e8;
    text-transform: none;
}

.mid-cta-soft__btn {
    display: inline-block;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.62rem 1.05rem;
    line-height: 1.05;
    border-radius: var(--radius);
    background: #1a73e8;
    color: #ffffff;
    border: 2px solid #1a73e8;
    box-shadow: 0 8px 18px rgba(26, 115, 232, 0.22);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
    white-space: nowrap;
}

.mid-cta-soft__btn:hover {
    background: #1557b0;
    color: #ffffff;
    border-color: #1557b0;
}

.mid-cta-soft__btn:active {
    transform: scale(0.98);
}

@media (max-width: 560px) {
    .mid-cta-soft__box {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
}
