/* VietAgentz – màu theo brand guideline */
:root {
  --red: #ED1C29;
  --red-dark: #B8131E;
  --red-light: #FF4D57;
  --gray: #504D50;
  --gray-light: #D1D3D4;
  --line: #E6E7E8;
  --bg-soft: #F3F4F4;
  --ink: #2E2C2E;
  --muted: #6E6B6E;
  --white: #FFFFFF;
  --radius: 12px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 800; }
p { margin: 0; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--ink); color: var(--white); }
.section-red { background: var(--red); color: var(--white); }
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--red); }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(30px, 4vw, 40px); }
.section-head p { font-size: 17px; line-height: 1.6; color: var(--gray); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; border-radius: 6px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; border: 1.5px solid transparent; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); color: var(--white); }
.btn-outline { background: var(--white); color: var(--ink); border-color: var(--gray); }
.btn-outline:hover { color: var(--red); border-color: var(--red); }
.btn-white { background: var(--white); color: var(--red); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--gray); }
.nav a:hover { color: var(--red); }
.menu-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 24px; border-top: 1px solid var(--line); }
  .header-cta { display: none; }
}

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 40px; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-text h1 { font-size: clamp(38px, 5.5vw, 56px); line-height: 1.12; }
.hero-text h1 span { color: var(--red); }
.hero-text p { font-size: 19px; line-height: 1.6; color: var(--gray); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }
.hero-members { flex: 1 1 440px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hero-member .photo { height: 220px; }
.hero-member b { display: block; margin-top: 10px; font-size: 15px; }
.hero-member small { color: var(--muted); font-size: 13px; }

/* Manifesto (hero right) */
.manifesto { flex: 1 1 420px; min-width: 0; background: var(--red); color: var(--white); border-radius: 14px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 6px; }
.manifesto p { font-size: clamp(24px, 2.8vw, 32px); font-weight: 700; line-height: 1.3; }
.manifesto p.strong { font-weight: 800; margin-top: 10px; }
.manifesto-foot { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.4); font-size: 13px; line-height: 1.5; }
.manifesto-foot img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }

/* Invite card */
.invite-card { border: 2px dashed var(--gray-light); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; justify-content: center; gap: 14px; color: var(--ink); min-height: 320px; }
.invite-card:hover { border-color: var(--red); color: var(--ink); }
.invite-card h3 { font-size: 22px; }
.invite-card p { color: var(--gray); line-height: 1.6; }
.invite-card span { color: var(--red); font-weight: 700; }

