/* Bezel — shared site stylesheet.
   Design system extracted from index.html so every page matches, plus the
   components the SEO / landing pages need (device grid, comparison table,
   framework chips, prose). index.html and /privacy keep their own inline copy;
   this file backs the newer pages. */

:root {
  --bg: #0b0d12;
  --bg-2: #0e1117;
  --panel: #141822;
  --panel-2: #191f2b;
  --line: #222937;
  --line-2: #2e3644;
  --text: #eaedf3;
  --dim: #9aa4b4;
  --faint: #7c8798;
  --accent: #ff9d2e;
  --accent-2: #ffb85c;
  --tint: rgba(255, 157, 46, 0.12);
  --tint-line: rgba(255, 157, 46, 0.34);
  --ok: #34d399;
  --bad: #fb7185;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", "JetBrains Mono", "Roboto Mono", Consolas, monospace;
  --maxw: 1180px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(70% 55% at 78% -8%, rgba(255,157,46,0.09) 0%, transparent 55%),
    radial-gradient(60% 50% at 0% 8%, rgba(96,120,180,0.07) 0%, transparent 50%),
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px) 0 0 / 100% 46px,
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px) 0 0 / 46px 100%;
}
main, header, footer { position: relative; z-index: 1; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 860px; margin: 0 auto; padding: 0 24px; }
a { color: inherit; text-decoration: none; }
:where(a, button, summary, input, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

.mono { font-family: var(--font-mono); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 16px; height: 1px; background: var(--tint-line); }
.eyebrow.plain::before { display: none; }

h1, h2, h3 { letter-spacing: -0.033em; line-height: 1.04; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.6vw, 56px); }
h2 { font-size: clamp(27px, 4.4vw, 44px); }
h3 { font-size: 19px; letter-spacing: -0.02em; line-height: 1.2; }
p { color: var(--dim); }

.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font-sans); font-weight: 650; font-size: 15px;
  padding: 12px 20px; border-radius: 12px; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--accent); color: #1a1206; border-color: var(--accent); box-shadow: 0 10px 30px -10px rgba(255,157,46,0.55); }
.btn-solid:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--faint); }
.btn svg { width: 17px; height: 17px; }

/* Header */
header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 26px; height: 62px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand svg { width: 30px; height: 30px; display: block; }
.nav-links { display: none; gap: 26px; margin-left: 8px; }
.nav-links a { color: var(--dim); font-size: 14.5px; font-weight: 550; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav .spacer { flex: 1; }
.nav .btn { padding: 9px 16px; font-size: 14px; }

/* Mobile navigation */
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel); color: var(--text); cursor: pointer; transition: border-color .15s; }
.nav-toggle:hover { border-color: var(--faint); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-toggle svg { width: 20px; height: 20px; }
.mobile-menu { display: none; flex-direction: column; padding: 6px 24px 18px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 92%, transparent); }
.mobile-menu.open { display: flex; }
.mobile-menu a:not(.btn) { color: var(--dim); font-size: 15.5px; font-weight: 550; padding: 13px 6px; border-bottom: 1px solid var(--line); transition: color .15s; }
.mobile-menu a:not(.btn):hover { color: var(--text); }
.mobile-menu a:not(.btn)[aria-current="page"] { color: var(--accent); }
.mobile-menu .btn { margin-top: 14px; justify-content: center; }

/* Very small screens: the top-bar CTA is duplicated inside the menu, so drop it
   to guarantee the brand + hamburger never overflow. */
@media (max-width: 419px) { .nav-cta { display: none; } }
@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

section { padding: 56px 0; }
.sec-head { max-width: 660px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head p { margin-top: 15px; font-size: 17px; }
.sec-head h2 { margin-top: 15px; }

/* Compact store badge — primary install CTA */
.store-badge {
  display: inline-flex; align-items: center; gap: 13px;
  border: 1px solid var(--tint-line); border-radius: 14px; padding: 10px 18px;
  background: linear-gradient(180deg, rgba(255,157,46,0.07), transparent 72%), var(--panel);
  box-shadow: 0 12px 30px -16px rgba(255,157,46,0.5);
  transition: transform .15s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.store-badge:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 16px 38px -16px rgba(255,157,46,0.6); }
.store-badge:active { transform: translateY(0); }
.store-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.store-logo { width: 29px; height: 29px; flex: none; display: block; }
.store-meta { display: flex; flex-direction: column; line-height: 1.25; }
.store-meta small { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--faint); text-transform: uppercase; }
.store-meta strong { font-size: 15.5px; font-weight: 750; letter-spacing: -0.01em; color: var(--text); }
.store-badge .go { margin-left: 4px; color: var(--faint); transition: color .15s ease, transform .15s ease; }
.store-badge:hover .go { color: var(--accent); transform: translateX(2px); }
.store-badge .go svg { width: 18px; height: 18px; display: block; }

