/* Trang giới thiệu sothidua.com — token màu theo 07-giao-dien.md §2 (chỉ light mode, D-24) */
:root {
  --primary-50: #e6f7ff;
  --primary-100: #bae7ff;
  --primary-300: #69c0ff;
  --primary-500: #1890ff;
  --primary-600: #096dd9;
  --primary-700: #0050b3;
  --on-primary: #ffffff;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #1f2329;
  --text-muted: #5b6573;
  --border: #e4e7ec;
  --danger: #d4380d;
  --success: #237804;
  --success-bg: #f6ffed;
  --radius: 8px;
  --shadow: 0 10px 30px rgba(9, 109, 217, 0.12);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-600); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; text-align: center; margin-bottom: 40px; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* ---------- nút (icon + chữ — D-66) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border-radius: 6px; border: 1px solid transparent;
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid var(--primary-300); outline-offset: 2px; }
.btn-primary { background: var(--primary-500); color: var(--on-primary); box-shadow: 0 6px 18px rgba(24, 144, 255, .35); }
.btn-primary:hover { background: var(--primary-600); }
.btn-ghost { background: rgba(255, 255, 255, .85); color: var(--primary-600); border-color: var(--primary-100); }
.btn-white { background: var(--surface); color: var(--primary-600); }
.btn-outline { background: var(--surface); color: var(--primary-600); border-color: var(--primary-300); }
.btn-outline:hover { background: var(--primary-50); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 15px; }

/* ---------- thanh trên ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(228, 231, 236, .7);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links > a:not(.btn) { color: var(--text-muted); font-weight: 500; font-size: 15px; }
.nav-links > a:not(.btn):hover { color: var(--primary-600); }

/* ---------- hero: nền IMG-03, chữ bên phải ---------- */
/* Màn ngang: hero cao bằng màn hình (trừ thanh trên) — không còn khoảng trắng bên dưới; ảnh phủ kín, neo góc trên-trái
   để giữ lá cờ + nhân vật, phần cắt bớt là bầu trời bên phải (chỗ đặt chữ).
   Không dùng aspect-ratio + min-height: chiều cao tối thiểu bị quy đổi thành chiều rộng tối thiểu ~995px → tràn ngang. */
.hero { position: relative; min-height: max(560px, calc(100vh - 64px)); min-height: max(560px, calc(100svh - 64px)); display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background: url("/images/login-bg.jpg") left top / cover no-repeat;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .55) 55%, rgba(255, 255, 255, .8) 100%);
}
.hero-row { position: relative; z-index: 1; display: flex; justify-content: flex-end; padding-top: 48px; padding-bottom: 64px; }
.hero-row > * { min-width: 0; }
.hero-text { max-width: 560px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--primary-700); background: var(--primary-50); border: 1px solid var(--primary-100); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.grad {
  display: inline-block; font-size: .74em; white-space: nowrap; margin-top: 6px;
  background: linear-gradient(90deg, var(--primary-700), var(--primary-500), var(--primary-300), var(--primary-500));
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 8s linear infinite;
}
.lead { margin-top: 16px; font-size: 18px; color: var(--text-muted); max-width: 440px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts b { font-size: 30px; font-weight: 800; color: var(--primary-600); font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero-facts span { font-size: 14px; color: var(--text-muted); }

/* ---------- section ---------- */
.section { padding: 88px 0; }
.section-tint { background: linear-gradient(180deg, var(--bg), var(--primary-50)); }

/* ---------- quy trình ---------- */
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; counter-reset: step; }
.flow::before {
  content: ""; position: absolute; top: 34px; left: 12.5%; right: 12.5%; height: 3px; border-radius: 3px;
  background: linear-gradient(var(--primary-500), var(--primary-500)) 0 0 / 0% 100% no-repeat, var(--primary-100);
  animation: fill 12s linear infinite;
}
/* Chấm sáng đi một chiều bước 1 → 4 (0–85% thời gian), mờ đi ở cuối rồi bắt đầu lại từ bước 1 */
.flow::after {
  content: ""; position: absolute; top: 29px; left: 12.5%; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%;
  background: var(--primary-500); box-shadow: 0 0 0 6px rgba(24, 144, 255, .18);
  animation: travel 12s linear infinite;
}
.step { position: relative; text-align: center; padding: 0 6px; counter-increment: step; }
.step-icon {
  position: relative; z-index: 1; width: 70px; height: 70px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); border: 2px solid var(--primary-100);
  color: var(--primary-600); box-shadow: var(--shadow);
  animation: pulse 12s ease-out infinite;
}
/* Mỗi bước sáng lên đúng lúc chấm tới: 0 · 3,4 · 6,8 · 10,2 giây (= 0, 1/3, 2/3, 3/3 của 85% × 12s) */
.step:nth-child(2) .step-icon { animation-delay: 3.4s; }
.step:nth-child(3) .step-icon { animation-delay: 6.8s; }
.step:nth-child(4) .step-icon { animation-delay: 10.2s; }
.step-icon::after {
  content: counter(step); position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--primary-500); color: var(--on-primary); font-size: 13px; font-weight: 700; display: grid; place-items: center;
}
.step-icon svg, .card-icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.step p { margin-top: 6px; color: var(--text-muted); font-size: 15px; }

