/* ═══════════════════════════════════════════════════════════
   Young by Yount – Landing Page
   Design tokens mirror the app: navy / mint glow / gold.
   ═══════════════════════════════════════════════════════════ */

:root {
  --bg: #0A0E1A;
  --surface: #131A2C;
  --surface-hi: #1B2440;
  --stroke: #263150;
  --mint: #4ADEC2;
  --mint-dark: #2BB39A;
  --gold: #F5C97B;
  --text: #F2F5FA;
  --text-2: #9AA6C0;
  --text-3: #5E6A87;
  --radius: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(74, 222, 194, .3); }

/* ── Background orbs ── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.orb-mint {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(74,222,194,.14), transparent 70%);
  top: -180px; right: -120px;
}
.orb-gold {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(245,201,123,.07), transparent 70%);
  bottom: 5%; left: -160px;
}

main, .nav, .footer { position: relative; z-index: 1; }

/* ═══════════ Navigation ═══════════ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(10, 14, 26, .78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(38, 49, 80, .6);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-weight: 800; font-size: 17px; letter-spacing: -.3px;
  white-space: nowrap;
}
.nav-logo em { font-style: normal; color: var(--mint); }
.nav-links { display: flex; gap: clamp(14px, 2.5vw, 30px); }
.nav-links a {
  color: var(--text-2); text-decoration: none;
  font-size: 14.5px; font-weight: 600;
  transition: color .2s;
}
.nav-links a:hover { color: var(--mint); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  background: var(--surface); color: var(--text-2);
  border: 1px solid var(--stroke); border-radius: 10px;
  font: 700 12.5px var(--font); letter-spacing: .5px;
  padding: 7px 12px; cursor: pointer;
  transition: all .2s;
}
.lang-toggle:hover { color: var(--mint); border-color: var(--mint); }

/* ═══════════ Buttons ═══════════ */
.btn {
  display: inline-block;
  white-space: nowrap;
  background: var(--mint); color: #04261F;
  font-weight: 800; font-size: 15.5px;
  text-decoration: none;
  padding: 15px 32px; border-radius: 16px;
  transition: transform .2s, box-shadow .2s, background .2s;
  box-shadow: 0 0 0 rgba(74,222,194,0);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(74,222,194,.35);
  background: #5fe8cf;
}
.btn-small { padding: 10px 20px; font-size: 13.5px; border-radius: 12px; }
.btn-big { padding: 18px 44px; font-size: 17px; }
.btn-ghost {
  background: transparent; color: var(--mint);
  border: 1.5px solid var(--mint);
}
.btn-ghost:hover { background: rgba(74,222,194,.08); box-shadow: none; }

