/* Beginner Cam website. Black and white with one gold accent, like the app. */

:root {
  --ink: #141414;
  --ink-2: #5b5b61;
  --ink-3: #8e8e93;
  --canvas: #ffffff;
  --soft: #f4f4f6;
  --hairline: #e6e7eb;
  --gold: #c99a3d;
  --gold-soft: #f7efde;
  --radius: 22px;
  --radius-lg: 32px;
  --shadow: 0 10px 30px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 30px 80px rgba(16, 24, 40, 0.18);
  --max: 1160px;
  --gutter: 20px;
  --nav-h: 68px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; overflow-x: hidden; background: var(--canvas); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.03em; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container--narrow { width: min(760px, 100% - 2 * var(--gutter)); }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 14px; border-radius: 12px; background: var(--ink); color: #fff;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2);
}
.muted { color: var(--ink-3); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 24px; border-radius: 999px;
  font-weight: 700; transition: transform 0.2s var(--ease), background 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2a2a2e; }
.btn--small { height: 42px; padding: 0 18px; font-size: 15px; }

/* Store badges: replace with the official artwork before launch (README). */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badges--center { justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 16px; border-radius: 14px;
  background: var(--ink); color: #fff; border: 1px solid #000;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-badge__logo { width: 26px; height: 26px; flex: none; }
.store-badge__text { display: flex; flex-direction: column; line-height: 1.05; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.store-badge__text small { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; opacity: 0.9; }
.store-badge--compact { height: 44px; padding: 0 14px 0 12px; border-radius: 11px; gap: 8px; }
.store-badge--compact .store-badge__logo { width: 20px; height: 20px; }
.store-badge--compact .store-badge__text { font-size: 15px; }
.store-badge--compact .store-badge__text small { font-size: 9px; }
.store-badge--light { background: #fff; color: var(--ink); border-color: #fff; }
.store-badge.is-soon { opacity: 0.55; cursor: default; pointer-events: none; }
.store-badge.is-soon .store-badge__text small::after { content: " · soon"; }
.store-badge--simple { padding: 0 18px 0 14px; border-radius: 999px; }
.store-badge--simple .store-badge__text { flex-direction: row; white-space: nowrap; font-size: 15px; font-weight: 700; }
.store-badge--simple.is-soon .store-badge__text::after { content: " · soon"; font-weight: 500; opacity: .8; }

/* Top navigation */
.nav {
  position: absolute; inset: 0 0 auto; z-index: 20; height: var(--nav-h);
  display: flex; align-items: center;
}
.nav__inner { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
.brand img { border-radius: 9px; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }

/* Sticky download bar */
.sticky-cta {
  position: fixed; inset: 0 0 auto; z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
  transform: translateY(-110%);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.sticky-cta.is-visible { transform: translateY(0); box-shadow: 0 6px 24px rgba(16, 24, 40, 0.06); }
.sticky-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; padding-block: 12px; }
.sticky-cta__app { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sticky-cta__app img { border-radius: 11px; flex: none; }
.sticky-cta__app strong { display: block; font-size: 16px; }
.sticky-cta__app span { display: block; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta__buttons { display: flex; gap: 8px; flex: none; }

/* Hero */
.hero { position: relative; padding: calc(var(--nav-h) + 56px) 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, var(--gold-soft), transparent);
  z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 84px); line-height: 0.98; font-weight: 800; margin: 18px 0 22px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--ink-2); max-width: 34ch; margin-bottom: 32px; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 28px; padding: 0; margin: 36px 0 0; color: var(--ink-2); font-size: 15px; }
.hero__facts strong { display: block; font-size: 30px; color: var(--ink); letter-spacing: -0.03em; }
.hero__visual { position: relative; display: grid; place-items: center; }

/* Phone frame around screenshots */
.phone {
  position: relative; border-radius: 44px; padding: 10px; background: #0d0d0f;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #2a2a2e;
  aspect-ratio: 600 / 1304;
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; }
.phone--hero { width: min(360px, 78vw); transform: rotate(-3deg); }
.phone--small { width: min(230px, 62vw); margin: 0 auto 28px; border-radius: 34px; padding: 7px; }
.phone--small img { border-radius: 27px; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: 16px; background: #fff;
  box-shadow: var(--shadow); font-weight: 700; font-size: 14px;
  animation: float 6s ease-in-out infinite;
}
.float-card--top { top: 14%; right: 2%; }
.float-card--bottom { bottom: 12%; left: 0; animation-delay: -3s; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot--gold { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; }
.chip--ghost { background: var(--soft); color: var(--ink-2); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Statement */
.statement { padding: 24px 0 88px; }
.statement p {
  font-size: clamp(24px, 3.2vw, 40px); line-height: 1.3; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink-3); max-width: 900px;
}
.statement strong { color: var(--ink); font-weight: 700; }

/* Sections */
.section { padding: 96px 0; }
.section--soft { background: var(--soft); }
.section__head { text-align: center; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.05; font-weight: 800; margin-top: 12px; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { text-align: center; }
.step__num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 15px; margin-bottom: 14px;
}
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--ink-2); line-height: 1.55; max-width: 30ch; margin-inline: auto; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature__icon {
  width: 48px; height: 48px; border-radius: 14px; background: var(--ink); color: #fff;
  display: grid; place-items: center; margin-bottom: 18px;
}
.feature__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--ink-2); line-height: 1.55; font-size: 15px; }

/* Screenshot gallery: sideways scroll with snap */
.gallery {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 8px max(var(--gutter), calc((100vw - var(--max)) / 2)) 32px;
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery__item { flex: none; width: min(260px, 66vw); margin: 0; scroll-snap-align: center; text-align: center; }
.gallery__item figcaption { margin-top: 18px; font-weight: 700; }
.gallery__nav { display: flex; justify-content: center; gap: 12px; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hairline);
  background: #fff; font-size: 18px; cursor: pointer; color: var(--ink);
  transition: background 0.2s, transform 0.2s var(--ease);
}
.round-btn:hover { background: var(--soft); }
.round-btn:active { transform: scale(0.94); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: #fff; border-radius: 18px; padding: 0 24px; box-shadow: 0 1px 0 var(--hairline);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 500; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); line-height: 1.6; }

/* Final CTA */
.cta { padding: 24px 0 96px; }
.cta__inner {
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 72px 24px; text-align: center; display: grid; justify-items: center; gap: 16px;
  position: relative; overflow: hidden;
}
.cta__inner::before {
  content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%;
  background: radial-gradient(closest-side, rgba(201, 154, 61, 0.35), transparent);
}
.cta__inner > * { position: relative; }
.cta__inner img { border-radius: 18px; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.cta h2 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; font-weight: 800; max-width: 18ch; }
.cta p { color: rgba(255, 255, 255, 0.7); margin-bottom: 12px; }

/* Footer */
.footer { border-top: 1px solid var(--hairline); padding: 36px 0 48px; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.footer nav { display: flex; gap: 24px; margin-left: auto; color: var(--ink-2); font-weight: 600; font-size: 15px; }
.footer nav a:hover { color: var(--ink); }
.footer__legal { width: 100%; color: var(--ink-3); font-size: 13px; }

/* Scroll reveal (js/main.js adds .is-in) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* Legal pages */
.legal { padding: calc(var(--nav-h) + 40px) 0 96px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; margin-bottom: 8px; }
.legal .updated { color: var(--ink-3); margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal a { text-decoration: underline; }
.legal .note { background: var(--gold-soft); border-radius: 14px; padding: 14px 18px; color: var(--ink); }

/* Tablet */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .lead { margin-inline: auto; }
  .badges { justify-content: center; }
  .hero__facts { justify-content: center; }
  .hero__visual { margin-top: 24px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .statement p { text-align: center; margin-inline: auto; }
}

/* Phone */
@media (max-width: 720px) {
  :root { --nav-h: 60px; }
  .nav__links { display: none; }
  .nav__inner > .btn { margin-left: auto; }
  .hero { padding-top: calc(var(--nav-h) + 32px); }
  .steps, .features { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .float-card { display: none; }
  .hero__facts { gap: 18px; font-size: 13px; flex-wrap: nowrap; }
  .hero__facts strong { font-size: 26px; }
  .phone--hero { transform: none; }
  .footer nav { margin-left: 0; }
  /* The sticky bar: keep the app name, one compact button per store. */
  .sticky-cta__app span { display: none; }
  .store-badge--compact .store-badge__text small { display: none; }
  .store-badge--compact .store-badge__text { font-size: 14px; }
}

@media (max-width: 360px) {
  .sticky-cta__app strong { font-size: 15px; }
}

/* Respect Reduce Motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
