/* ============================================================
   Keel Growth Agency — shared stylesheet
   Palette: Tailwind Emerald + Slate
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --emerald-50:  #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
  --emerald-950: #022c22;

  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  --ink: var(--slate-900);
  --body: var(--slate-600);
  --line: var(--slate-200);
  --brand: var(--emerald-600);
  --brand-dark: var(--emerald-700);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 2px 6px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 12px 28px -12px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .05);
  --shadow-lg: 0 28px 60px -24px rgba(15, 23, 42, .28), 0 4px 12px rgba(15, 23, 42, .06);
  --shadow-brand: 0 14px 30px -12px rgba(5, 150, 105, .45);

  --maxw: 1140px;
  --gutter: 24px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-dark); text-decoration: none; }
a:hover { color: var(--emerald-800); }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.022em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: .45em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
::selection { background: var(--emerald-200); color: var(--emerald-950); }
:focus-visible { outline: 3px solid var(--emerald-400); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 9vw, 116px); }
.section--tight { padding-block: clamp(48px, 6vw, 76px); }
.section--alt { background: var(--slate-50); border-block: 1px solid var(--line); }
.center { text-align: center; }
.measure { max-width: 660px; }
.measure.center { margin-inline: auto; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Shared bits ---------- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--slate-500); }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--emerald-200);
  background: var(--emerald-50);
  color: var(--emerald-800);
  border-radius: 999px;
  font-size: .85rem; font-weight: 600;
}
.pill b {
  background: var(--emerald-600); color: #fff;
  border-radius: 999px; padding: 2px 9px; font-size: .74rem; letter-spacing: .04em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: .97rem; font-weight: 600; line-height: 1;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--slate-800); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { border-color: var(--slate-300); color: var(--ink); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.3); }
.btn-light:hover { background: rgba(255,255,255,.24); color: #fff; }
.btn-white { background: #fff; color: var(--emerald-900); }
.btn-white:hover { background: var(--emerald-50); color: var(--emerald-900); }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

.arrow-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .95rem; }
.arrow-link span { transition: transform .18s ease; }
.arrow-link:hover span { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 1px 16px rgba(15,23,42,.05); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }

/* Logo — swap the mark inside .logo when the real file arrives */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; font-size: 1.16rem; }
.logo:hover { color: var(--ink); }
.logo-mark { width: 34px; height: 34px; flex: none; display: block; }
.logo-text small { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-400); margin-top: -2px; }

.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  color: var(--slate-600); font-size: .95rem; font-weight: 500;
  padding: 8px 14px; border-radius: 8px; transition: background-color .15s ease, color .15s ease;
}
.nav-links a:hover { color: var(--ink); background: var(--slate-100); }
.nav-links a.active { color: var(--brand-dark); font-weight: 600; }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-actions .btn { padding: 11px 20px; font-size: .92rem; }

.nav-toggle {
  display: none; margin-left: auto;
  width: 42px; height: 42px; border-radius: 10px;
  background: #fff; border: 1px solid var(--line); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--slate-700); border-radius: 2px; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--slate-700); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 104px) calc(clamp(72px, 9vw, 116px) + 48px);
  background: linear-gradient(135deg, var(--emerald-950) 0%, var(--emerald-800) 44%, var(--emerald-600) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 460px at 84% 18%, rgba(52,211,153,.42), transparent 64%),
    radial-gradient(620px 380px at 4% 92%, rgba(6,95,70,.6), transparent 66%);
}
/* Nêm trắng nghiêng ở đáy hero — tạo đường chéo kiểu Stripe */
.hero::after {
  content: ""; position: absolute; left: -6%; right: -6%; bottom: -78px;
  height: 156px; background: #fff; transform: skewY(-3.2deg);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(236,253,245,.82); font-size: clamp(1.06rem, 1.7vw, 1.22rem); }
.hero .pill { background: rgba(255,255,255,.12); border-color: rgba(167,243,208,.35); color: var(--emerald-100); }
.hero .pill b { background: var(--emerald-400); color: var(--emerald-950); }
.hero-note { color: rgba(236,253,245,.6); font-size: .88rem; margin-top: 18px; }

.hero--sub { padding-block: clamp(56px, 7vw, 88px) calc(clamp(52px, 6vw, 76px) + 48px); }
.hero--sub h1 { max-width: 16ch; }

/* Hero panel (dashboard mock) */
.panel {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.7); overflow: hidden;
}
.panel-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--slate-50); }
.panel-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--slate-300); }
.panel-head .dot:first-child { background: var(--emerald-400); }
.panel-head b { margin-left: 6px; font-size: .82rem; color: var(--slate-500); font-weight: 600; letter-spacing: .02em; }
.panel-body { padding: 22px; }
.panel-metric { display: flex; align-items: baseline; gap: 10px; }
.panel-metric .num { font-size: 2.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.04em; line-height: 1; }
.panel-metric .delta { font-size: .85rem; font-weight: 700; color: var(--emerald-700); background: var(--emerald-50); padding: 3px 9px; border-radius: 999px; }
.panel-label { font-size: .84rem; color: var(--slate-400); margin: 6px 0 20px; font-weight: 500; }
.bars { display: flex; align-items: flex-end; gap: 9px; height: 106px; }
.bars i {
  flex: 1; border-radius: 6px 6px 3px 3px; display: block;
  background: linear-gradient(to top, var(--emerald-200), var(--emerald-400));
}
.bars i:nth-last-child(-n+3) { background: linear-gradient(to top, var(--emerald-500), var(--emerald-600)); }
.panel-foot { display: flex; gap: 0; border-top: 1px solid var(--line); }
.panel-foot div { flex: 1; padding: 14px 18px; }
.panel-foot div + div { border-left: 1px solid var(--line); }
.panel-foot span { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: var(--slate-400); font-weight: 600; }
.panel-foot strong { font-size: 1.12rem; color: var(--ink); letter-spacing: -.02em; }