/* ═══════════ Hero ═══════════ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(48px, 9vh, 110px) clamp(20px, 5vw, 56px) clamp(48px, 8vh, 90px);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; } }

.hero h1 {
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 900; letter-spacing: -2.2px; line-height: 1.05;
  margin-bottom: 22px;
}
.grad {
  background: linear-gradient(100deg, var(--mint) 10%, #A9F5E4 50%, var(--gold) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 18.5px);
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 34px;
}

.store-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.store-badge {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 12px 22px;
  color: var(--text); text-decoration: none;
  transition: all .2s;
}
.store-badge:hover { border-color: var(--mint); transform: translateY(-2px); }
.store-badge small { display: block; font-size: 11px; color: var(--text-3); line-height: 1.2; }
.store-badge strong { font-size: 16.5px; letter-spacing: -.3px; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  list-style: none;
  font-size: 13.5px; font-weight: 600; color: var(--text-3);
}

/* ── Phone mockup ── */
.hero-phone { position: relative; display: flex; justify-content: center; }
.phone-glow {
  position: absolute; inset: 10% 18%;
  background: radial-gradient(circle, rgba(74,222,194,.22), transparent 65%);
  filter: blur(50px);
  z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: min(320px, 80vw);
  aspect-ratio: 9 / 18.6;
  background: #060910;
  border: 3px solid #2A3552;
  border-radius: 48px;
  padding: 12px;
  box-shadow: 0 40px 90px rgba(0,0,0,.6), inset 0 0 0 1.5px #0e1424;
}
.phone-notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px;
  background: #060910;
  border-radius: 14px;
  z-index: 3;
}
.phone-screen {
  position: relative;
  height: 100%;
  background: linear-gradient(180deg, #0E1426 0%, var(--bg) 45%);
  border-radius: 36px;
  overflow: hidden;
  padding: 64px 18px 18px;
  display: flex; flex-direction: column; align-items: center;
}
.ps-label {
  font-size: 10px; font-weight: 800; letter-spacing: 2px;
  color: var(--text-2);
}
.ps-age {
  margin-top: 8px;
  font-size: 56px; font-weight: 800; letter-spacing: -2.5px; line-height: 1;
  color: var(--mint);
  text-shadow: 0 0 36px rgba(74,222,194,.65);
  font-variant-numeric: tabular-nums;
}
.ps-unit { font-size: 10.5px; color: var(--text-3); font-weight: 600; margin-top: 6px; }
.ps-delta {
  margin-top: 12px;
  display: inline-flex; align-items: center;
  background: rgba(74,222,194,.12);
  color: var(--mint);
  font-size: 11.5px; font-weight: 700;
  border-radius: 100px;
  padding: 5px 13px;
  font-variant-numeric: tabular-nums;
}
.ps-chips { display: flex; gap: 8px; margin-top: 16px; width: 100%; }
.ps-chip {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 9px 4px;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.ps-chip i { font-style: normal; font-size: 13px; }
.ps-chip b { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ps-chip small { font-size: 8.5px; color: var(--text-3); font-weight: 600; }

.ps-routines { width: 100%; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ps-routine {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 10px 12px;
  transition: all .45s ease;
}
.ps-routine .pr-ic { font-size: 14px; }
.ps-routine .pr-t { flex: 1; font-size: 11.5px; font-weight: 600; transition: all .4s; }
.pr-check {
  width: 19px; height: 19px; border-radius: 50%;
  border: 2px solid var(--text-3);
  transition: all .35s ease;
  position: relative;
  flex-shrink: 0;
}
.ps-routine.done { background: rgba(74,222,194,.07); border-color: rgba(74,222,194,.4); }
.ps-routine.done .pr-t { color: var(--text-3); text-decoration: line-through; }
.ps-routine.done .pr-check {
  background: var(--mint); border-color: var(--mint);
  box-shadow: 0 0 14px rgba(74,222,194,.5);
}
.ps-routine.done .pr-check::after {
  content: '';
  position: absolute; inset: 0;
  background: center / 11px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23062018' stroke-width='4' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}

.ps-float {
  position: absolute;
  right: 26px; top: 46%;
  background: var(--mint); color: #04261F;
  font-size: 11px; font-weight: 800;
  border-radius: 100px;
  padding: 4px 11px;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(74,222,194,.5);
}
.ps-float.fly { animation: fly 1.3s ease-out forwards; }
@keyframes fly {
  0% { opacity: 0; transform: translateY(8px); }
  18% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-36px); }
}

/* ═══════════ Sections ═══════════ */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 110px) clamp(20px, 5vw, 56px) 0;
}
.section-narrow { max-width: 800px; }
.section h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 900; letter-spacing: -1.4px;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--text-2);
  font-size: clamp(15px, 1.5vw, 17px);
  max-width: 620px;
  margin: 14px auto 0;
}

/* ── Steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .25s, border-color .25s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(74,222,194,.45); }
.step-num {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: rgba(74,222,194,.12);
  color: var(--mint);
  font-weight: 900; font-size: 18px;
  border-radius: 13px;
  margin-bottom: 18px;
}
.step h3 { font-size: 18.5px; letter-spacing: -.4px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-2); }

/* ── Pillars ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 48px;
}
.pillar {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-top: 3px solid var(--pc);
  border-radius: 20px;
  padding: 26px 20px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px -18px color-mix(in srgb, var(--pc) 55%, transparent);
}
.pillar-ic { font-size: 30px; margin-bottom: 12px; }
.pillar h3 { font-size: 16.5px; color: var(--pc); letter-spacing: -.3px; margin-bottom: 7px; }
.pillar p { font-size: 13px; color: var(--text-2); }

/* ── Features ── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 48px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .25s, border-color .25s;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(74,222,194,.45); }
.feat-ic { font-size: 26px; margin-bottom: 14px; }
.feature h3 { font-size: 17.5px; letter-spacing: -.4px; margin-bottom: 7px; }
.feature p { font-size: 14px; color: var(--text-2); }

/* ── Privacy banner ── */
.privacy-banner {
  max-width: 1180px;
  margin: clamp(56px, 9vh, 110px) auto 0;
  padding: 0 clamp(20px, 5vw, 56px);
}
.pb-inner {
  display: flex; align-items: center; gap: 26px;
  background: linear-gradient(120deg, rgba(74,222,194,.10), rgba(245,201,123,.05));
  border: 1px solid rgba(74,222,194,.3);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 42px);
}
.pb-lock { font-size: 40px; }
.pb-inner h3 { font-size: clamp(18px, 2.2vw, 23px); letter-spacing: -.5px; margin-bottom: 6px; }
.pb-inner p { color: var(--text-2); font-size: 15px; max-width: 640px; }

/* ── Pricing ── */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
  justify-content: center;
  gap: 22px;
  margin-top: 48px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 28px;
  padding: 36px 32px;
  display: flex; flex-direction: column;
  position: relative;
}
.plan-pro {
  border-color: rgba(245,201,123,.5);
  box-shadow: 0 0 70px -22px rgba(245,201,123,.4);
}
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #2B1F05;
  font-size: 12px; font-weight: 800; letter-spacing: .4px;
  border-radius: 100px;
  padding: 5px 16px;
}
.plan h3 { font-size: 19px; letter-spacing: -.4px; }
.plan-price {
  font-size: 42px; font-weight: 900; letter-spacing: -1.8px;
  margin: 12px 0 4px;
}
.plan-price small { font-size: 15px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.plan-alt { font-size: 12.5px; color: var(--text-3); margin-bottom: 8px; }
.plan ul { list-style: none; margin: 18px 0 28px; flex: 1; }
.plan li {
  padding: 7px 0 7px 30px;
  font-size: 14.5px; color: var(--text-2);
  background: left 9px / 17px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%234ADEC2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M4 12.5l5 5L20 6.5'/%3E%3C/svg%3E");
}
.plan .btn, .plan .btn-ghost { text-align: center; }

/* ── FAQ ── */
.faq { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 0 24px;
  transition: border-color .25s;
}
.faq details[open] { border-color: rgba(74,222,194,.4); }
.faq summary {
  cursor: pointer;
  font-weight: 700; font-size: 15.5px;
  padding: 19px 28px 19px 0;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute; right: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--mint);
  font-size: 22px; font-weight: 400;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p {
  color: var(--text-2);
  font-size: 14.5px;
  padding-bottom: 20px;
}

/* ── Final CTA ── */
.final-cta {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(70px, 11vh, 130px) 20px;
}
.final-cta h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900; letter-spacing: -1.6px;
  margin-bottom: 14px;
}
.final-cta p { color: var(--text-2); font-size: 17px; margin-bottom: 32px; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--stroke);
  padding: 44px clamp(20px, 5vw, 56px) 36px;
  max-width: 1180px;
  margin: 0 auto;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 24px;
}
.footer-brand strong { font-size: 17px; letter-spacing: -.3px; }
.footer-brand em { font-style: normal; color: var(--mint); }
.footer-brand p { color: var(--text-3); font-size: 13.5px; margin-top: 6px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--text-2); text-decoration: none;
  font-size: 14px; font-weight: 600;
}
.footer-links a:hover { color: var(--mint); }
.footer-note {
  color: var(--text-3); font-size: 12px;
  max-width: 720px;
  margin-top: 30px;
}
.footer-copy { color: var(--text-3); font-size: 12px; margin-top: 12px; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-badge .dot { animation: none; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 44px;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .store-badges, .hero-trust { justify-content: center; }
  .pb-inner { flex-direction: column; text-align: center; }
}
