/* ==========================================================================
   Best Desk Setups — SaaS marketing format (Produktly reference)
   Indigo accent · dot-grid canvas · bold sans display · app-window mockup
   Palette: 60% white · 30% ink/grey · 10% indigo #4F46E5
   ========================================================================== */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family: 'Newsreader'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('/assets/fonts/newsreader-400.woff2') format('woff2'); }

:root {
  --blue: #4F46E5;
  --blue-dark: #4338CA;
  --blue-soft: #EEF2FF;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-soft: #F9FAFB;
  --slate: #0F172A;
  --slate-2: #1E293B;
  --radius: 14px;
  --radius-lg: 20px;
  --container: 1160px;
  --gutter: clamp(18px, 5vw, 40px);
  --sans: 'Inter', ui-sans-serif, system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Inter', ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);

  /* aliases */
  --white: #fff; --paper: #fff; --paper-2: #F9FAFB; --blush: #EEF2FF; --charcoal: var(--slate);
  --surface: #fff; --surface-2: #F9FAFB; --sand: #F9FAFB; --sand-2: var(--line);
  --ink-soft: var(--muted); --cream: #fff; --accent: var(--blue); --accent-dark: var(--blue-dark);
  --accent-soft: rgba(79, 70, 229, .08); --ink-soft-bg: rgba(17, 24, 39, .04);
  --rule: var(--line); --rule-strong: rgba(17,24,39,.2); --gold: #F59E0B;
  --font-sans: var(--sans); --font-serif: var(--sans);
  --shadow: 0 1px 2px rgba(16,24,40,.06);
  --shadow-lift: 0 20px 40px -24px rgba(16,24,40,.28);
  --pill: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16.5px; line-height: 1.62; -webkit-font-smoothing: antialiased; letter-spacing: -.011em; }
img, svg, video { max-width: 100%; height: auto; display: block; }
picture { display: block; }
.hero-shot picture, .card-media picture, .gcard-media picture, .pcard-media picture,
.hero-figure picture, .mock-card picture, .hero-media picture { width: 100%; height: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--blue); color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- type ---------- */
.display, .hero h1, .section-title, .band h2, .article-head h1, .archive-head h1 { font-family: var(--sans); font-weight: 700; letter-spacing: -.038em; line-height: 1.04; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em; color: var(--blue); background: var(--blue-soft); padding: 6px 12px; border-radius: 999px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.lede { color: var(--muted); font-size: 1.0625rem; line-height: 1.65; max-width: 62ch; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
.meta { color: var(--muted); font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  padding: 13px 22px; min-height: 48px; border-radius: 10px; border: 1px solid transparent;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), box-shadow .16s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(79,70,229,.35); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 16px -6px rgba(79,70,229,.6); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #C9CEDA; background: var(--bg-soft); }
.btn-quiet { color: var(--muted); padding: 10px 4px; min-height: 40px; font-weight: 500; }
.btn-quiet:hover { color: var(--ink); }
.btn-sm { padding: 9px 16px; min-height: 40px; font-size: 14px; border-radius: 9px; }
.btn-block { width: 100%; }
.link-arrow { color: var(--blue); font-size: 14.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { color: var(--blue-dark); }

/* ---------- header ---------- */
.utility { display: none; }
.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.1rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.brand-dot { width: 22px; height: 22px; border-radius: 7px; background: var(--blue); display: inline-block; box-shadow: inset 0 0 0 4px rgba(255,255,255,.35); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link { display: inline-flex; align-items: center; gap: 5px; padding: 9px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .15s, background-color .15s; }
.nav-link:hover { color: var(--ink); background: var(--bg-soft); }
.nav-link[aria-current="page"], .nav-link.is-active { color: var(--blue); background: var(--blue-soft); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); border: 1px solid transparent; }
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }

/* mega */
.has-mega { position: relative; }
.mega { position: absolute; right: 0; top: calc(100% + 12px); width: min(760px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: grid; gap: 16px; box-shadow: 0 24px 48px -24px rgba(16,24,40,.3); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s; }
.has-mega[data-open="true"] .mega { opacity: 1; visibility: visible; transform: none; }
.mega-head { display: flex; align-items: center; justify-content: space-between; }
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 22px; }
.mega-cat b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.mega-cat b i { display: none; }
.mega-cat small { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.mega-sub { list-style: none; display: grid; gap: 4px; }
.mega-sub a { font-size: 12.5px; color: var(--muted); }
.mega-sub a:hover { color: var(--blue); }
.mega-foot { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }

/* search */
.search-panel { position: fixed; left: 0; right: 0; top: 0; z-index: 120; background: #fff; border-bottom: 1px solid var(--line); transform: translateY(-102%); transition: transform .26s var(--ease); padding: 22px 0 26px; }
.search-panel[data-open="true"] { transform: none; }
.search-form { display: flex; gap: 10px; align-items: center; }
.search-input { flex: 1; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; font-size: 16px; }
.search-input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px var(--blue-soft); }
.search-results { margin-top: 16px; display: grid; gap: 2px; max-height: 55vh; overflow: auto; }
.search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 8px; }
.search-results a:hover { background: var(--bg-soft); }
.search-results b { font-weight: 500; font-size: 15px; }
.search-results span { color: var(--muted); font-size: 12px; }
.search-empty { color: var(--muted); font-size: 14px; padding: 8px 2px; }

/* drawer */
.menu-btn { display: none; }
.drawer-scrim { position: fixed; inset: 0; background: rgba(15,23,42,.45); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; z-index: 100; }
.drawer-scrim[data-open="true"] { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(90vw, 400px); z-index: 110; background: #fff; transform: translateX(101%); transition: transform .28s var(--ease); display: flex; flex-direction: column; overflow-y: auto; }
.drawer[data-open="true"] { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 2; }
.drawer-nav { padding: 8px 12px 20px; }
.drawer-nav a { display: flex; justify-content: space-between; align-items: center; padding: 13px 10px; border-radius: 9px; font-size: 16px; }
.drawer-nav a:hover { background: var(--bg-soft); }
.drawer-group { border-top: 1px solid var(--line); margin-top: 6px; }
.drawer-group > button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 13px 10px; font-size: 16px; font-weight: 600; }
.drawer-sub { display: none; padding: 0 10px 8px; }
.drawer-sub[data-open="true"] { display: grid; gap: 2px; }
.drawer-sub a { font-size: 14.5px; color: var(--muted); padding: 8px 6px; }
.drawer-foot { margin-top: auto; padding: 18px 20px 24px; border-top: 1px solid var(--line); }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 92px) 0 clamp(32px, 4vw, 48px); text-align: center; background-image: radial-gradient(rgba(17,24,39,.10) 1px, transparent 1px); background-size: 22px 22px; background-position: center top; background-repeat: repeat; }
.hero-inner { display: block; }
.hero-top { display: block; }
.hero-copy { max-width: 780px; margin-inline: auto; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); margin: 22px auto 20px; letter-spacing: -.04em; }
.hero h1 .hl { color: var(--blue); }
.hero h1 em { font-style: normal; }
.hero-sub { color: var(--muted); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.6; max-width: 58ch; margin-inline: auto; }
.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.hero-meta b { color: var(--ink); font-weight: 600; }
.hero-bottom { margin-top: clamp(34px, 5vw, 56px); }
.hero-visual { margin: 0; }
.hero-media { display: none; }
.hero-caption { display: none; }
.hero-facts { display: none; }
.hero-recents { display: none; }

