/* Tuck marketing site. Night Shelf tokens (PRD §8.2, §8.3); dark only, like the app icon. */
:root {
  color-scheme: dark;
  --bg: #000000;
  --card: #1c1c1e;
  --raised: #2c2c2e;
  --tile: #0b0b0c;
  --hairline: rgba(255, 255, 255, 0.12);
  --edge: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-2: #a1a1a6;
  --text-3: #8e8e93;
  --fresh: #5ee0b5;
  --stale: #ffb340;
  --sky: #6cc4ff;
  --butter: #ffd15c;
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --panel: 28px;
  --inner: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.5 var(--sans); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #d1d1d6; }
a:focus-visible, .button:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 999px; }
h1, h2, h3, p { margin: 0; }
b { font-weight: 700; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-bottom: 120px; }
/* ui-rounded is Safari-only; elsewhere this is the plain system sans, so keep tracking moderate. */
.display { font-family: var(--rounded); font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.h2 { font-size: clamp(36px, 4.4vw, 56px); }
.lead { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 560px; }
.muted { color: var(--text-2); }
.fresh { color: var(--fresh); }
.stale { color: var(--stale); }

/* Buttons and links */
.button {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  min-height: 56px; padding: 0 26px; border-radius: 999px;
  background: var(--text); color: var(--tile); font-size: 17px; font-weight: 700;
  transition: transform .18s cubic-bezier(.16, 1, .3, 1), opacity .18s cubic-bezier(.16, 1, .3, 1);
}
.button:hover { color: var(--tile); opacity: .9; }
.button:active { transform: scale(.98); }
.button--small { min-height: 44px; padding: 0 20px; font-size: 15px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 17px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:active { transform: none; }
}

/* Header */
.header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.wordmark { font-family: var(--rounded); font-weight: 900; font-size: 30px; letter-spacing: -0.04em; line-height: 1; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; font-size: 15px; font-weight: 600; }
.nav a:not(.button) { color: var(--text-2); min-height: 44px; display: flex; align-items: center; }
.nav a:not(.button):hover { color: var(--text); }

/* Hero */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; padding-top: 48px; padding-bottom: 96px; }
.hero__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.pill { align-self: flex-start; border: 1px solid var(--edge); border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--text-2); }
.hero h1 { font-size: clamp(48px, 7.2vw, 92px); line-height: .95; letter-spacing: -0.03em; }
.hero .lead { font-size: 20px; line-height: 1.5; max-width: 500px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.hero__phone { flex: 0 1 340px; min-width: 0; display: flex; justify-content: center; }

/* Phone frame around a real screenshot */
.phone { width: 100%; max-width: 320px; background: var(--tile); border: 1px solid var(--edge); border-radius: 56px; padding: 10px; }
.phone img { width: 100%; border-radius: 46px; }

/* Find */
.find { max-width: 920px; display: flex; flex-direction: column; gap: 20px; }
.find h2 { margin-bottom: 8px; }
.query {
  display: flex; align-items: center; gap: 18px; background: var(--card); border-radius: 999px;
  padding: 0 clamp(20px, 3vw, 36px); min-height: clamp(72px, 9vw, 104px);
  font-family: var(--rounded); font-weight: 800; font-size: clamp(22px, 3.4vw, 40px); letter-spacing: -0.02em; line-height: 1.15;
}
.query svg { flex: none; }
.answer {
  background: var(--card); border-radius: var(--panel); padding: clamp(20px, 3vw, 28px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px;
}
.answer__box { flex: 1 1 300px; min-width: 0; display: flex; align-items: center; gap: 16px; }
.answer__box div, .answer__item { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.answer__name { font-size: 22px; font-weight: 700; }
.answer__item { font-size: 15px; }
.badge {
  flex: none; width: 64px; height: 64px; border-radius: 19px; background: var(--sky); color: var(--tile);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--rounded); font-weight: 900; font-size: 24px;
}
.find .lead { margin-top: 4px; max-width: 620px; }

/* How it works */
.how { display: flex; flex-direction: column; gap: 40px; }
.how__head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.tiles { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.tile { background: var(--card); border-radius: var(--panel); padding: clamp(22px, 3vw, 28px); display: flex; flex-direction: column; gap: 16px; }
.tile h3 { font-family: var(--rounded); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; }
.tile p { font-size: 15px; line-height: 1.5; color: var(--text-2); }
.tile--big { flex: 1.25 1 440px; min-width: 0; gap: 28px; padding: clamp(22px, 3vw, 32px); }
.tile--big h3 { font-size: 28px; }
.tile--big p { font-size: 16px; max-width: 520px; }
.tile__stack { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.tile__stack .tile:last-child { flex: 1; justify-content: space-between; }
.tile__text { display: flex; flex-direction: column; gap: 6px; }
.stage { flex: 1; background: var(--bg); border-radius: var(--inner); padding: 28px 24px 0; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; }
.peek { width: 100%; max-width: 290px; aspect-ratio: 1206 / 2270; border: 1px solid var(--edge); border-bottom: 0; border-radius: var(--panel) var(--panel) 0 0; overflow: hidden; background: var(--tile); }
.peek img { width: 100%; height: 100%; object-fit: cover; object-position: bottom; }
.tile--label { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px 24px; }
.tile--label .tile__text { flex: 1 1 180px; min-width: 0; }
.label { flex: none; display: flex; align-items: center; gap: 14px; background: var(--text); color: var(--tile); border-radius: var(--inner); padding: 14px; }
.label__code { font-family: var(--rounded); font-weight: 900; font-size: 32px; line-height: 1; letter-spacing: -0.03em; }
.label__name { font-size: 14px; font-weight: 700; }
.label > div { display: flex; flex-direction: column; gap: 4px; }
.feed { display: flex; flex-direction: column; }
.feed__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.feed__row + .feed__row { border-top: .5px solid var(--hairline); }
.feed__row div { display: flex; flex-direction: column; min-width: 0; font-size: 14px; }
.feed__row small { font-size: 12px; color: var(--text-3); }
.feed__row small.fresh { color: var(--fresh); }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #3a3a3c; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }
.avatar--alt { background: #48484a; }

/* Trust */
.trust { display: flex; flex-wrap: wrap-reverse; align-items: center; gap: 64px; }
.trust__phone { flex: 0 1 340px; min-width: 0; display: flex; justify-content: center; }
.trust__copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--text-2); }
.legend b { font-weight: 600; }

/* Privacy */
.privacy { display: flex; flex-direction: column; gap: 36px; }
.columns { border-top: .5px solid rgba(255, 255, 255, 0.2); padding-top: 32px; display: flex; flex-wrap: wrap; gap: 32px 48px; }
.columns > div { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.columns h3 { font-size: 19px; font-weight: 700; }
.columns p { font-size: 16px; color: var(--text-2); }

/* Download */
.download { background: var(--card); border-radius: var(--panel); padding: clamp(32px, 6vw, 80px) clamp(24px, 5vw, 64px); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 420px; }
.slot { height: 64px; border-radius: var(--inner); border: 1.5px dashed rgba(255, 255, 255, 0.22); }
.slot--lit { border: 0; background: var(--butter); display: flex; align-items: flex-end; padding: 6px; }
.chip { font-family: var(--rounded); font-weight: 800; font-size: 12px; background: var(--tile); color: var(--text); border-radius: 7px; padding: 2px 6px; }
.download h2 { font-size: clamp(40px, 5.6vw, 72px); letter-spacing: -0.03em; }
.download .lead { max-width: 480px; }
.download small { font-size: 14px; color: var(--text-3); }

/* Footer */
.footer { border-top: .5px solid var(--hairline); }
.footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding-top: 32px; padding-bottom: 48px; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-3); }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; }
.footer nav a { color: var(--text-2); min-height: 44px; display: flex; align-items: center; }
.footer nav a:hover { color: var(--text); }

/* Text pages (privacy, terms, support) */
.doc { max-width: 720px; padding-top: 48px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 20px; }
.doc h1 { font-size: clamp(40px, 6vw, 64px); }
.doc h2 { font-family: var(--rounded); font-weight: 800; font-size: 24px; letter-spacing: -0.02em; margin-top: 16px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc a:not(.button) { text-decoration: underline; text-underline-offset: 3px; }
.todo { border: 1.5px dashed var(--stale); border-radius: var(--inner); padding: 16px 20px; color: var(--stale); }
