@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700;800&display=swap');
        /* ── Tokens ── */
        :root {
            --bg: #f7f8fa;
            --white: #ffffff;
            --navy: #0d1b2a;
            --blue: #1a56db;
            --blue-dark: #1347bf;
            --blue-light: #e8effe;
            --green: #057a55;
            --green-bg: #ecfdf5;
            --border: #dde3f0;
            --text: #1c2333;
            /*--muted: #6b7280;*/
            --radius: 12px;
            --radius-sm: 8px;
            --shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
            --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.10);
            --error: #dc2626;
            --error-bg: #fef2f2;
            --blue-deep: #1b3a8f;
            --panel-bg: #4677cf;
            --card-bg: #eaecf6;
            --card-border: #dfe3f3;
            --grad: linear-gradient(100deg, #1d3c8e 0%, #2670b9 100%);

            /* ── Icon images (webp). Upload them to assets/img/ or replace with full URLs ── */
            --img-student:       url('img/student.webp');
            --img-business:      url('img/business.webp');
            --img-general:       url('img/general-use.webp');
            --img-gaming:        url('img/gaming.webp');
            --img-lenovo:        url('img/lenovo.webp');
            --img-dell:          url('img/dell.webp');
            --img-hp:            url('img/hp.webp');
            --img-asus:          url('img/asus.webp');
            --img-no-preference: url('img/no-preference.webp');
            --img-ram:           url('img/ram.webp');
            --img-not-sure:      url('img/not-sure.webp');
            --img-price:         url('img/price.webp');
            --img-price-nolimit: url('img/price-nolimit.webp');
            --img-email-laptop:  url('img/email-laptop.webp');

            /* Small UI glyphs (inline SVG) */
            --ico-check-circle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a56db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12.5 3 3 5-6'/%3E%3C/svg%3E");
            --ico-check-circle-white: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m8 12.5 3 3 5-6'/%3E%3C/svg%3E");
            --ico-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Crect x='2' y='6' width='32' height='24' rx='3' fill='%231b3a8f'/%3E%3Cpath d='m4 10 14 10L32 10' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
            --ico-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E");
        }

        *,
        *::before,
        *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
        }

        /* ── Shell ── */
        .finder {
            max-width: 960px;
            margin: 0 auto;
            padding: 32px 16px 60px;
        }

        /* ── Header ── */
        .finder-header {
            text-align: center;
        }
        .finder-header .eyebrow h1 {
            display: inline-block;
            font-size: 11px;
            font-weight: 700;
            letter-spacing: .12em;
            text-transform: uppercase;
            color: var(--blue);
            background: var(--blue-light);
            padding: 4px 12px;
            border-radius: 99px;
            margin-bottom: 14px;
        }
        .finder-header h2 {
            font-weight: 700;
            font-size: clamp(22px, 4vw, 28px);
            color: var(--navy);
            margin-bottom: 6px;
        }
        .finder-header p {
            font-size: 15px;
            color: var(--muted);
            max-width: 750px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* ── Progress ── */
        .progress-wrap {
            margin-bottom: 28px;
        }
        .progress-label {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: var(--muted);
            margin-bottom: 8px;
            font-weight: 500;
        }
        .progress-bar-bg {
            height: 6px;
            background: var(--border);
            border-radius: 99px;
            overflow: hidden;
        }
        .progress-bar-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--blue), #6366f1);
            border-radius: 99px;
            transition: width .4s cubic-bezier(.4, 0, .2, 1);
        }

        /* ── Quiz panel (blue backdrop behind the white card) ── */
        #quizContainer {
            background: var(--panel-bg);
            border-radius: 20px;
            padding: 12px;
        }

        /* ── Card ── */
        .card {
            background: var(--white);
            border: 2px solid #e3e9fa;
            border-radius: 20px;
            box-shadow: 0 6px 22px rgba(10, 30, 90, 0.18);
            padding: clamp(18px, 3vw, 32px);
            animation: slideUp .3s ease;
            font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
            color: #000;
            /* 4-column grid: header rows span all columns, options fill the columns */
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            column-gap: 14px;
            row-gap: 14px;
            align-content: start;
        }
        .card > * { grid-column: 1 / -1; }
        .card .options,
        .card .price-options { display: contents; }
        .card.step-price { grid-template-columns: repeat(5, minmax(0, 1fr)); }
        @keyframes slideUp {
            from { opacity: 0; transform: translateY(14px); }
            to   { opacity: 1; transform: translateY(0); }
        }

        .step-num {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 700;
            letter-spacing: .02em;
            text-transform: uppercase;
            color: var(--blue);
        }
        .step-num::before {
            content: '';
            width: 20px;
            height: 20px;
            flex-shrink: 0;
            background: var(--ico-check-circle) center / contain no-repeat;
        }
        .card h2 {
            font-size: 28px;
            font-weight: 800;
            color: #000;
            line-height: 1.12;
            letter-spacing: -.01em;
        }
        .card .hint {
            font-size: 15px;
            color: #000;
            line-height: 1.5;
            margin-bottom: 10px;
        }
        .card .hint strong { font-weight: 700; }

        /* ── Option cards ── */
        .opt,
        .price-opt {
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 8px;
            cursor: pointer;
            user-select: none;
            position: relative;
            text-align: left;
            transition: background .18s, border-color .18s, transform .12s, box-shadow .18s;
        }
        .opt {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            padding: 16px;
        }
        .opt:hover,
        .price-opt:hover {
            border-color: var(--blue);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(26, 86, 219, .15);
        }
        .opt.selected,
        .price-opt.selected {
            background: var(--grad);
            border-color: transparent;
            color: #fff;
        }
        .opt.selected::after,
        .price-opt.selected::after {
            content: '';
            position: absolute;
            top: 10px;
            right: 10px;
            width: 20px;
            height: 20px;
            background: var(--ico-check-circle-white) center / contain no-repeat;
        }

        /* Icon tile (emoji from the JS is hidden; the webp is used instead) */
        .opt .icon {
            display: block;
            width: 58px;
            height: 58px;
            margin-bottom: 14px;
            font-size: 0;
            line-height: 0;
            color: transparent;
            background: #fff center / 62% no-repeat;
            border: 1px solid var(--card-border);
            border-radius: 8px;
        }
        .opt .label {
            display: block;
            font-size: clamp(16px, 2.3vw, 21px);
            font-weight: 600;
            color: #000;
            line-height: 1.2;
        }
        .opt .sub {
            display: block;
            margin-top: 3px;
            font-size: 12.5px;
            color: #000;
            line-height: 1.35;
        }
        .opt.selected .label,
        .opt.selected .sub { color: #fff; }

        /* Icon images — change the file names / URLs in :root if you host them elsewhere */
        .step-usage .opt[data-value="student-laptops"]  .icon { background-image: var(--img-student); }
        .step-usage .opt[data-value="business-laptops"] .icon { background-image: var(--img-business); }
        .step-usage .opt[data-value="general"]          .icon { background-image: var(--img-general); }
        .step-usage .opt[data-value="gaming-laptops"]   .icon { background-image: var(--img-gaming); }

        .step-brand .opt[data-value="lenovo"] .icon { background-image: var(--img-lenovo); }
        .step-brand .opt[data-value="dell"]   .icon { background-image: var(--img-dell); }
        .step-brand .opt[data-value="hp"]     .icon { background-image: var(--img-hp); }
        .step-brand .opt[data-value="asus"]   .icon { background-image: var(--img-asus); }
        .step-brand .opt[data-value=""]       .icon { background-image: var(--img-no-preference); background-size: 80%; }
        .step-brand .opt .icon { width: 48px; height: 48px; margin-bottom: 12px; }
        .step-brand .opt .label { font-size: 0; line-height: 0; } /* brand name is shown by the logo */
        .step-brand .opt[data-value=""] .label { font-size: clamp(16px, 2.3vw, 21px); line-height: 1.2; }
        .step-brand .opt .sub { font-size: 12px; }
        .step-brand .opt[data-value=""] { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; align-content: center; }
        .step-brand .opt[data-value=""] .icon { grid-row: 1 / span 2; margin-bottom: 0; }
        .step-brand .opt[data-value=""] .label { align-self: end; font-size: clamp(15px, 2vw, 19px); }
        .step-brand .opt[data-value=""] .sub { align-self: start; margin-top: 2px; }

        /* RAM: icon + size share one white pill */
        .step-ram .opt { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: stretch; align-content: start; }
        .step-ram .opt .icon {
            width: 54px;
            height: auto;
            min-height: 48px;
            margin: 0;
            border-radius: 8px 0 0 8px;
            border-right: 0;
            background-size: 58%;
        }
        .step-ram .opt .label {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding: 0 12px;
            min-width: 0;
            background: #fff;
            border: 1px solid var(--card-border);
            border-left: 0;
            border-radius: 0 8px 8px 0;
            font-family: 'Bebas Neue', 'Oswald', 'Arial Narrow', Impact, sans-serif;
            font-size: clamp(22px, 3vw, 30px);
            font-weight: 400;
            letter-spacing: .02em;
            line-height: 1;
        }
        .step-ram .opt .sub { grid-column: 1 / -1; margin-top: 14px; font-size: 13.5px; }
        .step-ram .opt.selected .label { color: var(--blue-deep); }
        .step-ram .opt[data-value="8-gb"]  .icon,
        .step-ram .opt[data-value="16-gb"] .icon,
        .step-ram .opt[data-value="32-gb"] .icon { background-image: var(--img-ram); }
        /* "Not sure" is a normal card with its own icon */
        .step-ram .opt[data-value=""] { display: flex; }
        .step-ram .opt[data-value=""] .icon {
            width: 58px; height: 58px; margin-bottom: 14px;
            border-right: 1px solid var(--card-border); border-radius: 8px;
            background-image: var(--img-not-sure);
        }
        .step-ram .opt[data-value=""] .label { display: block; padding: 0; background: none; border: 0; font-family: inherit; font-size: clamp(16px, 2.3vw, 21px); font-weight: 600; letter-spacing: 0; }
        .step-ram .opt[data-value=""] .sub { margin-top: 3px; font-size: 12.5px; }

        .multi-note {
            font-size: 11px;
            margin-top: 10px;
            text-align: center;
        }

        /* ── Price range ── */
        .price-opt {
            padding: 14px;
            display: flex;
            flex-direction: column;
        }
        .price-opt::before {
            content: '';
            display: block;
            width: 54px;
            height: 54px;
            margin-bottom: 14px;
            background: #fff var(--img-price) center / 62% no-repeat;
            border: 1px solid var(--card-border);
            border-radius: 8px;
        }
        .price-opt:last-child::before { background-image: var(--img-price-nolimit); }
        .price-opt .price-label {
            font-size: clamp(15px, 2.1vw, 19px);
            font-weight: 600;
            color: #000;
            line-height: 1.2;
        }
        .price-opt .price-sub {
            font-size: 12.5px;
            color: #000;
            margin-top: 3px;
            line-height: 1.35;
        }
        .price-opt.selected .price-label,
        .price-opt.selected .price-sub { color: #fff; }

        /* ── Email step ── */
        .card.step-email {
            display: block;
            position: relative;
            overflow: hidden;
            padding-right: 47%;
            min-height: 330px;
        }
        .card.step-email > * { margin-bottom: 14px; position: relative; z-index: 1; }
        .card.step-email h2 { font-size: clamp(24px, 4.4vw, 40px); }
        .card.step-email::before {            /* navy blob behind the laptop */
            content: '';
            position: absolute;
            right: -10%;
            bottom: -30%;
            width: 50%;
            aspect-ratio: 1;
            border-radius: 50%;
            background: var(--blue-deep);
            pointer-events: none;
        }
        .card.step-email::after {             /* laptop image */
            content: '';
            position: absolute;
            right: 3%;
            top: 4%;
            bottom: 4%;
            width: 46%;
            background: var(--img-email-laptop) center / contain no-repeat;
            pointer-events: none;
        }

        .email-input-wrap {
            display: flex;
            align-items: center;
            gap: 12px;
            background: var(--card-bg);
            border: 1px solid var(--card-border);
            border-radius: 8px;
            padding: 4px 14px;
            transition: border-color .18s, background .18s, box-shadow .18s;
        }
        .email-input-wrap:focus-within {
            border-color: var(--blue);
            background: #fff;
            box-shadow: 0 0 0 4px rgba(26, 86, 219, .10);
        }
        .email-input-wrap.error-state {
            border-color: var(--error);
            background: var(--error-bg);
            box-shadow: 0 0 0 4px rgba(220, 38, 38, .06);
        }
        .email-icon {                         /* envelope tile + divider */
            flex-shrink: 0;
            width: 45px;
            height: 36px;
            font-size: 0;
            line-height: 0;
            color: transparent;
            background: var(--ico-mail) center / contain no-repeat;
            padding-right: 12px;
            box-sizing: content-box;
            border-right: 1px solid #c9d0e6;
            background-clip: content-box;
        }
        .email-input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 15px;
            padding: 14px 0;
            background: transparent;
            color: #000;
            font-family: inherit;
            min-width: 0;
        }
        .email-input::placeholder { color: #8c94ab; }
        .email-error {
            color: var(--error);
            font-size: 12px;
            margin-top: 8px;
            font-weight: 500;
            display: none;
            align-items: center;
            gap: 4px;
        }
        .email-error.visible { display: flex; }
        .email-error::before { content: '⚠️'; font-size: 13px; }
        .email-privacy {
            font-size: 11px;
            margin-top: 8px;
            text-align: center;
            line-height: 1.5;
        }
        .email-privacy span { color: var(--blue); font-weight: 600; }

        /* ── Nav buttons ── */
        .nav {
            display: flex;
            align-items: stretch;
            justify-content: flex-end;
            gap: 14px;
            margin-top: 6px;
        }
        .card > .nav { grid-column: 3 / -1; }
        .card.step-price > .nav { grid-column: 4 / -1; }
        .card.step-email > .nav { justify-content: flex-start; margin-top: 8px; }
        .nav > div:empty { flex: 0 0 126px; }

        .btn-back {
            flex: 0 0 126px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            background: #f3f6fd;
            border: 1px solid var(--card-border);
            border-radius: 8px;
            padding: 14px 12px;
            font-size: 14px;
            font-weight: 600;
            color: #8a93a8;
            cursor: pointer;
            transition: border-color .15s, color .15s;
            font-family: inherit;
        }
        .btn-back:hover { border-color: var(--blue-deep); color: var(--blue-deep); }

        .btn-next,
        .btn-find {
            flex: 1;
            background: var(--grad);
            color: #fff;
            border: none;
            border-radius: 8px;
            padding: 15px 24px;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            transition: opacity .15s, transform .1s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-family: inherit;
        }
        .btn-next:hover:not(:disabled),
        .btn-find:hover:not(:disabled) { opacity: .92; transform: translateY(-1px); }
        .btn-next:disabled,
        .btn-find:disabled { opacity: .45; cursor: default; }
        .btn-find {
            text-transform: uppercase;
            letter-spacing: .02em;
            font-size: 12.5px;
        }
        .btn-find::before {
            content: '';
            width: 15px;
            height: 15px;
            background: var(--ico-search) center / contain no-repeat;
        }

        /* ── Summary / results state ── */
        .summary-card {
            background: var(--green-bg);
            border: 1.5px solid #6ee7b7;
            border-radius: var(--radius);
            padding: 24px;
            margin-bottom: 20px;
            animation: slideUp .3s ease;
        }
        .summary-card h3 {
            font-size: 16px;
            font-weight: 700;
            color: var(--green);
            margin-bottom: 12px;
        }
        .summary-row {
            display: flex;
            justify-content: space-between;
            font-size: 13px;
            padding: 5px 0;
            border-bottom: 1px solid #d1fae5;
            color: var(--text);
            gap: 12px;
        }
        .summary-row:last-child {
            border-bottom: none;
        }
        .summary-row span:first-child {
            color: var(--muted);
            flex-shrink: 0;
        }
        .summary-row span:last-child {
            font-weight: 600;
            text-align: right;
            word-break: break-all;
        }

        .url-preview {
            background: var(--navy);
            color: #a5b4fc;
            border-radius: var(--radius-sm);
            padding: 12px 16px;
            font-family: 'SF Mono', 'Cascadia Code', 'Consolas', monospace;
            font-size: 12px;
            margin: 16px 0;
            word-break: break-all;
            line-height: 1.6;
        }

        .final-nav {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .btn-view {
            background: var(--blue);
            color: #fff;
            border: none;
            border-radius: var(--radius-sm);
            padding: 15px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            width: 100%;
            transition: background .15s;
            font-family: inherit;
        }
        .btn-view:hover {
            background: var(--blue-dark);
        }
        .btn-restart {
            background: none;
            border: 1.5px solid var(--border);
            border-radius: var(--radius-sm);
            padding: 13px;
            font-size: 14px;
            font-weight: 600;
            color: var(--muted);
            cursor: pointer;
            width: 100%;
            transition: border-color .15s, color .15s;
            font-family: inherit;
        }
        .btn-restart:hover {
            border-color: var(--navy);
            color: var(--navy);
        }

        /* ── Trust strip ── */
        .trust {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 32px;
            flex-wrap: wrap;
        }
        .trust-item {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 12px;
            color: var(--muted);
            font-weight: 500;
        }
        .trust-item span {
            font-size: 15px;
        }

        @media (max-width: 640px) {
            .card { grid-template-columns: 1fr 1fr; padding: 18px 14px; }
            .card.step-price { grid-template-columns: 1fr 1fr; }
            .card > .nav,
            .card.step-price > .nav { grid-column: 1 / -1; }
            .card.step-brand .opt[data-value=""] { grid-column: 1 / -1; }
            .card.step-email { padding-right: 14px; min-height: 0; }
            .card.step-email::before,
            .card.step-email::after { display: none; }
            .opt .icon { width: 48px; height: 48px; }
            .nav > div:empty { display: none; }
            .email-input { font-size: 15px; }
        }
