/* Ersa — shared site styles. Palette and rules per BRAND.md. */

:root {
  --navy: #0C0B2A;
  --plum: #3F1838;
  --deep-blue: #102766;
  --magenta: #763058;
  --mid-blue: #12529E;
  --violet: #6833AD;
  --cyan: #208CD5;
  --pink: #C35786;
  --accent: #8CD1FF;
  --text: rgba(255, 255, 255, 0.82);
  --text-bright: rgba(255, 255, 255, 0.92);
  --text-dim: rgba(255, 255, 255, 0.5);
  --text-faint: rgba(255, 255, 255, 0.28);
  --hairline: rgba(255, 255, 255, 0.07);
  --card: rgba(255, 255, 255, 0.03);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

#particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
main { position: relative; z-index: 1; }

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

nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: 26px 24px;
  flex-wrap: wrap;
  gap: 12px;
}
nav .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 1px;
  text-decoration: none;
  background: linear-gradient(90deg, #6BC7FF, #9494F2, #C77AEB, #F77A9E, #FF945C);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.brand-icon { width: 22px; height: 22px; border-radius: 5px; display: block; }
nav .links { display: flex; gap: 26px; flex-wrap: wrap; }
nav .links a {
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.25s;
}
nav .links a:hover { color: var(--text-bright); }
nav .links a.active { color: var(--text-bright); }

/* ── Layout ──────────────────────────────────────── */

section { max-width: 640px; margin: 0 auto; padding: 80px 24px; }
section.first { padding-top: 60px; }

h1 {
  font-size: 34px;
  font-weight: 300;
  color: var(--text-bright);
  line-height: 1.3;
}
h2 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 34px;
}
.prose p { font-size: 16px; font-weight: 300; color: var(--text-dim); margin-bottom: 18px; }
.prose p strong { font-weight: 500; color: var(--text); }
.prose a { color: var(--accent); text-decoration: none; }
.lead { font-size: 18px; font-weight: 300; color: var(--text-dim); margin-top: 20px; }

/* ── Wordmark hero ───────────────────────────────── */

.hero { padding-top: 90px; padding-bottom: 60px; text-align: center; }
.hero-wordmark {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.wordmark {
  font-size: 64px;
  font-weight: 300;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #6BC7FF, #9494F2, #C77AEB, #F77A9E, #FF945C);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.tagline { font-size: 12px; letter-spacing: 5px; color: var(--text-faint); margin-top: 6px; }
.hero h1 { font-size: 30px; font-weight: 400; margin-top: 52px; }
.hero .lead { max-width: 520px; margin-left: auto; margin-right: auto; font-size: 17px; }

/* ── Cards & moments ─────────────────────────────── */

.moment, .card {
  padding: 22px 26px;
  margin-bottom: 14px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 16px;
}
.moment .quote { font-size: 17px; font-weight: 300; color: var(--text-bright); }
.moment .when { margin-top: 6px; font-size: 13px; color: var(--text-faint); }
.card h3 { font-size: 16px; font-weight: 500; color: var(--text-bright); margin-bottom: 8px; }
.card p { font-size: 15px; font-weight: 300; color: var(--text-dim); }
.card p + p { margin-top: 10px; }

/* Numbered steps (How she works) */
.step { display: flex; gap: 20px; margin-bottom: 34px; }
.step .n {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(140, 209, 255, 0.35);
  color: var(--accent);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 3px;
}
.step h3 { font-size: 17px; font-weight: 500; color: var(--text-bright); margin-bottom: 6px; }
.step p { font-size: 15px; font-weight: 300; color: var(--text-dim); }
.step p + p { margin-top: 8px; }

/* ── Refusals ────────────────────────────────────── */

.refusals { list-style: none; margin-top: 8px; }
.refusals li {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-dim);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.refusals li::before { content: "—"; color: var(--pink); margin-right: 14px; }

/* ── Signup ──────────────────────────────────────── */

.signup-block { text-align: center; }
.signup { margin-top: 34px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.signup input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 15px;
  color: var(--text);
  width: 280px;
  outline: none;
  transition: border-color 0.3s;
}
.signup input:focus { border-color: rgba(140, 209, 255, 0.5); }
.signup input::placeholder { color: var(--text-faint); }
.signup button {
  background: rgba(140, 209, 255, 0.10);
  border: 1px solid rgba(140, 209, 255, 0.4);
  border-radius: 999px;
  padding: 13px 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.3s;
}
.signup button:hover { background: rgba(140, 209, 255, 0.18); }
.signup-note { margin-top: 14px; font-size: 13px; color: var(--text-faint); }
.signup-result { margin-top: 16px; font-size: 14px; color: var(--text-dim); min-height: 20px; }

/* ── Photos ──────────────────────────────────────── */
/* Duotone-ish treatment: grayscale the image, then wash it with the brand
   navy/violet so any decent photo — even a phone shot — sits inside the
   palette instead of fighting it. */

.photo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
figure.photo { margin: 0; }
figure.photo .frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 4 / 5;
  background: var(--card);
}
figure.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(0.85) contrast(1.05) brightness(0.9);
}
figure.photo .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(18, 82, 158, 0.35), rgba(104, 51, 173, 0.28) 55%, rgba(195, 87, 134, 0.22));
  mix-blend-mode: overlay;
  pointer-events: none;
}
figure.photo figcaption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-faint);
  text-align: center;
}

