/* Giữ Lửa website: the app's palette (src/theme/colors.ts) and type (Lora + Be Vietnam Pro). */
:root {
  --surface: #eaeeec;
  --surface-low: #f8f9f7;
  --surface-high: #d9e0dd;
  --ink: #17222e;
  --ink-soft: #55656e;
  --line: #c9d2ce;
  --ember: #a8470f;
  --flame: #e4772e;
  --flame-soft: #fce4cf;
  --night: #111925;
  --gold: #ecd29a;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 16px/1.6 var(--sans); }
a { color: var(--ember); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding-top: 18px; padding-bottom: 18px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 500 20px/1 var(--serif); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; gap: 18px; font-size: 14px; flex-wrap: wrap; justify-content: flex-end; }
.top nav a { color: var(--ink-soft); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 72px; }
.eyebrow { color: var(--ember); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font: 400 clamp(36px, 5.4vw, 58px)/1.12 var(--serif); margin: 0 0 18px; letter-spacing: -0.01em; }
.lede { font-size: 18px; color: var(--ink-soft); margin: 0 0 28px; max-width: 34em; }
.stores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 18px 0 14px; border-radius: 12px;
  background: #000; color: #fff; text-decoration: none; box-shadow: inset 0 0 0 1px #a6a6a6; line-height: 1.05; }
.store span { display: flex; flex-direction: column; font: 600 21px/1.05 -apple-system, 'SF Pro Display', 'Be Vietnam Pro', sans-serif; letter-spacing: -0.02em; }
.store small { font-size: 11px; font-weight: 400; letter-spacing: 0.01em; margin-bottom: 2px; }
.store .mark { flex: none; }
.store[aria-disabled='true'] { pointer-events: none; cursor: default; }
.soon { font-size: 14px; color: var(--ink-soft); margin-top: 12px; }
.showcase { justify-self: center; width: min(520px, 100%); text-align: center; }
/* Phones fanned out: the one in front, one on each side tilted back, the rest waiting behind. */
.stage { position: relative; aspect-ratio: 100 / 132; }
.phone { position: absolute; left: 50%; top: 0; width: 58%; aspect-ratio: 1100 / 2392; padding: 3.2%; border-radius: 15% / 7%;
  background: #0b0f14; box-shadow: inset 0 0 0 2px #3a4452, inset 0 0 0 4px #0b0f14, 0 0 0 1px #59636f,
  0 40px 70px -28px rgba(17, 25, 37, 0.55); cursor: pointer;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.7s, filter 0.7s; }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 12.4% / 5.8%; display: block; }
