/* EbizBida — website tĩnh, không framework. Chủ đạo đỏ. */
:root {
  --bg: #faf6f5;
  --card: #ffffff;
  --ink: #2b2226;
  --muted: #7a6a70;
  --brand: #b3261e;
  --brand-2: #d3312a;
  --brand-dark: #7f1612;
  --line: #efe1df;
  --shadow: 0 2px 10px rgba(80, 20, 20, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand-2); }

header.site {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
header.site .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { font-weight: 700; font-size: 20px; color: var(--brand); text-decoration: none; }
.logo span { color: var(--brand-2); }
nav.main { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
nav.main a { text-decoration: none; color: var(--ink); font-weight: 500; }
nav.main a:hover { color: var(--brand-2); }

.hero {
  background: linear-gradient(135deg, #7f1612 0%, #b3261e 55%, #d3312a 100%);
  color: #fff; padding: 64px 0 56px;
}
.hero h1 { font-size: 34px; line-height: 1.25; margin: 0 0 14px; }
.hero p.lead { font-size: 18px; margin: 0 0 24px; color: #ffe9e6; max-width: 720px; }
.btn {
  display: inline-block; padding: 12px 22px; border-radius: 8px;
  text-decoration: none; font-weight: 600; margin: 4px 8px 4px 0;
}
.btn-primary { background: #fff; color: var(--brand-dark); }
.btn-ghost { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn-outline { border: 1px solid var(--brand-2); color: var(--brand-2); }
.btn-primary:hover, .btn-ghost:hover { filter: brightness(1.05); }

section { padding: 44px 0; }
h2 { font-size: 26px; margin: 0 0 8px; }
p.sub { color: var(--muted); margin-top: 0; }
.grid { display: grid; gap: 18px; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }

/* khung quy trình nhúng từ trang sơ đồ (iframe ?embed=1&theme=light) */
.wf-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); overflow: hidden;
}
.wf-card h3 { margin: 0; padding: 14px 18px 0; font-size: 17px; color: var(--brand); }
.wf-card h3 a { color: inherit; text-decoration: none; }
.wf-card h3 a:hover { text-decoration: underline; }
.wf-card p { padding: 0 18px 14px; margin: 0; font-size: 14px; color: var(--muted); }
.wf-embed {
  position: relative; width: 100%; border-top: 1px solid var(--line);
  background: #fff; aspect-ratio: var(--ar, 2.1);
}
.wf-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wf-grid { display: grid; gap: 18px; }
@media (min-width: 861px) { .wf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid.c3, .grid.c2 { grid-template-columns: 1fr; } }

/* Mobile: nav 6 link không nhét vừa dòng 60px → logo 1 dòng, nav xuống dưới, header tự giãn */
@media (max-width: 860px) {
  header.site .wrap { height: auto; flex-wrap: wrap; gap: 4px 0; padding: 10px 20px 12px; }
  header.site .logo { font-size: 18px; }
  nav.main { flex: 1 1 100%; margin-left: 0; gap: 6px 16px; font-size: 15px; }
}

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.icon { font-size: 28px; }
.card ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.card ul li { margin-bottom: 4px; }

/* khung trình duyệt bọc ảnh app — ảnh trông "marketing" hơn, app không đổi gì */
.shot {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; box-shadow: var(--shadow);
}
.shot img { width: 100%; border: 1px solid var(--line); border-radius: 8px; }
.shot figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.frame {
  border-radius: 12px !important; overflow: hidden; padding: 0 !important;
  border: 1px solid #d9c6c3 !important;
}
.frame > .bar {
  display: flex; align-items: center; gap: 8px;
  background: #f3e7e5; padding: 9px 14px; border-bottom: 1px solid #e6d4d1;
}
.frame > .bar i { width: 11px; height: 11px; border-radius: 50%; background: #e06c62; display: inline-block; }
.frame > .bar i:nth-child(2) { background: #f0b25a; }
.frame > .bar i:nth-child(3) { background: #7cb96a; }
.frame > .bar b {
  margin-left: 8px; font-size: 12px; font-weight: 500; color: #9c7d78;
  background: #fff; border: 1px solid #e6d4d1; border-radius: 6px;
  padding: 2px 12px; flex: 1; max-width: 340px; text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.frame img { border: none !important; border-radius: 0 !important; display: block; }
.frame figcaption { padding: 10px 14px; margin-top: 0 !important; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li {
  counter-increment: step; position: relative; padding: 0 0 22px 46px;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 14px; top: 32px; bottom: 0;
  width: 2px; background: var(--line);
}
.steps h3 { margin: 2px 0 6px; font-size: 18px; }
.steps .tip { color: var(--muted); font-size: 14px; }

.badge {
  display: inline-block; background: #fbe9e7; color: var(--brand);
  border-radius: 20px; padding: 2px 12px; font-size: 13px; font-weight: 600;
}

table.compare { width: 100%; border-collapse: collapse; background: var(--card); }
table.compare th, table.compare td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
table.compare th { background: #f7ebe9; }

.cta {
  background: #5c100c; color: #ffe9e6; border-radius: 12px;
  padding: 32px 28px; text-align: center;
}
.cta h2 { color: #fff; }
.cta .btn-primary { font-size: 17px; }

footer.site {
  border-top: 1px solid var(--line); background: var(--card);
  padding: 22px 0; margin-top: 30px; color: var(--muted); font-size: 14px;
}
footer.site .wrap { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
footer a { color: var(--muted); }

/* trang hướng dẫn */
figure.shot { margin: 10px 0 26px; }
.note {
  background: #fdf3e3; border: 1px solid #f0dcb4; border-radius: 10px;
  padding: 12px 16px; margin: 10px 0; font-size: 15px;
}
.toc {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 20px; margin-bottom: 28px; font-size: 15px;
}
.toc strong { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 20px; }
.guide-hero { background: var(--brand); color: #fff; padding: 40px 0; }
.guide-hero p { color: #ffe4e0; max-width: 760px; }
