/* Starlit Palm 2.0: một tệp kiểu cho trang chủ, chính sách, điều khoản, xóa dữ liệu và trang chuyển hướng
   (dựng bởi scripts/build-landing.mjs, scripts/build-legal.mjs). Màu của app 2.0 (agent_style.dart).
   Chữ Inter tự lưu ở /fonts: bản cắt Latin (WOFF2) từ assets/fonts/Inter-*.ttf của app, giấy phép OFL
   ở /fonts/Inter_LICENSE.txt; chữ Hindi dùng phông Devanagari của máy. Không tải gì từ bên ngoài. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/Inter-Light.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/Inter-Regular.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/Inter-Medium.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/Inter-SemiBold.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #0A0F1E;
  --surface: #182036;
  --inner: #232D48;
  --text: #ECEFF6;
  --muted: #9BA5BB;
  --gold: #E6C27A;
  --gold-hover: #EFD49E;
  --danger: #F2737F;
  --hair: rgba(236, 239, 246, .1);
  --hair-gold: rgba(230, 194, 122, .5);
  --radius: 20px;
  --gutter: 20px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Kohinoor Devanagari", sans-serif;
}
:lang(hi) { --sans: "Inter", "Noto Sans Devanagari", "Kohinoor Devanagari", "Nirmala UI", "Mangal", system-ui, -apple-system, Roboto, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
/* Phông Devanagari của máy trông nhỏ hơn Inter cùng cỡ: chữ Hindi lớn hơn một chút. */
body:lang(hi) { font-size: 17px; line-height: 1.75; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
strong, b { font-weight: 600; color: var(--text); }

a { color: inherit; text-decoration: underline; text-decoration-color: var(--hair-gold); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { text-decoration-color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; padding: 10px 14px; background: var(--surface); border-radius: 10px; }
.skip:focus { left: 12px; }

/* Thanh trên */
.top { border-bottom: 1px solid var(--hair); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 16px; letter-spacing: .01em; text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: 30px; }
.switch { font-size: 14px; color: var(--muted); text-decoration: none; padding: 8px 2px; }
.switch:hover { color: var(--text); }

/* Chữ nhỏ vàng trên tiêu đề: nét mảnh, không nền */
.eyebrow { color: var(--gold); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; line-height: 1.5; }
.eyebrow:lang(hi) { font-size: 14px; letter-spacing: 0; text-transform: none; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.6; }
.fine { color: var(--muted); font-size: 13px; line-height: 1.55; }
.fine:lang(hi) { font-size: 14px; }

/* Nút vàng duy nhất của mỗi màn */
.cta {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px;
  background: var(--gold); color: var(--bg); border-radius: 12px; font-weight: 600; font-size: 16px; line-height: 1.2;
  text-decoration: none; letter-spacing: .01em;
}
.cta:hover { background: var(--gold-hover); }
.cta:focus-visible { outline-color: var(--text); }

/* Trang chủ */
.hero { padding: 40px 0 72px; }
.hero .wrap { display: grid; gap: 48px; }
.hero h1 { margin: 18px 0 20px; font-weight: 300; font-size: 44px; line-height: 1.06; letter-spacing: -.025em; }
.hero h1:lang(hi) { font-weight: 400; font-size: 40px; line-height: 1.3; letter-spacing: 0; }
.hero .lead { max-width: 34em; }
.hero .actions { margin-top: 32px; display: grid; gap: 14px; justify-items: start; }
.portrait { width: 100%; max-width: 480px; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--hair); background: var(--surface); }
.portrait figcaption { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.portrait figcaption span:first-child { font-weight: 500; }
.portrait figcaption span:last-child { color: var(--muted); font-size: 14px; }

.section { padding: 72px 0; border-top: 1px solid var(--hair); }
.section h2 { margin: 14px 0 0; font-weight: 300; font-size: 32px; line-height: 1.15; letter-spacing: -.02em; max-width: 20em; }
.section h2:lang(hi) { font-weight: 400; font-size: 28px; line-height: 1.35; letter-spacing: 0; }
.section .intro { margin-top: 16px; max-width: 36em; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 22px; border-top: 1px solid var(--hair); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.steps h3 { margin: 10px 0 8px; font-size: 19px; font-weight: 500; line-height: 1.35; }
.steps p { color: var(--muted); }

.pricing { display: grid; gap: 40px; }
.price-card { background: var(--surface); border-radius: var(--radius); padding: 28px 24px; }
.price { display: flex; align-items: baseline; gap: 12px; }
.price b { font-size: 56px; line-height: 1; font-weight: 300; letter-spacing: -.03em; }
.price span { color: var(--muted); font-size: 15px; }
.price-card > p { margin-top: 14px; }
.points { list-style: none; padding: 0; margin: 24px 0 0; }
.points li { padding: 16px 0; border-top: 1px solid var(--hair); color: var(--muted); }
.points li strong { display: block; margin-bottom: 2px; font-weight: 500; }
.price-card .fine { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--hair); }

.nots { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 28px; }
.nots li { padding-top: 22px; border-top: 1px solid var(--hair); }
.nots h3 { font-size: 19px; font-weight: 500; line-height: 1.35; }
.nots p { margin-top: 6px; color: var(--muted); }

.faq { margin-top: 32px; max-width: 760px; border-bottom: 1px solid var(--hair); }
.faq details { border-top: 1px solid var(--hair); }
.faq summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 0; cursor: pointer;
  list-style: none; font-size: 17px; font-weight: 500; line-height: 1.45;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--muted); font-weight: 300; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }
.faq details > p + p { margin-top: -10px; }

/* Chân trang */
.foot { border-top: 1px solid var(--hair); padding: 40px 0 48px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.foot:lang(hi) { font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-bottom: 20px; font-size: 14px; }
.foot nav a { color: var(--text); text-decoration: none; }
.foot nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.foot p + p { margin-top: 6px; }

/* Chính sách, điều khoản, xóa dữ liệu */
.doc { max-width: 760px; padding-top: 48px; padding-bottom: 80px; }
.doc h1 { margin: 14px 0 8px; font-weight: 300; font-size: 38px; line-height: 1.12; letter-spacing: -.02em; }
.doc h1:lang(hi) { font-weight: 400; font-size: 34px; line-height: 1.3; letter-spacing: 0; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.doc p, .doc ul, .doc ol { margin: 0 0 16px; }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc li { margin: 8px 0; padding-left: 4px; }
.doc li::marker { color: var(--muted); }
.doc h2 { margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid var(--hair); font-size: 22px; font-weight: 500; line-height: 1.3; scroll-margin-top: 16px; }
.doc h2 .num { color: var(--muted); font-weight: 400; margin-right: .35em; font-variant-numeric: tabular-nums; }
.doc h3 { margin: 28px 0 10px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.doc .card { background: var(--surface); border-radius: 16px; padding: 20px 22px 6px; margin: 24px 0; }
.doc .card .label { font-weight: 600; margin-bottom: 10px; }
.doc .alert { background: transparent; border: 1px solid rgba(242, 115, 127, .55); padding-bottom: 4px; }
.doc .alert p { color: var(--text); }
.doc .alert strong { color: var(--danger); }
.doc .toc ol { columns: 2 220px; column-gap: 32px; padding-left: 1.4em; }
.doc .toc li { margin: 0 0 8px; break-inside: avoid; }
.doc .toc a { text-decoration: none; }
.doc .toc a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.doc .steps-card ol { padding-left: 1.3em; }
.doc .steps-card li { margin: 0 0 10px; }

/* Trang chuyển hướng (/get) */
.moved { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px var(--gutter); }
.moved h1 { margin: 18px 0 12px; font-weight: 300; font-size: 32px; line-height: 1.2; letter-spacing: -.01em; }
.moved p { color: var(--muted); }
.moved .cta { margin-top: 28px; }

@media (min-width: 720px) {
  :root { --gutter: 32px; }
  body { font-size: 17px; }
  body:lang(hi) { font-size: 18px; }
  .hero { padding: 64px 0 96px; }
  .hero h1 { font-size: 64px; }
  .hero h1:lang(hi) { font-size: 54px; }
  .section { padding: 96px 0; }
  .section h2 { font-size: 40px; }
  .section h2:lang(hi) { font-size: 34px; }
  .steps, .nots { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .price-card { padding: 36px 36px 30px; }
  .doc h1 { font-size: 48px; }
  .doc h1:lang(hi) { font-size: 42px; }
}
@media (min-width: 1024px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 72px; }
  .hero h1 { font-size: 76px; }
  .hero h1:lang(hi) { font-size: 60px; }
  .portrait { justify-self: end; max-width: 440px; }
  .pricing { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; }
}
