/*
 * Marketing / public landing styles for Virtual Try-On.
 * Shared by templates/marketing/landing.html and pricing.html.
 * Styled for BOTH themes via [data-theme] — light is the primary look.
 * Uses only font-awesome (loaded in public_base.html); no external assets.
 */

/* ============================ Tokens ============================ */
/* Design tokens (colours, blobs, cards, accents) live in tokens.css — the
   single source of truth for the project-wide indigo theme (#6366f1). */
@import url("tokens.css");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--app-font-family);
}

html {
    scroll-behavior: smooth;
}

/* ---- Scroll-reveal (smooth entrance animations) ---- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: var(--reveal-delay, 0s);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    transition: background-color 0.5s ease;
}

/* ======================= Ambient background ======================= */
.ambient-bg {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    filter: blur(120px);
}

.blob {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.6;
    transition: background 0.8s ease;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--blob-1);
}

.blob-2 {
    bottom: -20%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--blob-2);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 40vw;
    height: 40vw;
    background: var(--blob-3);
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(10vw, -10vh) scale(1.1);
    }
}

/* ============================ Navbar ============================ */
.nav-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1.25rem, 5vw, 4rem);
    background: var(--toggle-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--card-border);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-brand i {
    color: var(--accent-start);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.75rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.theme-toggle {
    background: var(--toggle-bg);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    padding: 0;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: transform 0.2s ease, background 0.2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
}

.theme-toggle .control-label,
.theme-toggle .theme-label {
    display: none;
}

/* ============================ Buttons ============================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.78rem 1.7rem;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #fff;
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 12px 24px -10px var(--accent-start);
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 18px 32px -12px var(--accent-start);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.78rem 1.7rem;
    background: var(--toggle-bg);
    color: var(--text-primary);
    font-weight: 700;
    border-radius: 100px;
    text-decoration: none;
    border: 1px solid var(--card-border);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.btn-ghost:hover {
    transform: translateY(-2px);
}

/* ======================= Section scaffolding ======================= */
section {
    padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 5vw, 4rem);
}

.section-inner {
    max-width: 1120px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent-start);
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.15;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.section-head .section-subtitle {
    margin: 0 auto;
}

/* ============================ Hero ============================ */
/*
 * Every other section on the page wraps its content in .section-inner
 * (max-width: 1120px, centered) so it scales consistently at all screen
 * sizes. .hero was the one exception — grid applied straight to the bare
 * <section>, uncapped — so on wide viewports it (and hero-visual inside it)
 * kept growing past what the rest of the page looks like. .hero-inner gives
 * it the same contained, responsive treatment as everything else.
 */
.hero {
    padding-top: clamp(3rem, 9vw, 5.5rem);
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-soft);
    color: var(--accent-start);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.hero-title {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
}

