/* Storefront styles for templates/store.html. */
        /* Design Tokens */
        :root {
            --bg-root:         #0c0e12;
            --bg-elevated:     #111318;
            --bg-surface:      #1a1c20;
            --bg-overlay:      #282a2f;
            --bg-input:        #111318;

            --border-dim:      rgba(255, 255, 255, 0.05);
            --border-subtle:   rgba(255, 255, 255, 0.08);
            --border-default:  rgba(255, 255, 255, 0.12);
            --border-strong:   rgba(255, 255, 255, 0.20);
            --border-accent:   rgba(0, 212, 255, 0.30);

            --accent:          #00d4ff;
            --accent-dim:      rgba(0, 212, 255, 0.10);
            --accent-subtle:   rgba(0, 212, 255, 0.15);
            --accent-strong:   rgba(0, 212, 255, 0.30);
            --accent-glow: none;

            --status-active:   #10b981;
            --status-active-bg: rgba(16, 185, 129, 0.15);
            --status-warning:  #f59e0b;
            --status-error:    #ef4444;

            --text-primary:    #f3f4f6;
            --text-secondary:  #9ca3af;
            --text-tertiary:   #6b7280;
            --text-inverse:    #0c0e12;
            --text-accent:     #00d4ff;

            --r-xs: 6px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
            --t-fast: 0.15s ease; --t-base: 0.2s ease; --t-slow: 0.3s ease;
            --font-ui: 'Plus Jakarta Sans', system-ui, sans-serif;
            --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
            --shadow-card: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06), 0 12px 24px rgba(0,0,0,0.2);
            --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05), 0 24px 48px rgba(0,0,0,0.4);
        }

        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; }
        body {
            background: var(--bg-root);
            color: var(--text-primary);
            font-family: var(--font-ui);
            font-size: 15px;
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            overflow-x: clip;
        }
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            z-index: -1;
            pointer-events: none;
            background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
            background-size: 32px 32px;
        }
        ::selection { background: var(--accent-subtle); color: var(--accent); }
        a { color: var(--accent); text-decoration: none; }
        img { max-width: 100%; display: block; }

        /* Navbar */
        .store-nav {
            position: sticky; top: 0; z-index: 100;
            background: rgba(12, 14, 18, 0.8);
            backdrop-filter: blur(24px);
            -webkit-backdrop-filter: blur(24px);
            border-bottom: 1px solid var(--border-subtle);
            padding: 16px 32px;
            display: flex; align-items: center; justify-content: space-between;
        }
        .store-nav__brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 18px; color: var(--text-primary); letter-spacing: -0.02em; }
        .store-nav__brand svg { color: var(--accent); }
        .store-nav__links { display: flex; align-items: center; gap: 12px; }
        .store-nav__links a { color: var(--text-secondary); font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: var(--r-sm); transition: all var(--t-fast); }
        .store-nav__links a:hover { color: var(--text-primary); background: var(--border-dim); }
        .nav-cart-btn { display: flex; align-items: center; gap: 8px; background: var(--bg-surface); border: 1px solid var(--border-default); color: var(--text-primary); padding: 8px 16px; border-radius: var(--r-sm); font-family: var(--font-ui); font-size: 14px; font-weight: 600; cursor: pointer; transition: all var(--t-fast); }
        .nav-cart-btn:hover { border-color: var(--border-accent); background: var(--accent-dim); color: var(--accent); }
        .nav-signin-btn { color: var(--text-secondary); font-size: 14px; font-weight: 600; padding: 8px 20px; border-radius: var(--r-sm); border: 1px solid var(--border-default); text-decoration: none; transition: all var(--t-fast); background: transparent; }
        .nav-signin-btn:hover { color: var(--text-primary); border-color: var(--border-strong); background: var(--bg-surface); }
        .nav-download-btn { color: var(--text-inverse); font-size: 14px; font-weight: 700; padding: 8px 20px; border-radius: var(--r-sm); background: var(--accent); text-decoration: none; transition: all var(--t-fast); box-shadow: var(--accent-glow); }
        .nav-download-btn:hover { background: #00bde6; transform: translateY(-1px); }
        .nav-cart-count { background: var(--accent); color: var(--text-inverse); font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }

        .nav-cart-count[hidden] { display: none !important; }

        /* Containers */
        .container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
        .section { padding: 96px 0; }
        .section-dark { background: var(--bg-elevated); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
        .section-label { display: inline-block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 16px; }
        .section-title { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 24px; }
        .section-subtitle { color: var(--text-secondary); font-size: 18px; max-width: 640px; line-height: 1.6; }

        /* Hero */
        .hero { padding: 120px 0 140px; position: relative; overflow: hidden; }
        .hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
        /* Grid items default to min-width:auto, so ONE unbreakable child can
           stretch the whole column past the viewport. That is exactly what
           happened: .hero__guarantee was white-space:nowrap under 480px, went
           439px wide in a 390px window, and dragged .hero__text out with it —
           and because .hero above is overflow:hidden, the headline and body
           copy were CLIPPED rather than scrollable. Every phone lost the right
           edge of the hero. This is the structural half of the fix; the nowrap
           removal is the other half, in the 480px block. */
        .hero__grid > * { min-width: 0; }
        .hero__text h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 24px; text-wrap: balance; }
        .hero__text h1 .accent { color: var(--accent); text-shadow: var(--accent-glow); }
        .hero__text p { color: var(--text-secondary); font-size: 18px; line-height: 1.7; margin-bottom: 40px; max-width: 520px; }
        .hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }
        .hero__guarantee { display: flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--text-tertiary); font-size: 14px; font-weight: 500; }
        .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-ui); font-size: 15px; font-weight: 700; padding: 14px 28px; border-radius: var(--r-sm); border: none; cursor: pointer; transition: all var(--t-fast); text-decoration: none; }
        .btn-primary { background: var(--accent); color: var(--text-inverse); box-shadow: var(--accent-glow); }
        .btn-primary:hover { background: #00bde6; transform: translateY(-2px); box-shadow: none; }
        .btn-outline { background: var(--bg-surface); border: 1px solid var(--border-default); color: var(--text-primary); }
        .btn-outline:hover { border-color: var(--border-accent); background: var(--accent-dim); color: var(--accent); transform: translateY(-2px); }
        .hero__video { position: relative; overflow: visible; background: transparent; background-color: transparent; display: flex; align-items: center; justify-content: center; }
        /* The static form of the mark. Same box as the video, so a desktop
           reader who asks for less motion gets the logo in the same place and
           at the same size the animation would have occupied. */
        .hero__logo { width: 100%; height: auto; max-width: 540px; aspect-ratio: 1 / 1; object-fit: contain; display: block; align-self: center; }
        .hero__badges { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; flex-wrap: wrap; }

        /* Cycle Animation */
        .fade-cycle {
            display: inline-block;
            transition: opacity 0.5s ease-in-out;
        }

        /* Product Card */
        .pricing-grid { display: grid; grid-template-columns: 1fr; max-width: 1000px; margin: 0 auto; gap: 32px; }
        .product-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 48px 40px; position: relative; transition: all var(--t-base); margin-bottom: 24px; }
        .product-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card); transform: translateY(-4px); }
        .product-card__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; background: var(--bg-surface); border: 1px solid var(--accent); color: var(--accent); padding: 6px 16px; border-radius: 100px; box-shadow: var(--accent-glow); }
        .product-card__name { font-size: 24px; font-weight: 800; margin-bottom: 12px; color: var(--text-primary); }
        .product-card__desc { color: var(--text-secondary); font-size: 15px; margin-bottom: 32px; line-height: 1.6; }
        .product-card__price { margin-bottom: 32px; }
        .product-card__price-amount { font-family: var(--font-mono); font-size: 48px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.03em; }
        .product-card__features { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; text-align: left; }
        .product-card__feature { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; font-weight: 500; color: var(--text-primary); }
        .product-card__feature svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
        .product-card__feature--muted { color: var(--text-tertiary); }
        .product-card__feature--muted svg { color: var(--border-strong); }
        .product-card__btn { margin-top: 40px; width: 100%; justify-content: center; padding: 16px 24px; font-size: 16px; }
        /* The price was in the monospace face, which spaces "." as wide as a
           digit: "$7 . 99". The heading face with even-width digits reads as a price. */
        .product-card__price-amount { font-family: var(--font-ui); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; }
        /* One row structure for every plan card: name, description, price,
           features, button. Subgrid makes the rows line up ACROSS cards whatever
           each card holds (Lifetime has no billing toggle, Pro scaled to 105%
           used to push every row of its own out of line). */
        @supports (grid-template-rows: subgrid) {
            #pricing-individual > .product-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
            #pricing-individual > .product-card > .product-card__btn { align-self: end; }
        }

        /* ── Toggle Switch ── */
        .toggle-switch { width: 36px; height: 20px; background: var(--bg-input); border: 1px solid var(--border-default); border-radius: 10px; display: inline-flex; align-items: center; padding: 0 3px; cursor: pointer; transition: all var(--t-fast); flex-shrink: 0; }
        .toggle-switch span { width: 14px; height: 14px; border-radius: 50%; background: var(--text-tertiary); transition: all var(--t-fast); }
        .toggle-switch.on { background: var(--accent-subtle); border-color: var(--accent); }
        .toggle-switch.on span { background: var(--accent); margin-left: auto; box-shadow: var(--accent-glow); }

        /* ── Mini Queue (inside feature cards) ── */
        .mini-queue { width:100%; background:var(--bg-elevated); border:1px solid var(--border-subtle); border-radius:var(--r-md); overflow:hidden; }
        .mini-queue__header { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; background: var(--bg-surface); border-bottom:1px solid var(--border-dim); }
        .mini-queue__title { font-size:12px; font-weight:800; color:var(--text-primary); letter-spacing: 0.05em; text-transform: uppercase; }
        .mini-queue__badge { background:var(--accent); color:var(--text-inverse); font-size:10px; font-weight:800; width:20px; height:20px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
        .mini-queue__cards { padding:12px; display:flex; flex-direction:column; gap:8px; }
        .mini-card { background:var(--bg-surface); border:1px solid var(--border-dim); border-radius:var(--r-sm); padding:12px 16px; transition:border-color 0.4s; }
        .mini-card--render { background: linear-gradient(to right, var(--accent-dim) 0%, transparent 100%); }
        .mini-card--done { border-color:var(--status-active-bg); }
        .mini-card__row { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
        .mini-card__name { font-size:13px; font-weight:700; color:var(--text-primary); }
        .mini-card__actions { display:flex; align-items:center; gap:8px; }
        .mini-card__bar-wrap { height:6px; background:var(--bg-input); border-radius:3px; overflow:hidden; margin-bottom:10px; position:relative; }
        .mini-card__bar { height:100%; border-radius:3px; transition:width 0.5s ease; }
        .mini-card__bar--render { background:var(--accent); box-shadow: var(--accent-glow); }
        .mini-card__bar--done { background:var(--status-active); }
        .mini-card__stats { display:flex; align-items:center; justify-content:space-between; }
        .mini-card__status { font-size:10px; font-weight:800; letter-spacing:0.05em; text-transform: uppercase; }
        .mini-card__status--render { color:var(--accent); }
        .mini-card__status--done { color:var(--status-active); }
        .mini-card__pct { font-size:12px; font-weight:700; font-family:var(--font-mono); }
        .mini-card__pct--render { color:var(--accent); }
        .mini-card__pct--done { color:var(--status-active); }

        /* ── Notification Cycle ── */
        /* All three states share ONE grid cell, so the cycle is exactly as tall as
           the tallest card and nothing jumps when they swap. Each state is centred
           in that cell, and the card centres the cycle plus its dots, like the
           render-queue card beside it. */
        .notif-cycle { display:grid; }
        .notif-state { grid-area:1 / 1; align-self:center; width:100%; opacity:0; pointer-events:none; transform:translateY(6px); transition:opacity 0.2s ease, transform 0.2s ease; }
        /* Starts after the outgoing card has faded (0.2s), so the two never overlap. */
        .notif-state--active { opacity:1; pointer-events:auto; transform:translateY(0); transition:opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s; }
        .notif-dot { width:8px; height:8px; border-radius:50%; background:var(--border-strong); cursor:default; transition:all 0.3s; }
        .notif-dot--active { background:var(--accent); box-shadow:var(--accent-glow); }

        /* ── Notification Cards ── */
        .ntf-card { background:var(--bg-surface); border: 1px solid var(--border-subtle); border-radius:var(--r-sm); padding:16px 20px; border-left:4px solid transparent; font-size:12px; line-height:1.6; }
        .ntf-card--green { border-left-color:var(--status-active); }
        .ntf-card--red { border-left-color:var(--status-error); }
        .ntf-card--blue { border-left-color:var(--accent); }
        .ntf-header { font-size:11px; font-weight:600; color:var(--text-tertiary); margin-bottom:8px; text-transform: uppercase; letter-spacing: 0.05em; }
        .ntf-title { font-size:16px; font-weight:800; color:var(--text-primary); margin-bottom:16px; display: flex; align-items: center; gap: 8px; }
        .ntf-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; margin-bottom:16px; background: var(--bg-input); padding: 12px; border-radius: var(--r-xs); }
        .ntf-label { font-size:10px; font-weight:700; color:var(--text-tertiary); text-transform:uppercase; letter-spacing:0.05em; margin-bottom: 2px; }
        .ntf-val { font-size:12px; color:var(--text-primary); font-weight:600; }
        .ntf-mono { font-family:var(--font-mono); }
        .ntf-link { color:var(--accent); font-family:var(--font-mono); }
        .ntf-row { display:flex; align-items:center; gap:8px; margin-bottom:6px; }

        /* ── Feature Screenshot ── */
        /* 7 cards in 3 columns left the last one alone at the left edge. */
        .features-grid > :last-child:nth-child(3n+1) { grid-column: 2; }
        .features-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 32px;
            /* Not a scroll container: the items shrink (min-width: 0 below), so
               nothing overflows, and a scroll box here caught trackpad scrolling
               over the cards and stopped the page. */
        }
        /* A grid item defaults to min-width: auto, so the track cannot shrink
           below the item's min-content width. At 320px that pinned the single
           column to 308.688px inside a 288px grid: the cards were 4.7px past
           the right edge and CLIPPED, not scrollable, because .features-grid
           carries overflow-x. Same cause and same one-line fix as the hero's
           .hero__grid > * — measured identical at 360, 390, 768 and 1440, so
           this is a 320px-only change even though it is not in a media query. */
        .features-grid > * { min-width: 0; }
        .feature-screenshot { display: flex; flex-direction: column; }
        .feature-screenshot__img { padding: 32px; min-height: 320px; display: flex; align-items: center; justify-content: center; flex: 1; overflow: hidden; position: relative; }
        .feature-screenshot__label { display: flex; align-items: center; gap: 10px; padding: 20px 8px 0; font-size: 16px; font-weight: 800; color: var(--text-primary); }
        .feature-screenshot__label svg { color: var(--accent); flex-shrink: 0; }

        /* Premium Grid */
        .premium-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
        .premium-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--r-lg); padding: 40px; transition: all var(--t-base); }
        .premium-card:hover { border-color: var(--border-accent); transform: translateY(-4px); box-shadow: var(--shadow-card); background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-elevated) 100%); }
        .premium-card__icon { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--accent-dim); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; box-shadow: var(--accent-glow); }
        .premium-card__icon svg { width: 28px; height: 28px; }
        .premium-card__title { font-size: 20px; font-weight: 800; margin-bottom: 12px; color: var(--text-primary); }
        .premium-card__desc { font-size: 15px; color: var(--text-secondary); line-height: 1.7; }

        /* Steps */
        .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; position: relative; }
        .step { text-align: center; position: relative; z-index: 1; }
        .step__number { width: 64px; height: 64px; border-radius: 50%; background: var(--bg-surface); border: 2px solid var(--border-accent); color: var(--accent); font-size: 24px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; font-family: var(--font-mono); box-shadow: var(--accent-glow); }
        .step__title { font-size: 20px; font-weight: 800; margin-bottom: 12px; color: var(--text-primary); }
        .step__desc { font-size: 16px; color: var(--text-secondary); line-height: 1.6; max-width: 320px; margin: 0 auto; }

        /* Comparison Table */
        .comparison-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 0 16px; }
        .comparison-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 900px; }
        .comparison-table thead th { padding: 20px 24px; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); border-bottom: 2px solid var(--border-strong); text-align: left; background: transparent; }
        .comparison-table tbody td { padding: 20px 24px; border-bottom: 1px solid var(--border-dim); color: var(--text-secondary); vertical-align: top; line-height: 1.6; }
        .comparison-table tbody tr:last-child td { border-bottom: none; }
        .comparison-table tbody tr:hover { background: rgba(255,255,255,0.02); }
        .comparison-table tbody td:first-child { font-weight: 700; color: var(--text-primary); white-space: nowrap; width: 20%; }
        .comparison-col--accent { border-left: 2px solid var(--accent); background: rgba(0,212,255,0.02); color: var(--text-primary) !important; font-weight: 500; width: 35%; }
        .comparison-col--muted { opacity: 0.6; width: 22.5%; }

        /* FAQ */
        .faq-item { border-bottom: 1px solid var(--border-subtle); cursor: pointer; }
        .faq-q { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; font-size: 18px; font-weight: 700; color: var(--text-primary); }
        .faq-q svg { flex-shrink: 0; transition: transform var(--t-base); color: var(--accent); }
        .faq-item.active .faq-q svg { transform: rotate(180deg); }
        .faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t-slow); }
        .faq-item.active .faq-a { max-height: 800px; }
        .faq-a p { padding: 0 0 24px; color: var(--text-secondary); font-size: 16px; line-height: 1.7; }
        .faq-a strong { color: var(--text-primary); }
        .faq-a a { color: var(--accent); text-decoration: underline; }

        /* ── Enterprise Actions ── */
        .enterprise-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4px;
        }
        .enterprise-actions .btn {
            width: 100%;
            justify-content: center;
            padding: 12px 8px;
            font-size: 13px;
        }

        /* ── Hamburger Menu Button ── */
        .nav-hamburger {
            display: none;
            background: none;
            border: 1px solid var(--border-default);
            border-radius: var(--r-sm);
            width: 44px;
            height: 44px;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 5px;
            cursor: pointer;
            padding: 10px;
            transition: all var(--t-fast);
            flex-shrink: 0;
            -webkit-tap-highlight-color: transparent;
        }
        .nav-hamburger:hover { border-color: var(--border-strong); background: var(--bg-surface); }
        .nav-hamburger span {
            display: block;
            width: 20px;
            height: 2px;
            background: var(--text-secondary);
            border-radius: 2px;
            transition: all var(--t-base);
            transform-origin: center;
        }
        .nav-hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
        .nav-hamburger.active span:nth-child(2) { opacity: 0; }
        .nav-hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

        /* ── Mobile Nav Actions (cart + hamburger grouped) ── */
        .nav-mobile-actions {
            display: none;
            align-items: center;
            gap: 8px;
        }
        .nav-cart-mobile {
            display: none;
            background: var(--bg-surface);
            border: 1px solid var(--border-default);
            border-radius: var(--r-sm);
            width: 44px;
            height: 44px;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            flex-shrink: 0;
            position: relative;
            color: var(--text-primary);
            -webkit-tap-highlight-color: transparent;
        }
        .nav-cart-mobile:hover { border-color: var(--border-accent); color: var(--accent); }
        .nav-cart-mobile .nav-cart-count {
            position: absolute;
            top: -4px;
            right: -4px;
            font-size: 10px;
            min-width: 16px;
            height: 16px;
        }

        /* ── Mobile Nav Overlay ── */
        .mobile-nav {
            position: fixed;
            top: 0;
            right: 0;
            width: 100%;
            height: 100vh;
            height: 100dvh;
            z-index: 99;
            background: rgba(12, 14, 18, 0.96);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease;
        }
        .mobile-nav.open {
            opacity: 1;
            pointer-events: auto;
        }
        .mobile-nav__inner {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            padding: 32px 24px;
            max-width: 360px;
            width: 100%;
        }
        .mobile-nav__inner a {
            display: block;
            width: 100%;
            text-align: center;
            color: var(--text-primary);
            font-size: 18px;
            font-weight: 700;
            padding: 14px 24px;
            border-radius: var(--r-sm);
            transition: all var(--t-fast);
            text-decoration: none;
            min-height: 48px;
        }
        .mobile-nav__inner a:hover { background: var(--bg-surface); }
        .mobile-nav__inner hr {
            width: 100%;
            border: none;
            border-top: 1px solid var(--border-subtle);
            margin: 12px 0;
        }
        .mobile-nav__signin {
            background: var(--bg-surface) !important;
            border: 1px solid var(--border-default);
            border-radius: var(--r-sm);
            color: var(--text-primary) !important;
        }
        .mobile-nav__download {
            background: var(--accent) !important;
            color: var(--text-inverse) !important;
            box-shadow: var(--accent-glow);
            margin-top: 12px;
        }

        .feature-grid-2col {
            display: grid;
            grid-template-columns: 1fr 1fr;
        }

        /* Cart Panel */
        .cart-overlay { position:fixed;inset:0;background:rgba(0,0,0,0.6);backdrop-filter:blur(4px);z-index:200;opacity:0;pointer-events:none;transition:opacity 0.15s; }
        .cart-overlay.open { opacity:1;pointer-events:auto; }
        .cart-panel { position:fixed;top:0;right:0;width:400px;max-width:90vw;height:100vh;background:var(--bg-elevated);border-left:1px solid var(--border-default);z-index:201;transform:translateX(100%);transition:transform 0.3s;display:flex;flex-direction:column; }
        .cart-panel.open { transform:translateX(0); }
        .cart-panel__header { display:flex;align-items:center;justify-content:space-between;padding:20px 24px;border-bottom:1px solid var(--border-subtle); }
        .cart-panel__header h3 { font-size:16px;font-weight:700; }
        .cart-close {
            background: none;
            border: none;
            color: var(--text-tertiary);
            font-size: 24px;
            cursor: pointer;
            min-width: 44px;
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .cart-panel__body { flex:1;overflow-y:auto;padding:16px 24px; }
        .cart-empty { text-align:center;padding:60px 20px;color:var(--text-tertiary); }
        .cart-panel__footer { padding:20px 24px;border-top:1px solid var(--border-subtle); }

        /* ═══════════════════════════════════════════════════
           RESPONSIVE — Viewports (Descending Order)
           ═══════════════════════════════════════════════════ */

        /* Header items never wrap: below 1180 the menu button takes over, up to 1280 they tighten. */
        .store-nav__brand { flex-shrink: 0; } .store-nav__links a, .nav-cart-btn { white-space: nowrap; }
        @media (max-width: 1179px) { .nav-hamburger, .nav-mobile-actions, .nav-cart-mobile { display: flex; } .store-nav__links { display: none !important; } }
        @media (min-width: 1180px) and (max-width: 1279px) { .store-nav { padding: 16px 24px; } .store-nav__links { gap: 4px; } .store-nav__links a { padding: 8px 10px; } .nav-signin-btn, .nav-download-btn { padding: 8px 14px; } .nav-cart-btn { padding: 8px 12px; } }

        /* ── TABLET & MOBILE (≤1024px) ── */
        @media (max-width: 1024px) {
            /* Navbar Breakpoint */
            .nav-hamburger { display: flex; }
            .store-nav__links { display: none !important; }
            .store-nav { padding: 12px 16px; position: relative !important; }
            .nav-mobile-actions { display: flex; }
            .nav-cart-mobile { display: flex; }

            /* Hero grid */
            .hero__grid { grid-template-columns: 1fr; text-align: center; gap: 48px; }
            .hero__text p, .hero__guarantee { margin-left: auto; margin-right: auto; justify-content: center; }
            .hero__cta, .hero__badges { justify-content: center; }

            /* Feature screenshot grid */
            .features-grid { grid-template-columns: repeat(2, 1fr); }
            .features-grid > :last-child:nth-child(3n+1) { grid-column: auto; }
            .features-grid > :last-child:nth-child(2n+1) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 16px); }
            .steps { grid-template-columns: 1fr; gap: 64px; }

            /* Footer: 2×2 grid on tablet */
            footer .container > div:first-child {
                grid-template-columns: 1fr 1fr !important;
                gap: 40px;
            }

            /* Pricing Individual: 2-column layout and center third card */
            #pricing-individual {
                grid-template-columns: 1fr 1fr !important;
                max-width: 100% !important;
            }
            #pricing-individual #lifetimeCard {
                grid-column: span 2 !important;
                justify-self: center !important;
                width: 100%;
                max-width: 500px;
            }

            /* Pricing Enterprise: 2-column layout and stack actions vertically */
            #pricing-enterprise {
                grid-template-columns: 1fr 1fr !important;
                max-width: 100% !important;
                gap: 12px !important;
            }
            #pricing-enterprise .product-card:nth-child(3) {
                grid-column: span 2 !important;
                justify-self: center !important;
                width: 100%;
                max-width: 500px;
            }
            .enterprise-actions {
                grid-template-columns: 1fr !important;
                gap: 4px;
            }

            /* Scale Reset: Prevent card overlapping starting at 1024px down */
            .product-card[style*="scale"] {
                transform: none !important;
            }
            /* Additional fix: disable scaling for enterprise cards */
            #pricing-enterprise .product-card[style*="scale"] {
                transform: none !important;
            }

            /* Toggle switches: larger touch targets on tablets/mobile */
            /* Ensure agency Best Value badge is above other cards */
            #pricing-enterprise .product-card:nth-child(3) {
                z-index: 12 !important;
            }
            #pricing-enterprise .product-card:nth-child(3) .product-card__badge {
                top: -20px;
            }
            .toggle-switch {
                width: 52px;
                height: 30px;
                border-radius: 15px;
                padding: 0 5px;
                position: relative;
            }
            .toggle-switch span {
                width: 20px;
                height: 20px;
            }
            .toggle-switch::after {
                content: '';
                position: absolute;
                top: -8px;
                bottom: -8px;
                left: -6px;
                right: -6px;
            }

            /* General tablet adjustments */
            .product-card { padding: 32px 24px; }
            #pricing-enterprise .product-card { padding: 20px 12px !important; }
            #pricing-enterprise .product-card__btn { padding: 10px 8px !important; font-size: 12px !important; }
            .product-card__price-amount { font-size: 36px; }
            .product-card__btn { padding: 12px 16px; font-size: 14px; }
        }

        /* ── SMALL TABLETS & PHONES (≤768px) ── */
        @media (max-width: 768px) {
            /* Cart panel full width */
            .cart-panel { width: 100vw; max-width: 100vw; }
            .cart-panel__body { padding: 16px 20px; }
            .cart-panel__header { padding: 16px 20px; }
            .cart-panel__footer { padding: 16px 20px; }

            /* Hero video scaling */
            .hero__video video { max-width: 100% !important; width: 100% !important; }

            /* Mobile hero: the mark LEADS the page instead of trailing it.
               Stacked, the logo sat below the call to action and the trial
               line, which on a phone is the one spot nobody scrolls back to,
               and at 300px it pushed the pricing link off screen. Above the
               headline at 112px it reads as identity rather than decoration -
               the way an app listing opens - and costs eight lines of scroll
               instead of a screenful. */
            .hero__video { order: -1; }
            .hero__logo { width: 112px; max-width: 112px; margin: 0 auto 16px; }
            .hero { padding: 80px 0 100px; }
            .hero__text h1 { font-size: clamp(30px, 8vw, 44px); }
            .hero__text p { font-size: 16px; }

            /* Section padding */
            .section { padding: 64px 0; }
            .container { padding: 0 20px; }

            /* Feature grid */
            .features-grid { grid-template-columns: 1fr; }
            .features-grid > :last-child:nth-child(n) { grid-column: auto; justify-self: stretch; width: auto; }

            /* Pricing grid override */
            .pricing-grid { grid-template-columns: 1fr; }

            /* Premium grid */
            .premium-grid { grid-template-columns: 1fr; }

            /* Button tap targets: min 44px height */
            .btn { min-height: 44px; padding: 12px 24px; }
            .product-card__btn { min-height: 48px; }
            .product-card button,
            .pricing-grid button { min-height: 44px; }
            .nav-cart-btn { min-height: 44px; }
            .nav-signin-btn, .nav-download-btn { min-height: 44px; display: inline-flex; align-items: center; }

            /* Comparison table wrapper */
            /* ── The comparison, transposed ──────────────────────────────
               It used to be the same 4-column table at min-width: 700px inside
               a horizontal scroller: 1.79x the width of a 390px screen, so
               about 56% of a row was visible at once. The scroller worked, but
               a comparison you have to swipe through cannot show you the two
               things being compared at the same time, which is the only reason
               a comparison table exists. Narrowing it further was never an
               option — four columns of prose do not fit 390px at any readable
               size.

               So below 768px each ROW becomes a card: the feature name as its
               heading, then one labelled line per product. Same table, same
               markup, same single source of truth — only the projection
               changes. Nothing is duplicated, so nothing can drift, and the
               table is still in the DOM for crawlers and for desktop.

               The product labels come from ::before on nth-child rather than
               from data-label attributes on all 45 cells. That keeps the
               markup untouched, and test_store_mobile_comparison.py checks
               these three strings still match the real <th> text, so the one
               risk of putting content in CSS is covered. */
            .comparison-table-wrapper { margin: 0; padding: 0; overflow-x: visible; }
            .comparison-table { min-width: 0 !important; font-size: 14px; display: block; }
            .comparison-table thead { display: none; }
            .comparison-table tbody,
            .comparison-table tr,
            .comparison-table td { display: block; width: 100%; }

            .comparison-table tr {
                background: var(--bg-elevated);
                border: 1px solid var(--border-dim);
                border-radius: var(--r-sm);
                padding: 16px;
                margin-bottom: 12px;
            }
            .comparison-table tbody tr:hover { background: var(--bg-elevated); }

            /* The feature name is the card's heading, not a cell.

               position/box-shadow are reset explicitly: the sticky first
               column defined outside the media queries is what pinned the
               feature name while you scrolled the table sideways. There is no
               sideways any more, so left over it would just be a stray drop
               shadow under every card heading. */
            .comparison-table tbody td:first-child {
                position: static;
                box-shadow: none;
                background: transparent;
                width: auto;
                white-space: normal;
                font-size: 15px;
                font-weight: 800;
                color: var(--text-primary);
                padding: 0 0 12px;
                border-bottom: 1px solid var(--border-dim);
                margin-bottom: 12px;
            }

            .comparison-table tbody td {
                width: auto;
                padding: 8px 0 0;
                border-bottom: none;
                line-height: 1.55;
            }

            /* Which product this line is about. Without it the card is three
               unattributed sentences in a row. */
            .comparison-table tbody td:not(:first-child)::before {
                display: block;
                font-size: 11px;
                font-weight: 800;
                text-transform: uppercase;
                letter-spacing: 0.05em;
                color: var(--text-tertiary);
                margin-bottom: 2px;
            }
            .comparison-table tbody td:nth-child(2)::before { content: "EasyRender"; color: var(--accent); }
            .comparison-table tbody td:nth-child(3)::before { content: "Media Encoder"; }
            .comparison-table tbody td:nth-child(4)::before { content: "BG Renderer MAX"; }

            /* The accent column keeps its emphasis, but as a left rule on a
               block rather than a table-column border. */
            .comparison-table tbody td.comparison-col--accent {
                border-left: 2px solid var(--accent);
                padding-left: 10px;
                background: transparent;
            }

            /* FAQ mobile */
            .faq-q { font-size: 16px; padding: 20px 0; gap: 12px; }
            .faq-a p { font-size: 15px; padding: 0 0 20px; }

            /* Footer stack */
            footer div[style*="grid-template-columns"] {
                grid-template-columns: 1fr !important;
                gap: 32px !important;
            }
            footer div[style*="justify-content: space-between"] {
                flex-direction: column !important;
                gap: 16px !important;
                text-align: center !important;
            }

            /* Hero CTA stacking */
            .hero__cta { flex-direction: column; align-items: center; }
            .hero__cta .btn { width: 100%; max-width: 260px; justify-content: center; }

            /* Premium card padding */
            .premium-card { padding: 28px 24px; }
        }

        /* ── MOBILE VIEWPORTS (≤639px) ── */
        @media (max-width: 639px) {
            /* 1-column layouts for pricing */
            #pricing-individual, #pricing-enterprise {
                grid-template-columns: 1fr !important;
            }
            #pricing-individual #lifetimeCard,
            #pricing-enterprise .product-card:nth-child(3) {
                grid-column: span 1 !important;
                justify-self: stretch !important;
                max-width: 100% !important;
            }
            #pricing-enterprise .product-card {
                padding: 32px 24px !important;
            }
            #pricing-enterprise .product-card__btn {
                padding: 12px 16px !important;
                font-size: 14px !important;
            }

            /* Reflow feature grid to 1-column layout on mobile viewports (<640px) */
            .feature-grid-2col {
                grid-template-columns: 1fr !important;
            }
        }

        /* ── SMALL PHONES (≤480px) ── */
        @media (max-width: 480px) {
            .container { padding: 0 16px; }
            .section { padding: 32px 0; }
            .section-title { font-size: clamp(22px, 8vw, 28px); }
            .section-subtitle { font-size: 15px; }
            .hero { padding: 40px 0 16px; }
            .hero + .section { padding-top: 0; }
            .hero__grid { gap: 0; }
            .hero__video { display: flex !important; justify-content: center; }
.hero__video video { max-width: 300px !important; width: 100% !important; }
            .hero__text h1 { font-size: clamp(24px, 9vw, 32px); }
            /* Was white-space: nowrap. The sentence is ~62 characters and does
               not fit 390px at any font size that is still readable, so forcing
               one line only ever meant "overflow the viewport". It wraps now. */
            .hero__guarantee { font-size: 13px; flex-wrap: wrap; justify-content: center; row-gap: 2px; }
            .hero__cta .btn { width: 100%; max-width: 260px; }
            .store-nav { padding: 10px 12px; }
            .store-nav__brand { font-size: 15px; }
            .product-card { padding: 24px 20px; }
            .product-card__price-amount { font-size: 34px; }
            .product-card__name { font-size: 20px; }
            .product-card__btn { padding: 14px 16px; font-size: 14px; }
            .premium-card { padding: 24px 20px; }
            .premium-card__title { font-size: 17px; }
            .premium-card__icon { width: 48px; height: 48px; }
            .feature-screenshot__img { min-height: 200px; padding: 16px; }

            #pricing-individual,
            #pricing-enterprise {
                max-width: 100%;
                gap: 20px;
            }
            .btn { padding: 12px 18px; font-size: 14px; }
            footer { padding: 48px 0 32px; }
            /* Mobile nav links slightly smaller on tiny screens */
            .mobile-nav__inner a { font-size: 17px; padding: 12px 20px; }
        }

        /* Usability & Accessibility enhancements */
        #planLabelIndividual, #planLabelEnterprise,
        #stdCycleLabelMonthly, #stdCycleLabelAnnual,
        #proCycleLabelMonthly, #proCycleLabelAnnual {
            padding: 12px 16px;
            display: inline-block;
            cursor: pointer;
            user-select: none;
        }

        /* Comparison table fixes */
