/* ==========================================================================
   Watt Key — shared site styles
   Used by every page. Page-specific rules stay inline in each page's <style>.
   Bump the ?v= query on every <link> to this file when it changes.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #08080f;
  --bg2:      #0f1020;
  --bg3:      #151628;
  --accent:   #2563eb;
  --accent-h: #1d4ed8;
  --accent-g: #3b82f6;
  --accent-l: #93c5fd;
  --text:     #f1f5f9;
  --muted:    #94a3b8;
  --dim:      #64748b;
  --border:   rgba(255,255,255,0.07);
  --radius:   16px;
  --nav-h:    68px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

.grad {
  font-style: normal;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { left: 8px; }

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 5%;
  height: var(--nav-h);
  background: rgba(8,8,15,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand img { width: 36px; height: 36px; border-radius: 9px; }

.nav-brand span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-right { display: flex; align-items: center; gap: 24px; }

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link[aria-current="page"] { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 50px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover { background: var(--accent-h); transform: translateY(-1px); }

/* ── BUTTONS ── */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(37,99,235,0.4);
}

.btn-primary:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,99,235,0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.14);
}

.btn-secondary:hover { border-color: rgba(37,99,235,0.6); transform: translateY(-2px); }

.play-badge { display: inline-block; }

.play-badge img {
  display: block;
  height: 80px;
  width: auto;
  transition: transform 0.2s, filter 0.2s;
}

.play-badge:hover img { transform: translateY(-2px); filter: brightness(1.1); }

/* ── SECTION HEADINGS ── */
.section-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-g);
  margin-bottom: 14px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 56px;
}

/* ── DEVICE FRAMES ── */
.watch-frame {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 3px #1a1a2e,
    0 0 0 6px #252540,
    0 12px 40px rgba(0,0,0,0.6),
    0 0 40px rgba(37,99,235,0.1);
  flex-shrink: 0;
}

.watch-frame img, .watch-frame picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.phone-frame {
  width: 220px;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  border: 6px solid #1a1a2e;
  box-shadow:
    0 0 0 2px #252540,
    0 12px 40px rgba(0,0,0,0.6),
    0 0 40px rgba(37,99,235,0.1);
  flex-shrink: 0;
}

.phone-frame img { display: block; width: 100%; height: auto; }

/* ── LONG-FORM CONTENT PAGES (guide, device pages) ── */
.page-hero {
  padding: 72px 5% 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(37,99,235,0.16) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero > * { position: relative; }

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 820px;
  margin: 0 auto 18px;
}

.page-hero .lede {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 640px;
  margin: 0 auto;
}

.breadcrumbs {
  font-size: 0.8rem;
  color: var(--dim);
  margin-bottom: 22px;
}

.breadcrumbs ol { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li + li::before { content: '›'; margin-right: 6px; color: var(--dim); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }

.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 5%;
}

.prose h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 64px 0 16px;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 28px 0 10px;
}

.prose p, .prose li { color: var(--muted); font-size: 1rem; line-height: 1.75; }
.prose p { margin-bottom: 16px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose a { color: var(--accent-l); text-decoration: underline; text-decoration-color: rgba(147,197,253,0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose ul, .prose ol { margin: 0 0 18px 1.3em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent-g); }

.callout {
  background: rgba(37,99,235,0.08);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 22px 0;
}

.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout p, .callout li { color: #bfdbfe; }

.callout.warn {
  background: rgba(234,179,8,0.07);
  border-color: rgba(234,179,8,0.3);
}
.callout.warn p, .callout.warn li { color: #fde68a; }

.ui {
  color: var(--text);
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 7px;
  white-space: nowrap;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 22px 0;
}

.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--text); }
.card p { font-size: 0.92rem; margin: 0; }

.shots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
  margin: 28px 0 32px;
}

.shots figure { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 0; }

.shots figcaption {
  font-size: 0.82rem;
  color: var(--dim);
  text-align: center;
  max-width: 220px;
}

/* FAQ */
.faq { margin-top: 12px; }

.faq details {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 32px 16px 0;
  font-weight: 600;
  color: var(--text);
  position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent-g);
  transition: transform 0.2s;
}

.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 16px; }

/* CTA band */
.cta-section {
  padding: 100px 5%;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(37,99,235,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section > * { position: relative; }

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 460px;
  margin: 0 auto 36px;
}

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 5% 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand { display: flex; flex-direction: column; gap: 10px; max-width: 280px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-brand span { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.footer-brand p { font-size: 0.85rem; color: var(--dim); line-height: 1.6; }

.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; }

.footer-col h2 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 12px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.8rem;
  color: #475569;
  text-align: center;
  margin-top: 36px;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .nav-right { gap: 14px; }
  .nav-cta { padding: 8px 10px; }
  .nav-cta span { display: none; }
  .nav-hide-sm { display: none; }
  .watch-frame { width: 150px; height: 150px; }
  .phone-frame { width: 180px; }
  .footer-cols { gap: 32px; }
  .play-badge img { height: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
