/* waited — same palette and typography as the app (mobile/src/components/theme.ts): white on near-black, like the logo. */

/* Rounded, chunky type to echo the blobby logo. Self-hosted (no request to Google). */
@font-face {
  font-family: 'Fredoka';
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/fredoka-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/fredoka-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Fredoka';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/fredoka-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/nunito-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/nunito-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-weight: 800;
  font-display: swap;
  src: url('/assets/fonts/nunito-800.woff2') format('woff2');
}

:root {
  --bg: #060506;
  --surface: #121212;
  --surface-raised: #1c1c1c;
  --border: #2a2a2a;
  --border-strong: #4a4a4a;
  --text: #ffffff;
  --muted: #9a9a9a;
  /* White is the accent: primary actions, what's unlocked, what needs attention. */
  --accent: #ffffff;
  --on-accent: #060506;
  --accent-muted: rgba(255, 255, 255, 0.08);
  --accent-soft: #d6d6d6;
  --gradient: linear-gradient(135deg, #ffffff, #d9d9d9);
  --ring: conic-gradient(from 210deg, #ffffff, #8a8a8a, #ffffff, #5a5a5a, #ffffff);
  /* Invitation rose, same as the public share page: the profile-link section, plus small touches
     (eyebrows, hero glow and title, step numbers, highlights) so the page feels warmer. */
  --rose: #ff3c6e;
  --rose-deep: #9b1747;
  --rose-gradient: linear-gradient(135deg, #ff3c6e, #9b1747);
  --rose-ring: conic-gradient(from 210deg, #ff3c6e, #ffffff, #9b1747, #ff7aa2, #ff3c6e);
  --rose-muted: rgba(255, 60, 110, 0.14);
  --rose-text: linear-gradient(135deg, #ffffff 10%, #ff7aa2 55%, #ff3c6e);
  --display: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --sans: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --radius: 24px;
  --max: 1120px;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  overflow-x: hidden;
}

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

a {
  color: var(--accent-soft);
}

.container {
  width: min(var(--max), 100% - 32px);
  margin-inline: auto;
}

.display {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  color: var(--rose);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 5, 6, 0.72);
  border-bottom: 1px solid rgba(42, 42, 42, 0.6);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
}

.brand img {
  width: 34px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav > a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.nav > a:hover {
  color: var(--text);
}

@media (max-width: 720px) {
  .nav {
    gap: 12px;
  }
  .nav > a:not(.button) {
    display: none;
  }
}

/* Language menu: a <details> whose list opens under the button, aligned right. */
.lang-switch {
  position: relative;
}

.lang-switch summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  user-select: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch summary svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.lang-switch summary::after {
  content: '';
  width: 6px;
  height: 6px;
  margin: -3px 0 0 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.lang-switch[open] summary::after {
  margin-top: 3px;
  transform: rotate(-135deg);
}

.lang-switch summary:hover,
.lang-switch[open] summary {
  color: var(--text);
  border-color: var(--border-strong);
}

.lang-switch summary:focus-visible,
.lang-switch a:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 2px;
}

.lang-switch ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  min-width: 168px;
  max-width: calc(100vw - 32px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.lang-switch li a {
  display: block;
  padding: 9px 14px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.lang-switch li a:hover {
  background: var(--accent-muted);
}

.lang-switch li a[aria-current] {
  color: var(--text);
}

.lang-switch li a[aria-current]::after {
  content: ' ✓';
}

/* --- buttons ----------------------------------------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  border: 0;
  background: var(--gradient);
  color: var(--on-accent) !important;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 10px 32px rgba(255, 255, 255, 0.14);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255, 255, 255, 0.2);
}

.button.small {
  padding: 9px 18px;
  font-size: 14px;
}

.button.secondary {
  background: var(--surface-raised);
  color: var(--text) !important;
  box-shadow: none;
  border: 1px solid var(--border);
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  line-height: 1.2;
  transition: border-color 0.15s ease;
}

.store-button:hover {
  border-color: var(--rose);
  background: var(--rose-muted);
}

.store-button svg {
  width: 26px;
  height: 26px;
  flex: none;
}

.store-button small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.store-button strong {
  font-size: 17px;
}

/* --- hero -------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 72px 0 96px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -200px 0 auto;
  height: 700px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.08), transparent), radial-gradient(
      circle at 80% 20%,
      rgba(255, 60, 110, 0.22),
      transparent 50%
    );
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.hero h1 {
  font-size: clamp(46px, 7vw, 80px);
  margin: 12px 0 20px;
}

.hero h1 span {
  display: block;
  background: var(--rose-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 0.08em;
}

.hero p.lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 32px;
}

.hero .note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 880px) {
  .hero {
    padding-top: 40px;
  }
  .hero .container {
    grid-template-columns: 1fr;
  }
}

/* --- phone mockup ------------------------------------------------------ */

.phone {
  position: relative;
  width: min(320px, 100%);
  margin-inline: auto;
  aspect-ratio: 9 / 19;
  border-radius: 48px;
  padding: 14px;
  background: #0b0b0b;
  border: 1px solid var(--border);
  box-shadow: 0 40px 120px rgba(255, 60, 110, 0.18), inset 0 0 0 6px #151515;
}

.phone .screen {
  height: 100%;
  border-radius: 36px;
  background: var(--bg);
  overflow: hidden;
  padding: 44px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone .screen-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 24px;
}

.tabs {
  display: flex;
  background: var(--surface);
  border-radius: 999px;
  padding: 3px;
  font-size: 12px;
  font-weight: 800;
}

.tabs span {
  flex: 1;
  text-align: center;
  padding: 7px;
  border-radius: 999px;
  color: var(--muted);
}

.tabs span.active {
  background: var(--gradient);
  color: var(--on-accent);
}

.photo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.photo-card .who {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.photo-card .who b {
  display: block;
  font-size: 14px;
}

.photo-card .who .muted {
  font-size: 12px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 2px;
  background: var(--ring);
  flex: none;
}

.avatar span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--display);
  font-weight: 700;
}

.lock {
  margin-left: auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-muted);
  font-size: 15px;
}

.lock.open {
  background: var(--accent);
}

.countdown {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  font-variant-numeric: tabular-nums;
}

.countdown.bright {
  color: var(--accent);
}

.bar {
  height: 4px;
  border-radius: 999px;
  background: var(--surface-raised);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  width: 62%;
  background: var(--gradient);
  border-radius: inherit;
}

.bar.bright i {
  width: 100%;
  background: var(--accent);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent-muted);
  color: var(--accent);
}

.chip.bright {
  background: var(--accent);
  color: var(--on-accent);
}

.chip.plain {
  background: var(--surface-raised);
  color: var(--muted);
}

.phone .friends {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}

.phone .friends .muted {
  margin-left: 4px;
}

.avatar.photo {
  background: var(--ring);
}

.avatar.photo span {
  background: linear-gradient(135deg, #262626, #121212);
  font-size: 13px;
}

.phone .capture {
  margin-top: auto;
  align-self: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gradient);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.25);
  font-size: 24px;
}

/* --- sections ---------------------------------------------------------- */

section {
  padding: 88px 0;
}

section h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin: 10px 0 16px;
}

section .intro {
  max-width: 620px;
  color: var(--muted);
  font-size: 19px;
  margin: 0 0 48px;
}

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

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

@media (max-width: 880px) {
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  font-size: 21px;
  margin: 14px 0 8px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--rose-gradient);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(255, 60, 110, 0.3);
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
}

.icon-badge {
  width: 48px;
  height: 48px;
  flex-shrink: 0; /* stays square next to a text that wraps */
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent-muted);
  font-size: 22px;
}

