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

:root {
    --max-w: 1200px;
    --text-muted: hsl(220 9% 46%);
    --surface: #ffffff;
    --border: hsl(214 32% 91%);
    --shadow-sm: 0 6px 20px rgba(16, 24, 40, 0.08);
    --shadow-md: 0 12px 28px rgba(16, 24, 40, 0.12);
    --accent-start: #6E8EF5; /* indigo */
    --accent-end: #EE6583;   /* pink */
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 96px;
}

body {
    min-height: 100vh;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #ffffff;
    color: #0b1020;
    line-height: 1.2;
}

.htflow-wrapper {
    min-height: 100vh;
}

/* Header */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.header-container {
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    /* padding-top: 14px; */
    /* padding-bottom: 14px; */
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
a { text-decoration: none;}

.header-logo-section {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 50px;
    width: auto;
    cursor: pointer;
    transition: transform .25s ease;
}

.header-logo:hover { transform: scale(1.05); }

.header-nav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }

.mobile-top-nav {
    display: none;
}

.nav-link,.nav-link-scroll {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}
.nav-link:hover,
.nav-link-scroll:hover {
    color: #111827;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(79, 70, 229, 0.22);
    transform: translateY(-1px);
}

/* Hero */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    min-height: 78vh;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 120px; /* space for fixed header */
/*    background:
        radial-gradient(1200px 600px at 10% 60%, #ee6583, transparent 60%),
        radial-gradient(1200px 700px at 90% 10%, #6e8ef5, transparent 60%),
        linear-gradient(180deg, #6e8ef5 0%, #ad4c61 100%);
*/
}

