/* Spotted Registry website. Colors and type match the app (Design/Theme.swift). */
:root {
  --canvas: #ffffff;
  --ink: #16161a;
  --secondary: #5f5f66;
  --surface: #f4f3f0;
  --border: #e6e5e1;
  --accent: #2b4bf2;
  --accent-tint: #e9edff;
  --accent-pressed: #1a35c9;
  --radius: 24px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Safety net: decorative pieces may never cause sideways scrolling. */
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font: 400 17px/1.55 var(--body);
}
a { color: var(--accent); }
a:hover { color: var(--accent-pressed); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 700 20px/1 var(--display); letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; gap: 20px; font-size: 15px; font-weight: 500; }
.top nav a { color: var(--secondary); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* Apple's official "Download on the App Store" badge (served by Apple; don't restyle it).
   Apple asks for at least 40px height and clear space around it. */
.badge { display: inline-block; line-height: 0; border-radius: 9px; }
.badge img { height: 54px; width: auto; }
.badge.small img { height: 40px; }
.badge:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Sticky "get the app" bar, phones only */
.getbar { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding: 48px 0 72px; }
.eyebrow { display: inline-block; background: var(--accent-tint); color: var(--accent); font: 700 13px/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; padding: 8px 12px; border-radius: 999px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(42px, 7vw, 72px); font-weight: 800; margin: 18px 0 18px; }
h1 em { font-style: normal; color: var(--accent); }
.lede { font-size: 20px; color: var(--secondary); max-width: 34ch; margin: 0 0 28px; }
.soon { display: block; margin-top: 12px; font-size: 14px; color: var(--secondary); }

/* Hero art: the camera aimed at something in a store, and the gift landing on the registry. */
.snap { position: relative; justify-self: center; width: min(380px, 100%); }
.phone {
  width: 76%; margin: 0 auto; aspect-ratio: 9 / 18.5;
  border-radius: 46px; background: var(--ink); padding: 11px;
  box-shadow: 0 40px 80px -30px rgba(43, 75, 242, 0.45);
}
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #000; }
.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.cam-top {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.42); color: #fff; font-size: 12px; font-weight: 600;
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.focus { position: absolute; left: 9%; right: 9%; top: 31%; height: 33%; }
.focus i { position: absolute; width: 26px; height: 26px; border: 0 solid #fff; }
.focus i:nth-child(1) { top: 0; left: 0; border-top-width: 3px; border-left-width: 3px; border-top-left-radius: 10px; }
.focus i:nth-child(2) { top: 0; right: 0; border-top-width: 3px; border-right-width: 3px; border-top-right-radius: 10px; }
.focus i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 3px; border-left-width: 3px; border-bottom-left-radius: 10px; }
.focus i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 3px; border-right-width: 3px; border-bottom-right-radius: 10px; }
.cam-bottom {
  position: absolute; left: 0; right: 0; bottom: 0; height: 104px;
  display: flex; align-items: center; justify-content: space-evenly;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0));
}
.shutter { width: 62px; height: 62px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.35), 0 0 0 7px #fff; }
.cam-side { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.22); display: grid; place-items: center; }
.cam-side svg, .spotted-chip svg, .check svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cam-side svg { width: 20px; height: 20px; color: #fff; }

.spotted-chip, .added { position: absolute; background: #fff; box-shadow: 0 16px 36px -12px rgba(22, 22, 26, 0.35); }
.spotted-chip {
  left: 0; top: 22%; display: flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--accent); white-space: nowrap;
}
.spotted-chip svg { width: 16px; height: 16px; }
.added {
  right: 0; bottom: 21%; max-width: 100%; display: flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 10px; border-radius: 18px; text-align: left;
}
.added img { width: 46px; height: 46px; border-radius: 11px; object-fit: cover; flex: none; }
.added-text { line-height: 1.25; min-width: 0; }
.added-text b { display: block; font-size: 13px; white-space: nowrap; }
.added-text small { display: block; font-size: 12px; color: var(--secondary); white-space: nowrap; }
.check { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.check svg { width: 15px; height: 15px; stroke-width: 3; }

/* Sections */
section { padding: 56px 0; }
.section-title { font-size: clamp(30px, 4.5vw, 44px); font-weight: 800; margin-bottom: 28px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 26px; }
.card .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; margin-bottom: 16px; font: 800 20px/1 var(--display); }
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--secondary); font-size: 16px; }

