/* =====================================================================
   asklena.co — Lena landing
   Direction C "Tối giản tin cậy" (Clean minimal)
   One warm accent (Americano amber) over cream + ink. Mobile-first.
   ===================================================================== */

:root {
  --bg:        #faf7f2;   /* cream page */
  --card:      #ffffff;   /* cards, inputs, polaroids */
  --ink:       #2a2420;   /* primary text */
  --muted:     #8a7f72;   /* secondary text, captions */
  --muted-2:   #a79a8a;   /* placeholder */
  --accent:    #a9683a;   /* THE single warm accent */
  --accent-soft:#e9d9c7;  /* soft amber */
  --hairline:  #ece4d8;   /* rules, borders */
  --hairline-2:#f0e9dd;
  --mini-fill: #efe7da;

  --sys: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --maxw: 760px;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sys);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 28px); }
.wrap-wide { max-width: 1040px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 28px); }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); 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; }
}

/* =====================================================================
   Header
   ===================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(1.2) blur(8px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.site-header .wrap-wide {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px;
}
.brand { font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { display: block; flex: 0 0 auto; }
.brand .dot { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--ink); text-decoration: none; }
.lang-toggle {
  font-family: var(--mono); font-size: 12px; color: var(--muted);
  border: 1px solid var(--hairline); background: var(--card);
  border-radius: 999px; padding: 4px 4px; display: inline-flex; gap: 2px;
}
.lang-toggle button {
  border: 0; background: transparent; color: var(--muted-2); cursor: pointer;
  font: inherit; padding: 2px 9px; border-radius: 999px;
}
.lang-toggle button.active { background: var(--accent); color: #fff; }
.nav-hide-sm { }
@media (max-width: 560px) { .nav-hide-sm { display: none; } }

/* =====================================================================
   Hero
   ===================================================================== */
.hero { padding: clamp(40px, 7vw, 76px) 0 clamp(28px, 5vw, 48px); }
.kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 7px;
}
.hero-line {
  font-size: clamp(28px, 5.4vw, 40px); font-weight: 600;
  letter-spacing: -0.025em; line-height: 1.1; margin: 16px 0 10px;
  max-width: 18ch;
}
.hero-line b { font-weight: 700; color: var(--accent); }
.hero-sub { color: var(--muted); font-size: clamp(15px, 2vw, 17px); max-width: 42ch; }

