/* Pocket Webcam site. No external fonts or scripts: the site makes no third-party requests. */

:root {
  --bg: #0b0b0c;
  --bg-raised: #141416;
  --bg-card: #18181b;
  --border: #2a2a2e;
  --text: #f5f5f7;
  --muted: #a1a1a8;
  --accent: #ffd60a;       /* same yellow as the app */
  --accent-ink: #1a1500;
  --green: #30d158;
  --radius: 18px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto,
          "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(11, 11, 12, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand svg, .brand img { width: 28px; height: 28px; border-radius: 7px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  list-style: none;
  padding: 0;
  margin-block: 0;
}
.nav-links a { color: var(--muted); font-size: 15px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--accent-ink); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #ffe14d; }
.btn-ghost { color: var(--text); border-color: var(--border); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.07); }
.btn-small { padding: 8px 16px; font-size: 14px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 900px;
  height: 900px;
  background: radial-gradient(closest-side, rgba(255, 214, 10, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 214, 10, 0.1);
  border: 1px solid rgba(255, 214, 10, 0.25);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.1; margin: 0; }

h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  margin: 22px 0 20px;
}
h1 em { font-style: normal; color: var(--accent); }

.lead {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--muted);
  max-width: 34em;
  margin: 0 0 32px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.availability {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero-art { position: relative; }

/* ---------- Sections ---------- */

section { padding: 88px 0; }
section + section { border-top: 1px solid rgba(255, 255, 255, 0.05); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 750; margin-bottom: 14px; }
.section-head p { color: var(--muted); margin: 0; font-size: 19px; }

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  margin-bottom: 18px;
}
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 214, 10, 0.1);
  color: var(--accent);
  margin-bottom: 18px;
}
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--muted); margin: 0; font-size: 16px; }

/* Lens chips, echoing the app's lens picker */
.lens-chips { display: flex; gap: 8px; margin-top: 16px; }
.lens-chips span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #000;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
}
.lens-chips span.on { color: var(--accent); width: 46px; height: 46px; }

/* Platforms */
.platforms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.platform {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.platform h3 { font-size: 20px; }
.platform p { color: var(--muted); margin: 0; font-size: 16px; flex: 1; }
.status {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.status-beta { background: rgba(48, 209, 88, 0.12); color: var(--green); }
.status-soon { background: rgba(255, 214, 10, 0.12); color: var(--accent); }
.status-later { background: rgba(255, 255, 255, 0.06); color: var(--muted); }

/* FAQ */
.faq { max-width: 780px; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

/* Notify / CTA band */
.cta-band {
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(255, 214, 10, 0.14), transparent 70%),
    var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin: 0; }
.cta-band .cta-row { justify-content: flex-end; }

/* ---------- Content pages (privacy, help, download) ---------- */

.page { padding: 72px 0 96px; }
.page-head { max-width: 760px; margin-bottom: 40px; }
.page-head h1 { font-size: clamp(36px, 5vw, 52px); margin: 0 0 14px; }
.page-head p { color: var(--muted); font-size: 19px; margin: 0; }

.prose { max-width: 760px; }
.prose h2 { font-size: 26px; margin: 48px 0 12px; }
.prose h3 { font-size: 19px; margin: 28px 0 8px; }
.prose p, .prose li { color: #d6d6db; }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose code, .code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 6px;
}
.prose pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  font-size: 15px;
}
.prose pre code { background: none; border: 0; padding: 0; }
.prose .note {
  background: rgba(255, 214, 10, 0.07);
  border: 1px solid rgba(255, 214, 10, 0.25);
  border-radius: 12px;
  padding: 14px 18px;
}
.updated { color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  align-items: center;
  justify-content: space-between;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.legal { margin-top: 20px; font-size: 13px; color: #6e6e75; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero { padding-top: 56px; }
  .hero-grid, .cta-band { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 28px; }
  .cta-band .cta-row { justify-content: flex-start; }
  .steps, .features, .platforms { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
}

@media (max-width: 640px) {
  .nav-links li:not(:last-child) { display: none; }
  .wrap { padding-inline: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .wave { animation: none !important; }
}

/* Wi-Fi waves in the hero illustration */
.wave { animation: pulse 2.4s ease-in-out infinite; transform-origin: center; }
.wave:nth-child(2) { animation-delay: 0.3s; }
.wave:nth-child(3) { animation-delay: 0.6s; }
@keyframes pulse {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 1; }
}

.spaced { margin-top: 56px; }
.platform .btn { margin-top: 10px; }
