/* LoveTap — shared styles. Palette taken from the app's asset catalog. */
:root {
  --bg: #F6F3FA;
  --lav: #DFDBE7;          /* P-Background */
  --lav-deep: #D2CCE0;
  --shape: #B39BC8;        /* P-Shape */
  --pressed: #9C69C5;      /* P-ShapePressed */
  --plum: #88759D;         /* P-TextColor */
  --rose: #C85D85;         /* app icon */
  --pink: #E64398;         /* P-TitleText */
  --blue: #556EC8;         /* P-Button */
  --navy: #233473;         /* FriendsTitleColor */
  --sky: #CDE0F4;          /* FriendsBackgroundColor */
  --ink: #2A2233;
  --muted: #6B6178;
  --line: rgba(42, 34, 51, 0.1);
  --card: #FFFFFF;
  --radius: 28px;
  --wrap: 1160px;
  color-scheme: light;
}

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

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

body {
  font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 250, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { 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; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font: 700 16px/1 'Montserrat', sans-serif; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { box-shadow: 0 10px 30px rgba(42, 34, 51, .25); transform: translateY(-1px); }
.btn-ghost { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--plum); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.nav-links .btn-dark { color: #fff; }

/* ---------- Typography ---------- */
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--rose); margin-bottom: 14px; }
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; }
.lede { font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); max-width: 560px; }
.section { padding: 120px 0; }
.section-head { margin-bottom: 56px; max-width: 680px; }
.section-head .lede { margin-top: 18px; }

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

/* ---------- Legal pages ---------- */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(38px, 6vw, 56px); font-weight: 800; margin-bottom: 12px; }
.legal .meta { color: var(--muted); font-size: 15px; margin-bottom: 48px; }
.legal h2 { font-size: 22px; font-weight: 700; margin: 44px 0 12px; letter-spacing: -0.01em; }
.legal p, .legal li { color: #463D52; font-size: 16.5px; }
.legal p + p { margin-top: 14px; }
.legal ul, .legal ol { margin: 14px 0 0 22px; display: grid; gap: 8px; }
.legal a { color: var(--rose); text-underline-offset: 3px; }
.legal .card { background: var(--card); border-radius: 22px; padding: 28px 30px; box-shadow: 0 1px 0 var(--line), 0 20px 50px -30px rgba(42,34,51,.25); }
.steps-list { counter-reset: s; list-style: none; margin: 0 !important; gap: 0 !important; }
.steps-list li { counter-increment: s; display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps-list li:last-child { border-bottom: 0; }
.steps-list li::before { content: counter(s); flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--lav); color: var(--plum); font-weight: 800; font-size: 14px; display: grid; place-items: center; margin-top: 1px; }

@media (max-width: 760px) {
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 84px 0; }
  .wrap { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
