/* ============================================================
   Causeway Landing Page Styles
   ============================================================ */

/* ------------------------------------------------------------
   Design Tokens
   ------------------------------------------------------------ */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Brand palette */
    --deep-forest:   #1a2416;
    --warm-brown:    #2d1f14;
    --sage-green:    #a6bf8b;
    --sage-dark:     #8da375;
    --sage-light:    rgba(166, 191, 139, 0.12);
    --orange:        #F1592A;
    --orange-dark:   #d94e22;
    --warm-white:    #f9f7f4;
    --white:         #ffffff;

    /* Text */
    --text-heading:  #1e293b;
    --text-body:     #334155;
    --text-muted:    #64748b;
    --text-dark-heading: #ffffff;
    --text-dark-body:    rgba(255, 255, 255, 0.78);
    --text-dark-muted:   rgba(255, 255, 255, 0.5);

    /* UI */
    --border:        #e8e5e0;
    --nav-height:    80px;

    /* Gradients */
    --sage-gradient: linear-gradient(135deg, #a6bf8b 0%, #8da375 100%);
    --dark-gradient: linear-gradient(135deg, #1a2416 0%, #2d3d22 100%);

    /* Backward-compatible aliases for the healthcare landing page */
    --primary-color: var(--sage-green);
    --primary-dark: var(--sage-dark);
    --secondary-color: var(--orange);
    --accent-color: #3490dc;
    --primary-gradient: var(--sage-gradient);
    --light-bg: var(--warm-white);
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-body);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-heading);
    line-height: 1.15;
}

p { margin-bottom: 1rem; }

/* ------------------------------------------------------------
   Typography Utilities
   ------------------------------------------------------------ */
.overline {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sage-green);
    display: block;
    margin-bottom: 1rem;
}

.overline-dark {
    color: var(--sage-green);
}

