/* findmyrave.com — main stylesheet
   Brand: dark base, teal gradient accent, red highlight, Outfit font
   No framework, no preprocessor. */

@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/Outfit-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/Outfit-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Outfit";
  src: url("/assets/fonts/Outfit-Black.ttf") format("truetype");
  font-weight: 900;
  font-display: swap;
}

:root {
  --bg: #0d0d0d;
  --bg-elev: #161616;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.62);
  --text-dim: rgba(255, 255, 255, 0.42);
  --teal: #00d4aa;
  --teal-bright: #1fe5c0;
  --teal-deep: #00b894;
  --red: #ff4d4d;
  --red-deep: #e63939;
  --grad-teal: linear-gradient(135deg, #1fe5c0 0%, #00b894 100%);
  --grad-red: linear-gradient(135deg, #ff4d4d 0%, #b91d1d 100%);
  --grad-iridescent: linear-gradient(
    120deg,
    #ff4d8f 0%,
    #ffb84d 18%,
    #f9ff4d 35%,
    #4dffb8 52%,
    #4dc8ff 68%,
    #a64dff 85%,
    #ff4d8f 100%
  );
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --shadow-glow-teal: 0 0 60px rgba(31, 229, 192, 0.25);
  --shadow-glow-red: 0 0 60px rgba(255, 77, 77, 0.2);
  --max-w: 1200px;
  --pad-x: clamp(20px, 4vw, 56px);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  font-weight: 500;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: var(--teal-bright);
  text-decoration: none;
  transition: color 120ms ease;
}
a:hover { color: var(--teal); }
a:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

/* ----------- Layout ----------- */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: clamp(64px, 9vw, 128px);
}

.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

/* ----------- Header ----------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(13, 13, 13, 0.72);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  line-height: 0;
  transition: opacity 140ms ease;
}

.brand:hover { opacity: 0.85; }

/* The vertical iridescent bar mirrors lib/features/home/presentation/widgets/iridescent_header_bar.dart:
   7×44, periwinkle/violet/rose palette (no rainbow), 30s drift, no glow. */
.brand__bar {
  display: block;
  width: 7px;
  height: 44px;
  border-radius: 7px;
  flex-shrink: 0;
  background: linear-gradient(
    180deg,
    #C0C8E8 0%,
    #7B8EF7 25%,
    #B080E0 50%,
    #E07098 75%,
    #C0C8E8 100%
  );
  background-size: 100% 300%;
  animation: brand-bar-drift 30s linear infinite;
}

@keyframes brand-bar-drift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 0% 100%; }
  100% { background-position: 0% 0%; }
}

.brand__wordmark {
  display: block;
  height: 44px;
  width: auto;
  max-width: 160px;
  /* The wordmark PNG has ~14px of transparent padding on the left;
     pull it back so the bar sits visually right next to the letters. */
  margin-left: -14px;
}

@media (max-width: 540px) {
  .brand { gap: 10px; }
  .brand__bar { height: 36px; width: 6px; border-radius: 6px; }
  .brand__wordmark { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand__bar { animation: none; }
}

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

.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 15px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

@media (max-width: 720px) {
  .nav { gap: 16px; font-size: 14px; }
  .nav a { font-size: 14px; }
}

/* ----------- Hero ----------- */

.hero {
  padding-block: clamp(80px, 12vw, 160px) clamp(60px, 8vw, 120px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 20% 30%, rgba(31, 229, 192, 0.18) 0%, transparent 60%),
    radial-gradient(60% 50% at 85% 70%, rgba(255, 77, 77, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 880px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  margin-bottom: 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-bright);
  background: rgba(31, 229, 192, 0.08);
  border: 1px solid rgba(31, 229, 192, 0.22);
  border-radius: 999px;
}

.hero__eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 12px var(--teal-bright);
}

.hero__title {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
}

.hero__title em {
  font-style: normal;
  background: var(--grad-teal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 500;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 40px;
  line-height: 1.5;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ----------- Buttons ----------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.005em;
  border-radius: var(--radius-md);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--grad-teal);
  color: var(--bg);
  box-shadow: 0 8px 28px rgba(0, 184, 148, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0, 184, 148, 0.35);
  color: var(--bg);
}

.btn--ghost {
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.btn--full { width: 100%; }

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

.section-head {
  max-width: 760px;
  margin-bottom: 56px;
}

.section-head__kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 14px;
}

.section-head__title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.022em;
  margin: 0 0 18px;
}