/* ---------- minh họa ---------- */
.demo { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: center; }
.demo-text h2 { text-align: left; margin-bottom: 16px; }
.demo-text > p { color: var(--text-muted); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 32px; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--success-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23237804' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
  border: 1px solid #b7eb8f;
}

.demo-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: 0; min-height: 440px; }
.phone {
  position: relative; z-index: 2; width: 230px; height: 440px; border-radius: 34px; padding: 10px;
  background: #1f2329; box-shadow: 0 24px 60px rgba(31, 35, 41, .28);
  animation: float 7s ease-in-out infinite;
}
.phone-screen {
  position: relative; height: 100%; border-radius: 26px; overflow: hidden;
  background: url("/images/mobile-bg.jpg") center bottom / cover no-repeat;
  display: flex; flex-direction: column; gap: 10px; padding: 14px 12px;
}
.app-head { display: flex; justify-content: space-between; align-items: center; background: var(--primary-500); color: var(--on-primary); border-radius: 12px; padding: 10px 12px; font-size: 15px; font-weight: 600; }
.app-head b { font-size: 16px; }
.app-score { background: var(--surface); border-radius: 12px; padding: 10px 12px; display: flex; justify-content: space-between; gap: 8px; align-items: baseline; box-shadow: 0 4px 12px rgba(0, 0, 0, .06); }
.app-score span { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.app-score b { font-size: 26px; font-weight: 800; color: var(--primary-600); font-variant-numeric: tabular-nums; transition: color .3s; }
.app-score b.drop { color: var(--danger); }
.app-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.app-list li {
  display: flex; justify-content: space-between; gap: 6px; align-items: center;
  background: rgba(255, 255, 255, .94); border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; font-size: 12.5px;
  opacity: 0; transform: translateY(8px); transition: opacity .35s ease, transform .35s ease, border-color .3s;
}
.app-list li.on { opacity: 1; transform: none; border-color: #ffbb96; }
.app-list em { font-style: normal; font-weight: 700; color: var(--danger); font-variant-numeric: tabular-nums; }
.app-toast {
  position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--text); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  transition: opacity .3s, transform .3s; white-space: nowrap;
}
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }

.board {
  position: relative; z-index: 1; width: 290px; margin-left: -28px; background: var(--surface); border-radius: 14px;
  box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden;
}
.board-head { display: flex; justify-content: space-between; align-items: center; background: var(--primary-500); color: var(--on-primary); padding: 12px 16px 12px 44px; font-weight: 600; font-size: 15px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: blink 1.4s ease-in-out infinite; }
.board-list { list-style: none; margin: 0; padding: 8px 0; position: relative; height: 216px; }
.board-list li {
  position: absolute; top: 8px; left: 0; right: 0; height: 50px; display: grid; grid-template-columns: 36px 1fr auto; align-items: center;
  gap: 10px; padding: 0 16px 0 44px; transition: transform .7s cubic-bezier(.2, .8, .2, 1), background-color .4s;
  font-variant-numeric: tabular-nums;
}
.board-list li:nth-child(2) { transform: translateY(50px); }
.board-list li:nth-child(3) { transform: translateY(100px); }
.board-list li:nth-child(4) { transform: translateY(150px); }
.board-list li.hit { background: #fff2e8; }
.rank { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--primary-50); color: var(--primary-700); }
.board-list li[data-pos="0"] .rank { background: var(--primary-500); color: var(--on-primary); }
.cls { font-weight: 600; }
.board-list b { font-weight: 700; }

