﻿:root {
    --bg-page: #f4f7ff; /* soft blue/indigo-tinted white */
    --bg-slider: #020617;
    --bg-panel: #020617;
    --accent: #38bdf8;
    --accent-strong: #f97316;
    --text-main: #0f172a;
    --text-muted: #6b7280;
    --text-on-dark: #f9fafb;
    --shadow-a: rgba(56, 189, 248, 0.55);
    --shadow-b: rgba(168, 85, 247, 0.55);
    --shadow-c: rgba(45, 212, 191, 0.55);
    --header-height: 5.25rem; /* approximate top-nav height */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg-page);
    color: var(--text-main);
}

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.22) 0, transparent 38%), radial-gradient(circle at top right, rgba(129, 140, 248, 0.20) 0, transparent 42%), radial-gradient(circle at bottom right, rgba(192, 132, 252, 0.24) 0, transparent 42%), var(--bg-page);
}

/* Firefox scrollbar */
.tutorial-scroller {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #2563eb transparent; /* thumb | track (blue) */
}

    /* WebKit (Chrome, Edge, Safari) */
    .tutorial-scroller::-webkit-scrollbar {
        height: 8px;
    }

    .tutorial-scroller::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.06);
        border-radius: 999px;
        margin: 0 40px;
    }

    .tutorial-scroller::-webkit-scrollbar-thumb {
        background: linear-gradient( 90deg, #1d4ed8, /* deep blue */
        #2563eb, /* main box-shadow blue */
        #3b82f6 /* lighter edge */
        );
        border-radius: 999px;
        box-shadow: 0 0 8px rgba(37, 99, 235, 0.6);
    }

        .tutorial-scroller::-webkit-scrollbar-thumb:hover {
            background: linear-gradient( 90deg, #2563eb, #3b82f6, #60a5fa );
        }

/* Base pill banner styling */
.hero-inner .status-banner {
    display: inline-block; /* shrink to fit text */
    margin: 0 auto 1.5rem; /* center + space above slider */
    padding: 0.6rem 1.6rem;
    border-radius: 999px; /* pill shape */
    font-weight: 600;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(4px); /* subtle glassy effect */
}

/* Red “alert” style (current behavior) */
.hero-inner .status-banner-alert {
    background: rgba(220, 53, 69, 0.12);
    border: 1px solid rgba(220, 53, 69, 0.45);
    color: #dc3545;
}

/* Green “notice” style */
.hero-inner .status-banner-notice {
    background: rgba(34, 197, 94, 0.12); /* green-ish */
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #22c55e;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.75rem;
    border-bottom: 1px solid #cbd5e1;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10), /* main soft shadow */
    0 1px 0 rgba(148, 163, 184, 0.35); /* crisp edge right under bar */
    background: #ffffff; /* solid white header */
    position: relative;
    z-index: 10;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .nav-logo img {
        max-width: 100%;
        height: auto;
        display: block;
    }

/* datalliance block */

.nav-da-logo {
    height: 40px; /* match Kwad logo height */
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    overflow: visible;
}

    .nav-da-logo img {
        height: 24px; /* a bit smaller so it sits nicely */
        width: auto;
        display: block;
    }

/* make the whole badge a vertical stack: text over logo */
.nav-da-logo-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center; /* center the whole badge vertically */
}

.nav-right-inner {
    display: flex;
    flex-direction: column;
    align-items: center; /* center text over logo horizontally */
    gap: 0.00rem; /* tighter spacing between text and logo */
}

.nav-da-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center; /* centered above logo */
}

.nav-title {
    font-weight: 600;
    font-size: 1rem;
}

.nav-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.nav-button {
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}

/* Base “primary” look – gradient pill just like the Licenses button */
.nav-button,
.nav-button-primary,
.nav-button-outline,
.nav-button-ghost {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: #0b1120;
    border-color: transparent;
}

    .nav-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    }

/* MAIN HERO / SLIDER AREA */

.hero-shell {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem 2.5rem 1rem;
    position: relative;
    overflow: hidden;
}

