/* =========================================================
   Landing page – HLV Tùng Nguyễn Pickleball
   Màu sắc: đổi ở :root là đổi toàn trang
   ========================================================= */
:root {
  color-scheme: light;
  --ink: #0c2233;          /* xanh đêm – chữ chính, nền tối */
  --ink-soft: #3d5163;     /* chữ phụ */
  --bg: #f6f8f3;           /* nền trang */
  --card: #ffffff;
  --line: #dfe6dc;
  --brand: #0e7c66;        /* xanh sân */
  --brand-soft: #e3f3ee;
  --ball: #d6f34b;         /* vàng chanh – màu bóng pickleball, dùng cho nút chính */
  --ball-hover: #c7e835;
  --zalo: #0068ff;
  --call: #16a34a;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(12, 34, 51, .08);
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 76px; /* chừa chỗ cho thanh nút dưới cùng trên điện thoại */
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 4.5vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 56px 0; }
.section--white { background: var(--card); }
.section__lead { color: var(--ink-soft); max-width: 640px; margin-bottom: 28px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border-radius: 12px; border: 0;
  font: inherit; font-weight: 700; font-size: 1.02rem; text-decoration: none; cursor: pointer;
  transition: background .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--ball); color: var(--ink); }
.btn--primary:hover { background: var(--ball-hover); }
.btn--ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn--ghost:hover { border-color: #fff; }
.btn--zalo { background: var(--zalo); color: #fff; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ---------- Đầu trang ---------- */
.topbar { background: var(--ink); color: #fff; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.logo { font-weight: 800; font-size: 1.1rem; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo__ball { width: 22px; height: 22px; border-radius: 50%; background: var(--ball); display: inline-block;
  box-shadow: inset -4px -4px 0 rgba(0,0,0,.12); }
.topbar__call { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: #fff; padding: 32px 0 48px; overflow: hidden; }
.hero .wrap { display: grid; gap: 28px; }
.hero .eyebrow { background: rgba(214,243,75,.15); color: var(--ball); }
.hero h1 { font-size: clamp(1.9rem, 7vw, 3.1rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--ball); }
.hero__sub { font-size: 1.08rem; color: #d5dee6; max-width: 560px; }
.hero__ctas { display: flex; flex-direction: column; gap: 12px; margin: 22px 0 14px; }
.hero__note { font-size: .82rem; color: #9fb1c0; max-width: 560px; }
.trust { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trust li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 6px 12px;
  border-radius: 999px; font-size: .9rem; font-weight: 600; }
.hero__photo { position: relative; max-width: 440px; justify-self: center; width: 100%; }
.hero__photo img { border-radius: 20px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; width: 100%; }
.hero__badge {
  position: absolute; left: -6px; bottom: 18px; background: var(--ball); color: var(--ink);
  border-radius: 14px; padding: 10px 14px; font-weight: 800; line-height: 1.2; box-shadow: var(--shadow);
}
.hero__badge small { display: block; font-weight: 600; font-size: .78rem; }

/* ---------- Thẻ ---------- */
.cards { display: grid; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section--white .card { background: var(--bg); }
.card__icon { font-size: 1.8rem; line-height: 1; margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card__quote { color: var(--brand); font-weight: 600; font-style: italic; }
.note-box { margin-top: 20px; background: var(--brand-soft); border-radius: var(--radius); padding: 16px 18px; }
.note-box p:last-child { margin-bottom: 0; }

/* ---------- Các bước học thử ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: buoc; }
.steps li { counter-increment: buoc; position: relative; padding: 18px 18px 18px 64px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before {
  content: counter(buoc); position: absolute; left: 18px; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--ball); font-weight: 800; display: grid; place-items: center;
}
.steps strong { display: block; }
.cost { margin-top: 20px; display: grid; gap: 10px; }
.cost div { display: flex; gap: 10px; align-items: baseline; background: var(--card); border-radius: 12px; padding: 12px 16px;
  border: 1px solid var(--line); }
.cost b { min-width: 92px; }

/* ---------- Lộ trình ---------- */
.timeline { display: grid; gap: 14px; }
.week { background: var(--bg); border-radius: var(--radius); padding: 20px; border-left: 6px solid var(--brand); }
.week__tag { font-size: .8rem; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; }
.week ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-soft); }
.fineprint { font-size: .85rem; color: var(--ink-soft); margin-top: 16px; }

/* ---------- Về HLV ---------- */
.coach { display: grid; gap: 28px; align-items: center; }
.coach__photo img { border-radius: 20px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; width: 100%; max-width: 420px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.stat b { display: block; font-size: 1.35rem; font-weight: 800; }
.stat span { font-size: .8rem; color: var(--ink-soft); line-height: 1.3; display: block; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ball); color: var(--ink); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }

/* ---------- Học phí ---------- */
.prices { display: grid; gap: 16px; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.price h3 { margin-bottom: 14px; }
.price__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); }
.price__row b { font-size: 1.15rem; white-space: nowrap; }
.price__row small { color: var(--ink-soft); font-weight: 400; font-size: .8rem; }
.price--free { background: var(--ink); color: #fff; border-color: var(--ink); }
.price--free .price__big { font-size: 2rem; font-weight: 800; color: var(--ball); line-height: 1.1; margin-bottom: 8px; }
.price--free p { color: #d5dee6; }
.info-grid { display: grid; gap: 16px; margin-top: 16px; }

/* ---------- Form ---------- */
.signup { background: var(--ink); color: #fff; }
.signup .section__lead { color: #d5dee6; }
.signup__head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.signup__head img { width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--ball); }
.form-card { background: var(--card); color: var(--ink); border-radius: 20px; padding: 22px; box-shadow: var(--shadow); max-width: 640px; }
.field { margin-bottom: 18px; border: 0; padding: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.req { color: var(--danger); }
input[type="text"], input[type="tel"], input[type="email"] {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink);
  border: 1.5px solid #c9d3cf; border-radius: 12px; background: #fff;
}
input:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgba(14,124,102,.2); }
.choices { display: grid; gap: 8px; }
.choice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1.5px solid #c9d3cf;
  border-radius: 12px; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.choice input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.field > .consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; font-weight: 400; margin: 0; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* ô bẫy bot */
.form-msg:empty { display: none; }
.form-msg { margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.form-msg--loi { background: var(--danger-soft); color: var(--danger); }
.success { text-align: center; padding: 10px 4px; }
.success__icon { font-size: 3rem; line-height: 1; }
.success:focus { outline: none; }
.form-alt { margin-top: 14px; font-size: .92rem; color: var(--ink-soft); text-align: center; }
.form-alt a { white-space: nowrap; }

/* ---------- Câu hỏi thường gặp ---------- */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 44px 16px 18px; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 12px; font-size: 1.4rem; color: var(--brand); }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 18px 16px; color: var(--ink-soft); }

/* ---------- Chân trang ---------- */
.footer { background: #08192a; color: #b8c6d2; padding: 36px 0; font-size: .92rem; }
.footer a { color: #fff; }
.footer__grid { display: grid; gap: 18px; }
.footer strong { color: #fff; }

/* ---------- Thanh nút dưới cùng (điện thoại) ---------- */
.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr 1.4fr;
  gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
  border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(12,34,51,.08);
}
.sticky-bar a { min-height: 48px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  gap: 6px; font-weight: 700; text-decoration: none; font-size: .95rem; }
.sticky-bar .s-call { background: var(--call); color: #fff; }
.sticky-bar .s-zalo { background: var(--zalo); color: #fff; }
.sticky-bar .s-reg { background: var(--ball); color: var(--ink); }

/* ---------- Màn hình lớn ---------- */
@media (min-width: 720px) {
  .hero__ctas { flex-direction: row; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--2, .info-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .prices { grid-template-columns: 1fr 1fr 1fr; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr; }
  .form-card { padding: 32px; }
  .choices--2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .sticky-bar { display: none; }
  .section { padding: 80px 0; }
  .hero { padding: 56px 0 72px; }
  .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
  .coach { grid-template-columns: .8fr 1.2fr; gap: 56px; }
  .timeline { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