.phone::before, .phone::after { content: ''; position: absolute; width: 3px; background: #59636f; border-radius: 2px; }
.phone::before { right: -3px; top: 25%; height: 13%; }
.phone::after { left: -3px; top: 20%; height: 18%; box-shadow: 0 -40px 0 -1px #59636f; }
.phone[data-pos='0'] { transform: translateX(-50%); z-index: 3; cursor: default; }
.phone[data-pos='1'] { transform: translateX(-4%) translateY(5%) scale(0.84) rotate(6deg); z-index: 2; filter: brightness(0.94); }
.phone[data-pos='-1'] { transform: translateX(-96%) translateY(5%) scale(0.84) rotate(-6deg); z-index: 2; filter: brightness(0.94); }
.phone[data-pos='2'], .phone[data-pos='-2'] { transform: translateX(-50%) translateY(8%) scale(0.7); z-index: 1; opacity: 0; pointer-events: none; }
.caption { margin: 22px 0 10px; min-height: 3em; color: var(--ink-soft); font-size: 15px; }
.dots { display: flex; gap: 8px; justify-content: center; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: var(--line); cursor: pointer; transition: width 0.3s, background 0.3s; }
.dots button[aria-current='true'] { width: 22px; background: var(--flame); }
@media (prefers-reduced-motion: reduce) { .phone { transition: none; } }

/* Sections */
section { padding: 64px 0; }
section.alt { background: var(--surface-low); }
h2 { font: 400 clamp(28px, 3.6vw, 38px)/1.2 var(--serif); margin: 0 0 12px; }
.sub { color: var(--ink-soft); max-width: 40em; margin: 0 0 36px; font-size: 17px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border-radius: 22px; padding: 22px; }
section.alt .feature { background: #fff; }
.feature .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--flame-soft); color: var(--ember); display: grid; place-items: center; margin-bottom: 14px; }
.feature h3 { font: 500 18px/1.35 var(--serif); margin: 0 0 6px; }
.feature p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.paper { background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 20px 40px -24px rgba(17, 25, 37, 0.35); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.checks li::before { content: ''; position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--flame-soft); box-shadow: inset 0 0 0 4px var(--flame); }
.checks b { color: var(--ink); font-weight: 500; }

.promise { background: var(--night); color: #f4f7f5; border-radius: 28px; padding: 40px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.promise h2 { color: #fff; }
.promise p { color: #c4ccd0; margin: 0; }
.promise img { width: 88px; }

footer.site { padding: 36px 0 48px; color: var(--ink-soft); font-size: 14px; border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { color: var(--ink-soft); }

/* Legal pages */
.doc { max-width: 700px; margin: 0 auto; padding: 24px 20px 80px; }
.doc h1 { font-size: clamp(30px, 4.4vw, 40px); margin-bottom: 6px; }
.doc .meta { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.doc h2 { font-size: 21px; margin: 34px 0 6px; font-family: var(--sans); font-weight: 600; }
.doc p { margin: 0; color: #3a4a55; white-space: pre-line; }
.langs { display: flex; gap: 14px; font-size: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.langs a[aria-current='page'] { color: var(--ink); text-decoration: none; font-weight: 600; }

/* Join + share pages */
.center { max-width: 560px; margin: 0 auto; padding: 24px 20px 64px; text-align: center; }
.center h1 { font-size: clamp(28px, 6vw, 38px); }
.code { display: inline-block; font: 600 30px/1 var(--sans); letter-spacing: 0.12em; background: #fff; border-radius: 16px; padding: 16px 22px; margin: 8px 0 22px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 26px; background: var(--flame); color: var(--night); text-decoration: none; font-weight: 600; font-size: 16px; border: 0; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.steps { text-align: left; background: var(--surface-low); border-radius: 20px; padding: 18px 22px; margin: 26px 0; color: var(--ink-soft); }
.steps ol { margin: 6px 0 0; padding-left: 20px; }
.card-page { max-width: 640px; margin: 0 auto; padding: 8px 16px 56px; }
.card-page .shot { border-radius: 12px; box-shadow: 0 24px 48px -28px rgba(17, 25, 37, 0.5); background: #fff; }
.card-text { background: #fff; border-radius: 18px; padding: 22px; margin-top: 18px; text-align: center; }
.card-text p { margin: 4px 0; }
.card-text .k-heading, .card-text .k-title { font: 400 26px/1.3 var(--serif); margin-bottom: 8px; }
.card-text .k-name { font: 500 22px/1.35 var(--serif); }
.card-text .k-field, .card-text .k-para, .card-text .k-when, .card-text .k-detail { text-align: left; }
.card-text .lbl { color: var(--ink-soft); }
.card-text .k-note, .card-text .k-message { font-style: italic; color: var(--ink-soft); }
.card-text .k-sign, .card-text .k-closing, .card-text .k-host { margin-top: 12px; font-weight: 600; }
.made { margin-top: 30px; padding: 20px; border-radius: 18px; background: var(--surface-low); display: flex; gap: 14px; align-items: center; text-align: left; font-size: 15px; color: var(--ink-soft); }
.made img { width: 48px; height: 48px; border-radius: 12px; }
.made b { color: var(--ink); }

@media (max-width: 820px) {
  .hero, .split { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding-top: 16px; }
  .grid { grid-template-columns: 1fr; }
  .promise { grid-template-columns: 1fr; padding: 28px; }
  .top nav .hide-sm { display: none; }
}

body { overflow-x: clip; }