.icon-badge.bright {
  background: var(--accent);
}

.unlock-options {
  display: grid;
  gap: 14px;
}

.unlock-option {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.unlock-option b {
  display: block;
  font-size: 18px;
}

.band {
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.03), transparent);
}

/* --- profile link -------------------------------------------------------- */

.profile-preview {
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: var(--radius);
  background: radial-gradient(60% 55% at 30% 20%, rgba(255, 60, 110, 0.35), transparent 70%),
    radial-gradient(50% 45% at 80% 80%, rgba(155, 23, 71, 0.45), transparent 70%), var(--surface);
  border: 1px solid var(--border);
  min-height: 360px;
}

.profile-card {
  width: min(300px, 100%);
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 32px 24px 24px;
  border-radius: 28px;
  background: rgba(18, 18, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  text-align: center;
}

.profile-card b {
  font-family: var(--display);
  font-size: 26px;
  margin-top: 10px;
}

.profile-card .muted {
  font-size: 14px;
  color: var(--rose);
  font-weight: 800;
}

.ring {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 4px;
  background: var(--rose-ring);
  box-shadow: 0 18px 50px rgba(255, 60, 110, 0.4);
}

.ring span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--bg);
  background: linear-gradient(135deg, #2c0f19, #121212);
  font-family: var(--display);
  font-weight: 700;
  font-size: 44px;
}

