/* FlirtIA — flirtia.fr
   Palette and type pulled from the app's design system
   (assets/marketing/Design System/SystemDesign.jpg + lib/src/theme.dart). */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #08060d;
  --ink-soft: #12081d;
  --royal-purple: #1b0d2a;
  --surface: #150c1d;
  --surface-light: #1e1226;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.08);
  --ivory: #f6efe5;
  --rose: #c9a7b8;
  --gold: #d8b05a;
  --gold-soft: #8f7546;
  --rose-pink: #d65ebd;
  --electric-violet: #7d4dff;
  --success: #3dd598;

  --brand-gradient: linear-gradient(135deg, #200428, #4c1d95);
  --gold-gradient: linear-gradient(135deg, #e6c56a, #c99b34);
  --romance-gradient: linear-gradient(135deg, #ff5c8a, #d65ebd);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max-width: 1160px;
  --radius-l: 28px;
  --radius-m: 20px;
  --radius-s: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-locked { overflow: hidden; }

body::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(60% 45% at 85% -5%, rgba(76, 29, 149, 0.35), transparent 60%),
    radial-gradient(50% 40% at 10% 10%, rgba(214, 94, 189, 0.16), transparent 60%),
    var(--ink);
  animation: bgDrift 24s ease-in-out infinite alternate;
}

@keyframes bgDrift {
  0% { background-position: 0 0, 0 0, 0 0; }
  100% { background-position: 40px -30px, -30px 40px, 0 0; }
}

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

/* ── Scroll-reveal (progressive enhancement — visible without JS) ────── */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js [data-reveal-group] > * { transition-delay: calc(var(--reveal-index, 0) * 70ms); }

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

a { color: inherit; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ivory);
  margin: 0;
}

h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.08; }
h3 { font-size: clamp(20px, 2.6vw, 26px); line-height: 1.15; }

p { color: var(--rose); margin: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--gold);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-gradient);
}

/* ── Buttons ─────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold-gradient);
  color: #251705;
  box-shadow: 0 10px 30px rgba(216, 176, 90, 0.25);
}
.btn-primary:hover { box-shadow: 0 14px 36px rgba(216, 176, 90, 0.35); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ivory);
  border-color: rgba(255, 255, 255, 0.16);
}
.btn-ghost:hover { border-color: var(--gold-soft); background: rgba(255, 255, 255, 0.07); }

.btn-store {
  background: #0f0a14;
  color: var(--ivory);
  border-color: rgba(255, 255, 255, 0.14);
  padding: 10px 18px;
}
.btn-store:hover { border-color: var(--gold-soft); }
.btn-store svg { flex-shrink: 0; }
.btn-store .store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.btn-store .store-text small { font-size: 10.5px; font-weight: 500; color: var(--rose); }
.btn-store .store-text span { font-size: 15px; font-weight: 700; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Header ──────────────────────────────────────────────────────────── */

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 6, 13, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

header.site-header.is-scrolled {
  background: rgba(8, 6, 13, 0.92);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.85; }

.brand img { height: 26px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--rose);
  padding-bottom: 4px;
  transition: color 0.15s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--romance-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--gold); }

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

/* ── Burger toggle ─────────────────────────────────────────────────── */

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  color: var(--ivory);
  width: 40px;
  height: 40px;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s ease;
  position: relative;
  z-index: 80;
}
.nav-toggle:hover { border-color: var(--gold-soft); }

.burger { position: relative; width: 18px; height: 13px; display: inline-block; }
.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), opacity 0.2s ease, top 0.3s ease;
}
.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 5.5px; }
.burger span:nth-child(3) { top: 11px; }

.nav-toggle.is-open .burger span:nth-child(1) { top: 5.5px; transform: rotate(45deg); }
.nav-toggle.is-open .burger span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .burger span:nth-child(3) { top: 5.5px; transform: rotate(-45deg); }

/* ── Mobile drawer ─────────────────────────────────────────────────── */

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 2, 8, 0.6);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.nav-overlay.is-open { opacity: 1; }

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 82vw);
  z-index: 70;
  background: var(--surface);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.5);
  padding: 92px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(.4,0,.2,1);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateX(0); }

.mobile-menu-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-menu-links li { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.mobile-menu-links li:first-child { border-top: none; }
.mobile-menu-links a {
  display: block;
  padding: 16px 2px;
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ivory);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.mobile-menu-links a:hover,
.mobile-menu-links a.is-active { color: var(--gold); padding-left: 6px; }

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.mobile-menu-actions .btn { width: 100%; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions { display: none; }
}

@media (min-width: 861px) {
  .mobile-menu, .nav-overlay { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  padding: 64px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

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

.hero h1 {
  font-size: clamp(36px, 5.4vw, 58px);
  line-height: 1.05;
  margin: 18px 0 20px;
}

.hero h1 em {
  font-style: normal;
  background: var(--romance-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 30px;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  animation: floatY 7s ease-in-out infinite;
}

.hero-visual img, .hero-visual svg { width: 100%; height: 100%; object-fit: cover; display: block; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--rose);
}

.trust-item svg { color: var(--success); flex-shrink: 0; }

/* ── Sections ────────────────────────────────────────────────────────── */

section { padding: 64px 0; }
section[id] { scroll-margin-top: 88px; }

.section-head {
  max-width: 640px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head p { margin-top: 14px; font-size: 15.5px; }

/* ── Steps ───────────────────────────────────────────────────────────── */

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

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

.step-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-m);
  padding: 26px;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #251705;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 16px;
}

.step-card h3 { margin-bottom: 8px; }
.step-card p { font-size: 14px; }

/* ── Feature grid ────────────────────────────────────────────────────── */

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

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-m);
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: var(--gold-soft);
  transform: translateY(-3px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(216, 176, 90, 0.12);
  border: 1px solid rgba(216, 176, 90, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 16px;
}

.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 13.5px; }

/* ── Spice level ─────────────────────────────────────────────────────── */

.spice-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-l);
  padding: 40px;
}