/* ── Moment mockups (home hero row) ─────────────── */

.mockup-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
figure.mockup { margin: 0; }
.mockup-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 22px 22px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mockup-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-grad, linear-gradient(90deg, #6BC7FF, #9494F2));
}
.mockup-card::after {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: var(--accent-grad, linear-gradient(90deg, #6BC7FF, #9494F2));
  opacity: 0.16;
  filter: blur(30px);
  pointer-events: none;
}
figure.mockup:nth-child(1) .mockup-card { --accent-grad: linear-gradient(90deg, #6BC7FF, #9494F2); }
figure.mockup:nth-child(2) .mockup-card { --accent-grad: linear-gradient(90deg, #9494F2, #C77AEB); }
figure.mockup:nth-child(3) .mockup-card { --accent-grad: linear-gradient(90deg, #C77AEB, #F77A9E); }
figure.mockup:nth-child(4) .mockup-card { --accent-grad: linear-gradient(90deg, #F77A9E, #FF945C); }
.mockup-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}
.mockup-head img { width: 18px; height: 18px; border-radius: 4px; display: block; }
.mockup-head span { font-size: 11px; color: var(--text-faint); letter-spacing: 1.5px; }
.mockup-quote {
  position: relative;
  font-size: 15.5px;
  font-weight: 300;
  color: var(--text-bright);
  line-height: 1.55;
  min-height: 44px;
}
.mockup-actions { position: relative; display: flex; gap: 8px; margin-top: 20px; }
.mockup-actions .pill {
  flex: 1;
  text-align: center;
  padding: 9px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-dim);
  transition: border-color 0.3s, background 0.3s;
}
.mockup-actions .pill.primary {
  border-color: rgba(140, 209, 255, 0.45);
  background: rgba(140, 209, 255, 0.12);
  color: var(--accent);
  box-shadow: 0 0 18px rgba(140, 209, 255, 0.15);
}
.mockup-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.4);
}
figure.mockup figcaption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-faint);
  text-align: center;
}

.portrait { display: flex; gap: 26px; align-items: flex-start; flex-wrap: wrap; }
.portrait figure.photo { flex: 0 0 200px; }
.portrait .frame { aspect-ratio: 1 / 1; border-radius: 50%; }
.portrait .prose { flex: 1; min-width: 260px; }

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

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 24px 48px;
  font-size: 13px;
  color: var(--text-faint);
}
footer .care { margin-bottom: 18px; color: var(--text-dim); }
footer a { color: var(--text-dim); text-decoration: none; margin: 0 10px; }
footer a:hover { color: var(--text); }

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

@media (max-width: 540px) {
  .hero { padding-top: 60px; }
  .hero h1 { font-size: 24px; }
  .wordmark { font-size: 48px; }
  .hero-wordmark { max-width: 280px; }
  h1 { font-size: 27px; }
  section { padding: 56px 20px; }
  nav .links { gap: 16px; }
}
