/* ──────────────────────────────────────────────
   Tenkka — Landing site
   Tokens mirror tenkka-app/constants/colors.ts
   ────────────────────────────────────────────── */

:root {
  --punch: #ff0077;
  --punch-light: #ffe6ef;
  --punch-dark: #cc1a5e;
  --nuit: #1a1b2e;
  --gris-claire: #f5f5f3;
  --gris-border: #e0e0dc;
  --gris-moyen: #6b6b7b;
  --blanc: #ffffff;

  --font-heading: "Nunito", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(26, 27, 46, 0.05);
  --shadow: 0 8px 24px rgba(26, 27, 46, 0.08);
  --shadow-lg: 0 30px 60px -20px rgba(26, 27, 46, 0.18);

  --container: 1160px;
  --container-narrow: 760px;
}

/* ───────── "Bientôt" / soon state on download buttons ───────── */
.soon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.is-soon {
  filter: blur(2px) saturate(85%);
  opacity: 0.7;
  pointer-events: none;
  cursor: not-allowed;
  user-select: none;
}

.soon-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #1a1b2e;
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 16px -6px rgba(26, 27, 46, 0.4);
  z-index: 2;
  pointer-events: none;
}

/* Special placement for the hero CTA — badge above the button */
.hero-cta .soon-wrap .soon-badge {
  top: -12px;
  right: 50%;
  transform: translateX(50%);
}

/* Inside the dark CTA section: invert badge so it pops */
.cta .soon-badge {
  background: #ff0077;
  color: #ffffff;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--nuit);
  background: var(--gris-claire);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--nuit);
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 800; }

p { margin: 0 0 16px; color: var(--gris-moyen); }

a { color: inherit; text-decoration: none; }

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

.accent { color: var(--punch); }

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

.container-narrow { max-width: var(--container-narrow); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--punch-light);
  color: var(--punch);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.15);
  color: var(--blanc);
}

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  min-height: 48px;
}

.btn-sm { padding: 10px 18px; min-height: 40px; font-size: 14px; }

.btn-primary {
  background: var(--punch);
  color: var(--blanc);
  box-shadow: 0 10px 24px -10px rgba(255, 0, 119, 0.6);
}
.btn-primary:hover {
  background: var(--punch-dark);
  transform: translateY(-1px);
}

.btn-outlined {
  background: transparent;
  color: var(--punch);
  border-color: var(--punch);
}
.btn-outlined:hover {
  background: var(--punch-light);
}

/* ───────── Header ───────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 245, 243, 0.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.site-header.scrolled { border-color: var(--gris-border); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-icon { width: 32px; height: 32px; }
.brand-name {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 22px;
  color: var(--nuit);
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 28px;
  font-weight: 500;
  font-size: 15px;
  color: var(--nuit);
}
.nav a { position: relative; transition: color 0.15s ease; }
.nav a:hover { color: var(--punch); }

.nav-cta { white-space: nowrap; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav-burger span {
  width: 24px;
  height: 2px;
  background: var(--nuit);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ───────── Hero ───────── */
.hero { padding: 72px 0 96px; overflow: hidden; }

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

.hero-copy h1 { margin-bottom: 20px; }
.lede {
  font-size: 1.12rem;
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 20px;
  background: var(--blanc);
  border: 1px solid var(--gris-border);
  border-radius: var(--radius);
  max-width: 560px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.trust-item strong {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--nuit);
}
.trust-item span {
  font-size: 12px;
  color: var(--gris-moyen);
  margin-top: 2px;
}
.trust-divider {
  width: 1px;
  height: 28px;
  background: var(--gris-border);
}

/* ───────── Hero visual (phone mockup) ───────── */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-blob {
  position: absolute;
  inset: -10% -20% -10% -20%;
  background: radial-gradient(
    circle at center,
    rgba(255, 0, 119, 0.18) 0%,
    rgba(255, 0, 119, 0.06) 40%,
    transparent 70%
  );
  filter: blur(20px);
  z-index: 0;
}

.phone {
  position: relative;
  width: 300px;
  aspect-ratio: 300 / 620;
  background: var(--nuit);
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(26, 27, 46, 0.8);
  z-index: 1;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background: var(--nuit);
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  position: relative;
  height: 100%;
  background: var(--gris-claire);
  border-radius: 32px;
  overflow: hidden;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Small phones used in showcase grid */
.phone-sm {
  width: 240px;
  border-radius: 36px;
  padding: 9px;
}
.phone-sm .phone-notch {
  top: 11px;
  width: 84px;
  height: 18px;
}
.phone-sm .phone-screen { border-radius: 28px; }

/* Spotlight (single feature highlight) */
.spotlight-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.spotlight-copy { max-width: 520px; }
.spotlight-copy .lede { margin-bottom: 24px; }

.spotlight-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.spotlight-list li {
  position: relative;
  padding-left: 32px;
  color: var(--gris-moyen);
  font-size: 0.98rem;
}
.spotlight-list li strong {
  color: var(--nuit);
  font-weight: 700;
}
.spotlight-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--punch-light);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF0077' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
}