/* Breadcrumb */
.crumbs { font-family: var(--font-mono); font-size: 12.5px; color: var(--faint); letter-spacing: 0.04em; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--text); }
.crumbs .sep { color: var(--line-2); }

/* Page hero (interior pages) */
.page-hero { padding: 46px 0 30px; }
.page-hero .grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
.page-hero h1 { margin-top: 18px; }
.page-hero h1 .amber { color: var(--accent); }
.page-hero .lede { margin-top: 20px; font-size: clamp(16.5px, 2.2vw, 20px); color: var(--dim); max-width: 40ch; }
.page-hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.page-hero .spec { margin-top: 22px; font-family: var(--font-mono); font-size: 12.5px; color: var(--faint); letter-spacing: 0.04em; }
.page-hero .spec b { color: var(--dim); font-weight: 600; }
.hero-media { display: flex; justify-content: center; }
.hero-shot { position: relative; width: 100%; max-width: 560px; }
.hero-shot .glow { position: absolute; inset: -16% -8%; background: radial-gradient(56% 60% at 60% 40%, rgba(255,157,46,0.22), transparent 70%); filter: blur(14px); z-index: -1; }
.hero-shot .frame { aspect-ratio: 1760 / 1143; overflow: hidden; border-radius: 16px; border: 1px solid var(--line-2); box-shadow: 0 44px 90px -44px rgba(0,0,0,0.95); background: var(--bg-2); }
.hero-shot .frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
@media (min-width: 980px) {
  .page-hero .grid { grid-template-columns: 1fr 1.02fr; gap: 48px; }
  .hero-shot { max-width: 560px; }
}

/* KPI strip */
.kpis { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.kpis .row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.kpi { background: var(--bg-2); padding: 22px 18px; text-align: center; }
.kpi .n { font-family: var(--font-mono); font-size: clamp(22px, 3.2vw, 31px); font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.kpi .l { margin-top: 5px; font-size: 12px; color: var(--faint); font-family: var(--font-mono); letter-spacing: 0.05em; text-transform: uppercase; }
@media (min-width: 760px) { .kpis .row { grid-template-columns: repeat(4, 1fr); } }

/* Prose blocks */
.prose h2 { margin-bottom: 14px; }
.prose h3 { margin: 26px 0 8px; }
.prose p { margin-top: 14px; font-size: 16.5px; line-height: 1.7; color: var(--dim); max-width: 72ch; }
.prose p strong { color: var(--text); font-weight: 650; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; color: var(--accent-2); }
.prose .lead { font-size: 18px; color: var(--text); }

/* Point list (accuracy claims etc.) */
.points { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.points li { display: flex; gap: 12px; font-size: 15.5px; color: var(--dim); line-height: 1.5; }
.points li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--ok); }
.points li b { color: var(--text); font-weight: 650; }

/* Two-column value cards (win vs limitation) */
.versus { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 32px; }
.vs-card { border: 1px solid var(--line); border-radius: 18px; padding: 26px; background: var(--panel); }
.vs-card.win { border-color: var(--tint-line); background: linear-gradient(180deg, rgba(255,157,46,0.05), transparent 60%), var(--panel); }
.vs-tag { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.vs-card.win .vs-tag { color: var(--accent); }
.vs-card h3 { margin: 10px 0 16px; font-size: 21px; }
.vs-list { list-style: none; display: grid; gap: 12px; }
.vs-list li { display: flex; gap: 11px; font-size: 15px; color: var(--dim); line-height: 1.45; }
.vs-list li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; }
.vs-card.win .vs-list li { color: var(--text); }
.x { color: var(--bad); } .c { color: var(--ok); }
@media (min-width: 860px) { .versus { grid-template-columns: 1fr 1fr; gap: 22px; } }

/* Comparison table */
.cmp-wrap { margin-top: 30px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
table.cmp th, table.cmp td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; vertical-align: top; }
table.cmp thead th { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
table.cmp thead th.bezel { color: var(--accent); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp td.feat { color: var(--text); font-weight: 600; }
table.cmp td.bezel { color: var(--text); background: linear-gradient(180deg, rgba(255,157,46,0.04), transparent), transparent; }
table.cmp td .yes { color: var(--ok); font-weight: 650; display: inline-flex; align-items: center; gap: 6px; }
table.cmp td .yes svg { width: 15px; height: 15px; flex: none; }
table.cmp td .no { color: var(--faint); }
table.cmp td small { display: block; color: var(--faint); font-size: 12.5px; margin-top: 3px; font-weight: 400; }

/* Framework chips */
.frameworks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.fw-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 13.5px; color: var(--dim); font-weight: 600; background: var(--bg-2); }
.fw-chip:hover { border-color: var(--line-2); color: var(--text); }

/* Device grid (devices page + intent pages) */
.dev-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }
.dev-search { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 15px; background: var(--panel); transition: border-color .15s; }
.dev-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 2px var(--tint); }
.dev-search input { flex: 1; background: transparent; border: 0; color: var(--text); font-size: 15px; font-family: var(--font-sans); outline: none; }
.dev-search svg { width: 17px; height: 17px; color: var(--faint); flex: none; }
.dev-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.dev-filter { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.03em; color: var(--dim); border: 1px solid var(--line-2); background: var(--bg-2); border-radius: 999px; padding: 8px 14px; cursor: pointer; transition: all .15s; }
.dev-filter:hover { color: var(--text); border-color: var(--faint); }
.dev-filter[aria-pressed="true"] { color: var(--accent); border-color: var(--tint-line); background: var(--tint); }