.hero-title span {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 540px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-trust {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.hero-trust i {
    color: var(--ok);
    margin-right: 0.35rem;
}

.hero-visual {
    /*
     * Fluid width — scales with the column but stays within a sane range so
     * the card is never a tiny logo-sized speck on wide screens nor an
     * oversized block on narrow ones. Height then follows automatically from
     * that width via .tryon-demo's aspect-ratio below, so the two stay
     * proportional to each other. Uses an explicit width (not
     * `zoom`/`transform: scale()`) on purpose:
     *  - .hero-visual has no width of its own — it just grid-stretches to
     *    fill its column. `zoom` scales an element's own rendering, but a
     *    stretch-filled `width: auto` box resolves against the containing
     *    block *outside* the zoomed subtree, which cancels the shrink right
     *    back out — the card would render at full size again.
     *  - The scroll-reveal system above animates `transform`
     *    (translateY → none); `.reveal.is-visible { transform: none; }`
     *    would silently overwrite a `transform: scale()` set here once the
     *    entrance animation finishes, snapping the card back to full size.
     * A plain width sidesteps both problems.
     */
    width: clamp(220px, 80%, 400px);
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 32px;
    padding: 1.5rem;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

/* ---- Animated try-on demo (cloth → photo → result) ---- */
.tryon-demo {
    aspect-ratio: 4 / 5;
    border-radius: 24px;
    background: linear-gradient(160deg, var(--accent-start), var(--accent-end));
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tryon-screen {
    position: relative;
    flex: 1;
}

.tryon-phase {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    opacity: 0;
    transform: translateY(14px) scale(0.98);
    animation: tryonCycle 9s cubic-bezier(0.4, 0, 0.2, 1) infinite both;
}

.tryon-phase.phase-1 {
    animation-delay: 0s;
}

.tryon-phase.phase-2 {
    animation-delay: 3s;
}

.tryon-phase.phase-3 {
    animation-delay: 6s;
}

@keyframes tryonCycle {
    0% {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

    5% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    30% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    36% {
        opacity: 0;
        transform: translateY(-14px) scale(0.98);
    }

    100% {
        opacity: 0;
        transform: translateY(-14px) scale(0.98);
    }
}

.tryon-phase-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.45rem 1rem;
    border-radius: 100px;
    backdrop-filter: blur(6px);
    white-space: nowrap;
}

.tryon-cloth-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    width: 78%;
}

.cloth-item {
    aspect-ratio: 1;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.28);
    border: 2px solid transparent;
    position: relative;
}

.cloth-item::after {
    content: "\f553";
    /* fa-shirt */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.6rem;
}

.cloth-item.is-picked {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.45);
    animation: clothPick 9s ease-in-out infinite;
}

@keyframes clothPick {

    0%,
    8% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }

    14% {
        transform: scale(1.08);
        box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.35);
    }

    26%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.tryon-photo,
.tryon-result {
    width: 58%;
    aspect-ratio: 3 / 4;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    font-size: 3rem;
    position: relative;
    overflow: hidden;
}

.tryon-result {
    background: rgba(255, 255, 255, 0.9);
    color: var(--accent-start);
}

.tryon-scan {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0));
    animation: scanMove 3s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes scanMove {

    0%,
    100% {
        transform: translateY(-40%);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        transform: translateY(230%);
        opacity: 1;
    }

    90% {
        opacity: 0;
    }
}

.tryon-result-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #fff;
    color: var(--accent-start);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.tryon-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.25rem;
}

.tryon-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    animation: dotPulse 9s linear infinite;
}

.tryon-dots span:nth-child(1) {
    animation-delay: 0s;
}

.tryon-dots span:nth-child(2) {
    animation-delay: 3s;
}

.tryon-dots span:nth-child(3) {
    animation-delay: 6s;
}

@keyframes dotPulse {

    0%,
    3% {
        background: rgba(255, 255, 255, 0.4);
        width: 10px;
    }

    6%,
    30% {
        background: #fff;
        width: 24px;
        border-radius: 100px;
    }

    34%,
    100% {
        background: rgba(255, 255, 255, 0.4);
        width: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .tryon-phase,
    .cloth-item.is-picked,
    .tryon-scan,
    .tryon-dots span {
        animation: none;
    }

    .tryon-phase.phase-3 {
        opacity: 1;
        transform: none;
    }
}

.hero-visual-caption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 600;
    margin-top: 1.2rem;
    justify-content: center;
    text-align: center;
}

.hero-visual-caption i {
    color: var(--accent-start);
}

/* ========================= Marquee (carousel) ========================= */
.marquee-section {
    padding: 2.5rem clamp(1.25rem, 5vw, 4rem);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
    background: var(--section-bg);
}

.marquee-label {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-secondary);
    margin-bottom: 1.4rem;
}

.marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
    display: flex;
    gap: 1rem;
    width: max-content;
    animation: marquee-scroll 16s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-25%);
    }
}

.marquee-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem 1.3rem;
    border-radius: 100px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
}

.marquee-chip i {
    color: var(--accent-start);
}

/* ========================= Value props ========================= */
.valueprop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.valueprop {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.valueprop-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent-start);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.valueprop span {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* ======================= Highlights (3-col) ======================= */
.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.highlight-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
}