/* browser frame */
.browser {
  margin-top: clamp(22px, 4vw, 34px);
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 20px 50px -26px rgba(80,60,40,.3), 0 2px 6px rgba(80,60,40,.06);
}
.browser .bar {
  height: 36px; display: flex; align-items: center; gap: 7px; padding: 0 12px;
  background: var(--bg); border-bottom: 1px solid var(--hairline-2);
  font-family: var(--mono); font-size: 11px;
}
.browser .dot { width: 11px; height: 11px; border-radius: 50%; background: #e5dccd; }
.browser .dot.r { background: #dcae8e; }
.browser .urlbar {
  flex: 1; height: 21px; display: flex; align-items: center; gap: 5px;
  background: var(--card); border: 1px solid var(--hairline-2); border-radius: 6px;
  padding: 0 9px; color: var(--muted); font-size: 11px; letter-spacing: .02em;
}
.viewport { padding: clamp(20px, 4vw, 34px) clamp(18px, 4vw, 30px) clamp(26px, 5vw, 38px); }

/* input box */
.inputbox {
  display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid #e3d7c6; border-radius: 13px;
  padding: 13px 15px; box-shadow: 0 2px 10px -6px rgba(120,90,50,.2);
}
.inputbox .chev { color: var(--accent); font-weight: 700; font-size: 17px; }
.inputbox input {
  flex: 1; border: 0; background: transparent; outline: none;
  font: inherit; font-size: 15px; color: var(--ink);
  caret-color: var(--accent);
}
.inputbox input::placeholder { color: var(--muted-2); }
.inputbox .go {
  border: 0; background: var(--accent-soft); color: var(--accent);
  font: inherit; font-weight: 600; font-size: 13px; cursor: pointer;
  border-radius: 8px; padding: 6px 12px;
}

/* polaroid */
.pola-stage {
  margin: clamp(22px, 4vw, 30px) 0 clamp(18px, 3vw, 24px);
  display: flex; justify-content: center;
}
.polaroid {
  background: var(--card); border: 1px solid #f2ece1; border-radius: 6px;
  padding: 12px 12px 14px; width: 260px; max-width: 100%;
  box-shadow: 0 16px 36px -18px rgba(90,65,40,.4);
  transition: transform .4s ease;
}
.polaroid .photo {
  border-radius: 4px; overflow: hidden; background: var(--bg);
  aspect-ratio: 4 / 3;
}
/* real screenshot inside a Polaroid */
.polaroid .photo img.pola-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.miniapp { height: 100%; display: flex; flex-direction: column; transition: filter 1.1s ease, opacity 1.1s ease; }
.miniapp.developing { filter: blur(7px) saturate(.5); opacity: .55; }
.miniapp.sharp { filter: none; opacity: 1; }
.mini-top {
  display: flex; align-items: center; gap: 7px;
  background: var(--bg); border-bottom: 1px solid var(--hairline-2);
  padding: 7px 9px; font-size: 11px; font-weight: 600;
}
.mini-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.mini-body { flex: 1; background: var(--card); padding: 9px; display: flex; flex-direction: column; gap: 6px; }
.mini-row { height: 9px; border-radius: 3px; background: var(--mini-fill); }
.mini-row.sh { width: 60%; }
.mini-btn {
  margin-top: auto; align-self: flex-start;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 600;
  border-radius: 5px; padding: 5px 10px;
}
.pola-cap {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px; font-size: 12px; color: var(--muted);
}
.state-tag { font-family: var(--mono); font-size: 10px; border-radius: 999px; padding: 2px 8px; }
.state-tag.ing  { background: #f1ece3; color: var(--muted-2); }
.state-tag.done { background: #f3e7da; color: var(--accent); }

/* cta */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  border: 0; font: inherit; font-weight: 600; border-radius: 12px;
  padding: 13px 20px; font-size: 15px;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 10px 24px -12px rgba(169,104,58,.7);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -12px rgba(169,104,58,.8); text-decoration: none; }
.btn-primary .os { font-family: var(--mono); font-weight: 500; font-size: 12px; opacity: .85; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--hairline); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.finewidth { margin-top: 14px; color: var(--muted); font-size: 13px; }
.finewidth b { color: var(--accent); font-weight: 600; }

.cheeky {
  margin-top: 18px; font-size: 13px; color: var(--muted);
  display: flex; align-items: center; gap: 8px; min-height: 1.3em;
}
.cheeky .lock { color: var(--accent); }

/* =====================================================================
   Sections
   ===================================================================== */
section { padding: clamp(44px, 8vw, 84px) 0; }
.section-head { max-width: 46ch; margin-bottom: clamp(22px, 4vw, 34px); }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h2.title { font-size: clamp(22px, 3.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; margin: 10px 0 8px; }
.section-head p { color: var(--muted); }

.divider { height: 1px; background: var(--hairline); border: 0; }

/* value cards */
.values { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 620px) { .values { grid-template-columns: 1fr 1fr; } }
.value {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 12px;
  padding: 20px;
}
.value .ic { font-size: 20px; }
.value h3 { font-size: 16px; font-weight: 600; margin: 10px 0 5px; }
.value p { color: var(--muted); font-size: 14px; }

/* how it works */
.steps { display: grid; grid-template-columns: 1fr; gap: 16px; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; background: var(--card); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 22px 20px;
}
.step .n {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--accent); background: var(--accent-soft);
  width: 26px; height: 26px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 16px; font-weight: 600; margin: 12px 0 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* polaroid wall */
.wall { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 560px) { .wall { grid-template-columns: 1fr 1fr; } }
@media (min-width: 880px) { .wall { grid-template-columns: repeat(3, 1fr); } }
.wall .polaroid { width: auto; transition: transform .25s ease; }
.wall .polaroid:hover { transform: translateY(-4px) rotate(-.5deg); }
.wall .pola-meta { margin-top: 10px; }
.wall .pola-meta .app { font-size: 13px; font-weight: 600; }
.wall .pola-meta .time { font-size: 12px; color: var(--muted-2); font-family: var(--mono); }
.wall .pola-meta .quip { font-size: 12px; color: var(--muted); margin-top: 6px; font-style: italic; }
.wall-invite { text-align: center; margin-top: clamp(22px, 4vw, 30px); color: var(--muted); font-size: 14px; }

/* pricing */
.price-card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px;
  padding: clamp(26px, 5vw, 40px); text-align: center;
}
.price-big { font-size: clamp(28px, 5vw, 40px); font-weight: 600; letter-spacing: -0.02em; }
.price-big b { color: var(--accent); }
.price-sub { color: var(--muted); margin-top: 8px; }
.price-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.chip {
  background: var(--card); color: var(--accent); border: 1px solid var(--accent-soft);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 600;
}
.vn-only { margin-top: 22px; }
[data-lang="en"] .vn-only { display: none; }

/* manifesto teaser */
.manifesto-teaser {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px;
  padding: clamp(28px, 5vw, 44px); text-align: center;
}
.manifesto-teaser .quote { font-family: var(--serif); font-size: clamp(20px, 3.2vw, 27px); line-height: 1.3; letter-spacing: -0.01em; }
.manifesto-teaser p { color: var(--muted); margin: 14px 0 20px; }

/* download */
.download { text-align: center; }
.download .btn-row { justify-content: center; margin-top: 20px; }
.os-note { margin-top: 14px; color: var(--muted); font-size: 13px; }

.dl-picker { display: flex; justify-content: center; margin-top: 22px; }
.dl-version {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--muted);
}
.dl-version select {
  font: inherit; font-size: 14px; color: var(--ink);
  background: var(--card); border: 1px solid var(--hairline);
  border-radius: 10px; padding: 8px 12px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5L6 8l3-3.5' stroke='%23a9683a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px;
}
.dl-version select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dl-grid {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-top: 16px;
}
.btn.dl.disabled {
  opacity: .4; cursor: not-allowed; pointer-events: auto;
  filter: grayscale(.5);
}
.btn.dl {
  flex-direction: column; align-items: center; gap: 2px; min-width: 150px;
  padding: 14px 20px;
}
.btn.dl .os { font-family: var(--mono); font-weight: 500; font-size: 12px; opacity: .8; }
.btn-ghost.dl .os { color: var(--muted); opacity: 1; }

/* install guide (unsigned build) */
.install-guide { margin-top: clamp(30px, 5vw, 44px); text-align: left; }
.install-why {
  max-width: 54ch; margin: 0 auto 20px; text-align: center;
  color: var(--muted); font-size: 14px;
}
.install-cols { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .install-cols { grid-template-columns: 1fr 1fr; } }
.install-card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 14px;
  padding: 22px 22px 20px;
}
.install-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.install-card ol { margin: 0 0 0 1.1em; padding: 0; }
.install-card li { color: var(--ink); font-size: 14px; margin-bottom: 9px; line-height: 1.55; }
.install-card li::marker { color: var(--accent); font-weight: 700; }
.install-card li b { font-weight: 600; }
.install-hint {
  margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--hairline);
  color: var(--muted); font-size: 13px; line-height: 1.6;
}
.install-hint code {
  display: inline-block; margin-top: 6px;
  font-family: var(--mono); font-size: 12px; color: var(--accent);
  background: var(--bg); border: 1px solid var(--hairline);
  border-radius: 6px; padding: 5px 9px; word-break: break-all;
}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { border-top: 1px solid var(--hairline); padding: 34px 0; color: var(--muted); font-size: 13px; }
.site-footer .wrap-wide { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); text-decoration: none; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* =====================================================================
   QR modal (VN only)
   ===================================================================== */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center;
  background: rgba(42,36,32,.42); backdrop-filter: blur(2px);
  padding: 20px;
}
.modal-backdrop.open { display: flex; }
.modal {
  background: var(--card); border-radius: 18px; padding: 28px;
  max-width: 360px; width: 100%; text-align: center;
  box-shadow: 0 30px 70px -24px rgba(60,40,20,.5);
}
.modal h3 { font-size: 19px; font-weight: 600; }
.modal p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.qr {
  margin: 20px auto; width: 180px; height: 180px; border-radius: 12px;
  border: 1px solid var(--hairline); display: grid; place-items: center;
  background: var(--bg);
}
.qr svg { width: 150px; height: 150px; }
.modal .close { margin-top: 8px; }

/* i18n visibility */
[data-i18n-vi], [data-i18n-en] { }

/* =====================================================================
   Manifesto page
   ===================================================================== */
.manifesto-page { padding: clamp(50px, 9vw, 96px) 0; }
.manifesto-page .kicker { margin-bottom: 18px; }
.manifesto-page h1 { font-family: var(--serif); font-size: clamp(30px, 6vw, 52px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
.manifesto-page .lede { font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); margin: 20px 0 36px; max-width: 54ch; }
.manifesto-page .stanza { font-family: var(--serif); font-size: clamp(19px, 2.8vw, 24px); line-height: 1.5; margin: 0 0 28px; max-width: 30ch; }
.manifesto-page .stanza b { color: var(--accent); font-weight: 600; }
.manifesto-page .sign { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 40px; }
.manifesto-page .cta-row { margin-top: 36px; }
