/* NapBuddy landing — no external resources (no fonts, no trackers). */
:root {
  --bg: #fbfaff;
  --bg-soft: #f3f1ff;
  --surface: #ffffff;
  --fg: #1e1b3a;
  --muted: #5e5a7d;
  --border: #e6e2f7;
  --brand: #5b5bf0;
  --brand-2: #8b5cf6;
  --sky: #60a5fa;
  --star: #fcd34d;
  --peach: #fdba9a;
  --ok: #16a34a;
  --shadow: 0 1px 2px rgba(30, 27, 58, .04), 0 12px 32px -12px rgba(60, 50, 160, .22);
  --radius: 22px;
  --hero-grad: linear-gradient(160deg, #e8f1ff 0%, #efeaff 45%, #fdf0f7 100%);
  --brand-grad: linear-gradient(135deg, #60a5fa 0%, #6366f1 50%, #a78bfa 100%);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0c1a;
    --bg-soft: #141228;
    --surface: #1a1830;
    --fg: #eeecff;
    --muted: #aca8cc;
    --border: #2b2850;
    --brand: #8f8ffb;
    --brand-2: #b79cff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .7);
    --hero-grad: linear-gradient(160deg, #101536 0%, #17123a 50%, #24132e 100%);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 12px; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 14px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--fg); text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--fg); }
.nav .lang-switch { border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px; }
@media (max-width: 760px) { .nav a:not(.lang-switch) { display: none; } }

/* Hero */
.hero { background: var(--hero-grad); position: relative; overflow: hidden; padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
@media (max-width: 900px) { .hero { padding: 40px 0 64px; } .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 75%, transparent); border: 1px solid var(--border); font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 14px; background: #111018; color: #fff; text-decoration: none; min-width: 190px; border: 1px solid rgba(255,255,255,.08); }
@media (prefers-color-scheme: dark) { .store-btn { background: #fff; color: #111018; } }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: .72rem; opacity: .75; line-height: 1.1; }
.store-btn strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.store-btn[aria-disabled="true"] { cursor: default; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; padding: 0; margin: 0; list-style: none; }
.trust-row li { display: flex; align-items: center; gap: 6px; }
.trust-row svg { width: 18px; height: 18px; color: var(--ok); flex: none; }

/* Decorative night sky */
.sky { position: absolute; inset: 0; pointer-events: none; }
.sky span { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--star); opacity: .55; animation: twinkle 4s ease-in-out infinite; }
.sky span:nth-child(1) { top: 12%; left: 8%; }
.sky span:nth-child(2) { top: 22%; left: 46%; width: 4px; height: 4px; animation-delay: 1.2s; }
.sky span:nth-child(3) { top: 70%; left: 4%; width: 5px; height: 5px; animation-delay: 2.1s; }
.sky span:nth-child(4) { top: 8%; right: 10%; animation-delay: .6s; }
.sky span:nth-child(5) { bottom: 14%; right: 42%; width: 4px; height: 4px; animation-delay: 1.8s; }
.sky span:nth-child(6) { top: 40%; right: 4%; width: 5px; height: 5px; animation-delay: 2.7s; }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: .8; transform: scale(1.15); } }

/* Phone mockup */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone-stage::before { content: ""; position: absolute; width: 380px; height: 380px; max-width: 90vw; max-height: 90vw; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand-2) 35%, transparent), transparent 70%); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.phone { position: relative; width: 300px; max-width: 100%; border-radius: 44px; padding: 12px; background: #16142a; box-shadow: 0 40px 80px -30px rgba(40, 30, 120, .55), inset 0 0 0 2px #2f2c4f; }
.screen { border-radius: 34px; overflow: hidden; background: #f5f4fb; color: #1e1b3a; padding: 18px 14px 20px; min-height: 560px; font-size: 13px; line-height: 1.4; }
@media (prefers-color-scheme: dark) { .screen { background: #0b0b10; color: #eeecff; } }
.notch { width: 96px; height: 24px; background: #16142a; border-radius: 0 0 16px 16px; margin: -18px auto 12px; }
.app-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #fde68a, #fdba9a); display: grid; place-items: center; font-weight: 800; color: #7c2d12; }
.app-top b { display: block; font-size: 15px; }
.app-top small { color: #7b78a0; }
.card { background: #fff; border-radius: 18px; padding: 14px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(30,27,58,.06); }
@media (prefers-color-scheme: dark) { .card { background: #1a1830; box-shadow: none; } .app-top small { color: #aca8cc; } }
.card-hero { background: linear-gradient(135deg, #4f46e5, #9333ea) !important; color: #fff; }
.card-hero .big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.card-hero .row { display: flex; justify-content: space-between; opacity: .9; margin-top: 4px; }
.timer-btn { margin-top: 10px; background: rgba(255,255,255,.18); border-radius: 12px; padding: 9px; text-align: center; font-weight: 700; }
.tl-label { display: flex; justify-content: space-between; color: #7b78a0; font-size: 11px; margin-top: 6px; }
.timeline { position: relative; height: 14px; border-radius: 7px; background: #eceaf8; margin-top: 8px; overflow: hidden; }
@media (prefers-color-scheme: dark) { .timeline { background: #2b2850; } .tl-label { color: #aca8cc; } }
.timeline i { position: absolute; top: 0; bottom: 0; border-radius: 7px; }
.timeline .n { background: #6366f1; }
.timeline .p { background: #a78bfa; }
.ai-card { border: 1px solid #fde68a; background: linear-gradient(135deg, #fffbeb, #fff7ed) !important; }
@media (prefers-color-scheme: dark) { .ai-card { border-color: #5b4a12; background: linear-gradient(135deg, #2a2210, #2a1a10) !important; } }
.ai-tag { display: inline-flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 700; color: #c2410c; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
@media (prefers-color-scheme: dark) { .ai-tag { color: #fdba74; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stats .card { margin: 0; }
.stats b { display: block; font-size: 18px; }
.stats small { color: #7b78a0; }
.floating { position: absolute; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); border-radius: 16px; padding: 10px 14px; font-size: .88rem; font-weight: 600; display: flex; align-items: center; gap: 8px; color: var(--fg); }
.floating.f1 { top: 14%; left: -6px; }
.floating.f2 { bottom: 12%; right: -6px; }
@media (max-width: 420px) { .floating { display: none; } }

/* Sections */
section { padding: 88px 0; }
@media (max-width: 700px) { section { padding: 64px 0; } }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.kicker { display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.soft { background: var(--bg-soft); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature p { color: var(--muted); margin: 0; }
.icon-badge { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; background: var(--brand-grad); }
.icon-badge.warm { background: linear-gradient(135deg, #facc15, #f97316); }
.icon-badge.pink { background: linear-gradient(135deg, #f472b6, #a78bfa); }
.icon-badge.sky { background: linear-gradient(135deg, #38bdf8, #6366f1); }
.icon-badge svg { width: 24px; height: 24px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px 24px; }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-grad); color: #fff; font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .trust { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px; }
.checklist svg { width: 24px; height: 24px; flex: none; color: var(--ok); margin-top: 2px; }
.checklist b { display: block; }
.checklist span { color: var(--muted); font-size: .95rem; }
.disclaimer { margin-top: 28px; border-radius: 18px; padding: 18px 20px; background: color-mix(in srgb, var(--star) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--star) 50%, var(--border)); font-size: .95rem; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 4px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); }

.final-cta { text-align: center; }
.final-cta .box { background: var(--brand-grad); color: #fff; border-radius: 32px; padding: 56px 24px; position: relative; overflow: hidden; }
.final-cta .box img { width: 96px; height: 96px; border-radius: 26px; margin: 0 auto 20px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.4); }
.final-cta p { opacity: .92; max-width: 34em; margin: 0 auto 26px; font-size: 1.1rem; }
.final-cta .cta-row { justify-content: center; margin: 0; }
.final-cta .store-btn { background: #fff; color: #111018; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .site-footer .wrap { grid-template-columns: 1fr; } }
.site-footer h3 { color: var(--fg); font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--fg); }
.copyright { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 20px; font-size: .85rem; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; background: var(--hero-grad); padding: 48px 16px; }
.notfound img { width: 120px; height: 120px; border-radius: 30px; margin: 0 auto 20px; }
