/* ===================================================
   YUZU LANDING — premium design system
   Couleurs locked avec l'app (canvas, ink, yuzu, leaf)
   =================================================== */

:root {
  --canvas: #FFFCF0;
  --canvas-deep: #FFF7DA;
  --surface: #FFFFFF;
  --ink: #1A1812;
  --muted: #5A4F3F;
  --ghost: #9A8F7F;
  --yuzu: #FFD83D;
  --yuzu-deep: #E8B800;
  --yuzu-soft: #FFE780;
  --leaf: #5FA84A;
  --leaf-soft: #D4F0B0;
  --leaf-deep: #3F7A28;
  --peel: #FF9E3D;
  --line: rgba(26, 24, 18, 0.08);
  --shadow-sm: 0 2px 8px rgba(26, 24, 18, 0.05);
  --shadow-md: 0 8px 24px rgba(26, 24, 18, 0.08);
  --shadow-lg: 0 20px 48px rgba(26, 24, 18, 0.10);
  --shadow-yuzu: 0 12px 40px rgba(255, 216, 61, 0.30);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.55;
  font-feature-settings: "ss01", "cv01";
}

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.highlight {
  background: var(--yuzu);
  padding: 0 14px;
  border-radius: var(--radius-sm);
  display: inline-block;
  transform: rotate(-1deg);
  box-shadow: 0 6px 20px rgba(255, 216, 61, 0.4);
}

.highlight-soft {
  background: linear-gradient(120deg, transparent 0%, var(--yuzu-soft) 50%, transparent 100%);
  padding: 0 8px;
  border-radius: 6px;
}

/* ===================================================
   NAV
   =================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 252, 240, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.logo-icon { font-size: 24px; }

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: color .2s ease;
}

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

.nav-cta {
  background: var(--ink);
  color: var(--canvas);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-md);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 120px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: float 20s ease-in-out infinite;
}

.blob-1 {
  width: 480px; height: 480px;
  background: var(--yuzu);
  top: -120px; left: -120px;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px; height: 400px;
  background: var(--leaf-soft);
  top: 100px; right: -100px;
  animation-delay: -7s;
}

.blob-3 {
  width: 360px; height: 360px;
  background: var(--peel);
  opacity: 0.25;
  bottom: -120px; left: 30%;
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.badge-eyebrow {
  display: inline-block;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.hero h1 {
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.lede {
  font-size: clamp(17px, 2vw, 21px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 44px;
  line-height: 1.55;
}

.lede strong { color: var(--ink); }

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

.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--canvas);
  padding: 18px 32px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 12px 32px rgba(26, 24, 18, 0.22);
  transition: transform .2s cubic-bezier(.4,0,.2,1), box-shadow .2s ease;
}

.cta-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(26, 24, 18, 0.28);
}

.cta-primary-large {
  padding: 22px 40px;
  font-size: 18px;
}

.cta-icon { font-size: 22px; }

.cta-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ghost);
  font-size: 13px;
  font-weight: 600;
}

.cta-meta .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--leaf);
  box-shadow: 0 0 0 4px rgba(95, 168, 74, 0.18);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  50% { transform: scale(1.3); opacity: 0.7; }
}

.hero-mascot {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.hero-mascot img {
  width: 140px;
  height: 140px;
  filter: drop-shadow(0 16px 32px rgba(255, 216, 61, 0.45));
}

.mascot-bounce {
  animation: bounce 4s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

/* ===================================================
   SECTIONS — base
   =================================================== */
section { padding: 96px 0; }

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 56px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.title-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--leaf-deep);
  margin-bottom: 12px;
}

/* ===================================================
   PROBLEM (compare)
   =================================================== */
.problem { background: linear-gradient(180deg, transparent 0%, var(--canvas-deep) 100%); }

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.compare-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.compare-them { opacity: 0.85; border: 1px solid var(--line); }

.compare-us {
  background: linear-gradient(135deg, var(--yuzu-soft) 0%, var(--surface) 100%);
  box-shadow: 0 16px 48px rgba(255, 216, 61, 0.25);
  transform: scale(1.02);
}

.compare-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.compare-emoji { font-size: 28px; }

.compare-label {
  font-weight: 800;
  font-size: 17px;
}

.compare-card ul { list-style: none; }

.compare-card li {
  padding: 10px 0;
  font-size: 15px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.compare-card li:last-child { border-bottom: none; }

.compare-them li em { color: var(--ghost); }

/* ===================================================
   STEPS
   =================================================== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  list-style: none;
  counter-reset: step;
}

.step-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}

.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.step-num {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 14px;
  font-weight: 900;
  color: var(--ghost);
  letter-spacing: 0.05em;
}

.step-emoji {
  font-size: 44px;
  margin-bottom: 16px;
  line-height: 1;
}

.step-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.step-card p strong { color: var(--ink); }

/* ===================================================
   DIFF
   =================================================== */
.diff { background: var(--canvas-deep); }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.diff-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.diff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.diff-icon {
  display: inline-block;
  font-size: 36px;
  margin-bottom: 14px;
  line-height: 1;
}

.diff-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.diff-card p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ===================================================
   PRICING
   =================================================== */
.pricing { padding-bottom: 64px; }

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.plan {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  display: flex;
  flex-direction: column;
}

.plan-lifetime {
  background: linear-gradient(160deg, var(--yuzu-soft) 0%, var(--surface) 100%);
  box-shadow: var(--shadow-yuzu);
  transform: scale(1.03);
  border: 2px solid var(--yuzu);
}

.plan-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--canvas);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-md);
}

