/* JJSPCBuilds storefront styles (index.html) */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0b0d17;
    --bg-soft: #10131f;
    --card: #151929;
    --card-hover: #1b2035;
    --line: rgba(255, 255, 255, 0.09);
    --text: #ffffff;
    --muted: #9ea6b8;
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --accent: #8b5cf6;
    --success: #22c55e;
    --radius: 14px;
    --max: 1160px;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
section { scroll-margin-top: 84px; }
.wrap { width: min(var(--max), calc(100% - 2.5rem)); margin: 0 auto; }
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Type */
.kicker {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); line-height: 1.08; letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h3 { font-size: 1.08rem; line-height: 1.3; font-weight: 700; }
.grad { background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); margin-top: 0.6rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
    font: inherit; font-weight: 600; font-size: 0.95rem; text-decoration: none;
    cursor: pointer; white-space: nowrap; transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(90deg, var(--primary), var(--accent)); color: #fff; }
.btn-primary:hover { background: linear-gradient(90deg, var(--primary-dark), var(--primary)); }
.btn-ghost { background: transparent; border-color: var(--line); color: #fff; }
.btn-ghost:hover { border-color: var(--primary); background: rgba(99, 102, 241, 0.08); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Announcement bar + header */
.announce {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    text-align: center; font-size: 0.82rem; font-weight: 600; padding: 0.55rem 1rem;
}
.announce a { text-decoration: underline; text-underline-offset: 2px; }
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(11, 13, 23, 0.92); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 68px; }
.brand-logo { height: 44px; width: auto; border-radius: 8px; background: #fff; padding: 2px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links a { text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: #fff; }
.cart-link {
    font: inherit; font-size: 0.9rem; font-weight: 600; color: #fff; cursor: pointer;
    background: rgba(99, 102, 241, 0.15); border: 1px solid rgba(99, 102, 241, 0.5);
    border-radius: 999px; padding: 0.45rem 1rem;
}
.cart-link:hover { background: rgba(99, 102, 241, 0.3); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: #fff; font-size: 1.2rem; border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }

/* Hero */
.hero { padding: 4rem 0 3.5rem; background: radial-gradient(circle at 85% 10%, rgba(99, 102, 241, 0.22), transparent 34rem); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 520px; margin: 1.2rem 0 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-photo { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; max-height: 520px; justify-self: end; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 3rem; }
.badge { background: var(--bg-soft); padding: 1rem 1.1rem; }
.badge strong { display: block; font-size: 0.95rem; }
.badge span { color: var(--muted); font-size: 0.82rem; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.25rem; }
.product {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    display: flex; flex-direction: column; overflow: hidden; transition: border-color 0.15s, transform 0.15s;
}
.product:hover { border-color: rgba(99, 102, 241, 0.6); transform: translateY(-2px); }
.product-art {
    aspect-ratio: 16 / 10; display: grid; place-items: center; position: relative;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.08));
    font-size: 2.6rem;
}
.product-art img { width: 100%; height: 100%; object-fit: cover; }
.tag {
    position: absolute; top: 0.75rem; left: 0.75rem; font-size: 0.68rem; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 999px;
    background: rgba(11, 13, 23, 0.85); border: 1px solid var(--line);
}
.tag.stock { color: var(--success); border-color: rgba(34, 197, 94, 0.4); }
.product-body { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.8rem; flex: 1; }
.price { font-size: 1.45rem; font-weight: 700; }
.specs { list-style: none; font-size: 0.86rem; border-top: 1px solid var(--line); }
.specs li { display: flex; gap: 0.75rem; padding: 0.42rem 0; border-bottom: 1px solid var(--line); }
.specs li span { color: var(--muted); min-width: 62px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding-top: 0.12rem; }
.product .btn { margin-top: auto; }
.note { color: var(--muted); font-size: 0.88rem; margin-top: 1.5rem; }
.note a { color: var(--accent); }

/* Info cards / steps */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p, .card li { color: var(--muted); font-size: 0.93rem; }
.card ul { list-style: none; margin-top: 0.8rem; }
.card ul li { padding-left: 1.3rem; position: relative; margin-bottom: 0.35rem; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.card .big { font-size: 1.6rem; font-weight: 700; color: #fff; margin: 0.3rem 0 0.5rem; }
.step-num { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: rgba(99, 102, 241, 0.2); color: #c7d2fe; margin-bottom: 0.9rem; }

/* Configurator */
.config-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }
.config-panel, .config-summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.config-summary { position: sticky; top: 92px; }
.config-panel fieldset { border: none; margin-bottom: 1rem; }
.config-panel legend, .field label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem; display: block; }
.brand-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.brand-option { border: 1px solid var(--line); border-radius: 12px; padding: 0.8rem 1rem; cursor: pointer; display: block; }
.brand-option input { position: absolute; opacity: 0; }
.brand-option strong { display: block; }
.brand-option span { color: var(--muted); font-size: 0.82rem; }
.brand-option:has(input:checked) { border-color: var(--primary); background: rgba(99, 102, 241, 0.12); }
.field { margin-bottom: 1rem; }
.fields-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
select, input[type="text"], input[type="email"], textarea {
    width: 100%; font: inherit; color: #fff; background: var(--bg); border: 1px solid var(--line);
    border-radius: 10px; padding: 0.75rem 0.9rem;
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--primary); }
textarea { min-height: 120px; resize: vertical; }
.config-total { font-size: 2.3rem; font-weight: 700; margin: 0.3rem 0 0.5rem; }
.config-breakdown { list-style: none; margin: 1rem 0 1.25rem; font-size: 0.88rem; }
.config-breakdown li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.4rem 0; border-bottom: 1px solid var(--line); }
.config-breakdown span { color: var(--muted); }

/* Quiz */
.quiz { max-width: 640px; margin: 2.5rem auto 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.quiz-progress { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; }
.quiz-dot { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.quiz-dot.done { background: var(--primary); }
.quiz-step { display: none; }
.quiz-step.active { display: block; }
.quiz-question { font-weight: 700; font-size: 1.05rem; margin-bottom: 1rem; }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.quiz-option { font: inherit; color: #fff; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem; cursor: pointer; text-align: left; }
.quiz-option:hover, .quiz-option.selected { border-color: var(--primary); background: rgba(99, 102, 241, 0.12); }
.quiz-result { text-align: center; margin-bottom: 1.2rem; }
.quiz-result .price { margin: 0.4rem 0; }
.link-btn { display: block; width: 100%; margin-top: 0.75rem; padding: 0.7rem; background: none; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: inherit; cursor: pointer; }

/* Pricing table */
.price-list { max-width: 820px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: none; }
.price-row strong { display: block; }
.price-row p { color: var(--muted); font-size: 0.87rem; }
.price-row .amt { font-weight: 700; font-size: 1.1rem; white-space: nowrap; color: #c7d2fe; }
.price-row.free .amt { color: var(--success); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 3 / 4; }
.gallery img, .gallery video { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 0.9rem; background: linear-gradient(transparent, rgba(11, 13, 23, 0.92)); }
.gallery figcaption strong { display: block; font-size: 0.95rem; }
.gallery figcaption span { color: var(--muted); font-size: 0.8rem; }

/* Reviews + stats */
.review blockquote { color: #e5e7eb; font-size: 0.97rem; margin: 0.6rem 0 0.8rem; }
.review cite { color: var(--muted); font-size: 0.85rem; font-style: normal; }
.stars { color: #fbbf24; letter-spacing: 0.15em; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2rem; text-align: center; }
.stat .num { font-size: 2rem; font-weight: 700; }
.stat p { color: var(--muted); font-size: 0.88rem; }

/* Forms */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.form-card.narrow, .success-box.narrow { max-width: 720px; margin: 0 auto; }
.form-group { margin-bottom: 1.1rem; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.fs-error { color: #f87171; font-size: 0.8rem; margin-top: 4px; display: block; }
.budget-options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.budget-btn { font: inherit; font-size: 0.86rem; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 0.95rem; cursor: pointer; }
.budget-btn.active { color: #fff; border-color: var(--primary); background: rgba(99, 102, 241, 0.18); }
.success-box { text-align: center; padding: 2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.success-box h3 { margin: 0.5rem 0; }
.success-box p { color: var(--muted); }
.newsletter { text-align: center; }
.newsletter form { display: flex; gap: 0.6rem; max-width: 460px; margin: 1.2rem auto 0; }

/* Contact + footer */
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.contact-link { text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 0.7rem 1.2rem; font-size: 0.92rem; font-weight: 500; }
.contact-link:hover { border-color: var(--primary); }
footer { border-top: 1px solid var(--line); padding: 2rem 0; text-align: center; color: var(--muted); font-size: 0.85rem; }
footer .brand-logo { margin: 0 auto 0.8rem; }
footer nav { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 0.8rem; }
footer nav a { text-decoration: none; }
footer nav a:hover { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
    .hero-grid, .config-grid, .split { grid-template-columns: 1fr; }
    .hero-photo { justify-self: stretch; max-height: 380px; aspect-ratio: 16 / 11; }
    .badges, .stats { grid-template-columns: 1fr 1fr; }
    .config-summary { position: static; }
    .gallery { grid-template-columns: 1fr 1fr; }
    .menu-btn { display: block; }
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column;
        align-items: flex-start; gap: 0; background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1rem;
    }
    .nav-links.active { display: flex; }
    .nav-links li { width: 100%; }
    .nav-links a { display: block; padding: 0.75rem 0; font-size: 1rem; }
    .cart-link { margin-top: 0.5rem; }
}
@media (max-width: 560px) {
    .section { padding: 3.2rem 0; }
    .fields-2, .form-row, .quiz-options { grid-template-columns: 1fr; }
    .price-row { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
    .newsletter form { flex-direction: column; }
}

/* Buy section extras */
.product-grid + .note { margin-top: 1rem; }
.notify {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; align-items: center; margin-top: 2.5rem;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
}
.notify form { display: flex; gap: 0.6rem; }
[hidden] { display: none !important; }

/* Custom PC */
.steps { grid-template-columns: repeat(4, 1fr); margin-bottom: 2.5rem; }
.custom-split { grid-template-columns: 1.15fr 0.85fr; }
input[type="range"] { width: 100%; accent-color: var(--primary); margin-top: 0.4rem; }
.range-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.78rem; }
#budgetValue { color: #c7d2fe; font-size: 1.05rem; }
.faq h3 { margin-bottom: 0.8rem; }
.faq details { border-bottom: 1px solid var(--line); padding: 0.85rem 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 0.95rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }

@media (max-width: 900px) {
    .steps { grid-template-columns: 1fr 1fr; }
    .notify, .custom-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .steps { grid-template-columns: 1fr; }
    .notify form { flex-direction: column; }
}

.product-grid.tiers { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .product-grid.tiers { grid-template-columns: 1fr; } }

/* Formspree adds data-fs-active to the success message after a form is sent */
[data-fs-success] { display: none; }
[data-fs-success][data-fs-active] { display: block; }
form:has(+ [data-fs-success][data-fs-active]) { display: none; }
/* Formspree gives the success box a light green background, so use dark text on it */
.success-box[data-fs-active] p { color: inherit; }

/* ---- Multi-page additions ---- */
.nav-links a.active { color: #fff; }
.nav-links a.active::after { content: ""; display: block; height: 2px; margin-top: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.page-hero { padding: 3.5rem 0 2.5rem; background: radial-gradient(circle at 85% 0%, rgba(99, 102, 241, 0.2), transparent 30rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero .lead { color: var(--muted); font-size: 1.05rem; max-width: 600px; margin-top: 0.9rem; }
.page-hero .lead a { color: var(--accent); }
a.card.path { text-decoration: none; display: flex; flex-direction: column; transition: border-color 0.15s, transform 0.15s; }
a.card.path:hover { border-color: rgba(99, 102, 241, 0.6); transform: translateY(-2px); }
.path-link { margin-top: auto; padding-top: 1rem; color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.cta { text-align: center; }
.cta p { margin-top: 0.5rem; }
.form-title { margin-bottom: 1.5rem; scroll-margin-top: 90px; }
.picked { background: rgba(99, 102, 241, 0.12); border: 1px solid rgba(99, 102, 241, 0.45); border-radius: 10px; padding: 0.7rem 0.9rem; font-size: 0.9rem; margin-bottom: 1.1rem; }
.contact-links.stacked { flex-direction: column; align-items: stretch; justify-content: flex-start; }
.contact-links.stacked .contact-link { border-radius: 12px; }
@media (max-width: 900px) { .nav-links a.active::after { display: none; } }