/* feature tab strip */
.tabstrip { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 8px; border-bottom: 1px solid var(--line); padding-bottom: 0; margin-bottom: 26px; }
.tabstrip button { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px 13px; font-size: 14px; font-weight: 500; color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font-family: inherit; }
.tabstrip button:hover { color: var(--ink); }
.tabstrip button.is-active { color: var(--blue); border-bottom-color: var(--blue); }


.tabstrip svg { opacity: .8; }

/* app-window mockup */
.mockup { background: var(--slate); border-radius: var(--radius-lg); padding: 14px 14px 0; box-shadow: 0 40px 80px -40px rgba(15,23,42,.55); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 4px 4px 12px; }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.mock-title { margin-left: 10px; font-size: 11.5px; color: #94A3B8; letter-spacing: .02em; }
.mock-body { background: #fff; border-radius: 12px 12px 0 0; display: grid; grid-template-columns: 168px minmax(0,1fr); min-height: 320px; }
.mock-side { border-right: 1px solid var(--line); padding: 14px 12px; background: #FCFCFD; }
.mock-side .sb-brand { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; color: var(--ink); padding: 4px 6px 12px; }
.mock-side .sb-dot { width: 14px; height: 14px; border-radius: 4px; background: var(--blue); }
.mock-side a { display: flex; align-items: center; gap: 7px; padding: 6px 8px; border-radius: 6px; font-size: 11px; color: var(--muted); }
.mock-side a.on { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.mock-side .bar { height: 6px; border-radius: 3px; background: #EEF0F4; margin: 6px 0 0; }
.mock-main { padding: 16px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mock-head b { font-size: 14px; }
.mock-pill { font-size: 11px; font-weight: 600; color: var(--blue); background: var(--blue-soft); padding: 4px 10px; border-radius: 999px; }
.mock-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.mock-card .ph { aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.mock-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.mock-card .tx { padding: 9px 10px 11px; }
.mock-card .tx { display: flex; flex-direction: column; min-height: 56px; }
.mock-card .tx b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.mock-card .tx span { display: block; font-size: 10.5px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.mock-foot { height: 26px; background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(15,23,42,.05)); }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.mock-kpi { border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; }
.mock-kpi b { display: block; font-size: 14px; letter-spacing: -.02em; }
.mock-kpi span { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 2px; }

/* ---------- sections ---------- */
.section { padding: clamp(44px, 6vw, 80px) 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 15.5px; margin-top: 10px; max-width: 60ch; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-title em { font-style: normal; color: var(--blue); }

/* bands */
.band-dark { background: var(--slate); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .section-head p, .band-dark .eyebrow, .band-dark .lede { color: rgba(255,255,255,.72); }
.band-dark .eyebrow { background: rgba(255,255,255,.08); color: #C7D2FE; }
.band-dark .eyebrow::before { background: #A5B4FC; }
.band-dark .link-arrow { color: #C7D2FE; }
.band-blush { background: var(--blue-soft); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.feature .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; }
.feature .num-lg { display: block; font-size: 2rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: 10px; }
.feature h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ---------- chips ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 500; color: var(--ink-2); background: #fff; transition: all .15s; }
.chip:hover { border-color: #C7CBD6; color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip i { display: none; }
.chip .meta { font-size: 11.5px; color: inherit; opacity: .65; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); }
a.tag:hover { background: var(--blue-soft); color: var(--blue); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s; }
.card:hover { border-color: transparent; box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.card-media { position: relative; overflow: hidden; background: var(--bg-soft); aspect-ratio: 16 / 10; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.card-title { font-size: 1.0625rem; font-weight: 600; line-height: 1.32; letter-spacing: -.02em; }
.card-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title { color: var(--blue); }
.card-desc { color: var(--muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(3 * 1.55em); }
.card-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); }
.price-tag { font-size: 14px; font-weight: 600; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ink); }
.badge-new { background: var(--blue); color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }
.badge-cost { position: absolute; top: 10px; right: 10px; z-index: 2; font-size: 12.5px; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.95); padding: 5px 10px; border-radius: 999px; }

/* guide card */
.gcard { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 14px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); align-items: center; transition: box-shadow .2s, transform .2s; }
.gcard:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: transparent; }
.gcard-media { border-radius: 9px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 1; }
.gcard-media img { width: 100%; height: 100%; object-fit: cover; }
.gcard h3 { font-size: 15px; font-weight: 600; line-height: 1.32; }
.gcard h3 a::after { content: ''; position: absolute; inset: 0; }
.gcard:hover h3 { color: var(--blue); }
.gcard p { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard .kicker { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }

/* product card */
.pcard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.pcard:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: transparent; }
.pcard-media { background: var(--bg-soft); aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 16px; position: relative; }
.pcard-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.pcard-kind { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pcard-name { font-size: 15px; font-weight: 600; line-height: 1.3; position: relative; letter-spacing: -.015em; }
.pcard-name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.pcard:hover .pcard-name { color: var(--blue); }
.pcard-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stars { color: var(--gold); font-size: 12.5px; letter-spacing: .06em; }
.rating-num { color: var(--muted); font-size: 12px; }
.pcard-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); position: relative; z-index: 2; }
.text-link { color: var(--blue); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.text-link:hover { color: var(--blue-dark); }

/* carousel */
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 33.33%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
.carousel-track > * { scroll-snap-align: start; }
.carousel-track::-webkit-scrollbar { height: 4px; }
.carousel-track::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav .icon-btn { border: 1px solid var(--line); }

/* filter */
.filter-bar { display: grid; gap: 14px; padding: 0 0 22px; border: 0; background: transparent; border-radius: 0; margin-bottom: 8px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filter-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); min-width: 68px; }
.select, .input { background: #fff; border: 1px solid var(--line); color: var(--ink); border-radius: 10px; padding: 9px 13px; font-size: 14px; min-height: 42px; }
.select:focus, .input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.input::placeholder { color: var(--muted); }
.results-count { color: var(--muted); font-size: 13px; }
.empty-state { padding: 52px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- article ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); padding-top: 26px; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span[aria-current] { color: var(--ink); }
.article-shell { display: grid; grid-template-columns: minmax(0,1fr) 264px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.article-head { padding: 28px 0 0; }
.article-head h1 { font-size: clamp(2.1rem, 4.2vw, 3.1rem); line-height: 1.06; margin: 16px 0 14px; }
.article-head .lede { font-size: 1.0625rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 18px; color: var(--muted); font-size: 12.5px; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #CBD5E1; }
.hero-figure { margin: 28px 0 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.hero-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.hero-figure--contain { display: grid; place-items: center; padding: 26px; }
.hero-figure--contain img { object-fit: contain; padding: 0; width: auto; max-width: 100%; max-height: 460px; aspect-ratio: auto; }

.toc { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: #fff; }
.toc h2 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.toc ol { list-style: none; display: grid; gap: 1px; }
.toc a { display: block; font-size: 13px; color: var(--muted); padding: 7px 9px; border-radius: 7px; line-height: 1.4; }
.toc a:hover, .toc a.is-active { color: var(--blue); background: var(--blue-soft); }

/* prose */
.prose { font-size: 1.0625rem; line-height: 1.75; color: var(--ink-2); max-width: 70ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.5rem, 2.4vw, 1.85rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin: 2em 0 .5em; color: var(--ink); }
.prose h2::before { content: none; }
.prose h3 { font-size: 1.0625rem; font-weight: 600; margin: 1.7em 0 .4em; color: var(--ink); }
.prose p { color: var(--ink-2); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--blue-dark); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--muted); }
.prose ul, .prose ol { padding-left: 1.2em; display: grid; gap: .4em; }
.prose li::marker { color: var(--blue); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
.prose blockquote { margin: 1.7em 0; padding: 14px 18px; background: var(--blue-soft); border-radius: 10px; color: var(--ink-2); font-size: 1rem; }
.prose img { border-radius: 12px; margin: 1.6em 0; border: 1px solid var(--line); }
.prose figcaption { color: var(--muted); font-size: 13px; margin-top: 8px; }
.prose code { background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; font-size: .88em; }

/* tables */
.table-wrap { margin: 1.9em 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 480px; }
.prose thead th { background: var(--bg-soft); text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; padding: 11px 14px; color: var(--muted); }
.prose tbody td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:hover { background: #FAFAFB; }

/* pick */
.pick { display: grid; grid-template-columns: 88px minmax(0,1fr) auto; gap: 14px; align-items: center; margin: 1.7em 0; padding: 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.pick > a:first-child { display: block; background: #fff; border-radius: 9px; padding: 6px; border: 1px solid var(--line); }
.pick > a:first-child img { width: 100%; height: 70px; object-fit: contain; mix-blend-mode: multiply; margin: 0; border: 0; }
.pick span { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--blue); }
.pick p { margin: 3px 0 0; font-size: 15px; font-weight: 600; }
.pick p + p { font-weight: 400; color: var(--muted); font-size: 13px; line-height: 1.5; }
.pick > a:last-child { background: var(--blue); color: #fff; font-size: 13.5px; font-weight: 600; padding: 12px 16px; border-radius: 9px; text-align: center; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.pick > a:last-child:hover { background: var(--blue-dark); }

/* gear */
.gear-list { display: grid; gap: 10px; max-width: 780px; margin: 0 auto; }
.gear-row { display: grid; grid-template-columns: 68px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.gear-thumb { background: var(--bg-soft); border-radius: 8px; aspect-ratio: 1; display: grid; place-items: center; padding: 6px; }
.gear-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gear-kind { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gear-name { font-size: 15px; font-weight: 600; margin-top: 2px; }
.gear-price { color: var(--muted); font-size: 13px; margin-top: 2px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gear-actions { display: flex; align-items: center; gap: 10px; }

/* pros cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; }
.pc { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.pc h3 { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 600; }
.pc ul { list-style: none; display: grid; gap: 7px; }
.pc li { font-size: 14px; padding-left: 20px; position: relative; }
.pc li::before { position: absolute; left: 0; font-weight: 600; }
.pc-pro li::before { content: '+'; color: #059669; }
.pc-con li::before { content: '−'; color: #DC2626; }

/* buybox */
.buybox { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 16px 18px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); margin: 22px 0; }
.buybox .price { font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; }
.buybox .price-note { color: var(--muted); font-size: 12px; }
.buybox .stars { font-size: 13px; }
.buybox .btn { margin-left: auto; }

/* faq */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 34px 16px 0; position: relative; font-size: 15px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; }
.faq details[open] summary::after { content: '−'; color: var(--blue); }
.faq details > p, .faq details > div { color: var(--muted); font-size: 14.5px; line-height: 1.65; padding: 0 34px 16px 0; }

.note { background: var(--blue-soft); border-radius: 10px; padding: 14px 16px; font-size: 14.5px; color: var(--ink-2); }
.disclosure { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* archive */
.archive-head { padding: clamp(28px, 4vw, 48px) 0 22px; }
.archive-head h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin: 14px 0 12px; }
.archive-head .lede { max-width: 64ch; }
.archive-icon { display: none; }

/* category cards */
.cat-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s, transform .2s; }
.cat-card:hover { box-shadow: var(--shadow-lift); transform: translateY(-2px); border-color: transparent; }
.cat-card .top { display: flex; align-items: center; justify-content: space-between; }
.cat-card .glyph { display: none; }
.cat-card .count { font-size: 12px; color: var(--muted); }
.cat-card h3 { font-size: 1.05rem; font-weight: 600; }
.cat-card p { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.cat-card a::after { content: ''; position: absolute; inset: 0; }

/* stats */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--blue); }
.stat span { display: block; margin-top: 10px; font-size: 15px; font-weight: 600; }
.stat small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.5; }

/* CTA band */
.band { border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 60px); background: linear-gradient(135deg, #4F46E5 0%, #6366F1 55%, #818CF8 100%); color: #fff; display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
.band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.band p { color: rgba(255,255,255,.85); font-size: 15.5px; margin-top: 10px; max-width: 46ch; }
.band form { display: flex; gap: 8px; flex-wrap: wrap; }
.band .input { flex: 1; min-width: 190px; background: #fff; border-color: transparent; }
.band .btn-primary { background: #fff; color: var(--blue); }
.band .btn-primary:hover { background: #F5F3FF; }
.band .disclosure { color: rgba(255,255,255,.7); }

/* footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(36px, 5vw, 56px); }
.footer-news { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.footer-news h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: -.03em; }
.footer-news p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.footer-news form { display: flex; gap: 8px; }
.footer-news .input { flex: 1; }
.footer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; padding: 30px 0; }
.footer-col h2 { font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.footer-col ul { list-style: none; display: grid; gap: 8px; }
.footer-col a { font-size: 13.5px; color: var(--ink-2); }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 18px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal-scrim { position: absolute; inset: 0; background: rgba(15,23,42,.5); }
.modal-card { position: relative; width: min(560px, 100%); background: #fff; border-radius: var(--radius-lg); padding: 28px; max-height: 90vh; overflow: auto; box-shadow: 0 40px 80px -40px rgba(15,23,42,.5); }
.modal h2 { font-size: 1.6rem; letter-spacing: -.03em; }
.modal p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.modal-close { position: absolute; top: 12px; right: 12px; }
.modal-tabs { display: flex; gap: 6px; margin: 18px 0 14px; }
.modal-tab { padding: 8px 14px; border-radius: 8px; font-size: 13.5px; color: var(--muted); border: 1px solid transparent; }
.modal-tab[aria-selected="true"] { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.quiz-step h3 { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.quiz-options { display: flex; flex-wrap: wrap; gap: 7px; }
.quiz-result { margin-top: 16px; padding: 14px; border-radius: 10px; background: var(--blue-soft); font-size: 14px; }
.quiz-result a { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* utilities */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.stack { display: grid; gap: 14px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.hide { display: none !important; }

@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .mega { display: none; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .article-shell { grid-template-columns: 1fr; }
  .toc { position: static; order: -1; }
  .carousel-track { grid-auto-columns: minmax(280px, 48%); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-news, .band { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .mock-body { grid-template-columns: 140px minmax(0,1fr); }
  .mock-cards { grid-template-columns: 1fr 1fr; }
  .mock-card:nth-child(3) { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-inner { height: 64px; }
  .nav-actions .btn { display: none; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.7rem); }
  .hero-cta .btn { flex: 1 1 100%; }
  .grid-2, .grid-3, .grid-4, .features { grid-template-columns: 1fr; }
  .split, .proscons, .stat-grid { grid-template-columns: 1fr; }
  .stat { text-align: left; }
  .carousel-track { grid-auto-columns: 86%; }
  .article-head h1 { font-size: clamp(1.8rem, 7.4vw, 2.3rem); }
  .prose { font-size: 1rem; }
  .pick { grid-template-columns: 76px minmax(0,1fr); }
  .pick > a:last-child { grid-column: 1 / -1; }
  .gear-row { grid-template-columns: 54px minmax(0,1fr); }
  .gear-actions { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .filter-label { min-width: 100%; }
  .gcard { grid-template-columns: 88px 1fr; gap: 10px; }
  .buybox .btn { margin-left: 0; width: 100%; }
  .mock-side { display: none; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-cards { grid-template-columns: 1fr; }
  .mock-card:nth-child(2), .mock-card:nth-child(3) { display: none; }
  .mock-kpis { grid-template-columns: 1fr 1fr; }
  .mock-kpi:nth-child(3) { display: none; }
  .section-head { align-items: flex-start; }
}

@media (max-width: 400px) {
  :root { --gutter: 15px; }
  .hero h1 { font-size: 2rem; }
}

@media (min-width: 1440px) { :root { --container: 1240px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .modal, .drawer, .drawer-scrim, .search-panel, .toc, .filter-bar, .utility { display: none !important; }
}


/* ---------- mobile overflow guards ---------- */
html, body { overflow-x: hidden; }
.footer-news, .band, .hero-cta, .filter-row, .article-shell > *, .split > * { min-width: 0; }
.footer-news > *, .band > *, .hero-cta > * { min-width: 0; }
.footer-news form, .band form { min-width: 0; flex-wrap: wrap; }
.footer-news .input, .band .input { min-width: 0; flex: 1 1 auto; }
.footer-news h2, .band h2, .footer-news p, .band p { overflow-wrap: anywhere; }
.mock-body, .mock-main, .mock-cards, .mock-side { min-width: 0; }
.card, .gcard, .pcard, .pick, .gear-row { min-width: 0; }
.card-title, .pcard-name, .gcard h3, .prose h2, .article-head h1, .archive-head h1 { overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .footer-news form, .band form { flex-direction: column; align-items: stretch; }
  .footer-news form .btn, .band form .btn { width: 100%; }
  .footer-news form .disclosure, .band form .disclosure { flex-basis: auto; }
}

/* ---------- categories index ---------- */
.cat-index { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.cat-tile { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .18s, transform .18s, border-color .18s; }
.cat-tile:hover { border-color: #C7CBD6; box-shadow: 0 12px 30px rgba(17,24,39,.09); transform: translateY(-2px); }
.cat-media { aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.cat-media img, .cat-media picture { width: 100%; height: 100%; display: block; object-fit: cover; }
.cat-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cat-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cat-top h2 { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.cat-count { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.cat-body p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cat-go { margin-top: auto; padding-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--blue); display: inline-flex; align-items: center; gap: 5px; }
.row-list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.row-list a { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 14px; padding: 15px 18px; border-bottom: 1px solid var(--line); align-items: center; }
.row-list a:last-child { border-bottom: 0; }
.row-list a:hover { background: #FAFAFB; }
.row-list b { font-size: .97rem; font-weight: 600; }
.row-list small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; margin-top: 3px; }
.row-list .go { color: var(--muted); font-size: 14px; }
.tag-cloud .tag { background: #fff; border: 1px solid var(--line); }
@media (max-width: 1024px) { .cat-index { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px) {
  .cat-index { grid-template-columns: 1fr; gap: 14px; }
  .cat-media { aspect-ratio: 16 / 9; }
  .cat-body p { font-size: 13.5px; }
}

/* an emptied filter cell must not occupy a grid row */
.grid > div:empty { display: none; }

/* ---------- interactive hero gallery ---------- */
.mock-side button { display: flex; align-items: center; justify-content: space-between; gap: 6px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; font: inherit; font-size: 11px; color: var(--muted); text-align: left; cursor: pointer; }
.mock-side button:hover { background: #F3F4F7; color: var(--ink); }
.mock-side button.on { background: var(--blue-soft); color: var(--blue); font-weight: 600; }
.mock-side button i { font-style: normal; font-size: 10px; opacity: .6; }
.mock-side .sb-label { display: block; padding: 10px 8px 4px; font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.mock-tabs { display: none; gap: 6px; margin-bottom: 10px; overflow-x: auto; }
.mock-tabs button { flex: 0 0 auto; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 11px; color: var(--muted); cursor: pointer; }
.mock-tabs button.on { background: var(--blue-soft); border-color: #C7D2FE; color: var(--blue); font-weight: 600; }
.mock-head .mock-pill { text-decoration: none; }
.mock-kpi { text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
.mock-kpi:hover { border-color: #C7CBD6; background: #FAFAFB; }
.mock-rail-wrap { position: relative; margin-top: 12px; }
.mock-rail { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 186px; gap: 10px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding: 2px 26px 8px 2px; scrollbar-width: thin; }
.mock-rail::-webkit-scrollbar { height: 6px; }
.mock-rail::-webkit-scrollbar-thumb { background: #E1E4EA; border-radius: 3px; }
.mock-card { scroll-snap-align: start; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; }
.mock-card:hover { border-color: #C7CBD6; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(17,24,39,.07); }
.mock-card .ph { aspect-ratio: 16 / 10; background: var(--bg-soft); overflow: hidden; }
.mock-card .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mock-card .tx { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px 10px; min-height: 62px; }
.mock-card .tx b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; font-weight: 600; line-height: 1.3; }
.mock-card .tx span { margin-top: auto; font-size: 10.5px; color: var(--muted); }
.mock-head-right { display: inline-flex; align-items: center; gap: 6px; }
.rail-btn { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 17px; line-height: 1; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(17,24,39,.12); }
.rail-btn[hidden] { display: none; }
@media (max-width: 640px) {
  .mock-tabs { display: flex; }
  .mock-rail { grid-auto-columns: 126px; }
}


/* ---------- Amazon CTAs ---------- */
.btn-amazon {
  background: #FF9900;
  border: 1px solid #E88B00;
  color: #131A22;
  font-weight: 600;
  transition: background .16s, box-shadow .2s, border-color .16s, transform .16s;
}
.btn-amazon:hover, .btn-amazon:focus-visible {
  background: #FFB020;
  border-color: #FF9900;
  color: #131A22;
  box-shadow: 0 0 0 3px rgba(255, 153, 0, .30), 0 8px 22px rgba(255, 153, 0, .34);
}
.btn-amazon:focus-visible { outline: 2px solid #FF9900; outline-offset: 2px; }
/* any Amazon-linked button glows in Amazon orange on hover, site-wide */
a.btn[href*="amazon."]:hover,
a.btn[href*="amazon."]:focus-visible,
a.pick-btn[href*="amazon."]:hover,
a.pick-btn[href*="amazon."]:focus-visible {
  border-color: #FF9900;
  box-shadow: 0 0 0 3px rgba(255, 153, 0, .28), 0 8px 22px rgba(255, 153, 0, .32);
}
@media (prefers-reduced-motion: reduce) {
  .btn-amazon, .btn-amazon:hover { transform: none; transition: none; }
}

/* ---------- gear list density ---------- */
.gear-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin: 0 0 20px; }
.gear-head .section-title { margin: 0; }
.gear-head p { margin: 0; max-width: 560px; color: var(--muted); font-size: 14px; }
.gear-total { margin-top: 2px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; }
.gear-list { display: grid; gap: 10px; max-width: 780px; margin: 0 auto; }
.gear-row { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px; }
.gear-actions { gap: 8px; }
.gear-row .gear-name { margin: 0 0 2px; }
.gear-row .gear-price { margin: 0; }
@media (max-width: 640px) {
  .gear-row { grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .gear-actions { margin-top: 2px; }
}

.mock-card .ph--text { display: grid; place-items: center; background: linear-gradient(135deg,#EEF2FF,#F8FAFF); padding: 10px; }
.mock-card .ph--text span { font-size: 12px; font-weight: 600; color: var(--blue); text-align: center; line-height: 1.25; }

/* ---------- setups mega menu ---------- */
.nav .has-mega { display: flex; align-items: center; }
.mega-toggle { padding: 8px 4px 8px 5px; border: 0; background: none; cursor: pointer; }
.mega-toggle svg { transition: transform .16s; }
.has-mega[data-open="true"] .mega-toggle svg { transform: rotate(180deg); }
.mega-foot-label { flex-basis: 100%; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 2px; }
.mega-foot .chip { font-size: 12.5px; padding: 6px 12px; }

.mega-cat-link { display: block; }
.mega-cat-link:hover b { color: var(--blue); }

/* wide eight-column mega panel, centred under the nav item */
.mega {
  right: auto;
  left: 50%;
  width: min(1180px, 96vw);
  transform: translate(-50%, -6px);
}
.has-mega[data-open="true"] .mega { transform: translate(-50%, 0); }
.mega-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 14px 18px; }
.mega-cat b { font-size: 13px; }
.mega-sub a { font-size: 12px; }
.mega-foot { align-items: center; }
@media (max-width: 1100px) {
  .mega-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mega { width: min(880px, 96vw); }
}

.mega { position: fixed; left: 16px; top: 84px; right: auto; transform: translateY(-6px); z-index: 90; }
.has-mega[data-open="true"] .mega { transform: translateY(0); }

/* ---------- Amazon-style buy button ---------- */
.btn-amazon {
  background: linear-gradient(180deg, #FFD814 0%, #F7CA00 100%);
  border: 1px solid #FCD200;
  color: #0F1111 !important;
  font-weight: 700;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 17, 17, .12), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: background .15s ease, box-shadow .18s ease, transform .12s ease, border-color .15s ease;
}
.btn-amazon:hover, .btn-amazon:focus-visible {
  background: linear-gradient(180deg, #F7CA00 0%, #F0B800 100%);
  border-color: #E8B400;
  box-shadow: 0 0 0 3px rgba(255, 216, 20, .38), 0 8px 22px rgba(240, 184, 0, .36), inset 0 1px 0 rgba(255,255,255,.45);
  transform: translateY(-1px);
}
.btn-amazon:active { transform: translateY(0); box-shadow: 0 1px 2px rgba(15,17,17,.18), inset 0 2px 4px rgba(0,0,0,.12); }
.review-link { font-size: 13px; color: var(--muted); border-bottom: 1px solid transparent; white-space: nowrap; }
.review-link:hover { color: var(--ink); border-bottom-color: currentColor; }
.gear-actions { gap: 14px; }

a.btn.btn-amazon[href*="amazon."]:hover,
a.btn.btn-amazon[href*="amazon."]:focus-visible {
  border-color: #E8B400;
  box-shadow: 0 0 0 3px rgba(255, 216, 20, .38), 0 8px 22px rgba(240, 184, 0, .36);
}

/* article bodies use the full content width, like the header above them */
.article-body .prose { max-width: none; font-size: 1.09rem; line-height: 1.72; }
.article-body .article-head .lede, .article-body .article-head p { max-width: none; }
.article-body .buybox { width: 100%; }
@media (min-width: 1200px) {
  .article-body .prose { column-gap: 0; }
}

/* pick-card CTA wears the Amazon buy-button styling */
.pick > a:last-child {
  background: linear-gradient(180deg, #FFD814 0%, #F7CA00 100%);
  border: 1px solid #FCD200;
  color: #0F1111;
  font-weight: 700;
  white-space: normal;
  box-shadow: 0 1px 2px rgba(15, 17, 17, .12), inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: background .15s ease, box-shadow .18s ease, transform .12s ease;
}
.pick > a:last-child:hover {
  background: linear-gradient(180deg, #F7CA00 0%, #F0B800 100%);
  color: #0F1111;
  box-shadow: 0 0 0 3px rgba(255, 216, 20, .38), 0 8px 22px rgba(240, 184, 0, .36);
  transform: translateY(-1px);
}
/* prose images fill the article column instead of sitting at their intrinsic width */
.prose picture { display: block; width: 100%; }
.prose img { width: 100%; height: auto; display: block; }

/* one size and one colour for every Amazon buy button */
.btn-amazon, .pick > a:last-child {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 11px 18px; min-height: 42px; border-radius: 9px;
  font-size: 13.5px; font-weight: 700; line-height: 1.2; letter-spacing: 0;
  text-align: center; white-space: normal; text-decoration: none;
  background: linear-gradient(180deg, #FFD814 0%, #F7CA00 100%);
  border: 1px solid #FCD200; color: #0F1111;
  box-shadow: 0 1px 2px rgba(15,17,17,.12), inset 0 1px 0 rgba(255,255,255,.55);
  transition: background .15s ease, box-shadow .18s ease, transform .12s ease;
}
.btn-amazon:hover, .pick > a:last-child:hover,
.btn-amazon:focus-visible, .pick > a:last-child:focus-visible {
  background: linear-gradient(180deg, #F7CA00 0%, #F0B800 100%);
  border-color: #E8B400; color: #0F1111; transform: translateY(-1px);
  box-shadow: 0 0 0 3px rgba(255,216,20,.38), 0 8px 22px rgba(240,184,0,.36);
}
/* drawn tile for picks with no product photo */
.pick-ph { display: grid; place-items: center; width: 100%; height: 70px; color: #9AA0AA; }
.pick-ph svg { width: 34px; height: 34px; }

.pick-thumb { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 6px; display: grid; place-items: center; }
.pick-thumb img { width: 100%; height: 64px; object-fit: contain; mix-blend-mode: multiply; margin: 0; border: 0; }

/* ---------- dark footer ---------- */
.site-footer { background: #0E1116; border-top: 0; color: #C9CDD6; }
.site-footer .container { padding-top: 0; }
.footer-news { border-bottom: 1px solid rgba(255, 255, 255, .10); }
.footer-news h2 { color: #F4F6F8; }
.footer-news p { color: #9AA1AC; }
.footer-news .input {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #F4F6F8;
}
.footer-news .input::placeholder { color: #8B929D; }
.footer-news .input:focus { border-color: rgba(255, 255, 255, .40); background: rgba(255,255,255,.09); }
.footer-news .disclosure { color: #7C838E; }
.footer-col h2 { color: #F4F6F8; letter-spacing: .04em; }
.footer-col a { color: #A8AFBA; }
.footer-col a:hover { color: #FFFFFF; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .10); color: #878E99; }
.site-footer .btn-ghost { color: #E6E9EE; border-color: rgba(255,255,255,.22); }
.site-footer .btn-ghost:hover { background: rgba(255,255,255,.08); }
.site-footer input:-webkit-autofill { -webkit-text-fill-color: #F4F6F8; }

.pcard-foot { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pcard-foot .btn-amazon { width: 100%; }

/* stacked newsletter forms on phones: normal-height fields, no giant boxes */
@media (max-width: 640px) {
  .band, .footer-news { padding: 22px 18px; }
  .band form, .footer-news form { flex-direction: column; align-items: stretch; gap: 10px; }
  .band .input, .footer-news .input { flex: 0 0 auto; width: 100%; min-height: 46px; font-size: 16px; padding: 12px 14px; }
  .band .btn, .footer-news .btn { width: 100%; min-height: 46px; }
  .band { border-radius: 18px; }
}

/* ---------- post photo gallery (guide articles) ---------- */
.post-gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin: 1.9em 0 1.4em; padding: 0; }
.post-gallery picture { display: block; }
.post-gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin: 0; }
.post-gallery figcaption { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 640px) {
  .post-gallery { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; }
}