.section-head__lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ----------- Feature grid ----------- */

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

@media (min-width: 880px) {
  .features { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 540px) {
  .features { grid-template-columns: 1fr; }
}

.feature {
  position: relative;
  padding: 28px 24px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 200ms ease, border-color 200ms ease, background 200ms ease;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-teal);
  display: grid;
  place-items: center;
  color: var(--bg);
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(0, 184, 148, 0.25);
}
.feature--red .feature__icon {
  background: var(--grad-red);
  box-shadow: 0 8px 22px rgba(255, 77, 77, 0.25);
}
.feature__icon svg { width: 22px; height: 22px; }

.feature__title {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.feature__body {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

/* ----------- Screenshots ----------- */

.screens {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.screen {
  position: relative;
  aspect-ratio: 9 / 19.5;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(31, 229, 192, 0.08), rgba(255, 77, 77, 0.05));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------- Live events ----------- */

.events-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.event-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease;
}

.event-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.event-card__img {
  aspect-ratio: 1 / 1;
  width: 100%;
  background: linear-gradient(135deg, #2a2a2a, #161616);
  position: relative;
}

.event-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-card__body {
  padding: 16px 18px 20px;
}

.event-card__date {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--teal-bright);
  margin-bottom: 6px;
}

.event-card__title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-card__venue {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.events-loading,
.events-error,
.events-empty {
  grid-column: 1 / -1;
  padding: 56px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
}

.events-error { color: var(--red); }

.events-footnote {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* ----------- City pills ----------- */

.city-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.city-pill {
  position: relative;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease, border-color 160ms ease;
  isolation: isolate;
}

.city-pill:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.city-pill.is-active {
  color: var(--bg);
  background: var(--text);
  border-color: var(--text);
}

.city-pill.is-active::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 999px;
  z-index: -1;
  background: var(--grad-iridescent);
  background-size: 300% 100%;
  filter: blur(8px);
  opacity: 0.55;
  animation: iridescent-drift 6s linear infinite;
}

@media (max-width: 540px) {
  .city-pill {
    padding: 10px 18px;
    font-size: 15px;
  }
}

/* ----------- Image-led event cards ----------- */

.event-card {
  position: relative;
  isolation: isolate;
}

.event-card__img {
  aspect-ratio: 4 / 5;
  position: relative;
  overflow: hidden;
}

.event-card__img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}

.event-card__date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 52px;
  padding: 8px 6px;
  background: rgba(13, 13, 13, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  text-align: center;
  z-index: 2;
}

.event-card__date-day {
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.event-card__date-month {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--teal-bright);
  margin-top: 2px;
}

.event-card__type {
  color: var(--text-dim);
  font-weight: 600;
}

.event-card__time {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Skeleton state for cards */
.event-card--skeleton .event-card__img {
  background: linear-gradient(110deg,
    rgba(255,255,255,0.04) 8%,
    rgba(255,255,255,0.08) 18%,
    rgba(255,255,255,0.04) 33%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s linear infinite;
}

.skeleton-line {
  height: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  margin: 8px 0;
}

.skeleton-line--xs { width: 40%; height: 8px; }
.skeleton-line--lg { width: 90%; height: 14px; }
.skeleton-line--sm { width: 60%; height: 10px; }

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ----------- App store badges ----------- */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
  min-width: 178px;
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.store-badge__icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.store-badge__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  text-align: left;
}

.store-badge__small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.store-badge__big {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 1px;
}

@media (max-width: 540px) {
  .store-badges { gap: 10px; }
  .store-badge { min-width: 150px; padding: 10px 16px; }
  .store-badge__big { font-size: 14px; }
}

/* ----------- Waitlist ----------- */

.waitlist {
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(31, 229, 192, 0.18) 0%, transparent 70%),
    var(--bg-elev);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 7vw, 80px) clamp(24px, 5vw, 64px);
  text-align: center;
  border: 1px solid var(--border);
}

.waitlist__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.waitlist__lead {
  color: var(--text-muted);
  margin: 0 auto 32px;
  max-width: 520px;
  font-size: 17px;
}

.waitlist__form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.waitlist__input {
  flex: 1 1 220px;
  min-width: 220px;
  padding: 14px 18px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
}

.waitlist__input::placeholder { color: var(--text-dim); }

.waitlist__input:focus {
  outline: 2px solid var(--teal-bright);
  outline-offset: 2px;
  border-color: var(--teal-bright);
}

.waitlist__msg {
  margin-top: 18px;
  min-height: 22px;
  font-size: 14px;
  color: var(--text-muted);
}

.waitlist__msg.is-success { color: var(--teal-bright); }
.waitlist__msg.is-error { color: var(--red); }

/* ----------- Footer ----------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 56px 32px;
  background: var(--bg-elev);
  margin-top: 80px;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.site-footer__about p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 380px;
  margin-block: 0;
}

.site-footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 16px;
}

.site-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.site-footer__col a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}
.site-footer__col a:hover { color: var(--teal-bright); }

.site-footer__legal {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}

.site-footer__legal address {
  font-style: normal;
  color: var(--text-muted);
}

/* ----------- Long-form content (legal pages) ----------- */

.prose {
  max-width: 760px;
  margin-inline: auto;
}

.prose h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0 0 18px;
}