.highlight-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.1rem;
}

.highlight-card h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.highlight-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========================= How it works ========================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    counter-reset: step;
}

.step-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.step-number {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.9rem;
    display: block;
}

.step-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ========================= Use cases (tabs) ========================= */
.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.6rem 1.3rem;
    border-radius: 100px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.is-active {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #fff;
    border-color: transparent;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}

.usecase-card {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 2rem;
    align-items: center;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.usecase-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.7rem;
}

.usecase-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.usecase-metrics {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.usecase-metric {
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    background: var(--section-bg);
}

.usecase-metric strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent-start);
}

.usecase-metric span {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

/* ========================= Comparison ========================= */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.compare-col {
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 2rem;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.compare-col.is-ours {
    border-color: var(--accent-start);
    box-shadow: 0 24px 48px -18px var(--accent-start);
}

.compare-col h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compare-col.is-legacy h3 {
    color: var(--text-secondary);
}

.compare-col.is-ours h3 {
    color: var(--accent-start);
}

.compare-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.compare-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.45;
}

.compare-col.is-legacy li i {
    color: var(--danger);
    margin-top: 0.2rem;
}

.compare-col.is-ours li i {
    color: var(--ok);
    margin-top: 0.2rem;
}

.compare-col.is-ours li {
    color: var(--text-primary);
}

/* ========================= Feature grid (6) ========================= */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.75rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--accent-soft);
    color: var(--accent-start);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* ============================ Pricing ============================ */
/* Weekly / Monthly / Yearly toggle — shared with the onboarding page. */
.cycle-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 0 auto 2.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 100px;
    padding: 0.3rem;
    width: max-content;
    max-width: 100%;
    flex-wrap: wrap;
    backdrop-filter: blur(10px);
}

.cycle-toggle button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0.55rem 1.4rem;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.cycle-toggle button.is-active {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #fff;
}

/* Yearly's resting state gets its own soft-lavender pill so the "(Save 20%)"
   callout stands out among the plain Weekly/Monthly buttons — one unified
   pill and text color, not a separate colored sub-badge. */
.cycle-toggle button[data-cycle-btn="yearly"]:not(.is-active) {
    background: var(--accent-soft);
    color: var(--text-primary);
}

.cycle-toggle .save-text {
    white-space: nowrap;
}

.plan-card[data-hidden] {
    display: none;
}

.plan-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin: -0.7rem 0 1.1rem;
    line-height: 1.45;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 300px));
    gap: 1.5rem;
    justify-content: start;
    align-items: stretch;
}

.plan-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: clamp(1.1rem, 2.5vw, 1.5rem);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-soft);
    position: relative;
    max-width: 320px;
    width: 100%;
}


.plan-card.is-current {
    border: 2px solid #10b981 !important;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.22) !important;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, var(--card-bg)) !important;
}

.plan-card.is-recommended,
.plan-card.is-popular,
.plan-card.is-featured,
.plan-card.is-trial {
    border: 2px solid var(--plan-color-primary, #6366f1) !important;
    box-shadow: 0 0 24px rgba(var(--plan-color-primary-rgb, 99, 102, 241), 0.20) !important;
    background: linear-gradient(180deg, rgba(var(--plan-color-primary-rgb, 99, 102, 241), 0.04) 0%, var(--card-bg)) !important;
}

.plan-card.is-trial.is-used {
    border: 2px solid #ef4444 !important;
    box-shadow: 0 0 24px rgba(239, 68, 68, 0.2) !important;
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.05) 0%, var(--card-bg)) !important;
}

/* Plan-card CTA buttons get a clear color change on hover (not just the
   subtle lift every other .btn-ghost use on this page gets) so choosing
   between plans feels responsive. */
.plan-card .btn-ghost,
.plan-card .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: auto;
    transition: transform 0.3s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.plan-card .btn-ghost:hover {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #fff;
    border-color: transparent;
}