/* Lyrics */
.lyrics { flex: 1; min-width: 0; }
.lyrics summary { cursor: pointer; list-style: none; }
.lyrics summary::-webkit-details-marker { display: none; }
.lyrics summary small { display: block; }
.lyrics-body { margin-top: 16px; max-height: 360px; overflow-y: auto; padding-right: 8px; display: flex; flex-direction: column; gap: 16px; font-size: 15px; line-height: 1.7; color: #E6E7E8; }
.lyrics-body i { color: var(--red-light); font-style: normal; font-weight: 700; font-size: 13px; }

/* Photo + placeholder */
.photo { border-radius: 10px; background: var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 40px; font-weight: 800; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* Brand band motif – đường nhận diện theo CIP (vector gốc) */
.band { display: flex; align-items: flex-start; padding-bottom: 56px; padding-right: max(24px, calc((100vw - 1240px) / 2 + 24px)); overflow: hidden; }
.band .bar { flex: 1 1 auto; height: 12px; margin-top: 22px; background: #D3D2D2; margin-right: -1px; }
.band .band-end { flex: 0 0 auto; display: block; }

/* Vision */
.vision-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
.vision-head h2 { font-size: clamp(26px, 3.5vw, 34px); max-width: 640px; line-height: 1.2; }
.vision-grid { display: flex; flex-wrap: wrap; gap: 16px; }
.vision-item { flex: 1 1 220px; border: 1.5px solid var(--white); border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.vision-item.now { background: var(--white); color: var(--ink); }
.vision-item.now strong { color: var(--red); }
.vision-item span { font-size: 13px; font-weight: 600; }
.vision-item strong { font-size: clamp(30px, 3.5vw, 40px); font-weight: 800; line-height: 1.1; }

/* Member cards */
.row-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.row-head .section-head { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.member-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); display: flex; flex-direction: column; background: var(--white); }
.member-card:hover { border-color: var(--red); color: var(--ink); }
.member-card .photo { height: 260px; border-radius: 0; }
.member-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.member-card .top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.member-card h3 { font-size: 18px; font-weight: 700; }
.badge { font-size: 12px; font-weight: 700; color: var(--red); border: 1px solid var(--red); border-radius: 20px; padding: 3px 10px; white-space: nowrap; }
.member-card .area { font-size: 14px; color: var(--muted); }
.member-card .quote { font-size: 14px; line-height: 1.55; color: var(--gray); }
.member-card .stats { display: flex; gap: 18px; padding-top: 8px; margin-top: auto; border-top: 1px solid var(--line); font-size: 13px; color: var(--gray); }
.member-card .stats b { color: var(--ink); }

/* Rhythm */
.rhythm { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.rhythm-item { background: var(--white); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.rhythm-item span { font-size: 13px; font-weight: 700; color: var(--red); }
.rhythm-item h3 { font-size: 24px; }
.rhythm-item p { font-size: 14px; line-height: 1.55; color: var(--gray); }

/* Income */
.income { display: flex; flex-wrap: wrap; gap: 48px; }
.income-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.income-text h2 { font-size: clamp(30px, 4vw, 40px); line-height: 1.2; }
.rate-row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.rate-row b { color: var(--red); font-weight: 800; }
.note { font-size: 14px; color: var(--muted); line-height: 1.6; }
.calc { flex: 1 1 460px; min-width: 0; background: var(--ink); color: var(--white); border-radius: 14px; padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.calc h3 { font-size: 22px; }
.calc label { font-size: 14px; display: flex; justify-content: space-between; }
.calc input[type=range] { width: 100%; accent-color: var(--red); height: 28px; }
.fee-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
@media (max-width: 520px) { .fee-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fee-options button { min-height: 44px; padding: 0 4px; white-space: nowrap; border-radius: 6px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; background: transparent; color: var(--white); border: 1.5px solid #8A878A; }
.fee-options button[aria-pressed="true"] { background: var(--red); border-color: var(--red); }
.calc-result { border-top: 1px solid var(--gray); padding-top: 22px; display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.calc-result small { display: block; font-size: 13px; color: #C9CACB; }
.calc-result strong { font-size: 32px; font-weight: 800; }
.calc-result .income-value { font-size: 40px; color: var(--red-light); }
.calc-result .right { text-align: right; }

/* Stories */
.stories { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.story { background: var(--white); border-radius: var(--radius); overflow: hidden; }
.story .media { height: 200px; background: var(--gray-light); display: flex; align-items: center; justify-content: center; color: var(--gray); font-size: 13px; }
.story .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.story .tag { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .08em; }
.story h3 { font-size: 20px; line-height: 1.35; }
.story .who { font-size: 14px; color: var(--muted); }

/* Find broker */
.find { border: 1.5px solid var(--line); border-radius: 16px; padding: clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.find-text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.find-text h2 { font-size: clamp(26px, 3.5vw, 34px); line-height: 1.2; }
.find-text p { color: var(--gray); line-height: 1.6; }
.find-form { flex: 1 1 420px; min-width: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.field { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }
.find-form .field { flex: 1 1 180px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select, .field textarea { min-height: 50px; border: 1.5px solid var(--gray-light); border-radius: 6px; padding: 0 14px; font: inherit; font-size: 15px; background: var(--white); color: var(--ink); width: 100%; }
.field textarea { padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); outline: none; }

/* Founder */
.founder { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.founder img { flex: 0 1 400px; width: 400px; max-width: 100%; height: 400px; object-fit: cover; border-radius: var(--radius); }
.founder-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.founder-text .kicker { color: var(--red-light); }
.founder-text blockquote { margin: 0; font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; line-height: 1.45; }
.founder-text cite { font-style: normal; font-size: 15px; color: var(--gray-light); }
.song { display: flex; align-items: center; gap: 16px; background: #3B393B; border-radius: var(--radius); padding: 16px 20px; max-width: 520px; }
.song button { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--red); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.song b { display: block; }
.song small { font-size: 13px; color: #C9CACB; }

/* Join */
.join { display: flex; flex-wrap: wrap; gap: 48px; }
.join-text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.join-text h2 { font-size: clamp(32px, 4.5vw, 44px); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.steps .num { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--white); color: var(--red); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.steps b { display: block; font-size: 18px; }
.steps span { font-size: 15px; opacity: .92; }
.form-card { flex: 1 1 420px; min-width: 0; background: var(--white); color: var(--ink); border-radius: 14px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.form-card h3 { font-size: 20px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--gray); line-height: 1.5; }
.consent span { flex: 1; min-width: 0; }
.consent input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--red); flex: 0 0 auto; }
.form-msg { font-size: 14px; font-weight: 600; min-height: 20px; }
.form-msg.ok { color: #1F7A3E; }
.form-msg.err { color: var(--red-dark); }

/* Footer */
.site-footer { background: var(--bg-soft); font-size: 14px; color: var(--gray); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; padding-top: 56px; padding-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand img { height: 48px; width: auto; align-self: flex-start; }
.footer-brand > p { font-size: 15px; color: var(--ink); font-weight: 600; }
.footer-col h2 { font-size: 16px; color: var(--ink); margin-bottom: 18px; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-list li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.55; }
.footer-list svg { flex: 0 0 auto; color: var(--red); margin-top: 2px; }
.footer-list b { color: var(--ink); }
.footer-list a { color: var(--gray); }
.footer-list a:hover { color: var(--red); }
.socials { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.socials a { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; color: var(--ink); font-weight: 600; }
.socials a svg { color: var(--red); flex: 0 0 auto; }
.socials a:hover { border-color: var(--red); color: var(--red); }
.footer-bottom { border-top: 1px solid var(--gray-light); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 22px; font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--red); }

/* ===== Member profile page ===== */
.profile-hero { display: flex; flex-wrap: wrap; gap: 44px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.profile-hero .photo { flex: 0 1 360px; width: 360px; max-width: 100%; height: 380px; border-radius: 14px; background: var(--gray-light); font-size: 72px; }
.profile-info { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.profile-info h1 { font-size: clamp(36px, 5vw, 48px); line-height: 1.1; }
.profile-info .role { font-size: 18px; color: var(--gray); }
.profile-info .intro { font-size: 17px; line-height: 1.6; color: var(--gray); max-width: 620px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badges span { font-size: 12px; font-weight: 700; background: var(--white); border: 1px solid var(--gray-light); border-radius: 20px; padding: 5px 12px; }
.badges span:first-child { background: var(--red); border-color: var(--red); color: var(--white); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; padding-top: 40px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat strong { display: block; font-size: 34px; font-weight: 800; color: var(--red); }
.stat span { font-size: 14px; color: var(--gray); }
.profile-body { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 88px; }
.profile-main { flex: 999 1 560px; min-width: 0; }
.profile-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs button { min-height: 48px; padding: 0 18px; background: transparent; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; font: inherit; font-size: 15px; font-weight: 700; color: var(--muted); cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--red); border-bottom-color: var(--red); }
.tab-panel { display: flex; flex-direction: column; gap: 16px; }
.tab-panel[hidden] { display: none; }
.tab-panel h2 { font-size: 26px; }
.tab-panel h3 { font-size: 20px; margin-top: 16px; }
.tab-panel > p { font-size: 16px; line-height: 1.75; color: var(--gray); white-space: pre-line; }
.timeline-row { display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.timeline-row b { flex: 0 0 110px; font-size: 14px; color: var(--red); }
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.deal { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.deal span { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--white); background: var(--gray); border-radius: 4px; padding: 3px 8px; }
.deal small { color: var(--muted); }
.review { background: var(--bg-soft); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.review .stars { color: var(--red); letter-spacing: 2px; }
.review small { color: var(--muted); }
.empty { color: var(--muted); font-size: 15px; }
.side-box { border: 1.5px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.side-box h3 { font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span { font-size: 13px; font-weight: 600; background: var(--bg-soft); border-radius: 20px; padding: 7px 14px; }
.side-dark { background: var(--ink); color: var(--white); border: 0; }
.side-dark .field label { color: var(--white); }
.side-dark .form-msg.ok { color: #7DDC9C; }
.side-dark .form-msg.err { color: #FF9AA0; }
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.cta-band h2 { font-size: 30px; }

/* Legal page */
.legal { max-width: 760px; padding-top: 56px; padding-bottom: 88px; }
.legal h1 { font-size: 36px; margin-bottom: 24px; }
.legal h2 { font-size: 22px; margin: 28px 0 10px; }
.legal p, .legal li { line-height: 1.7; color: var(--gray); }