/* ---------- Logo strip ---------- */
.strip { padding-block: 44px 40px; border-bottom: 1px solid var(--line); }
.strip p { text-align: center; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-400); font-weight: 600; margin-bottom: 22px; }
.strip-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 40px; }
.strip-row span { font-size: 1.05rem; font-weight: 700; color: var(--slate-300); letter-spacing: -.02em; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .22s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--emerald-200); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 1.25rem;
  background: var(--emerald-50); border: 1px solid var(--emerald-100);
}
.card-flat { box-shadow: none; }
.card-flat:hover { transform: none; box-shadow: var(--shadow-sm); }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 26px; font-size: .95rem; margin-bottom: .55em; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--emerald-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 26px; border-top: 2px solid var(--line); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: -13px; left: 0;
  background: #fff; padding-right: 12px;
  font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--brand);
}
.step.is-on { border-top-color: var(--emerald-500); }
.step h3 { font-size: 1.08rem; margin-bottom: .35em; }
.step p { font-size: .94rem; margin-bottom: 0; }

/* ---------- Stats ---------- */
.stat { text-align: left; }
.stat .num { font-size: clamp(2.1rem, 3.6vw, 2.9rem); font-weight: 800; letter-spacing: -.04em; color: var(--ink); line-height: 1.05; }
.stat .num em { font-style: normal; color: var(--brand); }
.stat p { font-size: .93rem; color: var(--slate-500); margin: 6px 0 0; }
.section--dark .stat .num { color: #fff; }
.section--dark .stat .num em { color: var(--emerald-300); }
.section--dark .stat p { color: rgba(236,253,245,.68); }

/* ---------- Dark band / CTA ---------- */
.section--dark {
  background: linear-gradient(130deg, var(--emerald-950), var(--emerald-800) 58%, var(--emerald-700));
  color: rgba(236,253,245,.82);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: rgba(236,253,245,.76); }
.section--dark .eyebrow { color: var(--emerald-300); }

.quote { font-size: clamp(1.25rem, 2.3vw, 1.7rem); line-height: 1.45; color: var(--ink); font-weight: 600; letter-spacing: -.02em; }
.quote-by { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(145deg, var(--emerald-300), var(--emerald-600)); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .92rem; }
.quote-by b { display: block; color: var(--ink); font-size: .95rem; }
.quote-by span { font-size: .87rem; color: var(--slate-400); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 1.04rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 400; color: var(--brand); transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 48px 22px 0; font-size: .97rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Service catalog ---------- */
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-nav a {
  font-size: .9rem; font-weight: 600; color: var(--slate-600);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
  box-shadow: var(--shadow-xs); transition: all .16s ease;
}
.cat-nav a:hover { border-color: var(--emerald-300); color: var(--brand-dark); background: var(--emerald-50); }

.svc {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px;
  padding-block: 44px; border-top: 1px solid var(--line);
}
.svc:first-of-type { border-top: 0; }
.svc-aside h3 { font-size: 1.45rem; letter-spacing: -.028em; }
.svc-aside .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--emerald-700); background: var(--emerald-50); border: 1px solid var(--emerald-100);
  border-radius: 6px; padding: 3px 9px; margin-bottom: 12px;
}
.svc-aside p { font-size: .94rem; margin-bottom: 0; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; align-content: start; }
.svc-item { background: var(--slate-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.svc-item h4 { font-size: 1rem; margin-bottom: .4em; color: var(--ink); }
.svc-item p { font-size: .9rem; margin-bottom: 0; color: var(--slate-500); }

/* ---------- Pricing ---------- */
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card .amount { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.035em; line-height: 1.1; }
.price-card .amount small { display: block; font-size: .84rem; font-weight: 500; color: var(--slate-400); letter-spacing: 0; margin-top: 4px; }
.price-card .ticks { margin: 22px 0 26px; }
.price-card .btn { margin-top: auto; }
.price-card.featured { border-color: var(--emerald-500); box-shadow: var(--shadow-md); }
.price-card.featured::after {
  content: "Most popular"; position: absolute; top: -12px; left: 28px;
  background: var(--brand); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}

/* ---------- Forms ---------- */
.form-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow-md); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--slate-700); margin-bottom: 7px; }
.field label .req { color: var(--emerald-600); }
.field .hint { font-size: .81rem; color: var(--slate-400); margin-top: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: .97rem; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--slate-300); border-radius: var(--radius-sm);
  background: #fff; box-shadow: var(--shadow-xs); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 128px; resize: vertical; }