.hero-inner {
    width: 100%;
    max-width: 1100px;
}

/* Wrap slider + footer in one card */
.hero-card {
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #cbd5e1; /* same tone as header border */
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10), 0 1px 0 rgba(148, 163, 184, 0.35); /* match header */
}

.hero-slider {
    position: relative;
    background: radial-gradient(circle at top left, #111827 0, #020617 50%, #000 100%);
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    border: none; /* no internal border */
    min-height: 420px;
    box-shadow: none;
}

.hero-footer {
    background: #ffffff;
    padding: 2px; /* 2px gap between buttons and footer edge */
    border-radius: 0 0 24px 24px;
    border-top: 1px solid #cbd5e1;
}

.hero-footer-buttons {
    display: flex;
    gap: 2px; /* 2px between buttons */
    flex-wrap: nowrap; /* keep in one row on wider screens */
}

.hero-footer .nav-button {
    flex: 1;
    background: #ffffff;
    color: #0f172a;
    border-radius: 0;
    border: 1px solid #cbd5e1;
    box-shadow: inset 0 0 10px rgba(56, 189, 248, 0.55); /* more glow */
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

/* Optional: slightly stronger label for the primary one */
.hero-footer .nav-button-primary {
    font-weight: 600;
}

/* Hover state: subtle grey background */
.hero-footer .nav-button:hover {
    background: #f8fafc;
    box-shadow: inset 0 0 14px rgba(56, 189, 248, 0.75), /* stronger inner */
    0 0 4px rgba(15, 23, 42, 0.12); /* tiny outer lift */
}

.hero-footer .nav-button:first-child {
    border-radius: 0 0 0 20px; /* only bottom-left rounded */
}

.hero-footer .nav-button:last-child {
    border-radius: 0 0 20px 0; /* only bottom-right rounded */
}

.slider-viewport {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    transition: transform 600ms ease;
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    position: relative;
}

    .slide img {
        display: block;
        width: 100%;
        height: 420px;
        object-fit: cover;
    }

.slide-caption {
    position: absolute;
    left: 1.5rem;
    bottom: 1.5rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.8);
    color: #e5e7eb;
    font-size: 0.8rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
}

.slider-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0.75rem;
    display: flex;
    gap: 0.35rem;
    z-index: 4;
}

.slider-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: 1px solid rgba(248, 250, 252, 0.4);
    background: rgba(248, 250, 252, 0.15); /* faint fill */
    opacity: 0.5; /* more transparent */
}

    .slider-dot.active {
        background: #f9fafb;
        border-color: #f9fafb;
        opacity: 1; /* fully opaque when active */
    }

/* BRAND LOCKUP INSIDE PURCHASE PANEL */

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
    transition: transform 280ms ease, margin 280ms ease;
}

.brand-logo-large {
    /* Let the logo fill more of the left column, no separate box */
    width: 100%;
    max-width: 260px;
    overflow: visible;
    background: transparent;
    filter: none;
    display: block;
}

    .brand-logo-large img {
        width: 100%;
        height: auto;
        display: block;
    }

.brand-text-block {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.brand-title {
    font-size: 1rem;
    color: #e5e7eb;
    font-weight: 600;
}

.brand-tagline {
    font-size: 0.8rem;
    color: #9ca3af;
    max-width: 260px;
}

/* When purchase panel is closed (footer mode), shrink logo + tuck text */
body:not(.purchase-open) .brand-logo-large {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    filter: drop-shadow(0 6px 18px rgba(15, 23, 42, 0.8));
}

body:not(.purchase-open) .brand-tagline {
    max-width: 220px;
    font-size: 0.78rem;
}

/* PANELS */

.purchase-panel,
.tutorial-panel {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1100px;
    background: radial-gradient(circle at top left, rgba(56,189,248,0.3), transparent 55%), radial-gradient(circle at bottom right, rgba(236,72,153,0.35), transparent 55%), #020617;
    color: var(--text-on-dark);
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    z-index: 20;
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.45), 0 0 8px var(--shadow-a), 0 0 16px var(--shadow-b), 0 0 24px var(--shadow-c);
    overflow: hidden;
}

