/* Hệ thiết kế theo logo GoalCut: nền giấy ấm, xanh sân đậm, một màu nhấn vàng (chỉ đặt trên nền xanh đậm hoặc kèm chữ đậm màu). Thiết kế cho máy tính trước.
   --lime giữ tên cũ nhưng giờ là màu vàng của logo. */
:root {
  --paper: #f6f5ef;
  --surface: #ffffff;
  --ink: #12201b;
  --muted: #4b5a53;
  --line: #dcdacd;
  --pitch: #16482a;
  --pitch-deep: #0d2515;
  --pitch-tint: #e7efe8;
  --lime: #fcc930;  /* vàng của logo GoalCut */
  --danger: #9c2219;
  --danger-tint: #fbeae8;
  --warn: #6b4a00;
  --warn-tint: #fdf1cc;
  --display: "Barlow Condensed", "Be Vietnam Pro", sans-serif;
  --body: "Be Vietnam Pro", -apple-system, "Segoe UI", sans-serif;
  --r: 10px;
  --shadow: 0 1px 2px rgb(18 32 27 / 6%), 0 8px 24px rgb(18 32 27 / 6%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--body); min-height: 100vh; display: flex; flex-direction: column; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; margin: 0 0 .4em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--pitch); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #1c6dd0; outline-offset: 2px; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }
.narrow { max-width: 460px; }
.compact { max-width: 640px; }
.medium { max-width: 860px; }
.gap-top { margin-top: 16px; }
.block-title { margin-top: 40px; }
.source { margin-top: 24px; overflow-wrap: anywhere; }
.card-end { margin: 18px 0 0; }
.plans-note { margin-top: 20px; max-width: 860px; }
.after-plans { margin-top: 16px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 5; background: var(--surface); padding: 8px 12px; }