@media (max-width: 860px) {
  .spice-block { grid-template-columns: 1fr; gap: 28px; padding: 28px; }
}

@media (max-width: 400px) {
  .spice-block { padding: 20px; }
}

.spice-levels { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

.spice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 13.5px;
  color: var(--ivory);
}

.spice-row .flames { display: flex; gap: 3px; min-width: 90px; flex-shrink: 0; }

.flame-icon { flex-shrink: 0; }
.flame-icon.on { color: var(--gold); fill: currentColor; }
.flame-icon.off { color: rgba(255, 255, 255, 0.14); fill: currentColor; }

.spice-row .label { font-weight: 700; min-width: 96px; color: var(--gold); flex-shrink: 0; }
.spice-row .desc { color: var(--rose); }

@media (max-width: 460px) {
  .spice-row .desc { flex-basis: 100%; font-size: 12.5px; }
}

.spice-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  max-width: 260px;
  margin: 0 auto;
  filter: drop-shadow(0 20px 50px rgba(214, 94, 189, 0.25));
  animation: floatY 6s ease-in-out infinite;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 860px) {
  .spice-visual { max-width: 180px; }
}

/* ── Date coach split ────────────────────────────────────────────────── */

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: -1; }
}

.split-media {
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  animation: floatY 7.5s ease-in-out infinite;
}

.split-media img, .split-media svg { width: 100%; display: block; }

.split-list { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }

.split-list li {
  display: flex;
  gap: 12px;
  list-style: none;
  font-size: 14.5px;
  color: var(--ivory);
}

.split-list svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

/* ── Pricing ─────────────────────────────────────────────────────────── */

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

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

.price-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-l);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.price-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-soft);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.price-card.featured {
  border-color: var(--gold-soft);
  background: linear-gradient(160deg, rgba(216, 176, 90, 0.1), rgba(255, 255, 255, 0.03));
}

.price-card.featured:hover {
  box-shadow: 0 28px 70px rgba(216, 176, 90, 0.22);
}

.price-badge {
  position: absolute;
  top: -13px;
  right: 28px;
  background: var(--gold-gradient);
  color: #251705;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(216, 176, 90, 0.35);
}

.price-tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 16px 0 6px;
}
.price-amount .amount {
  font-family: var(--font-body);
  font-size: clamp(34px, 8vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
}
.price-amount .period { font-size: 13.5px; font-weight: 600; color: var(--rose); }

.price-trial { font-size: 13px; color: var(--success); font-weight: 700; margin-bottom: 20px; }

.price-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  flex: 1;
}
.price-list li { display: flex; gap: 10px; font-size: 13.5px; color: var(--ivory); }
.price-list svg { color: var(--gold); flex-shrink: 0; margin-top: 2px; }

.price-fine {
  margin-top: 26px;
  font-size: 12px;
  color: var(--rose);
  opacity: 0.75;
}

/* ── FAQ ──────────────────────────────────────────────────────────────── */

.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 780px; margin: 0 auto; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.faq-item:hover { border-color: rgba(216, 176, 90, 0.35); }
.faq-item[open] { border-color: var(--gold-soft); background: rgba(216, 176, 90, 0.05); }

.faq-item summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ivory);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color 0.2s ease;
}

.faq-item summary:hover { color: var(--gold); }

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

.faq-item summary::after {
  content: '+';
  font-size: 20px;
  color: var(--gold);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item .faq-answer {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--rose);
  line-height: 1.6;
}

/* ── Final CTA ───────────────────────────────────────────────────────── */

.final-cta {
  text-align: center;
  background: var(--brand-gradient);
  border-radius: var(--radius-l);
  padding: 64px 32px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.final-cta h2 { margin-bottom: 14px; }
.final-cta p { max-width: 46ch; margin: 0 auto 30px; font-size: 15.5px; }
.final-cta .cta-row { justify-content: center; }

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

footer.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 36px;
}

@media (max-width: 700px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.footer-brand img { height: 22px; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; max-width: 32ch; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { text-decoration: none; font-size: 13.5px; color: var(--rose); }
.footer-col a:hover { color: var(--ivory); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  color: var(--rose);
  opacity: 0.8;
}

/* ── Legal pages ─────────────────────────────────────────────────────── */

.legal {
  padding: 56px 0 80px;
}

.legal-header { max-width: 720px; margin: 0 auto 40px; }
.legal-header p { margin-top: 10px; font-size: 13px; }

.legal-body { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }

.legal-section {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 22px 24px;
}

.legal-section h2 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.legal-section p, .legal-section li { font-size: 14px; line-height: 1.65; color: var(--rose); }
.legal-section ul { margin: 8px 0 0; padding-left: 20px; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--gold);
  text-decoration: none;
  margin-bottom: 24px;
}

/* ── Utility ─────────────────────────────────────────────────────────── */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
