/* Tokens lifted from the app's theme/colors.js and its screen gradients, so
   the site and the product read as one thing. */
:root {
  --black: #000;
  --deep-1: #1a1a2e;
  --deep-2: #16213e;
  --yellow: #f5d10d;
  --yellow-dark: #b8860b;
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.55);
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.15);
  --measure: 66ch;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--yellow);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Visible focus everywhere — the default outline disappears against black */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.wordmark {
  height: 26px;
  width: auto;
  display: block;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  /* Two scrims over the photo: one darkening the left where the copy sits,
     one fading the bottom into the page so there is no visible seam. The
     shot is already dark upper-left, so these only deepen what is there. */
  background-image:
    linear-gradient(
      to top,
      var(--black) 0%,
      rgba(0, 0, 0, 0.55) 28%,
      rgba(0, 0, 0, 0.15) 58%,
      rgba(0, 0, 0, 0.45) 100%
    ),
    linear-gradient(
      to right,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.45) 42%,
      rgba(0, 0, 0, 0) 78%
    ),
    url('assets/hero.jpg');
  /* Favours the right of the frame so the glasses survive a narrow crop */
  background-size: cover;
  background-position: 68% center;
  background-repeat: no-repeat;
}

.hero-top {
  padding-top: 28px;
}

.hero-body {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 0 72px;
}

.hero-copy {
  max-width: 30ch;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 4.2rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 700;
}

.lede {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 30px;
  max-width: 34ch;
}

/* The app's CTA gradient, exactly: colors.yellow -> colors.yellowDark */
.cta {
  display: inline-block;
  background: linear-gradient(to bottom, var(--yellow), var(--yellow-dark));
  color: #1a1500;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 14px;
  border: 0;
}

.cta:hover {
  text-decoration: none;
  filter: brightness(1.06);
}

/* Same shape as .cta but plainly not a button, for the pre-launch state */
.cta-pending {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  backdrop-filter: blur(6px);
}

.hero-note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- text pages ---------- */

.page {
  min-height: 100svh;
  background: linear-gradient(to bottom, var(--black), var(--deep-1), var(--deep-2));
  background-attachment: fixed;
  padding-bottom: 80px;
}

.page-top {
  padding: 28px 0 8px;
}

.doc {
  max-width: var(--measure);
  padding-top: 28px;
}

.doc h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  margin-bottom: 6px;
}

.doc h2 {
  font-size: 1.15rem;
  margin: 40px 0 10px;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  color: rgba(255, 255, 255, 0.8);
}

.doc ul {
  padding-left: 20px;
}

.doc li {
  margin-bottom: 8px;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0;
}

/* Placeholders that must be resolved before launch. Deliberately loud —
   a privacy policy that quietly invents its own retention period is worse
   than one that admits the gap. */
.todo {
  color: var(--yellow);
  font-weight: 600;
}

.callout {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-left: 3px solid var(--yellow);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 0.95rem;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 26px 0 40px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.footer a {
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  /* Copy needs more cover from the photo once the crop tightens */
  .hero {
    background-image:
      linear-gradient(
        to top,
        var(--black) 0%,
        rgba(0, 0, 0, 0.7) 34%,
        rgba(0, 0, 0, 0.35) 64%,
        rgba(0, 0, 0, 0.6) 100%
      ),
      url('assets/hero.jpg');
  }
  .hero-copy {
    max-width: none;
  }
}