/* ---------- tính năng ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary-100); }
.card-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary-600); margin-bottom: 16px; }
.card p { margin-top: 6px; color: var(--text-muted); font-size: 15px; }

/* ---------- vào trường ---------- */
.cta { background: linear-gradient(120deg, var(--primary-700), var(--primary-500)); color: var(--on-primary); padding: 72px 0; position: relative; overflow: hidden; }
.cta::before, .cta::after {
  content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none;
}
.cta::before { width: 420px; height: 420px; right: -120px; top: -160px; animation: float 9s ease-in-out infinite; }
.cta::after { width: 260px; height: 260px; left: -80px; bottom: -120px; animation: float 11s ease-in-out infinite reverse; }
.cta-row { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cta h2 { text-align: left; margin-bottom: 10px; color: var(--on-primary); }
.cta p { font-size: 17px; font-weight: 500; opacity: .95; }
.school-form { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; padding: 20px; display: grid; gap: 10px; }
.school-form label { font-weight: 600; font-size: 15px; }
.req { color: #ffccc7; }
.field { display: flex; align-items: stretch; background: var(--surface); border-radius: 6px; overflow: hidden; max-width: 360px; }
.field input { flex: 1; min-width: 0; border: 0; padding: 0 12px; height: 46px; font: inherit; font-size: 16px; color: var(--text); background: transparent; }
.suffix { display: flex; align-items: center; padding: 0 12px; color: var(--text-muted); font-size: 15px; background: var(--bg); border-left: 1px solid var(--border); white-space: nowrap; }
.error { min-height: 20px; font-size: 14px; font-weight: 600; color: #ffd8bf; }
.school-form .btn { justify-self: start; }

/* ---------- liên hệ ---------- */
.contact { background: var(--surface); }
.contact-card {
  max-width: 640px; margin: 0 auto; text-align: center; padding: 40px 24px; border-radius: 16px;
  background: linear-gradient(180deg, var(--primary-50), var(--surface)); border: 1px solid var(--primary-100);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.contact-card h2 { margin: 0; }
.contact-card p { color: var(--text-muted); font-size: 17px; }
.contact-icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-500); color: var(--on-primary); box-shadow: 0 8px 24px rgba(24, 144, 255, .35);
  animation: float 6s ease-in-out infinite;
}
.contact-svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-mail { font-weight: 600; font-size: 15px; word-break: break-all; }

/* ---------- chân trang ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--border); padding: 24px 0; font-size: 14px; color: var(--text-muted); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand-sm { font-size: 15px; gap: 8px; }
.brand-sm img { width: 24px; height: 24px; }

/* ---------- xuất hiện khi cuộn ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.grid .reveal:nth-child(2), .grid .reveal:nth-child(5) { transition-delay: .08s; }
.grid .reveal:nth-child(3), .grid .reveal:nth-child(6) { transition-delay: .16s; }

@keyframes shine { to { background-position: 300% 0; } }
@keyframes travel {
  0% { left: 12.5%; opacity: 0; }
  3% { opacity: 1; }
  85% { left: 87.5%; opacity: 1; }
  95%, 100% { left: 87.5%; opacity: 0; }
}
@keyframes fill {
  0% { background-size: 0% 100%, auto; }
  85% { background-size: 100% 100%, auto; }
  95%, 100% { background-size: 100% 100%, auto; opacity: 1; }
}
@keyframes pulse {
  0% { transform: scale(1); border-color: var(--primary-100); }
  4% { transform: scale(1.1); border-color: var(--primary-500); box-shadow: 0 0 0 8px rgba(24, 144, 255, .15); }
  14% { transform: scale(1); border-color: var(--primary-300); box-shadow: var(--shadow); }
  100% { transform: scale(1); border-color: var(--primary-100); }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blink { 50% { opacity: .3; } }

/* Quy trình dọc (điện thoại): mỗi bước 1–3 có một đoạn nối tới bước sau; đoạn k sáng dần + chấm chạy trong khoảng
   thời gian của nó (cùng nhịp 12 giây với bản ngang: bước sáng lúc 0 · 3,4 · 6,8 · 10,2 giây) */
@keyframes vfill1 { 0% { background-size: 100% 0%, auto; } 28.33%, 100% { background-size: 100% 100%, auto; } }
@keyframes vfill2 { 0%, 28.33% { background-size: 100% 0%, auto; } 56.67%, 100% { background-size: 100% 100%, auto; } }
@keyframes vfill3 { 0%, 56.67% { background-size: 100% 0%, auto; } 85%, 100% { background-size: 100% 100%, auto; } }
@keyframes vdot1 {
  0% { top: 21.5px; opacity: 1; }
  28.33% { top: calc(100% + 21.5px); opacity: 1; }
  28.34%, 100% { top: calc(100% + 21.5px); opacity: 0; }
}
@keyframes vdot2 {
  0%, 28.33% { top: 21.5px; opacity: 0; }
  28.34% { top: 21.5px; opacity: 1; }
  56.67% { top: calc(100% + 21.5px); opacity: 1; }
  56.68%, 100% { top: calc(100% + 21.5px); opacity: 0; }
}
@keyframes vdot3 {
  0%, 56.67% { top: 21.5px; opacity: 0; }
  56.68% { top: 21.5px; opacity: 1; }
  85% { top: calc(100% + 21.5px); opacity: 1; }
  85.01%, 100% { top: calc(100% + 21.5px); opacity: 0; }
}

/* ---------- màn nhỏ ---------- */
@media (max-width: 1199px) and (min-width: 961px) {
  .hero-text { max-width: 470px; }
  .hero h1 { font-size: 44px; }
}
/* Màn hẹp hoặc màn dọc (tablet đứng): ảnh thành băng trên cùng, chữ nằm trên tấm trắng bo góc đè lên mép dưới ảnh
   → ảnh và chữ liền một khối, không còn ảnh đứng riêng + khoảng trống */
@media (max-width: 960px), (max-aspect-ratio: 4/5) {
  .hero { display: block; min-height: 0; }
  .hero::after { display: none; }
  .hero-bg { position: relative; inset: auto; height: clamp(220px, 66vw, 520px); background-position: left top; }
  .hero-row { display: block; padding-top: 0; padding-bottom: 0; }
  .hero-text {
    position: relative; max-width: none; margin: -28px -16px 0; padding: 24px 16px 0;
    background: var(--surface); border-radius: 20px 20px 0 0; text-align: center;
  }
  .lead { max-width: 560px; margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-facts { justify-content: center; }
}
@media (max-width: 960px) {
  .demo { grid-template-columns: 1fr; gap: 40px; }
  .demo-text h2, .demo-text { text-align: center; }
  .checks { justify-content: center; text-align: left; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cta-row { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav-links > a:not(.btn) { display: none; }
  /* Quy trình dọc: icon bên trái, đường nối + chấm sáng chạy từ bước 1 xuống bước 4 */
  .flow { grid-template-columns: 1fr; gap: 0; max-width: 480px; margin: 0 auto; }
  .flow::before, .flow::after { display: none; }
  .step { display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; text-align: left; padding: 0 0 28px; }
  .step:last-child { padding-bottom: 0; }
  .step-icon { width: 56px; height: 56px; margin: 0; grid-row: span 2; }
  .step-icon svg { width: 26px; height: 26px; }
  .step-icon::after { width: 22px; height: 22px; font-size: 12px; top: -6px; right: -6px; }
  .step h3 { align-self: end; padding-top: 2px; }
  .step p { margin-top: 2px; }
  .step:not(:last-child)::before {
    content: ""; position: absolute; left: 26.5px; top: 28px; bottom: -28px; width: 3px; border-radius: 3px;
    background: linear-gradient(var(--primary-500), var(--primary-500)) 0 0 / 100% 0% no-repeat, var(--primary-100);
  }
  .step:not(:last-child)::after {
    content: ""; position: absolute; left: 21.5px; top: 21.5px; width: 13px; height: 13px; border-radius: 50%;
    background: var(--primary-500); box-shadow: 0 0 0 6px rgba(24, 144, 255, .18); opacity: 0;
  }
  .step:nth-child(1)::before { animation: vfill1 12s linear infinite; }
  .step:nth-child(2)::before { animation: vfill2 12s linear infinite; }
  .step:nth-child(3)::before { animation: vfill3 12s linear infinite; }
  .step:nth-child(1)::after { animation: vdot1 12s linear infinite; }
  .step:nth-child(2)::after { animation: vdot2 12s linear infinite; }
  .step:nth-child(3)::after { animation: vdot3 12s linear infinite; }
  .section { padding: 64px 0; }
  h2 { margin-bottom: 32px; }
}
@media (max-width: 480px) {
  .nav-contact { display: none; }
}
@media (max-width: 400px) {
  .hero .grad { font-size: .7em; }
}
@media (max-width: 560px) {
  .grad { white-space: normal; font-size: .8em; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
  .hero-facts b { font-size: 26px; }
  .hero-facts span { font-size: 13px; line-height: 1.35; }
  /* Thẻ tính năng gọn: icon bên trái, chữ bên phải */
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; padding: 16px; }
  .card-icon { width: 48px; height: 48px; margin: 0; grid-row: span 2; }
  .card-icon svg { width: 26px; height: 26px; }
  .card h3 { align-self: end; }
  .card p { margin-top: 2px; }
  .demo-stage { flex-direction: column; min-height: 0; gap: 20px; }
  .board { margin-left: 0; width: 100%; max-width: 320px; }
  .hero-facts { gap: 20px; }
  .field { max-width: none; }
  .btn { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .app-list li { opacity: 1; transform: none; }
  .step:not(:last-child)::before { background-size: 100% 100%, auto; }
}