.plan-badge {
    position: absolute;
    top: -0.72rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--plan-color-primary, #6366f1), var(--plan-color-secondary, #4f46e5));
    color: #fff;
    font-size: 0.66rem; /* slightly smaller to fit better */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem; /* tighter padding to avoid box overflow */
    border-radius: 100px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
}

.plan-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    transition: color 0.2s ease;
}

.plan-card.is-recommended .plan-name,
.plan-card.is-popular .plan-name,
.plan-card.is-featured .plan-name,
.plan-card.is-trial .plan-name {
    color: var(--plan-color-primary, var(--text-primary));
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 0.2rem 0.35rem;
    margin-bottom: 1.4rem;
    flex-wrap: wrap;
    width: 100%;
    white-space: normal;
}

.plan-price .amount {
    font-size: clamp(1.45rem, 4vw, 1.75rem);
    font-weight: 900;
    color: var(--text-primary);
}

.plan-price .cycle {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-bottom: 1.6rem;
    flex: 1;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.plan-features li i {
    color: var(--accent-start);
    margin-top: 0.2rem;
}

.pricing-note {
    text-align: center;
    margin-top: 1.75rem;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
}

/* ========================= Testimonials ========================= */
/* Auto-scrolling marquee that loops through every published review. */
.testimonial-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.testimonial-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    padding: 0.5rem clamp(1.25rem, 5vw, 4rem);
    animation: testimonial-scroll 24s linear infinite;
}

.testimonial-marquee:hover .testimonial-track {
    animation-play-state: paused;
}

@keyframes testimonial-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-25%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .testimonial-track {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
        width: auto;
    }
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.9rem;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 340px;
    flex: 0 0 auto;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.testimonial-card p {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.6;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex: 0 0 auto;
}

.testimonial-author strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 0.82rem;
}

/* ============================== FAQ ============================== */
.faq-list {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.faq-item {
    border: 1px solid var(--card-border);
    border-radius: 16px;
    background: var(--card-bg);
    overflow: hidden;
}

.faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    padding: 1.15rem 1.35rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
}

.faq-q i {
    color: var(--accent-start);
    transition: transform 0.25s ease;
    flex: 0 0 auto;
}

.faq-item.is-open .faq-q i {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.35rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item.is-open .faq-a {
    max-height: 320px;
    padding: 0 1.35rem 1.25rem;
}

/* =========================== CTA band =========================== */
.cta-band {
    padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 5vw, 4rem);
}

.cta-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    border-radius: 30px;
    padding: clamp(2.5rem, 6vw, 4rem) 2rem;
    color: #fff;
    box-shadow: 0 30px 60px -20px var(--accent-start);
}

.cta-inner h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    margin-bottom: 0.75rem;
}

.cta-inner p {
    font-size: 1.1rem;
    opacity: 0.92;
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.cta-inner .btn-primary {
    background: #fff;
    color: var(--accent-start);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.3);
}

.cta-inner .btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-note {
    font-size: 0.85rem;
    opacity: 0.85;
}

.cta-note i {
    margin-right: 0.35rem;
}

/* ============================ Footer ============================ */
.site-footer {
    border-top: 1px solid var(--card-border);
    background: var(--section-bg);
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 5vw, 4rem) 2rem;
}

.footer-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-about {
    max-width: 340px;
}

.footer-about .nav-brand {
    margin-bottom: 0.9rem;
}

.footer-about p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.1rem;
}

.footer-social {
    display: flex;
    gap: 0.6rem;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
    color: var(--accent-start);
    transform: translateY(-2px);
}

.footer-col h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.7rem;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: 1120px;
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--card-border);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

/* ============================ Pricing page header ============================ */
.page-header {
    text-align: center;
    padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 4rem) 1rem;
}

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ============================ Responsive ============================ */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    .usecase-card {
        grid-template-columns: 1fr;
    }

    .compare-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-about {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-actions .btn-ghost {
        display: none;
    }
}