.dev-group { margin-top: 40px; }
.dev-group > h3 { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.dev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.dev-card { border: 1px solid var(--line); border-radius: 13px; padding: 15px 16px; background: var(--panel); transition: border-color .15s, background .15s; }
.dev-card:hover { border-color: var(--line-2); background: var(--panel-2); }
.dev-card .dn { font-size: 15px; font-weight: 650; color: var(--text); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dev-card .tag-new { font-family: var(--font-mono); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); background: var(--tint); border: 1px solid var(--tint-line); border-radius: 5px; padding: 1px 6px; }
.dev-card .spec { margin-top: 8px; font-family: var(--font-mono); font-size: 12.5px; color: var(--faint); letter-spacing: 0.02em; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.dev-card .spec b { color: var(--dim); font-weight: 600; }
.dev-empty { display: none; text-align: center; color: var(--faint); padding: 40px 0; font-size: 15px; }
@media (min-width: 620px) { .dev-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .dev-grid { grid-template-columns: repeat(4, 1fr); } }

/* Callout band */
.callout { border: 1px solid var(--tint-line); border-radius: 20px; padding: clamp(26px, 4vw, 40px); background: radial-gradient(90% 130% at 50% -10%, rgba(255,157,46,0.1), transparent 60%), var(--panel); text-align: center; margin-top: 12px; }
.callout h2 { max-width: 20ch; margin: 0 auto; }
.callout p { margin: 14px auto 0; max-width: 52ch; font-size: 17px; }
.callout .cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* FAQ */
.faq { max-width: 820px; margin: 30px auto 0; border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 19px 4px; font-weight: 650; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--text); }
summary::-webkit-details-marker { display: none; }
summary .plus { color: var(--accent); font-family: var(--font-mono); transition: transform .2s; flex: none; }
details[open] summary .plus { transform: rotate(45deg); }
details .body { padding: 0 4px 22px; font-size: 15.5px; line-height: 1.65; color: var(--dim); }
details .body a { color: var(--accent-2); }

/* Related links */
.related { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 26px; }
.related a { border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px; background: var(--panel); display: flex; align-items: center; gap: 12px; transition: border-color .15s, transform .15s; }
.related a:hover { border-color: var(--tint-line); transform: translateY(-2px); }
.related .rt { font-weight: 650; color: var(--text); font-size: 15px; }
.related .rd { color: var(--faint); font-size: 13px; margin-top: 2px; }
.related .go { margin-left: auto; color: var(--faint); flex: none; }
.related .go svg { width: 18px; height: 18px; display: block; }
@media (min-width: 720px) { .related { grid-template-columns: repeat(3, 1fr); } }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 44px 0 56px; margin-top: 40px; }
.foot { display: grid; grid-template-columns: 1fr; gap: 30px; }
.foot .tag { font-family: var(--font-mono); color: var(--faint); font-size: 13px; letter-spacing: 0.06em; margin-top: 12px; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 12px; }
.foot-col a { display: block; color: var(--dim); font-size: 14px; padding: 4px 0; }
.foot-col a:hover { color: var(--text); }
.fine { color: var(--faint); font-size: 12.5px; line-height: 1.6; max-width: 90ch; margin-top: 28px; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; } }

/* Reveal on scroll — only when JS is on, so no-JS/crawlers see everything */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }
