:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5f5b53;
  --line: #e4e0d8;
  --accent: #0f6b5c;
  --accent-ink: #ffffff;
  --accent-soft: #e3f1ee;
  --warn: #8a5a00;
  --warn-soft: #fff4dc;
  --danger: #a32020;
  --radius: 12px;
  --max: 1040px;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141412; --surface: #1d1c1a; --text: #f1eee8; --muted: #b2ada3;
    --line: #34322e; --accent: #4cc3a9; --accent-ink: #0b1f1a; --accent-soft: #19332d;
    --warn: #f0c060; --warn-soft: #3a2f16; --danger: #ff8a80; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141412; --surface: #1d1c1a; --text: #f1eee8; --muted: #b2ada3;
  --line: #34322e; --accent: #4cc3a9; --accent-ink: #0b1f1a; --accent-soft: #19332d;
  --warn: #f0c060; --warn-soft: #3a2f16; --danger: #ff8a80; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.6; font-size: 17px; }
img, svg { max-width: 100%; }
a { color: var(--accent); }

/* bilingual: show only the active language */
html[data-lang="vi"] [data-l="en"], html[data-lang="en"] [data-l="vi"] { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
header.top { border-bottom: 1px solid var(--line); background: var(--surface); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { font-weight: 700; letter-spacing: -0.01em; text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 8px; }
.brand .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); display: inline-block; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; color: var(--muted); padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.hero { padding: 64px 0 40px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; max-width: 20ch; }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 60ch; margin: 0 0 28px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 12px; }
.cta { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 10px; padding: 14px 22px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.cta:hover { filter: brightness(1.08); }
.cta[disabled] { opacity: .55; cursor: progress; }
.note { font-size: 14px; color: var(--muted); }

section { padding: 40px 0; }
section h2 { font-size: 26px; letter-spacing: -0.01em; margin: 0 0 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.compare th, .compare td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { font-weight: 600; background: var(--accent-soft); }
.table-scroll { overflow-x: auto; }

.status { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius); padding: 12px 16px; font-size: 15px; }

/* waitlist form */
form.waitlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; max-width: 640px; }
form.waitlist label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
form.waitlist .hint { font-weight: 400; color: var(--muted); font-size: 14px; }
input[type=email], input[type=text], input[type=number], select, textarea {
  font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; width: 100%;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
textarea { min-height: 80px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
fieldset legend { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.radio { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; }
.radio input { margin-top: 5px; }
.consent { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14px !important; color: var(--muted); }
.consent input { margin-top: 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 15px; min-height: 1.4em; }
.form-msg.ok { color: var(--accent); font-weight: 600; }
.form-msg.err { color: var(--danger); }

details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 10px; }
details summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; margin-top: 40px; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 24px; }
  form.waitlist { padding: 18px; }
}