.comparison-table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.03);
}
.comparison-table tbody tr:hover td:first-child {
    background-color: var(--bg-elevated);
}

.comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-elevated);
}
.comparison-table-wrapper::-webkit-scrollbar { height: 6px; }
.comparison-table-wrapper::-webkit-scrollbar-track { background: var(--bg-elevated); }
.comparison-table-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 3px;
}

.comparison-table thead th:first-child,
.comparison-table tbody td:first-child {
    position: sticky;
    left: 0;
    background: var(--bg-elevated);
    box-shadow: 2px 0 6px rgba(0,0,0,0.3);
    z-index: 2;
}
.comparison-table thead th:first-child { z-index: 3; }

/* Larger icons for accessibility */
.comparison-table td {
    padding: 12px 8px;
}
.comparison-table .check,
.comparison-table .cross {
    font-size: 1.2rem;
    display: inline-block;
    width: 1rem;
    text-align: center;
}
.comparison-table .check { color: var(--status-active); }
.comparison-table .cross { color: var(--status-error); }

/* The fourth column (BG Renderer MAX) used to be hidden below 480px. That was
   a width workaround: with the comparison as a 700px table in a horizontal
   scroller, dropping a column made the swipe shorter. It also meant a phone
   visitor silently saw a WEAKER comparison than a desktop visitor — two of
   three competitors instead of three.

   The transposition removed the constraint. Cards stack vertically, so a
   fourth value costs height, which phones have, rather than width, which they
   do not. All three products show at every size now. */