/* đầu trang */
.top { background: var(--pitch-deep); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.logo { font: 700 1.5rem/1 var(--display); color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.logo img { width: 40px; height: 40px; display: block; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a, .nav button { color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 6px; font: 500 .95rem var(--body); background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button:hover { background: rgb(255 255 255 / 10%); }
.nav .credit { background: rgb(252 201 48 / 14%); color: var(--lime); font-weight: 600; }
.banner { background: var(--warn-tint); color: var(--warn); border-bottom: 1px solid #ecd98d; padding: 10px 0; font-size: .92rem; }

main { flex: 1; }
.section { padding-block: 56px; }
.section.tight { padding-block: 32px 56px; }

/* nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 8px; border: 2px solid var(--pitch); background: var(--pitch); color: #fff; font: 600 1rem var(--body); text-decoration: none; cursor: pointer; transition: background-color .16s, color .16s, border-color .16s; }
.btn:hover { background: var(--pitch-deep); border-color: var(--pitch-deep); }
.btn.ghost { background: transparent; color: var(--pitch); }
.btn.ghost:hover { background: var(--pitch-tint); }
.btn.lime { background: var(--lime); border-color: var(--lime); color: var(--pitch-deep); }
.btn.lime:hover { background: #eab51a; border-color: #eab51a; }
.btn.line-light { background: transparent; border-color: rgb(255 255 255 / 55%); color: #fff; }
.btn.line-light:hover { background: rgb(255 255 255 / 10%); border-color: #fff; }
.btn.block { width: 100%; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .65; cursor: progress; }

/* trang chủ */
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 16px; }
h2.title { font-size: clamp(2rem, 3.4vw, 2.75rem); max-width: 18em; margin-bottom: 28px; }
.lead { font-size: 1.1rem; }
.hero { color: #fff; padding: 72px 0 76px; background: var(--pitch-deep); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 4.5vw, 3.9rem); }
.hero h1 span { color: var(--lime); display: block; }
.hero .lead { color: #d5e2dc; max-width: 32em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* hình ở đầu trang: số liệu thật của một trận, vẽ bằng SVG (không dùng thuộc tính style vì CSP cấm) */
.proof { margin: 0; background: #163421; border: 1px solid rgb(255 255 255 / 12%); border-radius: 16px; padding: 24px; }
.proof video { margin-bottom: 20px; }
.proof p { margin: 0; }
.proof-title { font-size: .9rem; color: #b4c8bf; }
.proof-numbers { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 18px; margin: 2px 0 18px !important; color: #d5e2dc; }
.proof-numbers b { font: 700 3.4rem/1.05 var(--display); color: #fff; margin-right: 6px; font-variant-numeric: tabular-nums; }
.proof-numbers span + i + span b { color: var(--lime); }
.proof-numbers i { font: 700 2rem var(--display); color: var(--lime); font-style: normal; }
.funnel { display: block; width: 100%; height: 164px; margin: 6px 0; }
.funnel-label { font-size: .8rem; color: #b4c8bf; }
.f-track { fill: rgb(255 255 255 / 10%); }
.f-seg.goal { fill: var(--lime); } .f-seg.play { fill: #8fbfa8; } .f-seg.frame { fill: #ffffff; }
.f-ribbon { opacity: .14; fill: #ffffff; } .f-ribbon.goal { fill: var(--lime); opacity: .34; } .f-ribbon.play { fill: #8fbfa8; opacity: .2; }
.legend { list-style: none; padding: 14px 0 0; margin: 14px 0 0; border-top: 1px solid rgb(255 255 255 / 12%); display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .88rem; color: #d5e2dc; }
.legend li::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 8px; background: #fff; }
.legend li.goal::before { background: var(--lime); } .legend li.play::before { background: #8fbfa8; }

/* trong video có gì */
.section.dark { background: var(--pitch-deep); color: #fff; }
.feature { background: #163421; border-radius: 16px; padding: 28px; display: flex; flex-direction: column; }
.feature h3 { font-size: 1.6rem; }
.feature p { color: #c3d5cd; margin: 0; max-width: 34em; }
.feature .art { margin-top: auto; }
.lead-feature { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; margin-bottom: 18px; }
.lead-feature .art { padding-top: 0; margin: 0; }
.feature-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.art-note { font-size: .8rem; color: #9fb7ac; margin: 14px 0 0; }
.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; font-size: .84rem; text-align: center; }
.phases span { padding: 10px 4px; background: rgb(255 255 255 / 10%); }
.phases span:first-child { border-radius: 8px 0 0 8px; } .phases span:last-child { border-radius: 0 8px 8px 0; }
.phases .hot { background: var(--lime); color: var(--pitch-deep); font-weight: 600; }
.chips { list-style: none; margin: 0; padding: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { background: rgb(255 255 255 / 10%); border-radius: 99px; padding: 8px 16px; font-size: .9rem; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; margin: 0; padding: 24px 0 0; list-style: none; text-align: center; font-size: .84rem; }
.flow li { background: rgb(255 255 255 / 10%); padding: 14px 3px; }
.flow li:first-child { border-radius: 8px 0 0 8px; } .flow li:last-child { border-radius: 0 8px 8px 0; }

.fit-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.band { background: #eeede4; }
#bang-gia .title { margin-inline: auto; text-align: center; }
#bang-gia .plans { margin-inline: auto; }

/* ba bước có hình */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.step h3 { margin-top: 18px; }
.step p { margin: 0; color: var(--muted); }
.step-art { height: 190px; border: 1px solid #cfe0d7; border-radius: 10px; background: var(--pitch-tint); padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 10px; font-size: .8rem; }
.mini-input { background: #fff; border: 2px solid var(--pitch); border-radius: 7px; padding: 8px 10px; color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mini-check { display: flex; align-items: center; gap: 8px; }
.mini-check i { width: 14px; height: 14px; border-radius: 3px; background: var(--pitch); }
.mini-btn { background: var(--pitch); color: #fff; border-radius: 7px; padding: 9px; text-align: center; font-weight: 600; }
.mini-progress { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.mini-progress li { display: flex; gap: 9px; align-items: center; color: var(--muted); }
.mini-progress li::before { content: ""; width: 13px; height: 13px; border-radius: 50%; border: 2px solid #a9bdb3; background: #fff; flex: none; }
.mini-progress li.past { color: var(--ink); }
.mini-progress li.past::before { background: var(--pitch); border-color: var(--pitch); }
.mini-progress li.now { color: var(--ink); font-weight: 600; }
.mini-progress li.now::before { border-color: var(--pitch); box-shadow: 0 0 0 4px rgb(22 72 42 / 16%); }
.mini-player { flex: 1; border-radius: 8px; background: var(--pitch-deep); display: grid; place-items: center; }
.mini-player i { border: solid transparent; border-width: 11px 0 11px 18px; border-left-color: var(--lime); margin-left: 5px; }
.mini-file { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 7px; padding: 6px 6px 6px 12px; }
.mini-file b { background: var(--pitch); color: #fff; border-radius: 5px; padding: 4px 12px; }

/* đối tượng, điều kiện, hỏi đáp, kêu gọi */
.checks { padding: 0; margin: 0; list-style: none; }
.checks li { padding: 11px 0 11px 30px; border-bottom: 1px solid var(--line); position: relative; }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ""; position: absolute; left: 4px; top: 17px; width: 6px; height: 12px; border: solid var(--pitch); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.faq { margin: 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 700 1.7rem var(--display); color: var(--pitch); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }
.cta { background: var(--pitch); color: #fff; text-align: center; padding: 60px 0; }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); }
.plan-list { list-style: none; padding: 0; margin: 6px 0 18px; font-size: .94rem; }
.plan-list li { padding: 4px 0 4px 24px; position: relative; }
.plan-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 5px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* thẻ và bảng giá */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; box-shadow: var(--shadow); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 860px; margin-top: 24px; align-items: stretch; }
#bang-gia .after-plans, #bang-gia .plans-note { max-width: 860px; margin-inline: auto; }
.plan { display: flex; flex-direction: column; }
.plan form, .plan .buy { margin-top: auto; }
.plan.month { background: var(--pitch-deep); color: #fff; border-color: var(--pitch-deep); }
.plan.month .muted { color: #bcd0c7; }
.price { font: 700 3rem/1.05 var(--display); margin: 4px 0 2px; }
.price small { font: 500 1rem var(--body); }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0 16px; }
.qty input { width: 112px; }
.qty label { margin: 0; white-space: nowrap; }
.qty input[type="number"] { width: 112px; }
.total { font-weight: 600; }

/* biểu mẫu */
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="text"], input[type="url"], input[type="password"], input[type="number"] { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid #b9b8aa; border-radius: 8px; font: 400 1rem var(--body); background: #fff; color: var(--ink); }
input:focus { border-color: var(--pitch); }
.field { margin-bottom: 18px; }
.hint { font-size: .875rem; color: var(--muted); margin-top: 6px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .93rem; margin-bottom: 20px; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--pitch); }
.alert { border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; border: 1px solid; }
.alert.error { background: var(--danger-tint); border-color: #e5b3ae; color: var(--danger); }
.alert.warn { background: var(--warn-tint); border-color: #ecd98d; color: var(--warn); }
.alert.ok { background: var(--pitch-tint); border-color: #b5d3c5; color: var(--pitch-deep); }

/* bảng điều khiển */
.dash { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.balance .big { font: 700 4rem/1 var(--display); color: var(--pitch); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .82rem; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.link { max-width: 360px; overflow-wrap: anywhere; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .82rem; font-weight: 600; white-space: nowrap; background: #ecebe2; color: var(--muted); }
.tag.done, .tag.paid { background: var(--pitch-tint); color: var(--pitch-deep); }
.tag.running, .tag.queued, .tag.pending { background: var(--warn-tint); color: var(--warn); }
.tag.failed, .tag.review { background: var(--danger-tint); color: var(--danger); }
.empty { text-align: center; padding: 36px 20px; border: 2px dashed var(--line); border-radius: var(--r); color: var(--muted); }

/* tiến độ */
.progress { list-style: none; margin: 24px 0; padding: 0; }
.progress li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding-bottom: 20px; position: relative; color: var(--muted); }
.progress li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line); }
.progress .dot { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; font: 700 .95rem var(--display); }
.progress li.past { color: var(--ink); }
.progress li.past .dot { background: var(--pitch); border-color: var(--pitch); color: #fff; }
.progress li.past:not(:last-child)::after { background: var(--pitch); }
.progress li.now { color: var(--ink); font-weight: 600; }
.progress li.now .dot { border-color: var(--pitch); color: var(--pitch); animation: pulse 1.6s ease-in-out infinite; }
.progress .note { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgb(22 72 42 / 14%); } }
video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r); display: block; }

.app h1 { font-size: clamp(1.9rem, 3vw, 2.4rem); }
.app .card { box-shadow: none; }
.todo { padding-left: 1.2em; margin: 0 0 20px; }
.todo li { padding: 4px 0; }
code.login { background: var(--pitch-tint); padding: 2px 8px; border-radius: 5px; font-size: 1rem; user-select: all; }
footer.slim { padding: 16px 0 20px; background: transparent; font-size: .85rem; }
footer.slim .wrap { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; }
.slim-links { display: flex; gap: 18px; }

footer { border-top: 1px solid var(--line); padding: 40px 0; font-size: .9rem; color: var(--muted); background: var(--surface); }
.foot { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot h2 { font-size: 1.15rem; color: var(--ink); }
.foot nav a, .foot > div > a:not(.logo) { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; }
.foot nav a:hover, .foot > div > a:hover { text-decoration: underline; }
.dark-logo { color: var(--ink); margin-bottom: 10px; }

@media (max-width: 860px) {
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 36px 0 44px; }
  .hero-grid, .dash, .plans, .steps, .foot, .lead-feature, .feature-pair, .fit-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .feature-pair { gap: 14px; }
  .feature, .proof { padding: 18px; }
  .proof-numbers b { font-size: 2.6rem; }
  .funnel { height: 120px; }
  .phases, .flow { grid-template-columns: 1fr 1fr; }
  .phases span, .flow li, .phases span:first-child, .phases span:last-child, .flow li:first-child, .flow li:last-child { border-radius: 6px; }
  .nav .hide-sm { display: none; }
  .section { padding-block: 36px; }
  .card { padding: 20px; }
  .jobs thead { display: none; }
  .jobs tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .jobs td { padding: 0; border: 0; }
  .jobs td.link { grid-column: 1 / -1; grid-row: 2; font-size: .85rem; color: var(--muted); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