.mini-button {
  margin-top: 14px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--rose-gradient);
  color: var(--text);
  font-family: var(--display);
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 10px 28px rgba(255, 60, 110, 0.35);
}

/* --- FAQ --------------------------------------------------------------- */

.faq {
  max-width: 780px;
  display: grid;
  gap: 12px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 22px;
}

.faq details[open] {
  border-color: rgba(255, 60, 110, 0.45);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

.faq summary::after {
  content: '+';
  color: var(--rose);
  font-size: 24px;
  line-height: 1;
}

.faq details[open] summary::after {
  content: '−';
}

.faq details p {
  color: var(--muted);
  margin: 12px 0 0;
}

/* --- launch waiting list ---------------------------------------------- */

.waitlist {
  margin-top: 28px;
  max-width: 520px;
}

.waitlist.centered {
  margin: 36px auto 0;
}

.waitlist-title {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--text);
}

.waitlist-row {
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s ease;
}

.waitlist-row:focus-within {
  border-color: var(--rose);
}

.waitlist-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 16px; /* no zoom on iOS */
  padding: 0 14px;
  outline: none;
}

.waitlist-row input::placeholder {
  color: var(--muted);
}

.waitlist-row input[aria-invalid='true'] {
  color: var(--rose);
}

.waitlist-row .button {
  padding: 11px 20px;
  font-size: 15px;
  white-space: nowrap;
}

.waitlist-row .button:disabled {
  opacity: 0.6;
  transform: none;
}

.waitlist-status {
  margin: 10px 0 0;
  min-height: 1.4em;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.waitlist-status:empty {
  min-height: 0;
  margin: 0;
}

.waitlist-status.error {
  color: var(--rose);
}

.waitlist-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.waitlist-note a {
  color: inherit;
}

/* Only bots see (and fill) this field. */
.waitlist-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist.done .waitlist-row,
.waitlist.done .waitlist-note {
  display: none;
}

.waitlist.done .waitlist-status {
  font-size: 16px;
}

@media (max-width: 480px) {
  .waitlist-row {
    flex-direction: column;
    border-radius: 20px;
  }
  .waitlist-row input {
    padding: 10px 12px;
  }
}

/* --- CTA & footer ------------------------------------------------------ */

.cta {
  text-align: center;
  padding: 120px 0;
  position: relative;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgba(255, 60, 110, 0.16), transparent);
  pointer-events: none;
}

.cta img {
  width: 96px;
  margin: 0 auto 24px;
}

.cta .store-buttons {
  justify-content: center;
  margin-top: 32px;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* --- text pages (help, legal) ----------------------------------------- */

.page {
  padding: 56px 0 96px;
}

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

.page h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(36px, 6vw, 52px);
  line-height: 1.1;
  margin: 0 0 16px;
}

.page h2 {
  font-size: 22px;
  margin: 40px 0 12px;
  color: var(--text);
}

.page em {
  color: var(--muted);
}

.page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 16px 0;
}

.page th,
.page td {
  border: 1px solid var(--border);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.page th {
  background: var(--surface-raised);
}

.page .card {
  margin: 24px 0;
}

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.steps li {
  counter-increment: step;
  position: relative;
  min-height: 30px;
  padding-left: 44px;
}

/* Absolutely positioned (not flex) so inline tags such as <b> wrap with the rest of the text. */
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--rose-gradient);
  color: var(--text);
  font-weight: 800;
  font-size: 14px;
}

/* --- motion ------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