/* Custom scrollbar styling for the comparison table */
.comparison-table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-surface);
}

/* WebKit scrollbar */
.comparison-table-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
.comparison-table-wrapper::-webkit-scrollbar-track {
    background: var(--bg-surface);
}
.comparison-table-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 4px;
    border: 2px solid var(--bg-surface);
}

/* ── Split out of inline markup ── */
.plan-type-row { display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:48px; }
.plan-label { font-size:14px;font-weight:600;color:var(--text-tertiary);cursor:pointer; }
.plan-label--active { font-weight:700;color:var(--text-primary); }
#planTypeToggle { cursor:pointer; }
.mobile-nav__cart { display:flex;align-items:center;justify-content:center;gap:8px; }
.footer-social { color:var(--text-tertiary);display:flex;align-items:center;gap:6px;font-size:13px;font-weight:600;text-decoration:none;transition:color var(--t-fast); }
.footer-social:hover { color:var(--accent); }

.sales-closed-notice { max-width:1100px;margin:0 auto 32px;text-align:center; }
.sales-closed-notice__pill { display:inline-flex;align-items:center;gap:8px;padding:8px 14px;border-radius:999px;background:rgba(0,212,255,0.06);border:1px solid rgba(0,212,255,0.18);color:var(--text-secondary);font-size:13.5px;line-height:1.4; }
.sales-closed-notice__pill svg { flex:none; }
.sales-closed-notice a { color:#00d4ff;text-decoration:none;font-weight:600;white-space:nowrap; }
.beta-closed-notice { padding:24px;border-radius:12px;background:rgba(239,68,68,0.08);border:1px solid rgba(239,68,68,0.2);color:var(--text-secondary);font-size:15px;text-align:center; }
.beta-closed-notice strong { color:var(--text-primary); }

.cart-line { display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--border-dim); }
.cart-line__info { flex:1; }
.cart-line__name { font-size:14px;font-weight:600;color:var(--text-primary); }
.cart-line__price { font-size:12px;color:var(--text-tertiary); }
.cart-line__remove { background:transparent;border:1px solid var(--border-subtle);color:var(--text-tertiary);width:38px;height:38px;border-radius:6px;cursor:pointer;font-size:16px;display:inline-flex;align-items:center;justify-content:center; }