.purchase-panel {
    position: fixed;
    left: 50%;
    bottom: 1rem; /* same “offset” idea as tutorials panel */
    transform: translateX(-50%) translateY(220%); /* way off-screen; shadow hidden too */
    transition: transform 450ms ease-out;
    z-index: 40;
    /* other existing styles stay the same */
}

    .purchase-panel.open {
        transform: translateX(-50%) translateY(0); /* visible, 1rem above bottom */
    }

.tutorial-panel {
    position: fixed;
    left: 50%;
    top: calc(var(--header-height) + 1rem); /* 1rem below header when visible */
    transform: translateX(-50%) translateY(-260%); /* way off-screen above */
    transition: transform 450ms ease-out;
    /* ...other styles... */
}

    .tutorial-panel.open {
        transform: translateX(-50%) translateY(0); /* drops into view below header */
    }

.panel-inner {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
}

@media (max-width: 900px) {
    .panel-inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

.panel-left {
    padding: 1.6rem;
    border-right: 1px solid rgba(148, 163, 184, 0.25);
}

@media (max-width: 900px) {
    .panel-left {
        border-right: none;
        border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    }
}

.panel-right {
    padding: 1.6rem 1.9rem;
}

.panel-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
}

    .panel-close:hover {
        background: rgba(30, 64, 175, 0.95);
    }

/* PURCHASE PANEL TYPOGRAPHY / FORM */

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.7rem;
    color: var(--accent-strong);
    margin-bottom: 0.35rem;
}

.hero-title {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-bottom: 0.2rem;
}

.hero-subtitle {
    font-size: 0.92rem;
    color: #9ca3af;
    margin-bottom: 1.4rem;
}

.hero-actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

    .hero-actions .nav-button {
        min-width: 110px;
        text-align: center;
    }

.metrics-strip {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
}

.metric-pill {
    flex: 1;
    border-radius: 999px;
    padding: 0.45rem 0.7rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    text-align: center; /* centers inline text within child blocks */
    align-items: center; /* centers the child elements in the pill */
}

.metric-label {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.68rem;
    color: #9ca3af;
}

.metric-value {
    font-size: 0.85rem;
    color: var(--accent);
}

.metric-label,
.metric-value {
    width: 100%;
    text-align: center;
    display: block;
}

.left-footer {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 1.3rem;
}

    .left-footer a {
        color: var(--accent);
        text-decoration: none;
    }

        .left-footer a:hover {
            text-decoration: underline;
        }

.plan-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.2rem;
}

@media (max-width: 900px) {
    .plan-row {
        grid-template-columns: minmax(0,1fr);
    }
}

.plan-card {
    position: relative;
    padding: 0.9rem 0.9rem 1.1rem 0.9rem;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.9);
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

    .plan-card:hover {
        transform: translateY(-2px);
        background: #111827;
    }

    .plan-card.selected {
        border-color: var(--accent);
        box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.65);
        background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.9));
    }

.plan-name {
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.plan-price {
    font-size: 0.96rem;
    margin-bottom: 0.2rem;
}

    .plan-price span {
        font-size: 0.72rem;
        color: #9ca3af;
    }

.plan-note {
    font-size: 0.76rem;
    color: #9ca3af;
}

.badge-pill {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    font-size: 0.7rem;
    padding: 0.12rem 0.5rem;
    border-radius: 999px;
    background: rgba(56,189,248,0.18);
    color: var(--accent);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 0.8rem 0.9rem;
    margin-bottom: 1rem;
}

@media (max-width: 700px) {
    .form-grid {
        grid-template-columns: minmax(0,1fr);
    }
}

.full {
    grid-column: 1 / -1;
}

.name-row {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,0.7fr) minmax(0,1.1fr);
    gap: 0.6rem;
}

.email-phone-row {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.3fr); /* email | phone */
    gap: 0.6rem;
}