.prose .lead {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.prose h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 56px 0 16px;
  scroll-margin-top: 100px;
}

.prose h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 32px 0 12px;
}

.prose p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 18px;
}

.prose ul, .prose ol {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
  padding-left: 24px;
  margin-bottom: 24px;
}

.prose li { margin-bottom: 8px; }

.prose code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.prose .toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 56px;
}

.prose .toc h2 {
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 12px;
  font-weight: 700;
}

.prose .toc ol {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
}

.prose .toc li { margin-bottom: 6px; }
.prose .toc a { color: var(--text); }
.prose .toc a:hover { color: var(--teal-bright); }

.prose dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px 24px;
  margin: 24px 0;
  font-size: 15px;
}
.prose dt { font-weight: 700; color: var(--text-muted); }
.prose dd { margin: 0; }

@media (max-width: 540px) {
  .prose dl { grid-template-columns: 1fr; gap: 4px 0; }
  .prose dt { margin-top: 12px; }
}

.prose strong { color: var(--text); font-weight: 700; }

.prose blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 3px solid var(--teal-bright);
  background: var(--bg-card);
  color: var(--text-muted);
  font-style: italic;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ----------- Page header for inner pages ----------- */

.page-header {
  padding-block: clamp(56px, 8vw, 96px) clamp(32px, 4vw, 56px);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 30% 30%, rgba(31, 229, 192, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

/* ----------- Utility ----------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-muted { color: var(--text-muted); }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }

/* ----------- Legal document (privacy policy) ----------- */

.legal-document {
  display: block;
  max-width: 820px;
  margin-inline: auto;
}

.legal-document h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.022em;
  line-height: 1.1;
  margin: 0 0 16px;
}

.legal-document h2 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 56px 0 14px;
  scroll-margin-top: 100px;
}

.legal-document h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 32px 0 10px;
  color: var(--text);
}

.legal-document h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 22px 0 8px;
  color: var(--text-muted);
}

.legal-document p,
.legal-document li {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

.legal-document p { margin: 0 0 16px; }

.legal-document ul,
.legal-document ol {
  padding-left: 24px;
  margin: 0 0 20px;
}

.legal-document li { margin-bottom: 8px; }

.legal-document strong { color: var(--text); font-weight: 700; }

.legal-document code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.legal-document address {
  font-style: normal;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin: 16px 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

.legal-header {
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.legal-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.7;
}

.legal-intro {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
}

.legal-note {
  font-size: 14px;
  background: rgba(31, 229, 192, 0.06);
  border-left: 3px solid var(--teal-bright);
  padding: 12px 18px;
  margin: 18px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-muted);
}

.legal-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 56px;
}

.legal-toc h2 {
  font-size: 13px !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 14px !important;
  font-weight: 700;
}

.legal-toc ol {
  margin: 0;
  padding-left: 22px;
  font-size: 15px;
}

.legal-toc ol ol {
  margin-top: 8px;
  padding-left: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.legal-toc li { margin-bottom: 6px; }
.legal-toc a { color: var(--text); }
.legal-toc a:hover { color: var(--teal-bright); }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}

.legal-table th {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.03);
}

.legal-table tbody tr:last-child td { border-bottom: 0; }