.checkout { margin-top:16px;padding-top:16px;border-top:1px solid var(--border-dim); }
.checkout__label { font-size:12px;color:var(--text-tertiary);margin-bottom:6px; }
.checkout__label--create { margin-bottom:8px; }
.checkout__account { display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--bg-input);border:1px solid var(--border-default);border-radius:6px;padding:10px 12px; }
.checkout__account span { font-size:13px;color:var(--text-primary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
.checkout__account a { font-size:12px;color:var(--accent);text-decoration:none;font-weight:600;flex-shrink:0; }
.checkout__input { width:100%;background:var(--bg-input);border:1px solid var(--border-default);border-radius:6px;padding:10px 12px;color:var(--text-primary);font-size:13px;font-family:var(--font-ui);outline:none;margin-bottom:8px; }
.checkout__input--last { margin-bottom:0; }
.checkout__hint { font-size:11px;color:var(--text-tertiary);margin-top:6px;line-height:1.5; }
.checkout__error { font-size:11px;color:var(--status-error);margin-top:6px;display:none; }
.checkout__check { display:flex;gap:9px;align-items:flex-start;margin-top:14px;padding:11px 12px;background:var(--bg-input);border:1px solid var(--border-default);border-radius:6px;cursor:pointer; }
.checkout__check--tight { margin-top:8px; }
.checkout__check input { margin-top:1px;width:16px;height:16px;accent-color:var(--accent);flex-shrink:0;cursor:pointer; }
.checkout__check span { font-size:11px;line-height:1.6;color:var(--text-tertiary); }
.checkout__check a { color:var(--accent); }
.checkout__check strong { color:var(--text-secondary); }
.checkout__pay { width:100%;margin-top:10px;background:var(--accent);color:var(--text-inverse);border:none;border-radius:6px;padding:14px;font-size:14px;font-weight:700;cursor:pointer;font-family:var(--font-ui); }
.checkout__signin { text-align:center;margin-top:10px;font-size:12px;color:var(--text-tertiary); }
.checkout__signin a { color:var(--accent);text-decoration:none;font-weight:600; }
