/* ─── Brand tokens — mirrors constants/theme.ts in the app itself ────────── */
:root {
  --cream: #F5F0E8;
  --cream-dark: #EDE8DC;
  --cream-mid: #F0EBE0;
  --white: #FFFFFF;
  --brown: #5C4A2A;
  --brown-dark: #3E2F1C;
  --brown-mid: #7A6040;
  --brown-light: #A08060;
  --brown-faint: #E8DFD0;
  --text: #2C1F0E;
  --text-mid: #5C4A2A;
  --text-light: #8A7560;
  --text-faint: #B0A090;
  --border: #DDD4C4;

  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 4px 20px rgba(44, 31, 14, 0.08);
  --shadow-lg: 0 20px 60px rgba(44, 31, 14, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

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

em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--brown);
}

/* ─── Buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  /* .btn was only ever written for <a> tags, which have no native browser
     chrome — but contact.html and waitlist.html use it on real <button
     type="submit"> elements too, which without this reset render with the
     browser's own default border/appearance (a dark bezel in some
     browsers) on top of everything below. */
  border: none;
  appearance: none;
  cursor: pointer;
}

.btn--small { padding: 10px 20px; font-size: 14px; }

.btn--primary {
  background: var(--brown);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(62, 47, 28, 0.28);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(62, 47, 28, 0.34); }

.btn--ghost {
  background: transparent;
  color: var(--brown);
  border: 1.5px solid var(--brown-light);
}
.btn--ghost:hover { background: var(--brown-faint); }

.btn--ghost-dark {
  color: var(--cream);
  border-color: rgba(245, 240, 232, 0.4);
}
.btn--ghost-dark:hover { background: rgba(245, 240, 232, 0.1); }

/* ─── Nav ──────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  color: var(--brown-dark);
  flex-shrink: 0;
}

.nav__mark { border-radius: 8px; }

.nav__wordmark { height: 44px; width: auto; display: block; }
.nav__brand--footer .nav__wordmark { height: 32px; }

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
}

.nav__links a:hover { color: var(--brown); }

/* ─── Hero ─────────────────────────────────────────────────────────────── */

.hero { padding: 72px 0 40px; overflow: hidden; }

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brown-light);
  margin-bottom: 16px;
}

.eyebrow--center { text-align: center; }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 56px;
  line-height: 1.08;
  color: var(--brown-dark);
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 18px;
  color: var(--text-light);
  max-width: 440px;
  margin-bottom: 32px;
}

/* ─── Launch badge ─────────────────────────────────────────────────────── */

.launch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--brown-faint);
  color: var(--brown);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.launch-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brown);
}

/* ─── Launch button — two-tone "Launching soon" / "Claim your username
   now" CTA, replacing the plain single-color primary button. Works on
   both the light hero and the dark CTA banner since neither band matches
   either background. ─────────────────────────────────────────────────── */

.launch-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(62, 47, 28, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  margin-bottom: 40px;
}
.launch-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(62, 47, 28, 0.34); }

.launch-btn--center { align-self: center; margin: 0 auto 8px; }

/* Sits on the CTA banner's --brown-dark background — the main band's
   brown fill reads fine against the light hero, but needs a bit more
   separation against a background that's brown itself. */
.launch-btn--dark {
  border: 1px solid rgba(245, 240, 232, 0.18);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.launch-btn__top {
  padding: 6px 26px;
  background: var(--brown);
  color: var(--white);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.launch-btn__main {
  padding: 14px 26px;
  background: var(--white);
  color: var(--brown);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

/* ─── Waitlist form (waitlist.html) ────────────────────────────────────── */

.waitlist-status {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
  min-height: 18px;
}

.waitlist-status--error { color: #B3402A; }
.waitlist-status--success { color: #3A7A4E; }

.hero__proof {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__proof p { font-size: 13px; color: var(--text-light); }

.avatars { display: flex; }

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--cream);
  margin-left: -10px;
}
.avatar:first-child { margin-left: 0; }
.avatar--1 { background: linear-gradient(135deg, #E8B98A, #C98A5A); }
.avatar--2 { background: linear-gradient(135deg, #A8C6D8, #7098B0); }
.avatar--3 { background: linear-gradient(135deg, #C8A8D8, #9868B0); }

/* ─── Hero visual: real app screenshot ─────────────────────────────────── */

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

/* Sized to match the main screenshot exactly, so the peek images below
   (position:absolute, offsets relative to THIS box) stay anchored tight to
   the phone at every breakpoint — anchoring them to .hero__visual directly
   would size against that flex container's full width instead, which is
   only as narrow as the phone on desktop's two-column layout but goes
   full-bleed once the hero stacks to one column, flinging the peek images
   far out to each edge instead of tucking behind the phone. */
.hero__stack {
  position: relative;
  width: 360px;
  max-width: 100%;
}

/* The screenshot is cropped tight to just the phone (no page background
   left around it — see website/assets/hero-post.jpg). A large blur radius
   here reads as a pale halo rather than a shadow, since it fades through
   many near-transparent steps before reaching the page's own light cream —
   kept tight and closer to the phone instead so it reads as "lifted off
   the page," not a glow. */
.hero-screenshot {
  position: relative;
  z-index: 2;
  width: 100%;
  transform: rotate(-2deg);
  border-radius: 18px;
  filter: drop-shadow(0 10px 8px rgba(44, 31, 14, 0.18)) drop-shadow(0 4px 16px rgba(44, 31, 14, 0.22));
}

/* Two more real posts, one at the main phone's bottom-left and one at its
   bottom-right, each a different height for a playful (not symmetric)
   feel — replaces the old globe-accent decoration. z-index 3 puts them IN
   FRONT of the main screenshot (z-index 2), not tucked behind it. Sized/
   offset as a fraction of .hero__stack (not fixed px) so the whole
   arrangement scales together at every breakpoint. */
.hero-screenshot--peek {
  position: absolute;
  z-index: 3;
  width: 58%;
  filter: drop-shadow(0 8px 20px rgba(44, 31, 14, 0.2));
}

.hero-screenshot--peek-back {
  left: -18%;
  bottom: 2%;
  transform: rotate(-8deg);
}

.hero-screenshot--peek-front {
  width: 68%;
  right: -28%;
  bottom: -2%;
  transform: rotate(22deg);
}

.mock-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.mock-avatar {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--brown-light), var(--brown-mid));
  flex-shrink: 0;
}

.mock-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--brown-faint);
  margin-left: auto;
}

/* ─── Pillars strip ────────────────────────────────────────────────────── */
/* Was a stat strip (190+ countries / 1M+ memories / 4.9★) — pulled pre-
   launch since there's no real usage to back those numbers yet. Replaced
   with the 3 questions every memory answers (When / Where / Who), which
   doesn't age out the way an unearned stat would. */

.pillars {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--cream-mid);
}

.pillars__inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px 24px;
}

.pillar {
  text-align: center;
  max-width: 260px;
}

.pillar strong {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--brown-dark);
}

.pillar span { font-size: 13px; color: var(--text-light); }

/* ─── Section shared ───────────────────────────────────────────────────── */

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 36px;
  text-align: center;
  color: var(--brown-dark);
  max-width: 640px;
  margin: 0 auto 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 56px;
}

.features, .showcase, .faq { padding: 96px 0; }

.features .section-title { max-width: 820px; }

/* ─── Features grid ────────────────────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brown-faint);
  color: var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card__icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ─── Showcase ─────────────────────────────────────────────────────────── */

.showcase { background: var(--cream-mid); }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.showcase-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--brown);
}

/* Real product screenshots (assets/feed.png, myworld.png, profile2.png),
   now all cropped to a shared 5:7 aspect ratio at the source — the
   container matches that exactly, so cover only exists as a safety net
   for float rounding, not to actually crop anything. */
.showcase-img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
  border: 1px solid var(--brown);
  background: var(--cream);
  margin-bottom: 20px;
  /* Lifts the photo off the white card behind it — shadow-card alone
     (already on .showcase-card) reads fine for the card's edge against
     the page background, but was too faint to register against the
     card's own white, right behind the image. */
  box-shadow: var(--shadow-lg);
}

.showcase-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  /* Same color as the hero h1 ("Sometimes, everyone sees it.") */
  color: var(--brown-dark);
}

.showcase-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ─── FAQ ──────────────────────────────────────────────────────────────── */

.faq__inner { max-width: 720px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--brown-light);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin-top: 12px;
  font-size: 14.5px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ─── CTA banner ───────────────────────────────────────────────────────── */

.cta-banner {
  background: var(--brown-dark);
  padding: 88px 0;
}

.cta-banner__inner { text-align: center; }

.cta-banner h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.25;
  color: var(--cream);
  margin-bottom: 12px;
}

/* The global `em` rule below colors italic text --brown, which reads fine
   on the cream background it was designed for but disappears against this
   section's dark backdrop — keep the italic, swap just the color. */
.cta-banner h2 em {
  color: var(--cream);
}

.cta-banner p {
  color: var(--brown-light);
  font-size: 16px;
  margin-bottom: 32px;
}

/* ─── Legal pages ──────────────────────────────────────────────────────── */

.legal-hero { padding: 64px 0 8px; }

.legal-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 44px;
  color: var(--brown-dark);
}

.legal-hero p { color: var(--text-light); font-size: 14px; margin-top: 10px; }

.legal { padding: 40px 0 96px; }

.legal .container { max-width: 760px; }

.legal h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  color: var(--brown-dark);
  margin: 40px 0 14px;
}

.legal h2:first-child { margin-top: 0; }

.legal h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  margin: 22px 0 8px;
}

.legal p { color: var(--text-mid); font-size: 15px; margin-bottom: 14px; }

.legal ul { color: var(--text-mid); font-size: 15px; margin: 0 0 14px 20px; }

.legal li { margin-bottom: 6px; }

.legal a.inline-link { color: var(--brown); text-decoration: underline; }

/* ─── Contact page ─────────────────────────────────────────────────────── */

.contact { padding: 16px 0 96px; }

.contact .container { max-width: 560px; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field { display: flex; flex-direction: column; gap: 6px; }

.form-field label {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  transition: border-color 0.15s ease;
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-faint); }

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brown-light);
}

.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238A7560'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.19l3.71-3.96a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 40px; }

.contact-submit { align-self: flex-start; margin-top: 4px; }

.contact-note { color: var(--text-light); font-size: 13px; margin-top: 4px; line-height: 1.6; }

.contact-note a.inline-link { color: var(--brown); text-decoration: underline; }

/* ─── Footer ───────────────────────────────────────────────────────────── */

.footer { padding: 40px 0; }

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.nav__brand--footer { font-size: 18px; }

.footer__copy { font-size: 13px; color: var(--text-faint); }

.footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 20px; font-size: 13px; color: var(--text-light); }

.footer__links a:hover { color: var(--brown); }

/* ─── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 920px) {
  /* Base .hero padding-top (72px) plus min-height's centering left a
     noticeably large gap above the phone once it's stacked above the
     headline instead of beside it — tightened for the single-column
     layout specifically. */
  .hero { padding-top: 32px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { order: -1; min-height: 0; }
  /* Peek images are sized/offset in % of this, so resizing it alone keeps
     the whole stack proportional — no need to touch the peek rules too. */
  .hero__stack { width: 280px; }
  .hero h1 { font-size: 44px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav__links { display: none; }
  .hero { padding-bottom: 32px; }
  .hero h1 { font-size: 36px; }
  .hero__sub { font-size: 16px; }
  /* Not enough width to fan the peek cards out to the side on a narrow
     single-column layout — instead tuck them below the phone, still
     overlapping its bottom edge (and, same as desktop, in front of it —
     z-index 3 is inherited from the base rule) so the stack reads as one
     composition. */
  .hero-screenshot--peek { width: 58%; }
  .hero-screenshot--peek-back { left: -8%; bottom: 4%; transform: rotate(-9deg); }
  .hero-screenshot--peek-front { left: 36%; bottom: -18%; transform: rotate(8deg); }
  .hero__visual { padding-bottom: 70px; }
  .feature-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 28px; }
  .pillars__inner { justify-content: center; gap: 32px 48px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .legal-hero h1 { font-size: 32px; }
}
