/* Shared layout for the gear pages (amps, pedals, cabinets, effects).
   Same identity as index.html: indigo gradient, gold reserved for the buy
   path, Neon Halo cards (knob-ground body, per-item accent glow). Palette
   comes from tokens.css. ASCII only. */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, var(--bg-indigo) 0%, var(--bg-navy) 50%, var(--bg-deep) 100%);
    background-color: var(--bg-indigo);
    color: var(--white);
    min-height: 100vh;
    line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

a { color: var(--link); }

/* Header / nav: website/nav.css (shared with the older pages). */

/* ---- Buttons ---- */
.btn {
    display: inline-block; padding: 14px 34px; border-radius: 8px; font-size: 1.05rem;
    font-weight: 600; text-decoration: none; transition: transform 0.3s, box-shadow 0.3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(90deg, var(--gold), var(--orange)); color: var(--bg-indigo); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3); }
.btn-secondary { background: rgba(255,255,255,0.1); color: var(--white); border: 1px solid rgba(255,255,255,0.2); }
.btn-secondary:hover { background: rgba(255,255,255,0.15); }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- Page hero ---- */
.page-hero { padding: 56px 0 28px; text-align: center; }
.page-hero h1 { font-size: 2.8rem; line-height: 1.15; margin-bottom: 14px; }
.page-hero .lead { font-size: 1.2rem; color: var(--gray-aa); max-width: 760px; margin: 0 auto; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 22px; list-style: none; }
.jump a {
    display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.85rem;
    color: var(--gray-cc); text-decoration: none; border: 1px solid rgba(255,255,255,0.15);
}
.jump a:hover { border-color: var(--acc-mirage); color: var(--white); }

/* ---- Sections ---- */
.gear-section { padding: 36px 0; }
.gear-section h2 { font-size: 1.8rem; margin-bottom: 6px; }
.gear-section .section-lead { color: var(--gray-99); margin-bottom: 24px; max-width: 820px; }

/* ---- Cards: one format everywhere ---- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card {
    --card-accent: var(--acc-mirage);
    background: var(--knob-ground);
    border: 1px solid color-mix(in srgb, var(--card-accent) 45%, transparent);
    box-shadow: 0 0 22px -8px color-mix(in srgb, var(--card-accent) 55%, transparent),
                inset 0 0 30px -24px var(--card-accent);
    border-radius: 12px;
    padding: 22px 22px 20px;
    display: flex; flex-direction: column; gap: 12px;
    scroll-margin-top: 20px;
}
.card-wide { grid-column: 1 / -1; }
/* Amp Lab's 14 x 14 combination grid keeps its own proportions. */
.card-wide .card-strip { height: auto; }
/* Card-top data strip (Amps: voicing, Pedals: scope trace), drawn by
   tools/home_tiles; bleeds to the card edges over the 22px padding. */
.card-strip {
    display: block; width: calc(100% + 44px); height: 56px; margin: -22px -22px 0;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--card-accent) 25%, transparent);
}
.card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.card-head h3 {
    font-size: 1.25rem; margin-right: auto; padding-bottom: 5px; position: relative;
}
.card-head h3::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
    background: var(--card-accent); box-shadow: 0 0 8px 1px var(--card-accent);
}
.card-char { color: var(--gray-bb); font-size: 0.95rem; }

.badge {
    font-size: 0.65rem; letter-spacing: 0.08em; font-weight: 700; text-transform: uppercase;
    padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
.badge-pro { color: var(--gold); border: 1px solid rgba(255, 215, 0, 0.45); background: rgba(255, 215, 0, 0.08); }
.badge-free { color: var(--success); border: 1px solid rgba(102, 187, 106, 0.5); background: rgba(102, 187, 106, 0.08); }
.tag-cpu {
    font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-99);
    border: 1px dashed rgba(255,255,255,0.25); padding: 1px 7px; border-radius: 999px; cursor: help;
}

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.chips li {
    font-size: 0.78rem; color: var(--gray-e0); padding: 2px 9px; border-radius: 4px;
    background: color-mix(in srgb, var(--card-accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--card-accent) 35%, transparent);
}
.card-clip { width: 100%; height: 36px; }

.card-lab { font-size: 0.88rem; color: var(--gray-aa); }
.card-lab summary { cursor: pointer; color: var(--gray-cc); }
.card-lab summary:hover { color: var(--white); }
.card-lab p { margin-top: 6px; }
.card-lab strong { color: var(--gray-dd); }

