/* Concert Vault marketing site. Colors mirror lib/constants/theme.ts in the app. */
:root {
  --cream: #FDFCF8;
  --cream-2: #F6F1E8;
  --cream-border: #E8E2D0;
  --walnut: #6F4E37;
  --walnut-muted: #A89689;
  --deep-walnut: #3C2A1E;
  --ink: #2A1D14;
  --text-secondary: #7A6E66;
  --success: #2E7D32;
  --success-light: #EEF7EE;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-lg: 0 30px 60px -20px rgba(60, 42, 30, 0.35);
  --shadow-sm: 0 8px 24px -12px rgba(60, 42, 30, 0.25);
  --max: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--deep-walnut); }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--walnut);
}
.lead { font-size: 19px; color: var(--text-secondary); max-width: 34em; }
.muted { color: var(--text-secondary); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 252, 248, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--cream-border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; font-size: 18px; color: var(--deep-walnut); }
.brand img { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--cream-border); }
.nav-links { display: flex; gap: 32px; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; color: var(--text-secondary); transition: color 0.15s; }
.nav-links a:hover { color: var(--deep-walnut); }
@media (max-width: 760px) { .nav-links { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  background: var(--walnut); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { background: var(--deep-walnut); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ---------- Store badges ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stores a { display: inline-block; transition: opacity 0.15s, transform 0.15s; }
.stores a:hover { opacity: 0.85; transform: translateY(-1px); }
.stores img { height: 48px; width: auto; }

/* ---------- Phone frame ---------- */
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1320 / 2868;
  border-radius: 46px;
  padding: 9px;
  background: #17110c;
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px #3a2c21;
}
.phone img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top;
  border-radius: 38px;
  background: var(--cream);
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto;
  width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(111, 78, 55, 0.16), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero h1 {
  font-size: clamp(44px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.hero h1 span { display: block; }
.hero h1 .soft { color: var(--walnut-muted); }
.hero .lead { margin: 28px 0 36px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-secondary); }

.phone-stack { position: relative; height: 620px; }
.phone-stack .phone { position: absolute; }
.phone-stack .front { right: 12%; top: 0; z-index: 2; max-width: 290px; }
.phone-stack .back { right: 52%; top: 70px; max-width: 250px; transform: rotate(-6deg); opacity: 0.96; }
.float-chip {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 16px;
  background: #fff; border: 1px solid var(--cream-border);
  box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 700; color: var(--deep-walnut);
}
.float-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-light); }
.float-chip.one { right: 0; top: 140px; }
.float-chip.two { right: 34%; bottom: 120px; }

@media (max-width: 960px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; }
  .phone-stack { height: 560px; max-width: 460px; margin: 0 auto; width: 100%; }
  .phone-stack .front { right: 4%; }
  .phone-stack .back { right: auto; left: 0; }
  .float-chip.one { right: auto; left: 0; top: 20px; }
  .float-chip.two { right: auto; left: 4%; bottom: 150px; }
}

/* ---------- Lifecycle strip ---------- */
.lifecycle { padding: 24px 0 96px; }
.lifecycle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stage {
  position: relative;
  padding: 28px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--cream-border);
}
.stage .eyebrow { display: block; margin-bottom: 14px; }
.stage h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
.stage p { color: var(--text-secondary); font-size: 15px; }
.stage .num {
  position: absolute; top: 22px; right: 26px;
  font-size: 13px; font-weight: 800; color: var(--walnut-muted);
}
@media (max-width: 860px) { .lifecycle-grid { grid-template-columns: 1fr; } }

/* ---------- Feature sections ---------- */
.feature { padding: 104px 0; }
.feature.alt { background: var(--cream-2); }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature.flip .feature-copy { order: 2; }
.feature h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.05; letter-spacing: -0.04em; font-weight: 800;
  margin: 14px 0 20px;
}
.feature .lead { margin-bottom: 32px; }
.feature-media { display: flex; justify-content: center; gap: 24px; }
.feature-media .phone:nth-child(2) { margin-top: 64px; }
@media (max-width: 900px) {
  .feature { padding: 72px 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature.flip .feature-copy { order: 0; }
  .feature-media { order: 2; }
  .feature-media .phone { max-width: 260px; }
  .feature-media .phone:nth-child(2) { display: none; }
}

.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.points strong { display: block; color: var(--deep-walnut); font-size: 16px; }
.points span { color: var(--text-secondary); font-size: 15px; }
.icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--cream-2); color: var(--walnut);
  border: 1px solid var(--cream-border);
}
.feature.alt .icon { background: #fff; }
.icon svg { width: 20px; height: 20px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px;
  background: var(--success-light); color: var(--success);
}
.tag.neutral { background: var(--cream-2); color: var(--walnut); }

/* ---------- Card grid (profiles, venues, privacy) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card {
  padding: 28px; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--cream-border);
}
.card .icon { margin-bottom: 18px; }
.card h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 6px; }
.card p { color: var(--text-secondary); font-size: 15px; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr; } }

.section-head { max-width: 640px; }
.section-head h2 {
  font-size: clamp(34px, 4.2vw, 52px);
  line-height: 1.05; letter-spacing: -0.04em; font-weight: 800;
  margin: 14px 0 16px;
}

/* ---------- Dark privacy band ---------- */
.privacy-band { padding: 104px 0; background: var(--deep-walnut); color: #F3ECE3; }
.privacy-band h2, .privacy-band h3 { color: #fff; }
.privacy-band .eyebrow { color: #CDB8A6; }
.privacy-band .lead { color: #CDBFB3; }
.privacy-band .card { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
.privacy-band .card p { color: #CDBFB3; }
.privacy-band .icon { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.12); color: #F3ECE3; }
.privacy-band a { color: #fff; }

/* ---------- CTA ---------- */
.cta { padding: 120px 0; text-align: center; }
.cta h2 { font-size: clamp(40px, 6vw, 72px); line-height: 1; letter-spacing: -0.045em; font-weight: 800; }
.cta .lead { margin: 22px auto 40px; }
.cta .stores { justify-content: center; }
.cta-icon { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 32px; box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--cream-border); padding: 40px 0 56px; font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 28px; }
.footer-links a { text-decoration: none; color: var(--text-secondary); font-weight: 600; }
.footer-links a:hover { color: var(--deep-walnut); }

/* ---------- Legal / document pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 64px 24px 96px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.04em; line-height: 1.05; font-weight: 800; margin: 12px 0 10px; }
.doc .updated { color: var(--text-secondary); font-size: 14px; margin-bottom: 40px; }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; margin: 44px 0 12px; }
.doc h3 { font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { color: #4A3D33; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc li { margin: 6px 0; }
.doc a { color: var(--walnut); font-weight: 600; }
.callout {
  margin: 20px 0; padding: 18px 20px; border-radius: var(--radius-md);
  background: var(--cream-2); border: 1px solid var(--cream-border);
  font-size: 15px;
}

/* ---------- Support form ---------- */
.form-card {
  max-width: 520px; margin: 0 auto;
  background: #fff; border: 1px solid var(--cream-border);
  border-radius: var(--radius-lg); padding: 36px;
  box-shadow: var(--shadow-sm);
}
.form-card label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--walnut); margin-bottom: 8px; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; padding: 13px 14px; margin-bottom: 20px;
  border: 1px solid var(--cream-border); border-radius: 12px;
  font: inherit; font-size: 16px; color: var(--ink); background: var(--cream);
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: 2px solid var(--walnut); outline-offset: 1px; }
.form-card button {
  width: 100%; padding: 15px; border: 0; border-radius: 14px;
  background: var(--walnut); color: #fff; font: inherit; font-weight: 700; font-size: 16px;
  cursor: pointer; transition: background 0.15s;
}
.form-card button:hover { background: var(--deep-walnut); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .stores a { transition: none; }
}

:focus-visible { outline: 2px solid var(--walnut); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 8px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Cropped phone: shows only the top of a screen and fades out below.
   For screens whose content sits at the top (Friends view). */
.phone.peek {
  aspect-ratio: 1320 / 1560;
  max-width: 360px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  padding-bottom: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}
.phone.peek img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.peek-wrap { position: relative; display: flex; flex-direction: column; align-items: center; }
.peek-caption {
  position: relative; z-index: 2; margin-top: -40px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 16px;
  background: #fff; border: 1px solid var(--cream-border); box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 700; color: var(--deep-walnut);
}
.peek-caption .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px var(--success-light); }
