/* Reset/Globals */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Open Sans", Arial, sans-serif;
    background: #fff;
    color: #464e55;
    line-height: 1.6;
    position: relative;
    min-height: 100vh;
}

/* Theme variables */
:root {
    --bg: #ffffff;
    --text: #464e55;
    --card-bg: #ffffff;
    --card-border: rgba(7,41,99,0.08);
    --muted: #6b757d;
}

.theme-dark {
    --bg: #0b1220;
    --text: #e6eef7;
    --card-bg: rgba(18,24,38,0.7);
    --card-border: rgba(255,255,255,0.10);
    --muted: #9fb0c4;
}

body { background: var(--bg); color: var(--text); }
/* Smooth theme transitions */
html, body, .hero, .section, .section-alt, .premium .text-block, .premium .feature-card, .spendq-privacy-terms-section, footer, .hero .container, .hero .hero-lead, .hero .hero-chips .chip {
    transition: background 240ms ease, color 240ms ease, border-color 240ms ease, box-shadow 240ms ease, outline-color 240ms ease;
}

a {
    text-decoration: none;
    color: #0077ff;
    transition: color 0.3s;
}

a:hover {
    color: #005bba;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero / Top Section */
.hero {
    background: #ffffff; /* light mode: flat white hero */
    color: var(--text);
    padding: 0 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Frosted content panel to echo premium cards */
.hero .container {
    position: relative;
    background: #ffffff; /* light mode: solid white card */
    color: var(--text);
    border: none;
    box-shadow: none; /* remove inset highlight */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 18px;
    padding: 0.75rem 1.25rem 2rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 1.5rem;
}

/* Theme toggle button */
.theme-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(7,41,99,0.18);
    background: rgba(7,41,99,0.06);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(7,41,99,0.10);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.theme-toggle:hover { transform: translateY(-1px); background: rgba(7,41,99,0.10); box-shadow: 0 8px 18px rgba(7,41,99,0.14); }
.theme-toggle .icon { display: inline-block; }
.theme-toggle .moon { opacity: 0.6; }
.theme-dark .theme-toggle .sun { opacity: 0.5; }
.theme-dark .theme-toggle .moon { opacity: 1; }
.theme-dark .theme-toggle { border-color: rgba(255,255,255,0.22); background: rgba(0,0,0,0.25); color: #e6eef7; }

/* Global dark theme adjustments */
.theme-dark body { background: var(--bg); color: var(--text); }
.theme-dark a { color: #7db0ff; }
.theme-dark a:hover { color: #a5c5ff; }

/* Premium sections in dark */
.theme-dark .section.premium {
    background: radial-gradient(1200px 400px at 10% 0%, rgba(125,176,255,0.06), transparent 60%),
                radial-gradient(1000px 380px at 90% 100%, rgba(33,186,69,0.06), transparent 60%),
                linear-gradient(90deg, #0b1220 0%, #0f1628 100%);
}
.theme-dark .section-alt.premium {
    background: radial-gradient(900px 360px at 15% 10%, rgba(125,176,255,0.10), transparent 60%),
                radial-gradient(900px 360px at 85% 90%, rgba(33,186,69,0.10), transparent 60%),
                linear-gradient(90deg, #0b1220 0%, #0f1628 100%);
}
.theme-dark .premium .text-block {
    background: rgba(13, 18, 32, 0.75);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.theme-dark .premium .text-block strong { color: #dfe9ff; }
.theme-dark .premium .image-block img,
.theme-dark .premium .video-wrapper iframe { outline-color: rgba(255,255,255,0.12); }
.theme-dark .premium h2::after { background: linear-gradient(90deg, #ffcc66, #4ed070); }
.theme-dark .premium .image-block::after { background: linear-gradient(135deg, rgba(125,176,255,0.18), rgba(33,186,69,0.18)); }
.theme-dark .premium .text-block::before { background: linear-gradient(135deg, rgba(255,204,102,0.22), rgba(125,176,255,0.18)); }

/* Feature cards in dark */
.theme-dark .premium .feature-card {
    background: linear-gradient(180deg, rgba(18,24,38,0.85), rgba(14,20,34,0.85));
    border-color: var(--card-border);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.theme-dark .premium .feature-icon { background: linear-gradient(135deg, rgba(33,186,69,0.18), rgba(125,176,255,0.18)); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.theme-dark .premium .feature-content h4 { color: #e6eef7; }
.theme-dark .premium .feature-content p { color: #c9d7ea; }

/* Hero dark specifics */
.theme-dark .hero { background: var(--bg); }
.theme-dark .hero .logo { filter: brightness(0) invert(1); }
.theme-dark .hero .container { background: transparent; border: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.theme-dark .hero .hero-lead { color: #eaf4ff; background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.18); }
.theme-dark .premium .rich-copy .lead {
    color: #eaf4ff;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.18);
    border-left-width: 4px;
    border-left-color: #ffcc66;
    box-shadow: 0 6px 18px rgba(0,0,0,0.28);
}
.theme-dark .hero .hero-chips .chip {
        color: #e6eef7;
        background:
            linear-gradient(180deg, rgba(28,36,54,0.94), rgba(22,30,48,0.94)) padding-box,
            linear-gradient(135deg, rgba(255,160,0,0.35), rgba(33,186,69,0.35), rgba(125,176,255,0.35)) border-box;
        border: 1px solid transparent;
        box-shadow: 0 2px 12px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.06);
}
.theme-dark .hero .app-badges a {
        background:
            linear-gradient(180deg, rgba(28,36,54,0.9), rgba(22,30,48,0.9)) padding-box,
            linear-gradient(135deg, rgba(255,160,0,0.30), rgba(33,186,69,0.30), rgba(125,176,255,0.30)) border-box;
        border: 1px solid transparent;
        box-shadow: 0 8px 24px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Privacy/Terms dark */
.theme-dark .spendq-privacy-terms-section { background: linear-gradient(90deg, #0b1220 0%, #0f1628 100%); }
.theme-dark .spendq-inner-box { background: rgba(18,24,38,0.85); color: var(--text); }
.theme-dark .spendq-subheader { color: #dfe9ff; }
.theme-dark .spendq-divider { background-color: #ffcc66; }
.theme-dark footer { background: linear-gradient(45deg, #0e1a2f, #0c1a2a, #0b1a24); }

/* Decorative premium blobs */
/* Remove decorative hero container blobs */
.hero .container::before,
.hero .container::after { content: none !important; display: none !important; }

.hero .logo {
    width: 120px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: none; /* light mode: natural logo colors */
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0.5rem auto 2rem auto;
    white-space: pre-line;
}

/* Premium hero lead + chips */
.hero .hero-copy { max-width: 760px; margin: 0.5rem auto 0; }
.hero .hero-lead {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #072963; /* readable on white */
    background: linear-gradient(180deg, #ffffff, #f6fbff);
    border: 1px solid rgba(7,41,99,0.10);
    border-left: 4px solid #ffa000;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    box-shadow: 0 6px 18px rgba(7,41,99,0.08);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.hero .hero-chips { display: flex; flex-wrap: wrap; gap: 0.5rem 0.6rem; justify-content: center; margin-top: 0.9rem; }
.hero .hero-chips .chip {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.42rem 0.7rem;
    font-size: 0.92rem;
    color: #0c2a1a;
    border-radius: 999px;
    background:
      linear-gradient(180deg, rgba(255,255,255,0.95), rgba(246,251,255,0.95)) padding-box,
      linear-gradient(135deg, rgba(255,160,0,0.55), rgba(33,186,69,0.55), rgba(0,119,255,0.55)) border-box;
    border: 1px solid transparent;
    box-shadow: 0 2px 10px rgba(0,0,0,0.14), inset 0 1px 0 rgba(255,255,255,0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease, background 220ms ease;
}

.hero .hero-chips .chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}

.hero .hero-chips .chip:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0,0,0,0.16);
}

.hero .hero-chips .chip::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.6) 48%, transparent 65%);
    transform: translateX(-140%);
    transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.hero .hero-chips .chip:hover::after { transform: translateX(140%); }

/* Premium underline accent under hero title */
.hero h1 {
    position: relative;
}
.hero h1::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    margin: 12px auto 0 auto;
    background: linear-gradient(90deg, #ffa000, #21ba45);
    border-radius: 2px;
}

.hero .app-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero .app-badges img {
    width: 130px;
    height: auto;
}

/* Two-column hero specifics */
.hero .hero-left { text-align: center; }
.hero .hero-right { display: grid; place-items: center; }
.hero .hero-illustration {
        width: 100%;
        max-width: 520px;
    border-radius: 0;
    box-shadow: none;
    outline: none;
    background: transparent;
}

@media (max-width: 980px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .hero .hero-right { order: 2; }
    .hero .hero-left { order: 1; }
}

/* Badge wrappers with glass and hover lift */
.hero .app-badges a {
        position: relative;
        isolation: isolate;
    overflow: hidden;
        background:
            linear-gradient(180deg, rgba(255,255,255,0.9), rgba(245,250,255,0.9)) padding-box,
            linear-gradient(135deg, rgba(255,160,0,0.45), rgba(33,186,69,0.45), rgba(0,119,255,0.45)) border-box;
        border: 1px solid transparent;
        border-radius: 14px;
        padding: 6px 8px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.55);
        transition: transform 220ms ease, box-shadow 220ms ease, background 200ms ease;
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
}

.hero .app-badges a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.hero .app-badges a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 35%, rgba(255,255,255,0.7) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.hero .app-badges a:hover::after { transform: translateX(120%); }

/* Common Section Style */
.section {
    padding: 3rem 0;
}

.section-alt {
    background: linear-gradient(90deg, #ffffff 0%, #ffffff 100%);
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
}

/* Zigzag Layout */
.zigzag {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Premium Zigzag UI */
.section.premium {
    position: relative;
    background: radial-gradient(1200px 400px at 10% 0%, rgba(33,186,69,0.06), transparent 60%),
                radial-gradient(1000px 380px at 90% 100%, rgba(7,41,99,0.06), transparent 60%),
                linear-gradient(90deg, #ffffff 0%, #f8fbff 100%);
}

.section-alt.premium {
    background: radial-gradient(900px 360px at 15% 10%, rgba(0,119,255,0.08), transparent 60%),
                radial-gradient(900px 360px at 85% 90%, rgba(33,186,69,0.08), transparent 60%),
                linear-gradient(90deg, #ffffff 0%, #f6fffb 100%);
}

.premium .zigzag {
    gap: 2.5rem;
    position: relative;
}

.premium .text-block,
.premium .image-block {
    position: relative;
}

.premium .text-block {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(7, 41, 99, 0.08);
    box-shadow: 0 10px 30px rgba(7, 41, 99, 0.08);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    backdrop-filter: blur(6px);
}

.premium .text-block ul {
    list-style: none;
}

.premium .text-block ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.5rem 0.25rem;
}

.premium .text-block ul li::before {
    content: "";
    margin-top: 0.45rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #21ba45, #0077ff);
    box-shadow: 0 0 0 3px rgba(33, 186, 69, 0.15);
    flex: 0 0 10px;
}

/* Premium rich text enhancements */
.premium .rich-copy .lead {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #072963;
    background: linear-gradient(180deg, rgba(255,160,0,0.08), rgba(33,186,69,0.06));
    border: 1px solid rgba(7,41,99,0.08);
    border-left-width: 4px;
    border-left-color: #ffa000;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.9rem;
}

.premium .rich-copy p + p {
    margin-top: 0.6rem;
}

.premium .pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.6rem;
    margin: 0.75rem 0 0.25rem 0;
}

.premium .pill-row .pill {
        position: relative;
        isolation: isolate;
        overflow: hidden;
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        padding: 0.42rem 0.72rem;
        font-size: 0.92rem;
        color: #072963;
        border-radius: 999px;
        background:
            linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,251,255,0.96)) padding-box,
            linear-gradient(135deg, rgba(255,160,0,0.50), rgba(33,186,69,0.50), rgba(0,119,255,0.50)) border-box;
        border: 1px solid transparent;
        box-shadow: 0 2px 10px rgba(7,41,99,0.08), inset 0 1px 0 rgba(255,255,255,0.65);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        transition: transform 180ms ease, box-shadow 220ms ease, background 220ms ease, filter 220ms ease;
}

.premium .pill-row .pill:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(7,41,99,0.12);
}

.premium .pill-row .pill:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(7,41,99,0.10);
}

.premium .pill-row .pill::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: linear-gradient(120deg, transparent 40%, rgba(255,255,255,0.65) 52%, transparent 66%);
        transform: translateX(-140%);
        transition: transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
        pointer-events: none;
}

.premium .pill-row .pill:hover::after { transform: translateX(140%); }

/* Dark mode variant for premium pills */
.theme-dark .premium .pill-row .pill {
        color: #e6eef7;
        background:
            linear-gradient(180deg, rgba(28,36,54,0.96), rgba(22,30,48,0.94)) padding-box,
            linear-gradient(135deg, rgba(255,160,0,0.32), rgba(33,186,69,0.32), rgba(125,176,255,0.32)) border-box;
        border: 1px solid transparent;
        box-shadow: 0 2px 12px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.06);
}

/* Reduced motion: keep it classy and still */
@media (prefers-reduced-motion: reduce) {
    .premium .pill-row .pill { transition: none !important; }
    .premium .pill-row .pill::after { transition: none !important; transform: none !important; }
}

/* Premium Feature Grid (replaces list) */
.premium .feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.premium .feature-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: start;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid rgba(7, 41, 99, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(246,251,255,0.85));
    box-shadow: 0 6px 18px rgba(7, 41, 99, 0.06);
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.premium .feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(7, 41, 99, 0.10);
    border-color: rgba(0, 119, 255, 0.18);
}

.premium .feature-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    font-size: 22px;
    line-height: 1;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(33,186,69,0.12), rgba(0,119,255,0.12));
    box-shadow: inset 0 0 0 1px rgba(7,41,99,0.08);
}

.premium .feature-content h4 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    color: #072963;
}

.premium .feature-content p {
    margin: 0;
    font-size: 0.97rem;
    color: #464e55;
}

@media (max-width: 860px) {
    .premium .feature-grid { grid-template-columns: 1fr; }
}

.premium .image-block img,
.premium .video-wrapper iframe {
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.15);
    outline: 1px solid rgba(7, 41, 99, 0.08);
    transition: transform 250ms ease, box-shadow 250ms ease, outline-color 250ms ease;
}

.premium .image-block:hover img,
.premium .video-wrapper:hover iframe {
    transform: translateY(-4px);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
    outline-color: rgba(7, 41, 99, 0.12);
}

/* Premium scroll-reveal animation for themed screenshots */
@media (prefers-reduced-motion: no-preference) {
    /* Hero illustration scroll-reveal */
    .hero .image-block img.hero-illustration[data-theme-file] {
        transform: translateY(24px) scale(0.985) perspective(800px) rotateX(5deg);
        opacity: 0;
        filter: saturate(0.9) blur(1.5px);
        will-change: transform, opacity, filter;
        transition:
            transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 700ms ease,
            filter 800ms ease;
    }

    .hero .image-block.in-view img.hero-illustration[data-theme-file] {
        transform: translateY(0) scale(1) perspective(800px) rotateX(0deg);
        opacity: 1;
        filter: saturate(1) blur(0);
    }
    /* Initial hidden state */
    .premium .image-block img[data-theme-file] {
        transform: translateY(28px) scale(0.985) perspective(800px) rotateX(6deg);
        opacity: 0;
        filter: saturate(0.9) blur(2px);
        will-change: transform, opacity, filter, box-shadow;
        transition:
            transform 800ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 700ms ease,
            filter 800ms ease,
            box-shadow 600ms ease;
    }

    /* Reveal when in view */
    .premium .image-block.in-view img[data-theme-file] {
        transform: translateY(0) scale(1) perspective(800px) rotateX(0deg);
        opacity: 1;
        filter: saturate(1) blur(0);
        box-shadow: 0 18px 54px rgba(7, 41, 99, 0.16);
    }

    /* Subtle direction nuance: slide slightly from side based on layout */
    .premium .zigzag:not(.reverse) .image-block img[data-theme-file] { transform: translate(16px, 28px) scale(0.985) perspective(800px) rotateX(6deg); }
    .premium .zigzag.reverse .image-block img[data-theme-file] { transform: translate(-16px, 28px) scale(0.985) perspective(800px) rotateX(6deg); }
    .premium .zigzag:not(.reverse) .image-block.in-view img[data-theme-file] { transform: translate(0, 0) scale(1) perspective(800px) rotateX(0deg); }
    .premium .zigzag.reverse .image-block.in-view img[data-theme-file] { transform: translate(0, 0) scale(1) perspective(800px) rotateX(0deg); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .hero .image-block img.hero-illustration[data-theme-file] {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }
    .premium .image-block img[data-theme-file] {
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }
}

.premium h2 {
    position: relative;
}

.premium h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin: 10px auto 0 auto;
    background: linear-gradient(90deg, #ffa000, #21ba45);
    border-radius: 2px;
}

/* subtle accent shapes */
.premium .image-block::after {
    content: "";
    position: absolute;
    right: 60px;
    top: -12px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0,119,255,0.12), rgba(33,186,69,0.12));
    filter: blur(1px);
}

.premium .text-block::before {
    content: "";
    position: absolute;
    left: -10px;
    bottom: -10px;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,160,0,0.15), rgba(7,41,99,0.12));
    filter: blur(1px);
}

/* Premium zigzag decorative center spine */
.premium .zigzag::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, rgba(33,186,69,0.28), rgba(0,119,255,0.28));
    border-radius: 2px;
    opacity: 0.35;
    pointer-events: none;
}

/* Premium zigzag connectors: dot on image side, short line on text side */
.premium .zigzag:not(.reverse) .image-block::before,
.premium .zigzag.reverse .image-block::before {
    content: "";
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffffff 0 35%, transparent 36%),
                linear-gradient(135deg, #21ba45, #0077ff);
    box-shadow: 0 0 0 4px rgba(33,186,69,0.15), 0 6px 18px rgba(0,0,0,0.12);
}

.premium .zigzag:not(.reverse) .image-block::before { right: -16px; }
.premium .zigzag.reverse .image-block::before { left: -16px; }

.premium .zigzag:not(.reverse) .text-block::after,
.premium .zigzag.reverse .text-block::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 24px;
    height: 2px;
    transform: translateY(-50%);
    background: linear-gradient(90deg, rgba(255,160,0,0.9), rgba(33,186,69,0.85));
    border-radius: 2px;
}

.premium .zigzag:not(.reverse) .text-block::after { left: -36px; }
.premium .zigzag.reverse .text-block::after { right: -36px; }

.premium .text-block strong {
    color: #072963;
}

@media (max-width: 768px) {
    .premium .text-block {
        padding: 1.25rem 1rem;
        border-radius: 14px;
    }

    .premium .image-block::after,
    .premium .text-block::before { display: none; }

    /* Hide decorative spine & connectors on small screens */
    .premium .zigzag::before,
    .premium .zigzag .image-block::before,
    .premium .zigzag .text-block::after { display: none; }

    /* Hide decorative spine on small screens */
    .premium .zigzag::before { display: none; }
}

/* Reverse layout for every other row */
.zigzag.reverse .text-block {
    order: 2;
}

.zigzag.reverse .image-block {
    order: 1;
}

.section .text-block,
.section .image-block {
    flex: 1 1 45%;
    min-width: 280px;
}

.section .image-block img {
    width: 100%;
    max-width: 600px;
    display: block;
    margin: 0 auto;
}

/* Video Section */
.video-section {
    background: linear-gradient(150deg, #ffffff 0%, #e2edff 100%);
    text-align: center;
    padding: 4rem 1rem;
}

.video-section h2 {
    color: #fff;
    /* We'll override inline for demonstration */
    margin-bottom: 1rem;
}

.video-embed {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 800px;
    margin: 2rem auto;
}

.video-embed iframe {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border: 0;
}

/* make the video behave like .image-block img */
.section .video-wrapper {
  flex: 1 1 45%;
  min-width: 280px;
}

.section .video-wrapper iframe {
  width: 100%;
  max-width: 600px;
  display: block;
  margin: 0 auto;
  aspect-ratio: 16/9;
  border: none;
}


/* Privacy/Terms Link Section */
.policy-section {
    background: #b5f3ff;
    padding: 2rem;
    text-align: center;
}

.policy-links {
    display: inline-flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* Footer */
footer {
    background: linear-gradient(45deg, #21ba45, #1e9a3f, #17833a);
    color: #fff;
    padding: 2rem 1rem;
}

footer .footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

footer .footer-section {
    flex: 1 1 250px;
    min-width: 200px;
}

footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

footer p,
footer a {
    color: #fff;
    line-height: 1.8;
    font-size: 0.95rem;
    white-space: pre-line;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero .container { border-radius: 14px; padding: 0.75rem 1rem 1.5rem; }

    .zigzag {
        flex-direction: column;
    }

    .zigzag.reverse .text-block,
    .zigzag.reverse .image-block {
        order: 0;
        /* Stacks normally on mobile */
    }

    .hero .logo {
        width: 100px;
        margin-bottom: 1rem;
        /* filter handled by dark theme rule */
    }
}

/* --- Container & Layout for Privacy/Terms Section --- */
.spendq-privacy-terms-section {
    background: linear-gradient(90deg, #ffffff 0%, #f0f6ff 100%);
    padding: 60px 20px;
    text-align: left;
}

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

.spendq-heading-wrap {
    text-align: center;
    margin-bottom: 3rem;
}

.spendq-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #072963;
    margin-bottom: 0.5rem;
}

.spendq-section-subtitle {
    font-size: 1.1rem;
    color: #464e55;
    text-align: center;
    max-width: 800px;
    margin: 0.5rem auto 2rem auto;
    line-height: 1.5;
    white-space: pre-line;
}

.spendq-divider {
    width: 80px;
    height: 4px;
    margin: 1.5rem auto 0 auto;
    background-color: #ffa000;
    border-radius: 2px;
}

.spendq-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.spendq-col {
    flex: 1 1 300px;
    min-width: 280px;
}

.spendq-inner-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.spendq-inner-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.spendq-subheader {
    font-size: 1.5rem;
    color: #072963;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spendq-subheader a {
    color: #072963;
    transition: color 0.3s;
}

.spendq-subheader a:hover {
    color: #ffa000;
    text-decoration: underline;
}

.spendq-language-options {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.spendq-language-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f9f9f9;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background 0.3s, transform 0.3s;
}

.spendq-language-option:hover {
    background: #e6f7ff;
    transform: translateY(-3px);
}

.spendq-language-option img.flag-icon {
    width: 24px;
    height: auto;
}

.spendq-language-option span {
    font-size: 1rem;
    color: #072963;
    font-weight: 500;
}

.spendq-language-option a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

/* Language switcher removed intentionally */

/* === Own Your Budget Section === */
#own-your-budget .budget-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

#own-your-budget figure {
    margin: 0;
    padding: 0;
}

#own-your-budget .budget-side img {
    width: 250px;
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.12);
}

#own-your-budget .budget-center img {
    width: 340px;
    max-width: 100%;
    border-radius: 16px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

#own-your-budget .budget-text {
    max-width: 960px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.55;
}

#own-your-budget .budget-text p {
    margin-bottom: 1.25rem;
}

#own-your-budget .feature-bullets {
    list-style: disc;
    padding-left: 1.25rem;
    margin: 1rem 0 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

#own-your-budget .feature-bullets li strong {
    color: #072963;
}

#own-your-budget .closing-line {
    font-weight: 500;
}

/* Accessibility helper */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

@media (max-width: 900px) {
    #own-your-budget .budget-side img { width: 200px; }
    #own-your-budget .budget-center img { width: 300px; }
}

@media (max-width: 640px) {
    #own-your-budget .budget-showcase { gap: 1.25rem; }
    #own-your-budget .budget-side img { width: 48%; }
    #own-your-budget .budget-center img { width: 75%; }
}