/* ==========================================================
   Dental Clinic — Landing page
   ========================================================== */

:root {
  /* Màu lấy từ logo portal: xanh ngọc #4fc3d0, navy #1c3462 */
  --brand: #0f7480;
  --brand-600: #0e8a97;
  --brand-400: #4fc3d0;
  --brand-50: #eef9fb;
  --navy: #1c3462;
  --accent: #f59e0b;

  --bg: #ffffff;
  --bg-soft: #f5f9fb;
  --surface: #ffffff;
  --text: #13213a;
  --muted: #5a6879;
  --border: #e1e9ef;
  --shadow: 0 10px 30px -12px rgba(28, 52, 98, .18);
  --shadow-lg: 0 30px 60px -20px rgba(28, 52, 98, .28);

  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1160px;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #4fc3d0;
    --brand-600: #3ab0be;
    --brand-400: #86dbe4;
    --brand-50: #0c2430;
    --navy: #0f1b33;
    --bg: #0a121b;
    --bg-soft: #0e1823;
    --surface: #12202d;
    --text: #e6eef5;
    --muted: #93a4b5;
    --border: #233649;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  background: var(--brand); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: 11px 20px; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px var(--brand); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

@media (prefers-color-scheme: dark) {
  .btn-primary, .mock-pill { color: #06232b; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 20px -14px rgba(0,0,0,.25); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand picture { display: contents; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; }
.brand-logo { display: block; height: 32px; width: auto; }
.footer-brand .brand-logo { height: 28px; }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-nav ul a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color .15s; }
.main-nav ul a:hover, .main-nav ul a.is-active { color: var(--brand); }

.main-nav { margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 20px; }

.lang-switch {
  display: inline-flex; padding: 3px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border);
}
.lang-switch a {
  display: inline-block; border: 0; text-decoration: none; background: transparent; color: var(--muted); cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="page"] { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .lang-switch a[aria-current="page"] { color: #06232b; } }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-actions { margin-left: auto; }
  .main-nav {
    position: absolute; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px 20px 24px; background: var(--bg); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav ul a { display: block; padding: 10px 4px; font-size: 16px; }
}

/* ---------- Generic section ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 96px;
  background:
    radial-gradient(900px 480px at 85% 10%, color-mix(in srgb, var(--brand-400) 22%, transparent), transparent 65%),
    radial-gradient(600px 400px at 0% 90%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    var(--bg);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; margin-bottom: 20px; }
.hero .hl {
  color: var(--brand);
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--brand-400) 30%, transparent) 62%);
}
.lead { font-size: 18px; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); font-size: 15px; }
.hero-points li { position: relative; padding-left: 28px; }
.hero-points li::before, .checks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e8a97' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* App mockup */
.hero-visual { position: relative; }
.mock {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.mock-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.mock-bar .dot:nth-child(2) { background: #fbbf24; }
.mock-bar .dot:nth-child(3) { background: #34d399; }
.mock-url { margin-left: 12px; padding: 3px 12px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 12px; border: 1px solid var(--border); }
.mock-body { display: grid; grid-template-columns: 56px 1fr; min-height: 340px; }
.mock-side { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 0; background: var(--bg-soft); border-right: 1px solid var(--border); }
.mock-logo { width: 28px; height: 28px; background: url("../img/logo.png") center / contain no-repeat; margin-bottom: 8px; }
@media (prefers-color-scheme: dark) { .mock-logo { background-image: url("../img/logo-dark.png"); } }
.mock-side i { width: 22px; height: 6px; border-radius: 4px; background: var(--border); }
.mock-side i.active { background: var(--brand); }
.mock-main { padding: 18px; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mock-head b { display: block; font-size: 15px; }
.mock-head small { color: var(--muted); }
.mock-pill { padding: 6px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; font-size: 12px; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.mock-kpis div { padding: 10px 12px; border-radius: 12px; background: var(--brand-50); }
.mock-kpis small { display: block; color: var(--muted); font-size: 11px; }
.mock-kpis b { font-size: 18px; color: var(--brand); }
.mock-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mock-list li {
  display: grid; grid-template-columns: 44px 32px 1fr auto; align-items: center; gap: 10px;
  padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px;
}
.mock-list time { color: var(--muted); font-weight: 600; font-size: 12px; }
.mock-list b { display: block; font-size: 13px; }
.mock-list small { color: var(--muted); font-size: 11.5px; }
.tag { font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.tag.done { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.tag.now { color: var(--brand-600); background: color-mix(in srgb, var(--brand-600) 16%, transparent); }
.tag.wait { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }

.av {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.av1 { background: #0f7480; } .av2 { background: #6366f1; } .av3 { background: #f59e0b; } .av4 { background: #ec4899; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); font-size: 13px; animation: float 6s ease-in-out infinite;
}
.float-card b { display: block; }
.float-card small { color: var(--muted); }
.fc-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); font-weight: 800; }
.fc-up { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--warn); }
.fc-1 { left: -28px; bottom: 36px; }
.fc-2 { right: -18px; top: -22px; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 48px; }
  .fc-1 { left: 8px; bottom: -44px; }
  .fc-2 { right: 8px; }
}
@media (max-width: 520px) {
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .mock-list li { grid-template-columns: 40px 1fr auto; }
  .mock-list .av { display: none; }
  .fc-2 { display: none; }
}

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--border); background: var(--bg-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 32px 16px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { display: block; font-size: clamp(28px, 3vw, 38px); font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

/* ---------- Pains ---------- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain {
  padding: 28px; border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--border); border-top: 4px solid var(--accent);
}
.pain h3 { font-size: 19px; }
.pain p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .pain-grid { grid-template-columns: 1fr; } }

/* ---------- Features ---------- */
.features { background: var(--bg-soft); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.feature h3 { font-size: 17px; margin-top: 16px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }
.f-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50); }
.f-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1040px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- Spotlight / Odontogram ---------- */
.spotlight-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.spotlight h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
.spotlight-copy > p { color: var(--muted); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 30px; }

.odonto {
  padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.odonto-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.odonto-head small { color: var(--muted); }
.odonto-row { display: grid; grid-template-columns: repeat(16, 1fr); gap: 4px; }
.odonto-row[data-jaw="upper"] { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 2px dashed var(--border); }
.tooth {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 0; border: 0; background: none; cursor: pointer; color: var(--muted); font: inherit; font-size: 10.5px;
}
.tooth svg { width: 100%; max-width: 30px; height: auto; transition: transform .15s; }
.tooth svg path { fill: var(--surface); stroke: color-mix(in srgb, var(--text) 35%, transparent); stroke-width: 1.4; }
.tooth[data-state="caries"] svg path { fill: #fecaca; stroke: var(--danger); }
.tooth[data-state="filled"] svg path { fill: #bfdbfe; stroke: #2563eb; }
.tooth[data-state="missing"] svg { opacity: .25; }
.tooth[data-state="missing"] svg path { stroke-dasharray: 3 3; }
.tooth:hover svg { transform: scale(1.12); }
.tooth.is-selected { color: var(--brand); font-weight: 700; }
.tooth.is-selected svg path { stroke: var(--brand); stroke-width: 2.4; }
[data-jaw="lower"] .tooth { flex-direction: column-reverse; }
[data-jaw="lower"] .tooth svg { transform: rotate(180deg); }
[data-jaw="lower"] .tooth:hover svg { transform: rotate(180deg) scale(1.12); }

.odonto-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.odonto-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid; }
.lg.healthy { background: var(--surface); border-color: var(--muted); }
.lg.caries { background: #fecaca; border-color: var(--danger); }
.lg.filled { background: #bfdbfe; border-color: #2563eb; }
.lg.missing { border-style: dashed; border-color: var(--muted); }
.odonto-info {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--brand-50);
  color: var(--text); font-size: 14px; font-weight: 500;
}
@media (max-width: 980px) { .spotlight-inner { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .odonto { padding: 16px; }
  .odonto-row { gap: 2px; }
  .tooth { font-size: 9px; }
}

/* ---------- Workflow ---------- */
.workflow { background: var(--bg-soft); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: none; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step-no {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 18px; margin-bottom: 16px;
}
.step h3 { font-size: 18px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50px; right: -20px; width: 20px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand) 0 4px, transparent 4px 8px);
}
@media (prefers-color-scheme: dark) { .step-no { color: #06232b; } }
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex; margin-top: 8px; padding: 4px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--border);
}
.billing-toggle button {
  font: inherit; font-size: 14px; font-weight: 600; padding: 8px 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); cursor: pointer; transition: background .2s, color .2s;
}
.billing-toggle button.is-active { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.billing-toggle em { font-style: normal; color: var(--ok); margin-left: 4px; }

.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 32px 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
}
.plan h3 { font-size: 20px; margin-bottom: 4px; }
.plan-desc { color: var(--muted); font-size: 15px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 8px 0 20px; }
.price b { font-size: 36px; font-weight: 800; letter-spacing: -.02em; }
.price span { color: var(--muted); font-size: 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; flex: 1; }
.plan li { position: relative; padding-left: 26px; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.plan-featured { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: 999px; background: var(--accent); color: #3b2300;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
@media (max-width: 960px) {
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan-featured { transform: none; }
}

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote {
  margin: 0; padding: 28px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: space-between; gap: 20px;
}
.quote blockquote { margin: 0; font-size: 16px; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote .av { width: 42px; height: 42px; font-size: 13px; }
.quote figcaption b { display: block; }
.quote figcaption small { color: var(--muted); }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* ---------- FAQ ---------- */
.faq { background: var(--bg-soft); }
.faq-inner { max-width: 820px; }
.faq-list { display: grid; gap: 12px; }
.faq details { border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 24px; font-weight: 400; color: var(--brand); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  color: #fff;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(79, 195, 208, .35), transparent 60%),
    linear-gradient(135deg, #0f7480, #1c3462 70%);
}
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; }
.cta-copy > p { color: rgba(255,255,255,.82); font-size: 17px; }
.checks-light li::before { background-color: rgba(255,255,255,.16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }

.demo-form {
  padding: 32px; border-radius: 20px; background: var(--surface); color: var(--text);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); display: grid; gap: 16px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field label span[aria-hidden] { color: var(--danger); } /* chỉ dấu * bắt buộc */
.field input, .field select {
  font: inherit; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.field input[aria-invalid="true"] { border-color: var(--danger); }
.error { color: var(--danger); font-size: 13px; min-height: 0; }
.error:empty { display: none; }
.form-note { margin: 0; font-size: 14px; text-align: center; }
.form-note.is-success { color: var(--ok); font-weight: 600; }
.form-note.is-error { color: var(--danger); font-weight: 600; }
.demo-form button[aria-busy="true"] { opacity: .7; cursor: progress; }
/* Ô bẫy bot (honeypot): người dùng không thấy, bot điền vào thì bị loại */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cta .btn-primary { background: var(--brand); }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .demo-form { padding: 22px; } }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 24px; border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 320px; }
.footer-col { display: grid; gap: 8px; align-content: start; font-size: 15px; }
.footer-col h4 { font-size: 15px; margin-bottom: 4px; }
.footer-col a, .footer-col span { color: var(--muted); }
.footer-col a:hover { color: var(--brand); }

/* ---------- Zalo ---------- */
.cta-zalo { margin-top: 20px; }
.cta-zalo a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cta-zalo a:hover { color: var(--brand-400); }
.zalo-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px;
  border-radius: 999px; background: #0068ff; color: #fff; font-weight: 700; font-size: 15px; text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(0, 70, 180, .55);
  transition: transform .15s ease, box-shadow .2s ease;
}
.zalo-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px rgba(0, 70, 180, .6); }
.zalo-fab svg { width: 22px; height: 22px; fill: currentColor; }
@media (max-width: 480px) {
  .zalo-fab { right: 16px; bottom: 16px; padding: 14px; }
  .zalo-fab span { display: none; } /* chỉ còn icon; tên đọc qua aria-label */
}
@media (prefers-reduced-motion: reduce) { .zalo-fab { transition: none; } .zalo-fab:hover { transform: none; } }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted);
}
.to-top { font-size: 14px; }
.to-top:hover { color: var(--brand); }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