@media (max-width: 760px) {
  .legal-table,
  .legal-table thead,
  .legal-table tbody,
  .legal-table th,
  .legal-table td,
  .legal-table tr { display: block; }
  .legal-table thead { display: none; }
  .legal-table tr {
    padding: 12px;
    border-bottom: 1px solid var(--border);
  }
  .legal-table td {
    border: 0;
    padding: 4px 0;
  }
  .legal-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-bottom: 2px;
  }
}

.legal-footer {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

/* ----------- Contact form ----------- */

.contact-wrap {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 880px) {
  .contact-wrap {
    grid-template-columns: 1.3fr 1fr;
    gap: 56px;
  }
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
}

.contact-form__row {
  margin-bottom: 18px;
}

.contact-form__row:last-of-type {
  margin-bottom: 0;
}

.contact-form__label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.contact-form__input,
.contact-form__textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  transition: border-color 140ms ease, outline 140ms ease;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  color: var(--text-dim);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: 2px solid var(--teal-bright);
  outline-offset: 2px;
  border-color: var(--teal-bright);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form__captcha {
  min-height: 65px;
}

.contact-form__captcha:empty::before {
  content: "Captcha widget will appear here once Turnstile is configured.";
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
}

.contact-form__msg {
  margin: 14px 0 0;
  min-height: 22px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.contact-form__msg.is-success { color: var(--teal-bright); }
.contact-form__msg.is-error { color: var(--red); }

.contact-aside h2 {
  font-size: 18px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
  margin: 32px 0 12px !important;
}

.contact-aside h2:first-child {
  margin-top: 0 !important;
}

.contact-aside p,
.contact-aside li {
  font-size: 14px !important;
}

/* ----------- Footer socials ----------- */

.socials {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text-muted);
  transition: color 140ms ease, border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.socials a:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

/* ----------- Legal stub page ----------- */

.legal-stub {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 48px);
  margin-top: 32px;
  text-align: center;
}

.legal-stub__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: var(--grad-teal);
  color: var(--bg);
}

.legal-stub__icon svg { width: 30px; height: 30px; }

.legal-stub h2 {
  font-size: 22px !important;
  font-weight: 800 !important;
  margin: 0 0 12px !important;
}

.legal-stub p {
  color: var(--text-muted);
  margin: 0 0 24px;
  font-size: 15px;
}

/* ----------- Iridescent accents ----------- */

@keyframes iridescent-drift {
  0%   { background-position:   0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

/* Iridescent eyebrow — sweeps colour across the hero pill */
.hero__eyebrow {
  position: relative;
  background: rgba(31, 229, 192, 0.06);
  border-color: transparent;
  background-clip: padding-box;
  isolation: isolate;
}
.hero__eyebrow::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-iridescent);
  background-size: 300% 100%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: iridescent-drift 8s linear infinite;
  opacity: 0.7;
}

/* Iridescent ring on the primary CTA */
.btn--primary {
  position: relative;
  isolation: isolate;
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: calc(var(--radius-md) + 2px);
  background: var(--grad-iridescent);
  background-size: 300% 100%;
  filter: blur(10px);
  opacity: 0;
  transition: opacity 220ms ease;
  animation: iridescent-drift 6s linear infinite;
}
.btn--primary:hover::before { opacity: 0.55; }

/* Feature card iridescent border on hover */
.feature {
  position: relative;
  isolation: isolate;
}
.feature::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-iridescent);
  background-size: 300% 100%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 280ms ease;
  animation: iridescent-drift 10s linear infinite;
}
.feature:hover::before { opacity: 0.85; }

/* Iridescent ring on the screenshot phones */
.screen {
  position: relative;
  isolation: isolate;
}
.screen::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: var(--grad-iridescent);
  background-size: 300% 100%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0.35;
  animation: iridescent-drift 14s linear infinite;
}

/* Iridescent text effect for the hero title <em> */
.hero__title em {
  background: var(--grad-iridescent);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: iridescent-drift 10s linear infinite;
}

/* Section-head kicker now glows iridescent */
.section-head__kicker {
  background: var(--grad-iridescent);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: iridescent-drift 12s linear infinite;
}

/* Subtle iridescent thin top-line on the waitlist card */
.waitlist {
  position: relative;
  overflow: hidden;
}
.waitlist::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-iridescent);
  background-size: 300% 100%;
  animation: iridescent-drift 7s linear infinite;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .hero__eyebrow::after,
  .btn--primary::before,
  .feature::before,
  .screen::before,
  .hero__title em,
  .section-head__kicker,
  .waitlist::before {
    animation: none !important;
  }
}