.hero-container {
    max-width: var(--max-w);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-content { max-width: 100%; margin-left: auto; margin-right: auto; }

/* Reset text hero elements as we are replacing hero with carousel */
.hero-title, .hero-description, .hero-button { display:none; }

/* Scoped styles for hero carousel */
.hero-carousel { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-carousel main { position: static; width: 100%; height: 78vh; max-width: 1200px; }
.hero-carousel .screen { position: absolute; top:0; left:0; width:100vw; height:100%; display:flex; pointer-events:none; z-index:2; }
.hero-carousel .screen_main { height:100%; border: 2px solid rgba(255,255,255,0.8); border-radius: 12px; }
.hero-carousel .screen_blur { background-color: rgba(255,255,255,0.25); backdrop-filter: blur(3px); flex-grow:1; }
.hero-carousel .slide_scroll { position:absolute; top:0; left:0; width:100%; height:100%; display:flex; overflow: hidden; scroll-snap-type:x mandatory; overscroll-behavior:contain; }
.hero-carousel .slide { height:100%; display:flex; justify-content:center; align-items:center; scroll-snap-align:center; font-size:42px; color:#0b1020; }
.hero-carousel .timer { height:6px; width: 100%; max-width: 1200px; }
.hero-carousel .timer_bar { width:100%; height:6px; border-radius:3px; background-color:orange; animation: timer 3s linear forwards; }
.hero-carousel .indicator { display:flex; align-items:center; gap:10px; }
.hero-carousel .dot { width:8px; height:8px; border:none; border-radius:4px; background-color:orange; cursor:pointer; transition: all .5s ease; }
.hero-carousel .dot_active { width:60px; background-color: orangered; }

/* Features */
.features-section { padding: 72px 16px; background: #ffffff; }
.features-container { max-width: var(--max-w); margin: 0 auto; }
.features-title {
    text-align: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.2;
    margin-bottom: 28px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 26px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .18s ease, box-shadow .2s ease;
}
.feature-card:hover, .feature-card-active { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.feature-icon { display: flex; justify-content: center; }
.feature-icon-wrapper {
    height: 64px; width: 64px; border-radius: 999px;
    display: grid; place-items: center;
    background: radial-gradient(60% 60% at 30% 30%, rgba(255, 192, 203, 0.6), rgba(238, 101, 131, 0.25));
    border: 1px solid rgba(238, 101, 131, 0.25);
}
.feature-icon-svg { color: #e66f8c; }

.feature-title { margin-top: 14px; font-weight: 600; font-size: 18px; }
.feature-description { margin-top: 8px; color: var(--text-muted); font-size: 15px; }

/* Preview (How it works) */
.preview-section { padding: 80px 16px; }

/* CTA band */
#cta-section { background: linear-gradient(180deg, #f7f2f5 0%, #f3f5fb 100%); padding: 60px 16px; }
.cta-container { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.cta-title { font-family: 'Inter', system-ui, sans-serif; font-size: clamp(24px, 3.6vw, 38px); }
.cta-subtitle { margin-top: 8px; color: var(--text-muted); }
.cta-button { margin-top: 20px; background: linear-gradient(90deg, var(--accent-start), var(--accent-end)); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 600; box-shadow: 0 10px 24px rgba(110, 142, 245, 0.25); cursor: pointer; text-decoration:none; }
.cta-button:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* Footer */
.footer { background: #000; color: rgba(255,255,255,.85); padding: 28px 16px; font-family: Inter, system-ui, sans-serif; }
.footer-container { max-width: var(--max-w); margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; }
.footer-brand { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 700; }
.footer-brand-text {padding-left:10px;position:relative; font-size:2rem;}
.footer-logo { margin-bottom:8px; width: 28px; height: 24px; border-radius: 4px; /* background: linear-gradient(135deg, var(--accent-start), var(--accent-end)); opacity: .85; */ }
.footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.75); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: #fff; }

.footer-hr {width:50vw;border:0;border-top:1px solid #3c3c3c;margin:10px auto;}
.footer-slogan {text-align:center;font-size:12px;}
.footer-copyrights {text-align:center;font-size: 11px;}

.welcome-shell {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
}

.welcome-section {
    padding: 88px 0;
    scroll-margin-top: 100px;
    min-height: 100svh;
    display: flex;
    align-items: center;
}

.welcome-soft-section {
    background: linear-gradient(180deg, rgba(247, 242, 245, 0.75) 0%, rgba(243, 245, 251, 0.55) 100%);
}

.welcome-hero {
    padding: 138px 0 84px;
    background:
        radial-gradient(circle at top left, rgba(238, 101, 131, 0.16), transparent 35%),
        radial-gradient(circle at top right, rgba(110, 142, 245, 0.18), transparent 30%),
        linear-gradient(180deg, #ffffff 0%, #fbfbfe 100%);
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.welcome-hero-grid {
    display: grid;
    gap: 28px;
    align-items: center;
}

.welcome-hero-copy {
    order: 2;
}

.welcome-kicker,
.section-kicker,
.hero-slide-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #5b6477;
    font-weight: 700;
}

.welcome-title {
    margin-top: 16px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    max-width: 18ch;
}

.welcome-title-dynamic {
    margin-top: 8px;
    min-height: 1.3em;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.welcome-title-dynamic .hero-typed {
    background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.welcome-title-dynamic .typed-cursor {
    display: none;
}

.welcome-description {
    margin-top: 18px;
    max-width: 620px;
    color: #4b5565;
    font-size: 18px;
    line-height: 1.6;
}

.welcome-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: stretch;
}

.welcome-secondary-link {
    color: #111827;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
}

.welcome-secondary-link:hover {
    color: #4154d8;
    background: rgba(255, 255, 255, 0.95);
}

.welcome-proof-list {
    margin-top: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.welcome-proof-list span,
.plan-module-badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.85);
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

/* Hero image carousel */
.hero-carousel-stage {
    order: 1;
    min-height: calc(100svh - 128px);
    display: grid;
    place-items: center;
}

.hero-device {
    position: relative;
    width: min(100%, 340px);
    aspect-ratio: 9 / 19.5;
    /* transform: rotate(-8deg) skewY(-2deg); */
    transform-origin: center center;
}

.hero-device-shadow {
    position: absolute;
    inset: 7% 5% 4%;
    border-radius: 54px;
    background: radial-gradient(circle at 50% 30%, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0));
    filter: blur(18px);
    transform: translate3d(-14px, 26px, 0) scale(0.98);
}

.hero-device-shell {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 40px;
    padding: 12px;
    background:
        linear-gradient(145deg, #4b5563 0%, #0f1115 16%, #2f333b 36%, #07080b 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.24),
        inset 0 0 0 4px rgba(10, 10, 12, 0.92),
        0 24px 50px rgba(15, 23, 42, 0.24);
}

.hero-device-speaker {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 34%;
    height: 22px;
    border-radius: 999px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #0d0f14, #1b1f27);
    box-shadow:
        inset 0 1px 1px rgba(255, 255, 255, 0.08),
        inset 0 -1px 2px rgba(0, 0, 0, 0.65);
    z-index: 3;
}

.hero-device-speaker::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 9px;
    height: 9px;
    border-radius: 999px;
    transform: translateY(-50%);
    background: radial-gradient(circle at 35% 35%, #1f2937, #030712 70%);
}

.hero-device-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
    background: transparent;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 0 24px rgba(255, 255, 255, 0.04);
}

.hero-device-button {
    position: absolute;
    left: -4px;
    width: 5px;
    border-radius: 999px 0 0 999px;
    background: linear-gradient(180deg, #6b7280, #1f2937);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.hero-device-button-top {
    top: 24%;
    height: 58px;
}

.hero-device-button-middle {
    top: 35%;
    height: 84px;
}

.hero-device-button-bottom {
    top: 49%;
    height: 84px;
}

.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}

.hero-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translate3d(12%, 0, 0) scale(1.02);
    pointer-events: none;
}

.hero-carousel-slide.hero-carousel-active {
    animation: hero-screen-pass 2.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.hero-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

@keyframes hero-screen-pass {
    0% {
        opacity: 0;
        transform: translate3d(10%, 0, 0) scale(1.01);
    }

    8% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }

    90% {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate3d(-10%, 0, 0) scale(1.01);
    }
}

.hero-slides-below {
    margin-top: 48px;
    padding-top: 0;
}

.hero-slide-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.hero-slide-card,
.module-card,
.plan-card,
.journey-step {
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.hero-slide-card {
    padding: 24px;
}

.hero-slide-card h2 {
    margin-top: 12px;
    font-size: 24px;
    line-height: 1.15;
}

.hero-slide-card p {
    margin-top: 12px;
    color: #556070;
    line-height: 1.6;
}

.section-heading {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 36px;
}

.section-description {
    margin-top: 14px;
    color: #5b6477;
    font-size: 17px;
    line-height: 1.6;
}

.empty-state-message {
    max-width: 760px;
    margin: 0 auto;
    padding: 28px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    color: #5b6477;
    text-align: center;
    line-height: 1.7;
}

.module-grid,
.plan-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.module-card {
    padding: 28px;
}

.module-card h3 {
    font-size: 24px;
}

.module-card-headline {
    margin-top: 14px;
    color: #111827;
    font-weight: 600;
    line-height: 1.5;
}

.module-card-description {
    margin-top: 12px;
    color: #5b6477;
    line-height: 1.6;
}

.features-grid-wide {
    grid-template-columns: 1fr;
}

.journey-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 0;
}

.journey-step {
    padding: 24px;
}

.journey-step-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.journey-step-description {
    margin-top: 10px;
    color: #5b6477;
    line-height: 1.6;
}

.plan-card {
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.plan-card-featured {
    border-color: rgba(79, 70, 229, 0.35);
    box-shadow: 0 24px 48px rgba(79, 70, 229, 0.16);
}

.plan-card-header {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.plan-accent {
    width: 14px;
    min-width: 14px;
    min-height: 84px;
    border-radius: 999px;
}

.plan-name-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.plan-name-row h3 {
    font-size: 24px;
}

.plan-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(79, 70, 229, 0.12);
    color: #4338ca;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.plan-description {
    margin-top: 10px;
    color: #5b6477;
    line-height: 1.6;
}

.plan-price-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.plan-price {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.plan-cadence {
    color: #6b7280;
}

.plan-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.plan-highlights {
    list-style: none;
    display: grid;
    gap: 10px;
    color: #334155;
}

.plan-highlights li {
    position: relative;
    padding-left: 18px;
    line-height: 1.6;
}

.plan-highlights li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4f46e5;
}

.plan-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    padding: 12px 18px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(110, 142, 245, 0.22);
}

.plan-cta:hover,
.welcome-nav-button:hover {
    opacity: 0.92;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.comparison-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    text-align: center;
    vertical-align: middle;
}

.comparison-table td,
.comparison-table th {
    white-space: nowrap;
}

.comparison-table tbody th {
    white-space: normal;
}

.comparison-table thead th {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5b6477;
    background: rgba(248, 250, 252, 0.95);
}

.comparison-table tbody th {
    width: 220px;
    color: #111827;
    font-size: 15px;
    text-align: left;
}

.comparison-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    border-radius: 999px;
    font-weight: 600;
    color: #334155;
    line-height: 1.4;
}

.comparison-value-yes {
    color: #15803d;
    background: rgba(21, 128, 61, 0.12);
}

.comparison-value-no {
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.12);
}

.comparison-module-stack {
    display: inline-grid;
    gap: 6px;
    justify-items: center;
}

.comparison-module-line {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: #334155;
}

.comparison-mobile-list {
    display: none;
}

.comparison-mobile-card {
    border-radius: 24px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
    padding: 22px;
}

.comparison-mobile-card + .comparison-mobile-card {
    margin-top: 14px;
}

.comparison-mobile-title {
    font-size: 18px;
    color: #111827;
}

.comparison-mobile-values {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.comparison-mobile-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.comparison-mobile-item:first-child {
    padding-top: 0;
    border-top: none;
}

.comparison-mobile-plan {
    color: #475569;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.comparison-mobile-badge {
    flex-shrink: 0;
}

.comparison-mobile-module-stack {
    display: grid;
    gap: 6px;
    justify-items: end;
    text-align: right;
}

.comparison-mobile-module-line {
    display: inline-flex;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(248, 250, 252, 0.95);
    padding: 6px 10px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.welcome-nav-button {
    background: linear-gradient(90deg, #6e8ef5, #ee6583);
    color: #fff;
    padding: 8px 18px;
    border-radius: 999px;
    font-weight: 600;
    border-color: transparent;
    box-shadow: 0 14px 28px rgba(110, 142, 245, 0.22);
}

#cta-section {
    min-height: 100svh;
    display: flex;
    align-items: center;
}

.cta-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-subtitle {
    margin-top: 0;
    max-width: 680px;
    line-height: 1.6;
}

.cta-button {
    margin-top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    line-height: 1;
}

/* Responsive */
@media (min-width: 768px) {
    .header-nav { display: flex; }
    .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .preview-container { grid-template-columns: 1.1fr 1fr; align-items: center; }
    .welcome-hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
    .welcome-hero-copy { order: 1; }
    .hero-carousel-stage {
        order: 2;
        min-height: min(78svh, 760px);
        justify-items: end;
    }
    .hero-device {
        width: min(100%, 360px);
    }
    .hero-slide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .journey-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .features-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
    .module-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .hero-slide-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Small screens */
@media (max-width: 640px) {
    .header-content { flex-wrap: nowrap; row-gap: 0; }
    .nav-link { font-size: 14px; }
    .welcome-title { max-width: none; }
    .hero-carousel-stage {
        min-height: calc(100svh - 112px);
    }
    .hero-device {
        width: min(100%, 320px);
    }
    .plan-card,
    .module-card,
    .hero-slide-card,
    .journey-step {
        padding: 20px;
    }
    .header-nav {
        flex-wrap: nowrap;
        gap: 0;
    }
    .mobile-top-nav {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 0 0 12px;
        margin-top: 6px;
        scrollbar-width: none;
    }
    .mobile-top-nav::-webkit-scrollbar {
        display: none;
    }
    .mobile-top-nav a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        padding: 8px 12px;
        border-radius: 999px;
        border: 1px solid rgba(148, 163, 184, 0.24);
        background: rgba(255, 255, 255, 0.82);
        box-shadow: 0 10px 22px rgba(15, 23, 42, 0.05);
        color: var(--text-muted);
        font-size: 14px;
        font-weight: 600;
        white-space: nowrap;
    }
    .mobile-top-nav .mobile-top-nav-cta {
        background: linear-gradient(90deg, #6e8ef5, #ee6583);
        border-color: transparent;
        color: #fff;
    }
    .mobile-secondary-link,
    .header-nav {
        display: none;
    }
    .welcome-nav-button {
        white-space: nowrap;
        padding: 10px 14px;
        font-size: 14px;
    }
    .brand-logo-text {
        font-size: 1rem;
    }
    .header-logo {
        height: 42px;
    }
    .comparison-mobile-list {
        display: block;
    }
    .comparison-table-wrapper {
        display: none;
    }
    .comparison-mobile-card {
        padding: 18px;
    }
    .comparison-mobile-title {
        font-size: 17px;
    }
    .comparison-mobile-item {
        gap: 10px;
    }
    .comparison-mobile-plan {
        font-size: 13px;
    }
    .comparison-mobile-module-stack {
        max-width: 62%;
    }
}







* {
  box-sizing: border-box;
}

/* Animation Keyframes */
@keyframes slideInMobile {
  from {
    transform: scale(0.95);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Main slider wrapper */
.css-slider-wrapper {
  display: block;
  background: #FFF;
  overflow: hidden;
  position: relative;
  max-width: 1200px;
  margin: 40px auto;
  /* height: 600px; */
  /* border-radius: 16px; */
  /* box-shadow: 0 10px 35px rgba(0,0,0,0.1); */
/* margin-top:230px; */
height: 100vh;
}

.css-slider-wrapper > input {
display:none;
}
/* Individual slide styles */
.slider {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 0 60px;
  transition: transform 1000ms ease-in-out;
}

/* Positioning each slide */
.slide-1 { left: 0; }
.slide-2 { left: 100%; }
.slide-3 { left: 200%; }
.slide-4 { left: 300%; }

/* Content and image layout */
.slider-content {
  flex: 1;
  order: 1;
  padding-right: 40px;
}

.slider > img {
  flex-basis: 50%;
  max-width: 50%;
  max-height: 85%;
  object-fit: contain;
  order: 2;
}

/* Initial state for animations (Desktop) */
.slider h2,
.slider h4,
.slider .buy-now-btn {
  opacity: 0;
  transform: translateY(50px);
  transition: transform 0.7s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.5s ease-in-out;
}

.slider > img {
  opacity: 0;
  transform: translateX(100px) scale(0.9) rotateY(-20deg);
  transform-origin: center left;
  transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.6s ease-in-out;
}

/* Text styling */
.slider h2 {
  color: #333;
  font-weight: 800;
  font-size: 44px;
  line-height: 1.25;
  margin: 15px 0;
  letter-spacing: 1px;
}

.slider h4 {
  font-size: 18px;
  font-family: "Oswald", sans-serif;
  color: #e91e63;
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1.2;
}

/* Button styling */
.buy-now-btn {
  background-color: #ea2e49;
  width: 220px;
  height: 50px;
  border-radius: 30px;
  border: none;
  font-family: Montserrat;
  font-size: 20px;
  font-weight: 100;
  color: #fff;
  text-align: left;
  padding-left: 35px;
  position: relative;
  cursor: pointer;
  transition: all .2s;
}
.buy-now-btn:hover {
  box-shadow: 0px 0px 60px -17px rgba(51,51,51,1);
}
.buy-now-btn:after {
  content: 'Buy Now';
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  position: absolute;
  right: 35px;
  top: 18px;
}
.slider .buy-now-btn:focus {
  outline: none;
}

/* Slide transition logic */
.slide-radio1:checked ~ .slider { transform: translateX(0%); }
.slide-radio2:checked ~ .slider { transform: translateX(-100%); }
.slide-radio3:checked ~ .slider { transform: translateX(-200%); }
.slide-radio4:checked ~ .slider { transform: translateX(-300%); }

/* Animation trigger for active slide elements (Desktop) */
.slide-radio1:checked ~ .slide-1 h2,
.slide-radio2:checked ~ .slide-2 h2,
.slide-radio3:checked ~ .slide-3 h2,
.slide-radio4:checked ~ .slide-4 h2,
.slide-radio1:checked ~ .slide-1 h4,
.slide-radio2:checked ~ .slide-2 h4,
.slide-radio3:checked ~ .slide-3 h4,
.slide-radio4:checked ~ .slide-4 h4,
.slide-radio1:checked ~ .slide-1 .buy-now-btn,
.slide-radio2:checked ~ .slide-2 .buy-now-btn,
.slide-radio3:checked ~ .slide-3 .buy-now-btn,
.slide-radio4:checked ~ .slide-4 .buy-now-btn {
  transform: translateY(0);
  opacity: 1;
}

.slide-radio1:checked ~ .slide-1 > img,
.slide-radio2:checked ~ .slide-2 > img,
.slide-radio3:checked ~ .slide-3 > img,
.slide-radio4:checked ~ .slide-4 > img {
  transform: translateX(0) scale(1) rotateY(0);
  opacity: 1;
}

/* Staggered animation delays for active slide (Desktop) */
.slide-radio1:checked ~ .slide-1 h4,
.slide-radio2:checked ~ .slide-2 h4,
.slide-radio3:checked ~ .slide-3 h4,
.slide-radio4:checked ~ .slide-4 h4 { transition-delay: 0.4s !important; }

.slide-radio1:checked ~ .slide-1 h2,
.slide-radio2:checked ~ .slide-2 h2,
.slide-radio3:checked ~ .slide-3 h2,
.slide-radio4:checked ~ .slide-4 h2 { transition-delay: 0.5s !important; }

.slide-radio1:checked ~ .slide-1 .buy-now-btn,
.slide-radio2:checked ~ .slide-2 .buy-now-btn,
.slide-radio3:checked ~ .slide-3 .buy-now-btn,
.slide-radio4:checked ~ .slide-4 .buy-now-btn { transition-delay: 0.7s !important; }

.slide-radio1:checked ~ .slide-1 > img,
.slide-radio2:checked ~ .slide-2 > img,
.slide-radio3:checked ~ .slide-3 > img,
.slide-radio4:checked ~ .slide-4 > img { transition-delay: 0.2s !important; }


/* --- Responsive for mobile --- */
@media only screen and (max-width: 768px) {
  .css-slider-wrapper {
    height: 100vh;
    margin: 60px 15px;
    max-width: none;
    width: auto;
  }

  .slider {
    flex-direction: column;
    padding: 40px 20px;
    height: auto;
    position: relative;
    transform: none !important;
    display: none;
    left: 0 !important;
  }

  /* Show only the active slide on mobile */
  .slide-radio1:checked ~ .slide-1,
  .slide-radio2:checked ~ .slide-2,
  .slide-radio3:checked ~ .slide-3,
  .slide-radio4:checked ~ .slide-4 {
    display: flex;
    /* Apply a simple fade-in/scale-in animation to the whole slide */
    animation: slideInMobile 0.6s ease-out both;
  }

  /* Mobile layout adjustments */
  .slider > img {
    order: 1;
    flex-basis: auto;
    width: 100%;
    max-width: 280px;
    margin-bottom: 30px;
  }

  .slider-content {
    order: 2;
    padding: 0;
    text-align: center;
    width: 100%;
  }

  .slider h2 { font-size: 26px; }
  .slider h4 { font-size: 16px; }

  /* On mobile, disable the complex desktop animations on inner elements */
  .slider h2,
  .slider h4,
  .slider .buy-now-btn,
  .slider > img {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.brand-logo-text{display:inline-block;font-size:1.2rem;font-weight:bold;color:#dd4055;text-transform:uppercase;font-family:sans-serif; text-decoration:none;margin-top:4px;}