.code-band { background: var(--accent-tint); border-radius: 32px; padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.code-band p { margin: 10px 0 0; color: var(--secondary); }
.code { font: 800 clamp(40px, 8vw, 64px)/1 var(--display); letter-spacing: 0.18em; color: var(--ink); background: #fff; border-radius: 20px; padding: 18px 26px; text-align: center; }

.price { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price .card.dark { background: var(--ink); color: #fff; }
.price .card.dark p, .price .card.dark li { color: rgba(255, 255, 255, 0.75); }
.price .amount { font: 800 44px/1 var(--display); margin: 10px 0 6px; }
.price ul { margin: 16px 0 0; padding-left: 20px; color: var(--secondary); }
.price li { margin: 6px 0; }

/* Text pages */
.doc { padding: 32px 0 72px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); margin: 8px 0 8px; }
.doc .updated { color: var(--secondary); margin: 0 0 32px; font-size: 15px; }
.doc h2 { font-size: 26px; margin: 40px 0 12px; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; font-family: var(--body); letter-spacing: 0; font-weight: 700; }
.doc p, .doc li { color: #2b2b31; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.note { background: var(--surface); border-radius: 18px; padding: 18px 20px; margin: 20px 0; }
details { border-bottom: 1px solid var(--border); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::after { content: "+"; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { margin: 10px 0 0; color: var(--secondary); }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--secondary); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--secondary); text-decoration: none; }
footer a:hover { color: var(--ink); }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 16px 0 48px; gap: 36px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .features, .price { grid-template-columns: 1fr; }
  .code-band { grid-template-columns: 1fr; padding: 28px; }
  .top nav { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  body:has(.getbar) { padding-bottom: 84px; }
  .wrap { padding: 0 16px; }

  .top { padding-top: 14px; padding-bottom: 14px; }
  .brand { font-size: 18px; }
  .brand img { width: 32px; height: 32px; border-radius: 8px; }

  h1 { font-size: 44px; margin: 14px 0 14px; }
  .lede { font-size: 18px; margin-bottom: 22px; }
  .eyebrow { font-size: 12px; }
  .snap { width: 100%; max-width: 340px; }
  .phone { width: 70%; }
  .phone { border-radius: 38px; padding: 9px; }
  .screen { border-radius: 30px; }
  .cam-bottom { height: 86px; }
  .shutter { width: 50px; height: 50px; }
  .cam-side { width: 34px; height: 34px; }
  .spotted-chip { left: 0; top: 18%; font-size: 12px; padding: 8px 12px; }
  .added { right: 0; bottom: 19%; padding: 8px 10px 8px 8px; gap: 8px; }
  .added img { width: 38px; height: 38px; }
  .added-text b { font-size: 11.5px; }
  .added-text small { font-size: 10.5px; }
  .check { width: 22px; height: 22px; }

  section { padding: 36px 0; }
  .section-title { font-size: 30px; margin-bottom: 20px; }
  .card { padding: 20px; border-radius: 20px; }
  .features .card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
  .features .card .ico { margin: 0; grid-row: span 2; }
  .features .card h3 { font-size: 19px; margin: 2px 0 4px; }
  .features .card p { font-size: 15px; }

  .code-band { padding: 24px 20px; border-radius: 24px; text-align: center; gap: 18px; }
  .code { font-size: 40px; padding: 14px 18px; border-radius: 16px; }
  .price .amount { font-size: 38px; }

  .doc { padding: 16px 0 48px; }
  .doc h2 { font-size: 23px; margin-top: 32px; }
  details summary { font-size: 17px; }

  footer .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }

  .getbar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--border);
  }
  .getbar-icon { width: 40px; height: 40px; border-radius: 10px; }
  .getbar-text { flex: 1; min-width: 0; line-height: 1.25; }
  .getbar-text strong { display: block; font-size: 15px; }
  .getbar-text span { font-size: 13px; color: var(--secondary); }
}