.plan-head { margin-bottom: 24px; }

.plan h3 {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.plan-amount {
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan-once {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.plan-tagline {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.plan-features li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  font-size: 15px;
  color: var(--ink);
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--leaf);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3E%3Cpath d='M6.5 11.5L3 8l1.4-1.4 2.1 2.1L11.6 3.5 13 4.9z'/%3E%3C/svg%3E");
  background-size: 14px;
  background-position: center;
  background-repeat: no-repeat;
}

.plan-cta {
  display: block;
  text-align: center;
  padding: 16px 24px;
  border-radius: var(--radius-pill);
  font-weight: 800;
  font-size: 15px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.plan-cta-primary {
  background: var(--ink);
  color: var(--canvas);
  box-shadow: 0 10px 24px rgba(26, 24, 18, 0.25);
}

.plan-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(26, 24, 18, 0.32);
}

.plan-cta-secondary {
  background: var(--canvas-deep);
  color: var(--ink);
  border: 1px solid var(--line);
}

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

.plan-or {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}

.plan-or a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--yuzu-deep);
  text-underline-offset: 3px;
}

.pricing-aside {
  text-align: center;
  margin-top: 40px;
  color: var(--muted);
  font-size: 14.5px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ===================================================
   FAQ
   =================================================== */
.faq { background: var(--canvas-deep); }

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

.faq details {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease;
}

.faq details:hover { box-shadow: var(--shadow-md); }

.faq summary {
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  letter-spacing: -0.01em;
}

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

.faq summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .2s ease;
}

.faq details[open] summary::after { content: "−"; transform: scale(1.1); }

.faq details p {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.faq details a {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ===================================================
   FINAL CTA
   =================================================== */
.final-cta {
  background: linear-gradient(135deg, var(--yuzu) 0%, var(--peel) 100%);
  text-align: center;
  border-top: 1px solid var(--line);
}

.final-cta h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--ink);
}

.final-cta p {
  color: rgba(26, 24, 18, 0.75);
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.final-cta .cta-primary {
  background: var(--ink);
  color: var(--canvas);
}

/* ===================================================
   FOOTER
   =================================================== */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.footer-brand strong { color: var(--ink); }

.footer-meta {
  font-size: 13px;
  color: var(--ghost);
  margin-left: 8px;
}

.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color .2s ease;
}

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

/* ===================================================
   LEGAL PAGES
   =================================================== */
.legal {
  max-width: 720px;
  padding: 56px 24px;
}

.legal h1 {
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--ghost);
  font-size: 13px;
  margin-bottom: 36px;
}

.legal h2 {
  font-size: 22px;
  font-weight: 800;
  margin-top: 36px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal p {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 14px;
}

.legal ul {
  padding-left: 22px;
  margin-bottom: 14px;
}

.legal li {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 4px;
}

.legal a {
  color: var(--leaf-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal .back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.legal .back:hover { color: var(--ink); }

.legal .summary {
  background: linear-gradient(135deg, var(--leaf-soft) 0%, var(--canvas) 100%);
  padding: 22px 26px;
  border-radius: var(--radius-md);
  margin: 16px 0 32px;
  color: var(--ink);
  border: 1px solid rgba(95, 168, 74, 0.20);
}

.legal .summary strong {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 800;
}

/* ===================================================
   DARK MODE — full
   =================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #1A1812;
    --canvas-deep: #232020;
    --surface: #2C2825;
    --ink: #FFFCF0;
    --muted: #C2B6A4;
    --ghost: #8B8270;
    --line: rgba(255, 252, 240, 0.10);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.30);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.40);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.50);
  }

  .nav { background: rgba(26, 24, 18, 0.85); }

  .compare-us {
    background: linear-gradient(135deg, rgba(232, 184, 0, 0.20) 0%, var(--surface) 100%);
  }

  .plan-lifetime {
    background: linear-gradient(160deg, rgba(232, 184, 0, 0.18) 0%, var(--surface) 100%);
    border-color: var(--yuzu-deep);
  }

  .plan-cta-secondary {
    background: var(--canvas-deep);
    color: var(--ink);
  }

  .blob { opacity: 0.30; }

  .final-cta {
    background: linear-gradient(135deg, var(--yuzu-deep) 0%, #B36F1C 100%);
  }
  .final-cta h2 { color: var(--canvas); }
  .final-cta p { color: rgba(255, 252, 240, 0.85); }

  .legal .summary {
    background: linear-gradient(135deg, rgba(95, 168, 74, 0.20) 0%, var(--canvas-deep) 100%);
    border-color: rgba(95, 168, 74, 0.30);
  }
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .compare-grid { grid-template-columns: 1fr; }
  .compare-us { transform: none; }
  .plan-lifetime { transform: none; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 80px; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-meta { margin-left: 0; }
}

/* Scroll-driven reveal animations (optionnel, supportées Chrome 115+) */
@supports (animation-timeline: view()) {
  .step-card,
  .diff-card,
  .compare-card,
  .plan {
    animation: reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }

  @keyframes reveal {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .blob, .mascot-bounce, .cta-meta .dot { animation: none !important; }
}