@media (max-width: 700px) {
    .name-row,
    .email-phone-row {
        grid-template-columns: minmax(0,1fr);
    }
}

.phone-row-inner {
    display: grid;
    grid-template-columns: auto minmax(0,1fr);
    gap: 0.35rem;
    align-items: end;
}

.country-code-select {
    padding: 0.55rem 0.65rem; /* match text/email inputs */
    border-radius: 10px; /* same radius as inputs */
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 0.86rem; /* match input font size */
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.95);
    min-width: 90px;
    box-sizing: border-box;
}

.phone-input {
    width: 100%;
}

label {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.2rem;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.95);
    color: #f9fafb;
    font-size: 0.86rem;
    outline: none;
    transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

    input[type="text"]:focus,
    input[type="email"]:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.55);
        background: rgba(15, 23, 42, 1);
    }

.country-code-pill {
    padding: 0.45rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 0.8rem;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.9);
    display: inline-flex;
    align-items: center;
    min-width: 52px;
}

.actions-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (max-width: 700px) {
    .actions-row {
        flex-direction: column-reverse;
        align-items: stretch;
    }
}

.button-primary,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.6rem 1.4rem;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease, color 120ms ease;
    white-space: nowrap;
}

.button-primary {
    background: linear-gradient(135deg, #38bdf8, #6366f1);
    color: #0b1120;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.76);
}

    .button-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 14px 40px rgba(37, 99, 235, 0.9);
    }

.button-secondary {
    background: rgba(15, 23, 42, 0.9);
    color: #f9fafb;
    border: 1px solid rgba(148, 163, 184, 0.8);
}

    .button-secondary:hover {
        background: rgba(15, 23, 42, 1);
        transform: translateY(-1px);
    }

.current-plan-label {
    text-align: right;
    font-size: 0.8rem;
    color: #9ca3af;
}

.small-pill {
    display: inline-block;
    padding: 0.12rem 0.7rem;
    border-radius: 999px;
    margin-left: 0.4rem;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 0.78rem;
    color: var(--accent);
}

.legal {
    margin-top: 1rem;
    font-size: 0.74rem;
    color: #9ca3af;
}

    .legal a {
        color: var(--accent);
        text-decoration: none;
    }

        .legal a:hover {
            text-decoration: underline;
        }

.alert {
    margin-bottom: 0.8rem;
    border-radius: 12px;
    padding: 0.55rem 0.8rem;
    font-size: 0.8rem;
}

.alert-error {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #fecaca;
}

.alert-success {
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.45);
    color: #bbf7d0;
}

/* TUTORIAL PANEL CONTENT */

.tutorial-inner {
    padding: 2.2rem 2rem 1.8rem 2rem;
}

.tutorial-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tutorial-subtitle {
    font-size: 0.9rem;
    color: #cbd5f5;
    margin-bottom: 1.3rem;
}

.tutorial-scroller {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.tutorial-card {
    min-width: 260px;
    max-width: 320px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 0.65rem 0.65rem 0.9rem 0.65rem;
    flex: 0 0 auto;
}

.tutorial-card-title {
    font-size: 0.85rem;
    margin-bottom: 0.45rem;
}

.tutorial-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
}

    .tutorial-video-wrap iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

.support-panel .support-inner {
    max-width: 640px;
    margin: 0 auto;
}

.support-form-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.support-row {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

    .support-row label {
        font-size: 0.85rem;
        font-weight: 600;
    }

.support-input,
.support-textarea,
.support-file {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.15);
    font-size: 0.9rem;
}

.support-textarea {
    resize: vertical;
    min-height: 120px;
}

.support-actions {
    margin-top: 0.5rem;
}

/* === MOBILE LAYOUT & BEHAVIOR === */

