/* ==========================================================================
   Keepop — landing page styles (index.html only)
   styles.css remains untouched and is used by support/privacy/terms/etc.
   ========================================================================== */

:root {
  --ink: #17141d;
  --muted: #6b6474;
  --faint: #9b93a6;
  --line: #ece9f0;
  --bg: #ffffff;
  --surface: #f8f7fa;
  --pink: #ff0080;
  --purple: #9c27b0;
  --grad: linear-gradient(135deg, #ff0080 0%, #9c27b0 100%);
  --radius: 16px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-icon { height: 28px; width: auto; }
.brand-wordmark { height: 18px; width: auto; }

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

.header-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease;
}

.header-nav a:hover { color: var(--ink); }

.header-cta {
  display: inline-flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  transition: opacity 0.15s ease;
}

.header-cta:hover { opacity: 0.85; }

@media (min-width: 820px) {
  .header-nav { display: flex; }
}

/* --------------------------------------------------------------------------
   Platform-aware CTAs
   Default (no data-platform / desktop): official store badges.
   iOS / Android: one big primary button + a text link to the other store.
   -------------------------------------------------------------------------- */

html:not([data-platform="ios"]) .only-ios { display: none; }
html:not([data-platform="android"]) .only-android { display: none; }
html[data-platform="ios"] .only-desktop,
html[data-platform="android"] .only-desktop { display: none; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  padding: 16px 28px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 28px -10px rgba(255, 0, 128, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:active { transform: scale(0.98); }
.btn-primary svg { width: 20px; height: 20px; flex: none; }

.store-alt-link {
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.store-alt-link:hover { color: var(--ink); }

/* Official-style store badges (desktop / fallback) */

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

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 54px;
  padding: 0 18px;
  background: #000;
  color: #fff;
  border: 1px solid #a6a6a6;
  border-radius: 9px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.store-badge:hover { opacity: 0.88; transform: translateY(-1px); }
.store-badge svg { width: 26px; height: 26px; flex: none; }

.store-badge-text { text-align: left; line-height: 1.15; }
.store-badge-text small {
  display: block;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: #d7d7d7;
}
.store-badge-text strong {
  display: block;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

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

.hero { padding: 40px 0 0; text-align: center; }

.hero h1 {
  font-size: clamp(1.9rem, 6.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  max-width: 720px;
  margin: 0 auto;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: clamp(0.98rem, 2.8vw, 1.15rem);
  color: var(--muted);
  max-width: 480px;
  margin: 14px auto 0;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.hero-note {
  margin-top: 14px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--faint);
  letter-spacing: 0.02em;
}

/* Phone mockup */

.hero-visual {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  padding-bottom: 0;
}

.phone-frame {
  position: relative;
  width: min(290px, 72vw);
  border-radius: 42px;
  padding: 10px;
  background: #17141d;
  box-shadow:
    0 40px 80px -32px rgba(156, 39, 176, 0.35),
    0 24px 48px -24px rgba(23, 20, 29, 0.35);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 22px;
  background: #17141d;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-frame img {
  border-radius: 32px;
  width: 100%;
}

.phone-frame.small { width: min(230px, 62vw); border-radius: 34px; padding: 8px; }
.phone-frame.small::before { height: 18px; }
.phone-frame.small img { border-radius: 26px; }

.hero-fade {
  height: 120px;
  margin-top: -120px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none;
  position: relative;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 72px 0; }
.section.alt { background: var(--surface); }

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

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(1.55rem, 5vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1rem;
}

/* Features */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feature {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 0, 128, 0.08), rgba(156, 39, 176, 0.08));
  color: var(--purple);
  margin-bottom: 16px;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.feature p { font-size: 0.92rem; color: var(--muted); }

@media (min-width: 640px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* Showcase (templates) */

.showcase-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 28px 32px;
}

.showcase-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.showcase-item figcaption {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

@media (min-width: 820px) {
  .showcase-item:nth-child(2) { margin-top: 40px; }
}

/* Pricing */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto;
}

.plan {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
}

.plan.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--bg), var(--bg)) padding-box,
    var(--grad) border-box;
  position: relative;
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan h3 { font-size: 1.15rem; font-weight: 700; }

.plan-price {
  margin: 10px 0 4px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.plan-price span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.plan-alt-price { font-size: 0.85rem; color: var(--muted); margin-bottom: 4px; }

.plan ul {
  list-style: none;
  margin: 18px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.plan li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--ink);
}

.plan li svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 3px;
  color: var(--pink);
}

.plan-cta {
  display: inline-flex;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.15s ease;
}

.plan-cta:hover { background: var(--surface); }

.plan.featured .plan-cta {
  background: var(--grad);
  border: none;
  color: #fff;
  box-shadow: 0 8px 22px -10px rgba(255, 0, 128, 0.5);
}

.plan-note {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--faint);
  text-align: center;
}

@media (min-width: 680px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; max-width: 1040px; }
}

/* FAQ */

.faq-list { max-width: 680px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-size: 1rem;
  font-weight: 600;
}

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

.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--faint);
  flex: none;
  transition: transform 0.2s ease;
}

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

.faq-item p {
  padding: 0 4px 20px;
  font-size: 0.93rem;
  color: var(--muted);
  max-width: 620px;
}

.faq-more { text-align: center; margin-top: 28px; }

.faq-more a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--purple);
}

.faq-more a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Final CTA */

.final-cta {
  padding: 80px 0;
  background: var(--ink);
  color: #fff;
  text-align: center;
}

.final-cta h2 {
  font-size: clamp(1.6rem, 5.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 560px;
  margin: 0 auto;
}

.final-cta p {
  margin: 14px auto 28px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 420px;
  font-size: 1rem;
}

.final-cta .store-badge { border-color: rgba(255, 255, 255, 0.35); }

.final-cta .hero-cta { margin-top: 0; }
.final-cta .store-alt-link { color: rgba(255, 255, 255, 0.6); }
.final-cta .store-alt-link:hover { color: #fff; }

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

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 52px 0 32px;
}

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

.footer-brand-block { max-width: 260px; }

.footer-brand-block .brand { margin-bottom: 12px; }

.footer-brand-block p { font-size: 0.85rem; color: var(--muted); }

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

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 10px;
  transition: color 0.15s ease;
}

.footer-col a:hover { color: var(--ink); }

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--faint);
  text-align: center;
}

@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1.4fr; }
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

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

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

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

/* Premium : deux options de prix côte à côte */
.plan-prices { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 6px; }
.price-opt { display: flex; flex-direction: column; gap: 4px; }
.price-opt .plan-price { margin-bottom: 0; }
.save-chip {
  align-self: flex-start;
  font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 999px;
  background: linear-gradient(90deg, #FF0080, #9C27B0); color: #fff;
}

/* Vitrines : balayage horizontal sur mobile (toutes les vues visibles) */
@media (max-width: 819px) {
  .showcase-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 12px 16px;
    margin: 0 -20px;
    scrollbar-width: none;
  }
  .showcase-grid::-webkit-scrollbar { display: none; }
  .showcase-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
  }
  .showcase-item:first-child { margin-left: 16px; }
  .showcase-item:last-child { margin-right: 16px; }
}