.spotlight-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Showcase grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}
.showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0;
}
.showcase-item .phone {
  margin-bottom: 24px;
  transition: transform 0.3s ease;
}
.showcase-item:hover .phone { transform: translateY(-6px); }
.showcase-item figcaption { max-width: 260px; }
.showcase-item h3 { margin-bottom: 6px; }
.showcase-item p { margin: 0; font-size: 0.94rem; }

/* ───────── Sections ───────── */
.section { padding: 96px 0; }
.section-alt { background: var(--blanc); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-lede { font-size: 1.05rem; }

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

.feature-card {
  background: var(--blanc);
  border: 1px solid var(--gris-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}

.section-alt .feature-card { background: var(--gris-claire); }

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--punch-light);
  color: var(--punch);
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { margin: 0; font-size: 0.95rem; }

/* ───────── Steps ───────── */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step {
  background: var(--gris-claire);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--punch);
  color: var(--blanc);
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 16px;
}

.step h3 { margin-bottom: 6px; }
.step p { margin: 0; font-size: 0.95rem; }

/* ───────── Premium ───────── */
.premium-card {
  background: linear-gradient(135deg, var(--nuit) 0%, #2a2b47 100%);
  border-radius: var(--radius-xl);
  padding: 64px 56px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 40px;
  align-items: center;
  color: var(--blanc);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.premium-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60%;
  height: 180%;
  background: radial-gradient(
    circle,
    rgba(255, 0, 119, 0.25) 0%,
    transparent 60%
  );
  pointer-events: none;
}

.premium-copy { position: relative; z-index: 1; }
.premium-copy h2 { color: var(--blanc); }
.premium-copy h2 .accent { color: var(--punch); }

.premium-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 10px;
}
.premium-list li {
  position: relative;
  padding-left: 30px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.02rem;
}
.premium-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--punch);
  color: var(--blanc);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.premium-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}
.premium-halo {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 0, 119, 0.4) 0%, transparent 60%);
  filter: blur(30px);
}
.premium-crown {
  position: relative;
  color: var(--punch);
  filter: drop-shadow(0 12px 24px rgba(255, 0, 119, 0.5));
}
.premium-crown svg { width: 160px; height: 160px; }

/* ───────── FAQ ───────── */
.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--blanc);
  border: 1px solid var(--gris-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color 0.2s ease;
}
.section-alt .faq-item { background: var(--gris-claire); }
.faq-item[open] { border-color: var(--punch); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--nuit);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--punch);
  font-weight: 700;
  transition: transform 0.2s ease;
  line-height: 1;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item p {
  margin: 12px 0 0;
  font-size: 0.96rem;
}

/* ───────── CTA ───────── */
.cta {
  background: var(--nuit);
  color: var(--blanc);
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(255, 0, 119, 0.2) 0%,
    transparent 60%
  );
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta h2 { color: var(--blanc); }
.cta p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--blanc);
  color: var(--nuit);
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  min-width: 200px;
}
.store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(255, 255, 255, 0.3);
}
.store-btn svg { width: 28px; height: 28px; flex-shrink: 0; }
.store-btn small {
  display: block;
  font-size: 11px;
  color: var(--gris-moyen);
  line-height: 1;
}
.store-btn strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  margin-top: 2px;
}

/* ───────── Footer ───────── */
.site-footer {
  background: var(--nuit);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 32px;
  align-items: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .brand-name { color: var(--blanc); }
.footer-brand .brand-icon { width: 28px; height: 28px; }

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
  flex-wrap: wrap;
}
.footer-nav a:hover { color: var(--punch); }

.footer-copy {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  text-align: right;
}

/* ───────── Responsive ───────── */
@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-copy .lede { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-trust { margin-left: auto; margin-right: auto; justify-content: center; }
  .hero-visual { order: -1; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; gap: 48px; }
  .spotlight-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .spotlight-copy { margin: 0 auto; }
  .spotlight-list { text-align: left; max-width: 420px; margin: 0 auto; }

  .premium-card {
    grid-template-columns: 1fr;
    padding: 48px 32px;
    text-align: center;
  }
  .premium-list li { text-align: left; }
  .premium-visual { min-height: 140px; }
  .premium-crown svg { width: 110px; height: 110px; }

  .section { padding: 64px 0; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand { justify-content: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 720px) {
  .nav { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .nav.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--blanc);
    border-top: 1px solid var(--gris-border);
    border-bottom: 1px solid var(--gris-border);
    padding: 8px 0;
  }
  .nav.open a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--gris-border);
  }
  .nav.open a:last-child { border-bottom: none; }

  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.7rem; }

  .features-grid { grid-template-columns: 1fr; }

  .cta-buttons { flex-direction: column; align-items: center; }
  .store-btn { width: 100%; max-width: 260px; justify-content: center; }

  .phone { width: 260px; }
  .phone-sm { width: 220px; }
}