.card-mini {
    --card-accent: var(--acc-chorus);
    background: var(--knob-ground);
    border: 1px solid color-mix(in srgb, var(--card-accent) 40%, transparent);
    border-left: 3px solid var(--card-accent);
    border-radius: 10px; padding: 14px 16px;
}
/* Effects cards: the module's own visualizer at its native shape (a thin band;
   the Amp & Drive and Dynamics panels are taller). */
.card-fx .card-strip {
    /* .card-fx pads 16px 18px (not .card's 22px): bleed by exactly that. */
    width: calc(100% + 36px); margin: -16px -18px 0; border-radius: 11px 11px 0 0;
    height: auto; background: #0d0c18;
}
/* Thin bands share one taller shape so they read at card size and card titles
   line up: 9:1, cropped to the middle of the band (the ends are cut). */
.card-fx .card-strip-band { aspect-ratio: 9 / 1; object-fit: cover; }
.card-mini .card-strip {
    width: calc(100% + 32px); height: 42px; margin: -14px -16px 10px; border-radius: 9px 9px 0 0;
}
.card-mini h4 { font-size: 1.02rem; margin-bottom: 4px; }
.card-mini p { color: var(--gray-aa); font-size: 0.9rem; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

/* ---- Effects page: lighter cards, accent per category ---- */
.fx-group { --cat-accent: var(--acc-mirage); }
.cat-modulation { --cat-accent: var(--acc-chorus); }
.cat-delay { --cat-accent: var(--acc-stutter); }
.cat-reverb { --cat-accent: var(--acc-prism); }
.cat-texture { --cat-accent: var(--acc-mirage); }
.cat-amp-drive { --cat-accent: var(--acc-ember); }
.cat-dynamics { --cat-accent: var(--acc-phaser); }
.cat-utility { --cat-accent: var(--acc-saturator); }
.fx-group h2 .count { font-size: 0.9rem; color: var(--cat-accent); vertical-align: middle; margin-left: 6px; }
.card-grid-fx { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card-fx {
    --card-accent: var(--cat-accent);
    padding: 16px 18px; gap: 8px; box-shadow: none;
    border-color: color-mix(in srgb, var(--card-accent) 30%, transparent);
}
.card-fx .card-head h3 { font-size: 1.08rem; }
.card-fx .card-char { font-size: 0.9rem; }
.card-link { margin-top: auto; font-size: 0.85rem; color: var(--card-accent); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

/* ---- Pedal quality tiers ---- */
.tiers { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.tiers li {
    padding: 6px 14px; border-radius: 8px; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12); color: var(--gray-dd);
}
.tiers li.is-default { border-color: var(--acc-mirage); color: var(--white); }
.tiers li em { font-style: normal; font-size: 0.72rem; color: var(--acc-mirage); margin-left: 4px; }
.tiers-note { color: var(--gray-aa); max-width: 820px; }

/* ---- CTA strip ---- */
.cta-strip {
    margin: 30px 0 60px; padding: 30px 20px; text-align: center; border-radius: 14px;
    background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.08);
}
.cta-strip p { color: var(--gray-cc); margin-bottom: 18px; font-size: 1.1rem; }

/* ---- Home: hero ---- */
.home-hero { padding: 56px 0 30px; text-align: center; }
.home-hero h1 { font-size: 2.9rem; line-height: 1.15; max-width: 900px; margin: 0 auto 26px; }
.home-hero .cta-buttons { margin-bottom: 34px; }
.hero-shot { display: block; max-width: 1100px; margin: 0 auto; }
/* Fixed frame so swapping in a taller shot never moves the thumbs under the cursor. */
.hero-shot {
    aspect-ratio: 2032 / 1096; border-radius: 12px; overflow: hidden; background: var(--bg-black);
    border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 20px 60px rgba(0,0,0,0.5); cursor: zoom-in;
}
.hero-shot img { width: 100%; height: 100%; display: block; object-fit: contain; }

/* ---- Home: screenshot gallery ---- */
.shot-thumbs {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
    max-width: 1100px; margin: 14px auto 0;
}
.shot-thumbs a {
    display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden;
    border: 2px solid rgba(255,255,255,0.1); opacity: 0.6; transition: opacity 0.2s, border-color 0.2s;
}
.shot-thumbs a:hover, .shot-thumbs a:focus-visible { opacity: 1; }
.shot-thumbs a.is-active { opacity: 1; border-color: var(--acc-mirage); }
.shot-thumbs img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top left; }
.shot-box {
    margin: auto; max-width: 96vw; max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible;
}
.shot-box::backdrop { background: rgba(0,0,0,0.88); }
.shot-box img { display: block; max-width: 96vw; max-height: 94vh; width: auto; height: auto; border-radius: 8px; }
.shot-box button {
    position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(0,0,0,0.6); color: var(--white); font-size: 1.8rem; line-height: 1;
}
.shot-box button:hover { background: rgba(0,0,0,0.85); }
.shot-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.shot-next { right: 10px; top: 50%; transform: translateY(-50%); }
.shot-close { right: 10px; top: 10px; }
@media (max-width: 600px) { .shot-thumbs { gap: 6px; } .shot-thumbs a { border-width: 1px; } }

/* ---- Home: tiles ---- */
.home-section { padding: 40px 0; }
.home-section h2 { text-align: center; font-size: 2rem; margin-bottom: 26px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.tile {
    display: flex; flex-direction: column; text-decoration: none; color: var(--white);
    background: var(--knob-ground); border-radius: 12px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1); transition: transform 0.3s, border-color 0.3s;
}
.tile:hover { transform: translateY(-4px); border-color: var(--acc-mirage); }
/* Tile art: 500x200 SVGs drawn by tools/home_tiles/home_tiles.py. */
.tile-img {
    display: block; aspect-ratio: 5 / 2; background-color: var(--bg-black);
    background-repeat: no-repeat; background-size: cover; background-position: center;
}
.tile-amps    { background-image: url("images/home-amps.svg"); }
.tile-pedals  { background-image: url("images/home-pedals.svg"); }
.tile-cabs    { background-image: url("images/home-cabs.svg"); }
.tile-effects { background-image: url("images/home-effects.svg"); }
.tile-rack    { background-image: url("images/home-rack.svg"); }
.tile-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.tile-count { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--acc-mirage); font-weight: 700; }
.tile-title { font-size: 1.3rem; font-weight: 700; }
.tile-text { color: var(--gray-aa); font-size: 0.93rem; }

