/* FastMate site — shared styles. Brand: blue #1B51A3, green #4BB364 (from the HireMate logo). */
:root {
  --blue: #1B51A3; --blue-600: #144083; --blue-50: #EEF2FD;
  --green: #4BB364; --green-700: #2B7A3E; --green-50: #EDF8EF;
  --ink: #151515; --ink-2: #4A4F57; --ink-3: #6B7078;
  --line: #E6E8EC; --bg: #FFFFFF; --bg-2: #F6F8FB;
  --radius: 16px; --shadow: 0 10px 30px rgba(20, 40, 80, .08);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-3); }
.center { text-align: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; }
.brand .logo { height: 38px; width: auto; display: block; }
.site-footer .brand .logo { height: 30px; }
.brand .accent { color: var(--green); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--blue); text-decoration: none; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
.nav a.lang { font-size: 13px; font-weight: 600; padding: 4px 10px; border: 1.5px solid var(--line); border-radius: 999px; }
.nav a.lang:hover { border-color: var(--blue); }

/* Buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 10px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: background .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-600); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-700); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* Sections */
section { padding: 80px 0; }
.section-alt { background: var(--bg-2); }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-700); background: var(--green-50); padding: 4px 12px; border-radius: 999px; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -.02em; margin: 18px 0; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.015em; margin: 0 0 12px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 640px; }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head .lead { margin: 0 auto; }

/* Hero */
.hero { padding: 72px 0 64px; background: radial-gradient(1200px 400px at 80% -10%, var(--blue-50), transparent), radial-gradient(800px 300px at 0% 10%, var(--green-50), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-art { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 28px; border: 1px solid var(--line); }
.trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; font-size: 14px; color: var(--ink-3); }
.trust span::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 6px; }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue); margin-bottom: 16px; }
.icon.green { background: var(--green-50); color: var(--green-700); }

/* Product tiles (FastMate home) */
.product { display: flex; flex-direction: column; gap: 14px; }
.product .logo-row { display: flex; align-items: center; gap: 12px; }
.product .logo-row img { width: 48px; height: 48px; border-radius: 12px; }
.product .tag { font-size: 12px; font-weight: 700; color: var(--green-700); background: var(--green-50); padding: 2px 10px; border-radius: 999px; }
.product.soon { background: var(--bg-2); border-style: dashed; }
.product.soon .tag { color: var(--ink-3); background: #fff; }
.product .links { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; display: grid; place-items: center; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; justify-content: center; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.plan.featured { border: 2px solid var(--green); box-shadow: var(--shadow); position: relative; }
.plan.featured::before { content: "Most popular"; position: absolute; top: -13px; left: 32px; background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.price small { font-size: 16px; font-weight: 500; color: var(--ink-3); }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { padding-left: 28px; position: relative; font-size: 15px; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232B7A3E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan .btn { margin-top: auto; }
.billing-note { text-align: center; margin-top: 18px; font-size: 14px; }

.billing { display: flex; width: max-content; max-width: 100%; margin: 0 auto 28px; padding: 4px; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.billing button { border: 0; background: transparent; padding: 8px 16px; border-radius: 9px; font: 600 14px Inter, system-ui, sans-serif; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.billing button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.billing .save { color: var(--green-700); font-weight: 700; margin-left: 4px; }
@media (max-width: 420px) { .billing button { padding: 8px 10px; font-size: 13px; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--blue); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--ink-2); margin: 10px 0 0; }

/* CTA band */
.cta { background: linear-gradient(120deg, var(--blue), #2563B8 55%, var(--green)); color: #fff; border-radius: 24px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin: 0; }
.cta p { margin: 6px 0 0; opacity: .9; }
.cta .btn-ghost { border-color: transparent; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h1 { font-size: 38px; margin: 0 0 6px; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 28px; }
.note { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; background: #fff; font-size: 14px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links div { display: flex; flex-direction: column; gap: 8px; }
.footer-links strong { color: var(--ink); }
.footer-links a { color: var(--ink-2); }
.disclaimer { margin-top: 28px; color: var(--ink-3); font-size: 12px; }

@media (max-width: 860px) {
  .hero-grid, .grid-3, .grid-2, .pricing { grid-template-columns: 1fr; }
  .nav a:not(.btn) { display: none; }
  .nav a.lang:not(.btn) { display: inline-block; }
  section { padding: 56px 0; }
  .cta { padding: 32px; }
}
html[lang="vi"] .plan.featured::before { content: "Phổ biến nhất"; }
