/* Lumi Diary landing — pastel watercolor. No build step. */
:root {
  --bg: #fffaf6;
  --bg-2: #f7f1fb;
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #ffffff;
  --ink: #3b3355;
  --ink-2: #6b6487;
  --line: rgba(91, 74, 158, .14);
  --lav: #c9bdf5;
  --lav-d: #7c67c9;
  --peach: #ffd3c2;
  --peach-d: #e98d6f;
  --mint: #c4ecdc;
  --mint-d: #4fae8c;
  --sky: #d6e9fb;
  --accent: #7c67c9;
  --accent-ink: #ffffff;
  --shadow: 0 10px 30px rgba(91, 74, 158, .12);
  --radius: 22px;
  --hill-1: #d9cff7;
  --hill-2: #f8d5c8;
  --hill-3: #cdeedf;
  --cloud: #ffffff;
  --sun: #ffe3b0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1930;
    --bg-2: #221e3a;
    --surface: rgba(42, 37, 68, .78);
    --surface-solid: #2a2544;
    --ink: #efeafd;
    --ink-2: #b8b0d8;
    --line: rgba(201, 189, 245, .16);
    --lav: #4b3f86;
    --lav-d: #b9a7f0;
    --peach: #6b4250;
    --peach-d: #f6b9a5;
    --mint: #2f5a4f;
    --mint-d: #9fdcc4;
    --sky: #2b3558;
    --accent: #b9a7f0;
    --accent-ink: #1c1930;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --hill-1: #3a3270;
    --hill-2: #5a3a52;
    --hill-3: #2c4f4a;
    --cloud: #3a345e;
    --sun: #f3e3b8;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--accent); }
h1, h2, h3, .hand { font-family: 'Patrick Hand', 'Caveat', 'Comic Sans MS', cursive; font-weight: 400; line-height: 1.15; }
h2 { font-size: clamp(2rem, 5vw, 2.8rem); margin: .2em 0 .4em; }
h3 { font-size: 1.5rem; margin: .4em 0 .2em; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.kicker { display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--lav-d); background: var(--surface); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; }
.lead { color: var(--ink-2); font-size: 1.08rem; max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: 'Patrick Hand', cursive; font-size: 1.55rem; white-space: nowrap; }
.brand svg { width: 34px; height: 34px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 700; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.lang-toggle { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; font: inherit; font-weight: 800; font-size: .85rem; padding: 6px 12px; cursor: pointer; }
.lang-toggle:hover { border-color: var(--lav-d); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
@media (max-width: 860px) { .nav-links { display: none; } }
@media (max-width: 400px) { .nav .btn-sm { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 0; background:
  radial-gradient(60% 50% at 15% 20%, color-mix(in srgb, var(--lav) 85%, transparent), transparent 70%),
  radial-gradient(50% 45% at 85% 15%, color-mix(in srgb, var(--peach) 85%, transparent), transparent 70%),
  radial-gradient(55% 50% at 60% 75%, color-mix(in srgb, var(--mint) 80%, transparent), transparent 70%),
  var(--bg); }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); margin: .3em 0 .25em; }
.hero h1 span { display: block; }
.hero h1 .l2 { color: var(--lav-d); }
.hero .lead { font-size: 1.15rem; }
.hero-note { color: var(--ink-2); font-size: .9rem; margin-top: 14px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.badge { display: inline-flex; align-items: center; gap: 10px; min-width: 190px; padding: 10px 18px; border-radius: 16px; background: #1d1a2e; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.12); }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge small { display: block; font-size: .7rem; opacity: .8; line-height: 1.1; }
.badge strong { display: block; font-size: 1.1rem; line-height: 1.2; }
.badge.soon { opacity: .6; cursor: default; }
@media (prefers-color-scheme: dark) { .badge { background: #0f0d1c; } }
.hero-art { position: relative; display: flex; justify-content: center; }
.phone { width: 270px; max-width: 78vw; aspect-ratio: 9 / 18.5; border-radius: 38px; background: var(--surface-solid); border: 8px solid #2b2546; box-shadow: 0 30px 60px rgba(91,74,158,.25); overflow: hidden; position: relative; }
.phone-screen { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 18px 14px; gap: 10px; background: linear-gradient(170deg, var(--lav) 0%, var(--peach) 55%, var(--mint) 100%); }
.ps-date { font-family: 'Patrick Hand', cursive; font-size: 1.5rem; color: var(--ink); }
.ps-mood { display: flex; gap: 6px; }
.ps-mood i { width: 26px; height: 26px; border-radius: 50%; display: block; background: var(--surface-solid); opacity: .7; }
.ps-mood i.on { opacity: 1; outline: 3px solid var(--lav-d); }
.ps-card { background: var(--surface); border-radius: 16px; padding: 12px; font-family: 'Caveat', cursive; font-size: 1.25rem; line-height: 1.25; color: var(--ink); }
.ps-line { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 14%, transparent); margin: 8px 0; }
.ps-lock { margin-top: auto; align-self: center; display: flex; gap: 8px; }
.ps-lock b { width: 12px; height: 12px; border-radius: 50%; background: var(--lav-d); display: block; }
.hero-landscape { position: relative; z-index: 1; margin-top: -40px; line-height: 0; }
.hero-landscape svg { width: 100%; height: auto; display: block; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .badges { justify-content: center; }
  .hero-landscape { margin-top: 0; }
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.alt { background: var(--bg-2); }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; }
.icon svg { width: 28px; height: 28px; }
.i-lav { background: var(--lav); color: var(--lav-d); }
.i-peach { background: var(--peach); color: var(--peach-d); }
.i-mint { background: var(--mint); color: var(--mint-d); }
.i-sky { background: var(--sky); color: var(--lav-d); }
@media (prefers-color-scheme: dark) { .i-lav, .i-peach, .i-mint, .i-sky { color: var(--ink); } }

/* Premium */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 32px; }
.plan { position: relative; text-align: center; }
.plan.best { border: 2px solid var(--accent); }
.plan .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 800; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.9rem; }
.perks { list-style: none; padding: 0; margin: 28px auto 0; max-width: 760px; display: grid; gap: 10px 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.perks li { padding-left: 28px; position: relative; color: var(--ink-2); }
.perks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--mint); box-shadow: inset 0 0 0 4px var(--mint-d); }
.fine { color: var(--ink-2); font-size: .85rem; margin-top: 20px; }

/* Privacy promise */
.promise { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: linear-gradient(135deg, var(--lav), var(--mint)); border-radius: 32px; padding: 36px; }
.promise svg { width: 120px; height: 120px; }
.promise p { color: var(--ink); }
@media (max-width: 640px) { .promise { grid-template-columns: 1fr; text-align: center; padding: 26px 18px; } .promise svg { margin: 0 auto; } }

/* FAQ */
.faq { max-width: 780px; margin: 28px auto 0; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 800; padding: 12px 0; list-style: none; position: relative; padding-right: 26px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; top: 8px; font-size: 1.4rem; color: var(--lav-d); }
details[open] summary::after { content: '–'; }
details p { margin: 0 0 14px; color: var(--ink-2); }

/* Download CTA */
.cta { text-align: center; background:
  radial-gradient(50% 60% at 20% 30%, var(--peach), transparent 70%),
  radial-gradient(50% 60% at 80% 70%, var(--lav), transparent 70%), var(--bg-2); }
.cta .badges { justify-content: center; }

/* Footer */
footer { padding: 40px 0 30px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--ink-2); text-decoration: none; font-weight: 700; }
footer a:hover { color: var(--ink); }

/* ---------- Doc pages (legal / support) ---------- */
.doc-hero { padding: 48px 0 24px; background:
  radial-gradient(50% 80% at 10% 0%, var(--lav), transparent 70%),
  radial-gradient(50% 80% at 90% 0%, var(--peach), transparent 70%), var(--bg); }
.doc-hero h1 { font-size: clamp(2.4rem, 7vw, 3.4rem); margin: .2em 0 .1em; }
.doc { max-width: 780px; margin: 0 auto; padding: 16px 16px 64px; }
.doc h2 { font-size: 1.8rem; margin-top: 1.4em; }
.doc h3 { font-size: 1.35rem; }
.doc p, .doc li { color: var(--ink); }
.doc ul, .doc ol { padding-left: 1.3em; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 12px 0; display: block; overflow-x: auto; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-2); }
.doc code { background: var(--bg-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--lav-d); border-radius: 14px; padding: 14px 18px; margin: 18px 0; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 8px; width: 34px; height: 34px; border-radius: 50%; background: var(--lav); color: var(--ink); display: grid; place-items: center; font-weight: 800; }
.vi-only { display: none; }
html[lang="vi"] .vi-only { display: block; }

/* 404 */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.nf h1 { font-size: clamp(4rem, 18vw, 8rem); margin: 0; color: var(--lav-d); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
:focus-visible { outline: 3px solid var(--lav-d); outline-offset: 2px; border-radius: 6px; }
