/* ==========================================================================
   HUB — So sánh 3 phương án giao diện
   ========================================================================== */

:root {
  --bg: #f3efe6;
  --surface: #fbf8f1;
  --ink: #14211c;
  --muted: #5f6c64;
  --line: rgba(20, 33, 28, .14);
  --line-strong: rgba(20, 33, 28, .28);
  --green: #1f4d3a;
  --terra: #c0603a;
  --gold: #b9924f;
  --font-body: "Be Vietnam Pro", system-ui, sans-serif;
  --font-display: "Lora", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.wrap { width: min(100% - 48px, 1200px); margin-inline: auto; }
.serif { font-family: var(--font-display); font-weight: 500; letter-spacing: -.03em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--terra);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; }

/* top + header */
.topbar { background: var(--ink); color: rgba(243, 239, 230, .8); font-size: 10.5px; letter-spacing: .06em; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; min-height: 36px; align-items: center; }
.topbar strong { color: #f3efe6; font-weight: 600; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 20px; }
.logo b { font-weight: 600; }
.logo__text { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: block; }
.logo__text b { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -.01em; text-transform: none; color: var(--ink); line-height: 1.1; }
.logo__mark {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 15px; color: var(--green);
  flex: none;
}
.header nav { display: flex; align-items: center; gap: 22px; }
.header nav a { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.header nav a:hover { color: var(--ink); }
.header__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 2px;
  background: var(--green); color: #fff;
  font-size: 12px; font-weight: 600;
  transition: transform .2s ease, background-color .2s ease;
}
.header__cta:hover { transform: translateY(-1px); background: #173c2d; }

/* hero */
.hero { padding: clamp(48px, 7vw, 84px) 0 clamp(40px, 5vw, 64px); }
.hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(32px, 5vw, 72px); align-items: end; }
.hero h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(38px, 5.2vw, 68px); line-height: 1.02; letter-spacing: -.035em;
  margin-top: 18px;
}
.hero h1 em { font-style: italic; color: var(--terra); }
.hero__lead { margin-top: 22px; max-width: 62ch; font-size: 15px; line-height: 1.7; color: var(--muted); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hero__meta span { padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hero__card { background: var(--surface); border: 1px solid var(--line); padding: 24px; }
.hero__card > p { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 14px; margin-top: 18px; }
.hero__stats strong { display: block; font-family: var(--font-display); font-size: 34px; font-weight: 500; letter-spacing: -.02em; color: var(--green); line-height: 1; }
.hero__stats span { display: block; margin-top: 5px; font-size: 10.5px; color: var(--muted); line-height: 1.4; }
.hero__card .note { text-transform: none; letter-spacing: 0; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 10px; line-height: 1.5; color: var(--muted); }

/* audit */
.audit { padding: 20px 0 56px; }
.audit__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.audit__head h2 { font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: -.03em; }
.audit__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.audit__item { padding: 18px; background: var(--surface); border: 1px solid var(--line); }
.audit__item strong { display: block; font-family: var(--font-display); font-size: 23px; font-weight: 500; color: var(--terra); line-height: 1.1; }
.audit__item b { display: block; margin-top: 7px; font-size: 11.5px; font-weight: 600; }
.audit__item p { margin-top: 4px; font-size: 11px; line-height: 1.55; color: var(--muted); }

/* section heads */
.section { padding: clamp(40px, 5vw, 64px) 0; }
.section--line { border-top: 1px solid var(--line); }
.section__head { display: grid; grid-template-columns: 1fr .6fr; gap: 28px; align-items: end; margin-bottom: 34px; }
.section__head h2 { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 42px); font-weight: 500; letter-spacing: -.03em; line-height: 1.06; margin-top: 10px; }
.section__head h2 em { font-style: italic; color: var(--terra); }
.section__head p { font-size: 13.5px; line-height: 1.7; color: var(--muted); max-width: 46ch; justify-self: end; }

/* case rows */
.case { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(28px, 4.5vw, 60px); align-items: center; padding: 36px 0; border-top: 1px solid var(--line); }
.case:last-child { border-bottom: 1px solid var(--line); }
.case--reverse .case__media { order: 2; }
.case--reverse .case__body { order: 1; }
.case__media { position: relative; }
.shot {
  position: relative;
  border: 1px solid var(--line-strong);
  background: #fff;
  box-shadow: 0 30px 60px -42px rgba(20, 33, 28, .5);
  overflow: hidden;
}
.shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top center; }
.phone-shot {
  position: absolute;
  right: -14px; bottom: -26px;
  width: 126px;
  padding: 5px;
  background: #14211c;
  border-radius: 18px;
  box-shadow: 0 20px 34px -20px rgba(20, 33, 28, .6);
}
.phone-shot img { border-radius: 13px; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.case__num { font-family: var(--font-display); font-size: 13px; color: var(--terra); }
.case__title { margin-top: 8px; font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 38px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; }
.case__title span { display: block; font-size: 12px; font-family: var(--font-body); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 7px; }
.case__tagline { margin-top: 14px; font-size: 14.5px; font-style: italic; color: var(--green); }
.case__desc { margin-top: 10px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.case__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.case__tags span { padding: 4px 9px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.palette { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.sw { display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--muted); letter-spacing: .04em; }
.sw i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .1); display: inline-block; }
.pros { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.pros h4 { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pros li { position: relative; padding-left: 14px; font-size: 11.5px; line-height: 1.55; color: var(--ink); margin-bottom: 4px; }
.pros li::before { content: "+"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.pros .con li::before { content: "–"; color: var(--terra); }
.case__cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 2px;
  background: var(--green); color: #fff; font-size: 12px; font-weight: 600;
  transition: transform .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); background: #173c2d; }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }
.btn--outline:hover { background: var(--surface); }
.case__link { font-size: 11.5px; border-bottom: 1px solid currentColor; padding-bottom: 2px; color: var(--muted); }
.case__link:hover { color: var(--terra); }

/* compare table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 13px 14px; border-top: 1px solid var(--line); text-align: left; font-size: 12px; vertical-align: top; }
thead th { border-top: 0; border-bottom: 1px solid var(--line-strong); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
thead th:nth-child(2) { color: var(--green); }
tbody th { font-weight: 500; color: var(--muted); width: 26%; }
td strong { display: block; font-weight: 600; }
.dots { letter-spacing: 2px; color: var(--green); font-size: 13px; }
.dots span { color: rgba(20, 33, 28, .16); }
td small { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
tr.is-best td:nth-child(3) { background: rgba(31, 77, 58, .055); }
.best-tag { display: inline-block; margin-left: 6px; padding: 2px 6px; border-radius: 999px; background: var(--terra); color: #fff; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; vertical-align: 2px; }

/* recommendation */
.rec { background: var(--green); color: #f3efe6; padding: clamp(32px, 4.5vw, 52px); }
.rec__grid { display: grid; grid-template-columns: 1fr .72fr; gap: 40px; align-items: center; }
.rec .eyebrow { color: #d9b98c; }
.rec h2 { margin-top: 14px; font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 44px); font-weight: 500; letter-spacing: -.03em; line-height: 1.06; }
.rec h2 em { font-style: italic; color: #d9b98c; }
.rec p { margin-top: 16px; font-size: 13.5px; line-height: 1.7; color: rgba(243, 239, 230, .72); }
.rec__box { border: 1px solid rgba(243, 239, 230, .24); padding: 20px; }
.rec__box h3 { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #d9b98c; }
.rec__box ul { margin-top: 10px; display: grid; gap: 7px; }
.rec__box li { display: flex; gap: 8px; font-size: 12px; color: rgba(243, 239, 230, .85); }
.rec__box li::before { content: "→"; color: #d9b98c; }
.rec__box .btn { margin-top: 16px; width: 100%; background: #f3efe6; color: var(--green); }
.rec__box .btn:hover { background: #fff; }

/* next steps */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.steps li { padding-top: 14px; border-top: 1px solid var(--line-strong); }
.steps span { font-family: var(--font-display); font-size: 13px; color: var(--terra); }
.steps h4 { margin-top: 6px; font-size: 12.5px; }
.steps p { margin-top: 4px; font-size: 10.5px; line-height: 1.55; color: var(--muted); }

/* decision checklist */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 26px; margin-top: 20px; }
.checklist li { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }
.checklist li::before { content: ""; width: 15px; height: 15px; border: 1px solid var(--line-strong); flex: none; margin-top: 3px; }

/* files */
.files { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.file { display: block; padding: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .2s ease, transform .2s ease; }
.file:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.file small { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.file strong { display: block; margin-top: 5px; font-size: 14px; }
.file p { margin-top: 4px; font-size: 11px; color: var(--muted); line-height: 1.55; }

/* footer */
.footer { margin-top: 48px; border-top: 1px solid var(--line); padding: 26px 0 34px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.footer p { font-size: 10.5px; line-height: 1.7; color: var(--muted); max-width: 62ch; }
.footer b { color: var(--ink); }
.footer__brand { font-family: var(--font-display); font-size: 17px; }

/* responsive */
@media (max-width: 1024px) {
  .header nav { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { max-width: 460px; }
  .section__head { grid-template-columns: 1fr; }
  .section__head p { justify-self: start; }
  .case { grid-template-columns: 1fr; gap: 26px; }
  .case--reverse .case__media, .case--reverse .case__body { order: initial; }
  .audit__grid { grid-template-columns: 1fr 1fr; }
  .rec__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .files { grid-template-columns: 1fr 1fr; }
  .phone-shot { width: 108px; right: 12px; bottom: -18px; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, 1200px); }
  .topbar .wrap { min-height: 32px; font-size: 9.5px; }
  .topbar .wrap span:last-child { display: none; }
  .header .wrap { min-height: 62px; }
  .header__cta { display: none; }
  .hero { padding-top: 34px; }
  .hero h1 { font-size: clamp(34px, 10vw, 46px); }
  .hero__stats strong { font-size: 28px; }
  .audit__grid { grid-template-columns: 1fr; }
  .case { padding: 28px 0; }
  .phone-shot { width: 86px; bottom: -14px; border-radius: 13px; padding: 4px; }
  .phone-shot img { border-radius: 9px; }
  .pros { grid-template-columns: 1fr; gap: 12px; }
  .case__cta .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .files { grid-template-columns: 1fr; }
  .section { padding: 34px 0; }
  .footer .wrap { flex-direction: column; }
}