.display-hero {
    font-family: var(--font-heading);
    font-size: clamp(44px, 6vw, 76px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.section-headline {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.text-gradient-sage {
    background: var(--sage-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-primary {
    background: var(--sage-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ------------------------------------------------------------
   Source-grounded narrative
   ------------------------------------------------------------ */
.landing-source-section {
    background: #faf8f2;
    border-bottom: 1px solid var(--border);
}

.landing-trust-points {
    display: grid;
    gap: 1rem;
}

.landing-trust-points > div {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: 0.75rem;
    align-items: start;
}

.landing-trust-points i {
    color: #5d7a45;
    margin-top: 0.3rem;
}

.landing-trust-points p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.landing-trust-points strong {
    color: var(--text-heading);
}

.landing-product-figure figcaption {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    margin-top: 0.75rem;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn-orange {
    background-color: var(--orange);
    color: #fff;
    border: none;
    border-radius: 100px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.2s, transform 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-orange:hover {
    background-color: var(--orange-dark);
    color: #fff;
    transform: translateY(-1px);
}

.btn-demo {
    background: transparent;
    color: var(--sage-green);
    border: 1.5px solid var(--sage-green);
    border-radius: 100px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.2s, color 0.2s, transform 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-demo:hover {
    background: var(--sage-light);
    color: var(--sage-green);
    transform: translateY(-1px);
}

.btn-demo-white {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    border-radius: 100px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.2s, border-color 0.2s, transform 0.15s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-demo-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    transform: translateY(-1px);
}

/* Backward-compatible feature card primitives used by the healthcare page */
.feature-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    height: 100%;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.24);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 36px -22px rgba(15, 23, 42, 0.22);
}

.icon-box {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.icon-box-primary {
    background-color: rgba(166, 191, 139, 0.16);
    color: var(--sage-dark);
}

.icon-box-secondary {
    background-color: rgba(241, 89, 42, 0.12);
    color: var(--orange);
}

.icon-box-accent {
    background-color: rgba(52, 144, 220, 0.12);
    color: #3490dc;
}

/* Preserve Bootstrap btn-gradient for nav */
.btn-gradient {
    background: var(--sage-gradient);
    border: none;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(141, 163, 117, 0.5);
    color: white;
}

/* ------------------------------------------------------------
   Navigation
   ------------------------------------------------------------ */
.navbar-glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-brand img {
    height: 48px;
    width: auto;
}

.navbar-glass .nav-link {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 15px;
    color: #475569 !important;
    margin: 0 0.4rem;
    transition: color 0.2s;
}

.navbar-glass .nav-link:hover {
    color: var(--text-heading) !important;
}

.landing-nav-actions {
    align-items: center;
}

/* ------------------------------------------------------------
   Section Backgrounds
   ------------------------------------------------------------ */
.section-dark {
    background-color: var(--deep-forest);
}

.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark h5, .section-dark h6 {
    color: var(--text-dark-heading);
}

.section-dark p, .section-dark li {
    color: var(--text-dark-body);
}

.section-warm {
    background-color: var(--warm-white);
}

.section-brown {
    background-color: var(--warm-brown);
}

.section-brown h1, .section-brown h2, .section-brown h3,
.section-brown h4, .section-brown h5, .section-brown h6 {
    color: var(--text-dark-heading);
}

.section-brown p { color: var(--text-dark-body); }

/* ------------------------------------------------------------
   Hero Section
   ------------------------------------------------------------ */
.hero-section {
    background-color: var(--deep-forest);
    padding-top: calc(var(--nav-height) + 5rem);
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 70% 40%, rgba(166, 191, 139, 0.06) 0%, transparent 65%);
    pointer-events: none;
}

/* ------------------------------------------------------------
   Social Proof Bar
   ------------------------------------------------------------ */
.proof-bar {
    background-color: #111a0e;
    border-top: 1px solid rgba(166, 191, 139, 0.12);
    border-bottom: 1px solid rgba(166, 191, 139, 0.12);
    padding: 3.5rem 0;
}

.proof-quote {
    font-family: var(--font-heading);
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 500;
    font-style: italic;
    color: var(--text-dark-heading);
    line-height: 1.45;
    margin-bottom: 1.25rem;
}

.proof-attr {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-dark-muted);
}

.proof-attr strong {
    color: var(--sage-green);
    font-weight: 600;
}

.course-titles-strip {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.course-title-pill {
    background: rgba(166, 191, 139, 0.08);
    border: 1px solid rgba(166, 191, 139, 0.18);
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 13px;
    color: var(--text-dark-body);
    font-family: var(--font-body);
}

/* ------------------------------------------------------------
   Browser Frame (dark)
   ------------------------------------------------------------ */
.browser-frame-dark {
    background: #0f1a0d;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.55),
                0 0 0 1px rgba(255, 255, 255, 0.04);
}

.browser-bar-dark {
    height: 42px;
    background: #0a110a;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.browser-url-pill {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 4px 18px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    font-family: var(--font-body);
    letter-spacing: 0.01em;
}

.browser-frame-dark img,
.browser-frame-dark video {
    width: 100%;
    display: block;
    vertical-align: bottom;
}

.landing-primary-video {
    aspect-ratio: 16 / 9;
    background: #0f1a0d;
    object-fit: cover;
}

/* Caption-led demo loop below the hero. Kept separate from the primary demo so
   it can provide ambient product motion without competing with the hero CTA. */
.landing-motion-band {
    padding: 3rem 0;
    overflow: hidden;
    background: #111b0f;
}

.landing-motion-frame {
    max-width: 1080px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(166, 191, 139, 0.16);
    border-radius: 18px;
    box-shadow: 0 34px 80px -38px rgba(0, 0, 0, 0.9);
}

.landing-ambient-video,
.landing-ambient-poster {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    background: #0f1a0d;
}

.landing-ambient-poster {
    display: none;
}

/* ------------------------------------------------------------
   Image-rich course examples
   ------------------------------------------------------------ */
.course-example-section {
    background: #fff;
}

.example-truth-note {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(141, 163, 117, 0.28);
    border-radius: 14px;
    background: rgba(166, 191, 139, 0.08);
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.example-truth-note i {
    margin-top: 0.2rem;
    color: var(--sage-dark);
}

.course-example-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border-radius: 22px;
    background: var(--deep-forest);
    box-shadow: 0 28px 60px -34px rgba(26, 36, 22, 0.8);
}

.course-example-feature {
    min-height: 548px;
}

.course-example-card::after {
    content: '';
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 17, 10, 0.88) 100%);
    pointer-events: none;
}

.course-example-card img {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    display: block;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.course-example-card:hover img {
    transform: scale(1.025);
}

.course-example-card figcaption {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.75rem;
    color: white;
}

.course-example-card h3 {
    margin: 0;
    color: white;
    font-size: clamp(22px, 2.6vw, 34px);
}

.course-example-card p {
    margin: 0.4rem 0 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.course-example-kicker {
    display: block;
    margin-bottom: 0.55rem;
    color: #c8d8b8;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.course-example-stack {
    display: grid;
    gap: 1.5rem;
    height: 100%;
    grid-template-rows: 1fr 1fr;
}

.course-example-stack .course-example-card h3 {
    font-size: 24px;
}

.author-control-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.author-control-item {
    display: flex;
    gap: 0.9rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--warm-white);
}

.author-control-item i {
    margin-top: 0.2rem;
    color: var(--sage-dark);
}

.author-control-item strong,
.author-control-item span {
    display: block;
}

.author-control-item strong {
    color: var(--text-heading);
    font-size: 14px;
}

.author-control-item span {
    margin-top: 0.2rem;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}

.course-example-credit {
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 11px;
    text-align: right;
}

.course-example-credit a {
    color: inherit;
}

@media (max-width: 991.98px) {
    .course-example-feature {
        min-height: 460px;
    }

    .course-example-stack {
        height: auto;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: none;
    }

    .author-control-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .course-example-stack {
        grid-template-columns: 1fr;
    }

    .course-example-card {
        min-height: 260px;
        border-radius: 18px;
    }

    .course-example-card figcaption {
        padding: 1.35rem;
    }

    .course-example-credit {
        text-align: left;
    }
}

/* Demo video overlay controls */
.video-wrapper {
    position: relative;
}

.video-play-btn {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 13px;
    transition: background 0.2s;
    z-index: 2;
}

.video-play-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Demo video placeholder (before file exists) */
.demo-video-slot {
    min-height: 280px;
    background: rgba(166, 191, 139, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(166, 191, 139, 0.25);
    border-top: none;
    color: var(--text-dark-muted);
    font-size: 14px;
    font-family: var(--font-body);
    animation: pulse-border 3s ease-in-out infinite;
}

@keyframes pulse-border {
    0%, 100% { border-color: rgba(166, 191, 139, 0.2); }
    50%       { border-color: rgba(166, 191, 139, 0.45); }
}

/* ------------------------------------------------------------
   Phone Frame
   ------------------------------------------------------------ */
.phone-frame {
    background: #1a2416;
    border-radius: 36px;
    padding: 10px;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(255, 255, 255, 0.05);
    max-width: 260px;
    margin: 0 auto;
    position: relative;
}

.phone-notch {
    width: 72px;
    height: 18px;
    background: #0f1a0d;
    border-radius: 0 0 12px 12px;
    margin: 0 auto 6px;
}

.phone-frame img,
.phone-frame video {
    width: 100%;
    border-radius: 26px;
    display: block;
}

/* ------------------------------------------------------------
   Aha Moment / Workflow Steps
   ------------------------------------------------------------ */
.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    position: relative;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .workflow-steps {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

.workflow-step {
    text-align: center;
    padding: 0 1.5rem;
    position: relative;
}

.workflow-step::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -1px;
    width: 50%;
    height: 1px;
    background: var(--sage-green);
    opacity: 0.3;
}

.workflow-step:last-child::after { display: none; }

@media (max-width: 768px) {
    .workflow-step:nth-child(2)::after,
    .workflow-step:nth-child(4)::after { display: none; }
}

.step-icon {
    width: 40px;
    height: 40px;
    background: var(--sage-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--sage-green);
    font-size: 16px;
}

.step-number {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.workflow-step h6 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 0.4rem;
}

.workflow-step p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

/* ------------------------------------------------------------
   Feature / Trust Pillars
   ------------------------------------------------------------ */
.pillar {
    padding: 1rem 0;
}

.pillar-icon {
    width: 48px;
    height: 48px;
    background: var(--sage-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sage-green);
    font-size: 20px;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.pillar h5 {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-heading);
}

.pillar p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ------------------------------------------------------------
   Pricing Cards
   ------------------------------------------------------------ */
.pricing-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: box-shadow 0.2s;
}

.pricing-card:hover {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured {
    border-color: var(--sage-green);
    border-width: 2px;
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--sage-green);
    color: var(--deep-forest);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
    font-family: var(--font-body);
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-heading);
    line-height: 1;
}

.price-period {
    font-size: 15px;
    color: var(--text-muted);
    font-family: var(--font-body);
}

.price-alt {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-body);
    padding: 5px 0;
}

.feature-list li i {
    color: var(--sage-green);
    margin-top: 3px;
    flex-shrink: 0;
    font-size: 13px;
}

.enterprise-bar {
    background: var(--deep-forest);
    border-radius: 16px;
    padding: 2rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .enterprise-bar {
        flex-direction: column;
        text-align: center;
    }
}

/* ------------------------------------------------------------
   FAQ Accordion
   ------------------------------------------------------------ */
.accordion-item {
    border: none;
    background: transparent;
    margin-bottom: 0.75rem;
}

.accordion-button {
    background-color: var(--white);
    border-radius: 12px !important;
    border: 1px solid var(--border);
    font-weight: 600;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-heading);
    box-shadow: none;
    padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: var(--white);
    color: var(--text-heading);
    box-shadow: none;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-color: var(--border);
}

.accordion-button::after {
    filter: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238da375'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(166, 191, 139, 0.2);
    border-color: var(--sage-green);
}

.accordion-body {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-top: none;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    padding: 1.25rem 1.5rem;
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* ------------------------------------------------------------
   Animations
   ------------------------------------------------------------ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translate3d(0, 32px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}

.animate-fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.75s;
    animation-fill-mode: both;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Intersection observer scroll reveals */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
    background-color: var(--warm-brown);
}

.footer-intro {
    max-width: 27rem;
}

.site-footer h5, .site-footer h6 {
    color: var(--white);
}

.site-footer p, .site-footer li {
    color: rgba(255, 255, 255, 0.5);
}

.site-footer .footer-copy {
    color: rgba(255, 255, 255, 0.58);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer .footer-heading-link {
    color: var(--white);
    font-size: 0.98rem;
    letter-spacing: 0.01em;
}

.site-footer .footer-heading-link:hover {
    color: var(--sage-green);
}

.site-footer a:hover {
    color: var(--sage-green);
}

.site-footer .border-top {
    border-color: rgba(255, 255, 255, 0.08) !important;
}

.footer-links li {
    margin-bottom: 0.45rem;
}

.footer-bottom {
    align-items: center;
}

.footer-meta-links .list-inline-item:not(:last-child) {
    margin-right: 1rem;
}

/* ------------------------------------------------------------
   Utilities
   ------------------------------------------------------------ */
.text-sage { color: var(--sage-green); }
.bg-deep-forest { background-color: var(--deep-forest); }
.divider-sage {
    width: 40px;
    height: 3px;
    background: var(--sage-green);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

/* Learner screenshots strip */
.learner-screens {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.learner-screens-mobile {
    justify-items: center;
    align-items: end;
    gap: 1.5rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.learner-phone {
    width: 100%;
    max-width: 300px;
}

.learner-phone-primary {
    transform: rotate(-2deg) translateY(10px);
}

.learner-phone-secondary {
    transform: rotate(2deg) translateY(-8px);
    max-width: 280px;
}

.learner-phone-tertiary {
    transform: rotate(-1deg) translateY(14px);
    max-width: 270px;
}

@media (max-width: 576px) {
    .learner-screens { grid-template-columns: 1fr; }
    .learner-phone-primary,
    .learner-phone-secondary,
    .learner-phone-tertiary {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .landing-ambient-video {
        display: none;
    }

    .landing-ambient-poster {
        display: block;
    }

    .course-example-card img {
        transition: none;
    }
}

/* Section spacing */
.section-pad { padding: 6rem 0; }
.section-pad-sm { padding: 4rem 0; }

/* ------------------------------------------------------------
   Mobile Polish
   ------------------------------------------------------------ */
@media (max-width: 991.98px) {
    .navbar-glass {
        padding-top: 0.85rem;
        padding-bottom: 0.85rem;
    }

    .navbar-glass .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid rgba(26, 36, 22, 0.08);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 20px 40px -30px rgba(15, 23, 42, 0.45);
    }

    .navbar-glass .navbar-nav {
        margin-bottom: 0.75rem !important;
    }

    .navbar-glass .nav-link {
        margin: 0;
        padding: 0.7rem 0.1rem;
    }

    .landing-nav-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .landing-nav-actions .btn-link,
    .landing-nav-actions .btn-orange {
        justify-content: center;
        margin-right: 0 !important;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 16px;
    }

    /* Bootstrap's g-5 uses 3rem gutters, which pushes rows 12px beyond a
       390px viewport. Keep the generous vertical rhythm without horizontal
       page overflow on learner/educator phones. */
    .row.g-5 {
        --bs-gutter-x: 1.5rem;
    }

    .hero-section {
        padding-top: calc(var(--nav-height) + 3.4rem);
        padding-bottom: 4.5rem;
    }

    .section-pad {
        padding: 4.25rem 0;
    }

    .display-hero {
        font-size: clamp(36px, 11vw, 52px);
    }

    .section-headline {
        font-size: clamp(28px, 8vw, 38px);
    }

    .btn-orange,
    .btn-demo,
    .btn-demo-white {
        width: 100%;
        justify-content: center;
        padding: 13px 22px;
    }

    .browser-frame-dark {
        border-radius: 10px;
        box-shadow: 0 24px 50px -22px rgba(0, 0, 0, 0.45);
    }

    .browser-bar-dark {
        height: 38px;
    }

    .browser-url-pill {
        max-width: 70%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .workflow-step {
        padding: 0;
    }

    .workflow-step::after {
        display: none;
    }

    .pricing-card,
    .enterprise-bar {
        padding: 1.5rem;
    }

    .proof-bar {
        padding: 2.5rem 0;
    }

    .site-footer {
        padding-top: 2.5rem !important;
        padding-bottom: 2.25rem !important;
    }

    .site-footer .row > [class*="col-"] {
        margin-bottom: 1rem;
    }

    .footer-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-bottom {
        text-align: center;
        row-gap: 0.75rem;
    }
}