.field select { appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 17px;
}
.field input::placeholder, .field textarea::placeholder { color: var(--slate-400); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--emerald-500); box-shadow: 0 0 0 3px var(--emerald-100);
}
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--slate-500); }
.check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--emerald-600); flex: none; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-note { font-size: .85rem; color: var(--slate-400); text-align: center; margin: 16px 0 0; }
.form-status { display: none; border-radius: var(--radius-sm); padding: 14px 16px; font-size: .92rem; margin-bottom: 20px; }
.form-status.show { display: block; }
.form-status.ok { background: var(--emerald-50); border: 1px solid var(--emerald-200); color: var(--emerald-800); }
.form-status.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); margin: 0; }
.info-list li:last-child { border-bottom: 0; }
.info-list .ico { width: 36px; height: 36px; flex: none; border-radius: 10px; background: var(--emerald-50); border: 1px solid var(--emerald-100); display: grid; place-items: center; }
.info-list b { display: block; color: var(--ink); font-size: .94rem; }
.info-list span { font-size: .9rem; color: var(--slate-500); }
.entity-card { font-style: normal; font-size: .9rem; line-height: 1.65; color: var(--slate-500); }
.entity-card strong { display: block; color: var(--ink); font-size: .92rem; letter-spacing: .01em; margin-bottom: 8px; }

/* ---------- Legal pages ---------- */
.legal-layout { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 96px; }
.legal-toc p { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate-400); margin-bottom: 12px; }
.legal-toc a { display: block; font-size: .9rem; color: var(--slate-500); padding: 7px 12px; border-left: 2px solid var(--line); font-weight: 500; }
.legal-toc a:hover { color: var(--brand-dark); border-left-color: var(--emerald-400); background: var(--emerald-50); }
.legal-body { max-width: 720px; font-size: 1rem; }
.legal-body h2 { font-size: 1.55rem; margin-top: 52px; padding-top: 4px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.06rem; margin-top: 28px; }
.legal-body ul { padding-left: 1.3em; }
.legal-body li { font-size: .97rem; }
.legal-meta { background: var(--slate-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; font-size: .9rem; margin-bottom: 40px; }
.legal-meta p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-900); color: var(--slate-400); padding-block: 64px 32px; font-size: .93rem; }
.site-footer a { color: var(--slate-400); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.site-footer .logo { color: #fff; }
.site-footer .logo:hover { color: #fff; }
.site-footer .logo-text small { color: var(--slate-500); }
.footer-about { max-width: 300px; margin-top: 16px; font-size: .92rem; line-height: 1.6; }
.footer-legal {
  font-style: normal; margin-top: 20px; font-size: .86rem; line-height: 1.6;
  color: var(--slate-500); padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1);
  max-width: 320px;
}
.footer-legal strong { display: block; color: var(--slate-300); font-size: .82rem; letter-spacing: .04em; margin-bottom: 6px; }

.footer-col h4 { color: #fff; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-bottom {
  margin-top: 52px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .86rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .form-layout { grid-template-columns: 1fr; gap: 36px; }
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; display: flex; flex-wrap: wrap; gap: 6px; }
  .legal-toc p { width: 100%; margin-bottom: 4px; }
  .legal-toc a { border-left: 0; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
  .svc { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  /* Menu mobile: xổ xuống theo hàng, không đè lên logo */
  .nav { height: auto; min-height: 72px; flex-wrap: wrap; padding-block: 15px; gap: 12px; }
  .nav .logo { order: 1; }
  .nav-toggle { display: flex; order: 2; margin-left: auto; }
  .nav-links, .nav-actions { display: none; }
  .site-header.open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    order: 3; width: 100%; margin: 0; gap: 2px;
    padding-top: 10px; border-top: 1px solid var(--line);
  }
  .site-header.open .nav-links a { padding: 13px 10px; font-size: 1rem; }
  .site-header.open .nav-actions { display: flex; order: 4; width: 100%; margin: 0 0 4px; }
  .site-header.open .nav-actions .btn { width: 100%; padding: 14px 20px; font-size: .97rem; }
  .site-header.open { box-shadow: var(--shadow-md); background: #fff; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .svc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; }
  .panel-foot { flex-direction: column; }
  .panel-foot div + div { border-left: 0; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