/* ---- Home: video ---- */
.video-embed {
    position: relative; max-width: 900px; margin: 0 auto; aspect-ratio: 16 / 9;
    border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1);
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Home: pricing ---- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.price-card {
    background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 10px;
    scroll-margin-top: 20px;
}
.price-card.is-pro { border-color: rgba(255, 215, 0, 0.5); box-shadow: 0 0 28px -10px rgba(255, 215, 0, 0.5); }
.price-card h3 { font-size: 1.3rem; }
.price-card .price { font-size: 2rem; font-weight: 700; color: var(--white); }
.price-card.is-pro .price { color: var(--gold); }
.price-card .price span { font-size: 0.9rem; color: var(--gray-99); font-weight: 400; }
.price-card p { color: var(--gray-bb); font-size: 0.95rem; }
.price-card .btn { width: 100%; text-align: center; }
.price-card .pay-note { font-size: 0.8rem; color: var(--gray-9a); text-align: center; }
.btn-fastspring { background: linear-gradient(90deg, var(--link-deep), var(--link-alt)); color: var(--white); }
.downloads { margin-top: 24px; text-align: center; }
.downloads p { color: var(--gray-aa); margin-bottom: 14px; }
.btn-dl { display: inline-flex; align-items: center; gap: 9px; }
.btn-dl svg { width: 17px; height: 17px; fill: var(--gray-cfd4da); flex: none; }

/* ---- Home: footer strip ---- */
.strip {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
    margin: 30px 0 50px;
}
.strip > * {
    background: rgba(0,0,0,0.25); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px;
    padding: 16px 18px; color: var(--gray-bb); text-decoration: none; font-size: 0.9rem;
}
.strip a:hover { border-color: var(--acc-mirage); }
.strip strong { display: block; color: var(--white); font-size: 1rem; margin-bottom: 4px; }

@media (max-width: 600px) {
    .home-hero h1 { font-size: 1.9rem; }
    .tiles { grid-template-columns: 1fr; }
}

/* ---- Footer ---- */
footer { padding: 40px 0; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.footer-links { display: flex; justify-content: center; gap: 12px 28px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-links a { color: var(--gray-88); text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--acc-mirage); }
.footer-brand-mark { height: 30px; width: auto; display: block; margin: 0 auto 14px; }
.copyright { color: var(--text-faint); font-size: 0.9rem; }

/* ---- Phone width ---- */
@media (max-width: 600px) {
    .container { padding: 0 16px; }
    .page-hero { padding: 36px 0 18px; }
    .page-hero h1 { font-size: 2rem; }
    .page-hero .lead { font-size: 1.05rem; }
    .card-grid { grid-template-columns: 1fr; }
    .btn { padding: 12px 24px; }
}