/* How It Works Embedded Video Showcase Layout */
.how-it-works-showcase {
    display: grid;
    grid-template-columns: 0.9fr 1.3fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 1rem;
}

.showcase-video-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-content-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Soft atmospheric light glow behind phone */
.video-ambient-glow {
    position: absolute;
    width: 280px;
    height: 460px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.25) 0%, rgba(236, 72, 153, 0.15) 50%, transparent 80%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

/* Custom premium phone mockup frame for YouTube Shorts aspect ratio */
.phone-mockup-frame {
    position: relative;
    width: 100%;
    max-width: 265px;
    aspect-ratio: 9 / 16;
    background: #090d16;
    border: 11px solid #1e293b;
    border-radius: 40px;
    box-shadow: 
        0 25px 60px -15px rgba(0, 0, 0, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.05),
        inset 0 0 12px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    z-index: 2;
}

html[data-theme="dark"] .phone-mockup-frame {
    border-color: #0f172a;
    box-shadow: 
        0 25px 60px -15px rgba(0, 0, 0, 0.8),
        0 0 0 2px rgba(255, 255, 255, 0.08),
        inset 0 0 12px rgba(0, 0, 0, 0.9);
}

/* Smartphone pill-shaped dynamic island camera notch */
.phone-camera-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 75px;
    height: 18px;
    background: #000000;
    border-radius: 20px;
    z-index: 10;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.1);
}

.phone-screen-container {
    width: 100%;
    height: 100%;
    position: relative;
    background: #000;
}

.phone-screen-container iframe {
    position: absolute;
    top: -14%;
    left: -7%;
    width: 114%;
    height: 128%;
    border: none;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.vertical-steps-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}

.vertical-step-card {
    display: flex;
    gap: 1.2rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 1.1rem 1.4rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    cursor: default;
}

.vertical-step-card:hover {
    transform: translateY(-3px) scale(1.01);
    border-color: var(--accent-start);
    box-shadow: 
        0 20px 30px -10px rgba(99, 102, 241, 0.12),
        0 0 0 1px rgba(99, 102, 241, 0.1) inset;
}

.vertical-step-number {
    font-size: 1.8rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    flex-shrink: 0;
}

.vertical-step-info {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.vertical-step-info h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.vertical-step-info p {
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.45;
    margin: 0;
}

@media (max-width: 900px) {
    .how-it-works-showcase {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 550px;
    }
    .showcase-video-wrapper {
        order: 2; /* Pushes video below vertical steps on tablets/mobiles */
    }
}

/* Video Play Overlay inside mockup */
.video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    border-radius: 28px;
}

.phone-screen-container:hover .video-play-overlay {
    background: rgba(15, 23, 42, 0.25);
    backdrop-filter: blur(0px);
}

.video-play-btn {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--accent-start);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.35),
        0 0 0 0 rgba(99, 102, 241, 0.4);
    animation: playBtnPulse 2s infinite;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.phone-screen-container:hover .video-play-btn {
    transform: scale(1.1);
    background: #ffffff;
}

.video-play-label {
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

@keyframes playBtnPulse {
    0% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(99, 102, 241, 0.5);
    }
    70% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 0 12px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

/* Custom iOS-style media player HUD */
.ios-media-controller {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 30px;
    padding: 6px 14px;
    display: flex;
    gap: 12px;
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
}

.phone-screen-container:hover .ios-media-controller {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.ios-ctrl-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.ios-ctrl-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: scale(1.1);
}

.ios-ctrl-btn.active {
    color: #818cf8;
    background: rgba(255, 255, 255, 0.15);
}

/* Custom iOS-style media title bar overlay */
.ios-media-title-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 45px 20px 20px 20px; /* starts under the notch, padded top */
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 25;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
}

.phone-screen-container:hover .ios-media-title-bar {
    opacity: 1;
    pointer-events: auto;
}

.ios-title-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #4f46e5;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.ios-title-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ios-title-info h4 {
    margin: 0;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.ios-title-info p {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}