/* Phones (≤ 640px): nav, hero, footer/buttons, basic layout tweaks */
@media (max-width: 640px) {

    /* Stack nav */
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 0.6rem 1rem;
    }

    .nav-left {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-right {
        width: 100%;
        justify-content: space-between;
    }

    .nav-title {
        font-size: 0.95rem;
    }

    .nav-sub {
        font-size: 0.75rem;
    }

    /* Hero card / shell */
    .hero-shell {
        padding: 1.0rem 0.75rem 1.75rem 0.75rem;
    }

    .hero-card {
        border-radius: 24px;
    }

    .slide-caption {
        left: 0.75rem;
        right: auto; /* allow it to auto-size instead of stretching full width */
        bottom: 0.75rem;
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
        max-width: calc(100% - 1.5rem); /* keep some margin from right edge */
        display: inline-flex; /* shrink to fit content */
        align-items: center;
        white-space: normal; /* allow wrapping if the title is long */
        line-height: 1.3;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .hero-subtitle {
        font-size: 0.85rem;
    }

    /* Footer buttons: wrap, full-width on small screens */
    @media (max-width: 640px) {

        /* Hero footer container under the slider */
        .hero-footer {
            padding: 2px;
            /* Slightly more radius on bottom-left (+2), slightly less on bottom-right (−1) */
            border-radius: 0 0 28px 28px;
            overflow: hidden; /* clip any button corners/shadows */
        }

        .hero-footer-buttons {
            flex-wrap: wrap;
        }

        /* Make ALL footer buttons flat so no individual corner protrudes */
        .hero-footer .nav-button,
        .hero-footer .nav-button:first-child,
        .hero-footer .nav-button:last-child {
            flex: 1 1 50%;
            font-size: 0.8rem;
            padding: 0.5rem 0.4rem;
            border-radius: 0; /* kills the leftover bottom-left radius on the first button */
        }
    }

    /* Panels: single column inside */
    .panel-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .panel-left,
    .panel-right {
        padding: 1.1rem 1.2rem;
    }

    /* Brand lockup tweaks */
    .brand-lockup {
        flex-direction: row;
        align-items: center;
        gap: 0.6rem;
    }

    body:not(.purchase-open) .brand-logo-large {
        width: 64px;
        height: 64px;
    }

    .brand-title {
        font-size: 0.9rem;
    }

    .brand-tagline {
        font-size: 0.76rem;
    }

    /* Metrics: stack */
    .metrics-strip {
        flex-direction: column;
    }

    .metric-pill {
        width: 100%;
    }

    /* Primary/secondary buttons: full width */
    .button-primary,
    .button-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* Small screens / short viewports (≤ 700px): panels + slideshow behavior */
@media (max-width: 700px) {

    /* Keep panels fully usable: still controlled by .open/.close transforms */
    .purchase-panel,
    .tutorial-panel,
    .support-panel {
        top: 0.75rem; /* visible from the top */
        bottom: 0.75rem; /* and a bit of space at bottom */
        max-height: none; /* height comes from top/bottom */
        overflow-y: auto; /* scroll contents if they’re tall */
        -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
    }

    .panel-left,
    .panel-right {
        padding-bottom: 1.2rem; /* a bit tighter so less chance of clipping */
    }

    /* Fix black bar under slideshow: let height follow the image */
    .hero-slider {
        min-height: 0; /* don’t force extra height on small screens */
    }

    .slider-viewport {
        height: auto; /* follow content */
    }

    .slide img {
        width: 100%;
        height: auto; /* keep aspect ratio and avoid extra space */
        display: block;
    }
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    align-items: center; /* was flex-end */
    gap: 0.75rem; /* default gap */
}

/* Facebook "Find us on" banner */
.nav-fb-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-top: 12px; /* small nudge down for desktop */
}

    .nav-fb-link img {
        height: 24px;
        width: auto;
        display: block;
    }

    .nav-fb-link:hover img {
        transform: translateY(-1px);
        transition: transform 120ms ease;
    }

/* Desktop / larger screens: a bit more space between FB and logo */
@media (min-width: 768px) {
    .nav-right {
        gap: 1.25rem;
    }
}

/* Phones: keep header tight and balanced */
@media (max-width: 640px) {
    .nav-right {
        width: 100%;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-fb-link {
        margin-top: 12px; /* keep the lower position you liked on mobile */
    }
}