/* FaViet landing page (FaViet plan 7.6): the app's blue, AdminLTE's font family */
:root {
    --blue: #007bff;
    --blue-dark: #0062cc;
    --ink: #212529;
    --muted: #6c757d;
    --line: #e3e7ec;
    --bg-alt: #f4f6f9;
    --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Menu anchors land below the sticky top bar */
section[id] { scroll-margin-top: 72px; }

body {
    margin: 0;
    font-family: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: #fff;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }

/* Top bar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { font-size: 26px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.brand span { color: var(--blue); }
.brand:hover { text-decoration: none; }
.menu { display: flex; gap: 22px; flex: 1; }
.menu a { color: var(--ink); font-weight: 600; }
.actions { display: flex; gap: 10px; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-ghost:hover { background: #eef5ff; }
.btn-lg { padding: 12px 26px; font-size: 18px; }
.btn-block { display: block; width: 100%; }

/* Hero */
.hero {
    padding: 88px 0 72px;
    text-align: center;
    background: linear-gradient(180deg, #eef5ff 0%, #fff 100%);
}
.hero h1 { font-size: 46px; line-height: 1.2; margin: 0 0 18px; }
.lead { font-size: 21px; color: #3d4852; max-width: 840px; margin: 0 auto 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hint { color: var(--muted); margin-top: 18px; font-size: 15px; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section h2 { font-size: 34px; margin: 0 0 8px; text-align: center; }
.section-lead { text-align: center; color: var(--muted); max-width: 720px; margin: 0 auto 40px; }

.grid { display: grid; gap: 20px; }
.features { grid-template-columns: repeat(4, 1fr); }
.plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: #4a5560; font-size: 16px; }

/* Plans */
.plan { display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 22px; }
.plan .price { font-size: 32px; font-weight: 700; color: var(--ink); margin-top: 6px; white-space: nowrap; }
.plan .price span { font-size: 17px; font-weight: 400; color: var(--muted); }
.plan .price-note { color: var(--muted); font-size: 15px; min-height: 24px; }
.plan ul { padding-left: 20px; margin: 18px 0 24px; flex: 1; }
.plan li { margin-bottom: 6px; }
.plan-featured { border: 2px solid var(--blue); box-shadow: 0 8px 24px rgba(0, 123, 255, 0.12); }
.badge {
    position: absolute;
    top: -13px;
    right: 20px;
    background: var(--blue);
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 20px;
}
.price-footnote { text-align: center; color: var(--muted); font-size: 15px; margin-top: 24px; }

/* FAQ */
details {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 12px;
}
summary { cursor: pointer; font-weight: 600; font-size: 18px; }
details p { margin: 10px 0 0; color: #4a5560; }

/* Contact, footer */
.contact-list { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 20px 0 32px; }
.contact-item {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.contact-item:hover { text-decoration: none; border-color: var(--blue); }
.contact-label { color: var(--muted); font-size: 14px; }
.contact-value { font-size: 20px; font-weight: 600; white-space: nowrap; }
.footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 15px; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Tablet */
@media (max-width: 991px) {
    .features { grid-template-columns: repeat(2, 1fr); }
    /* Three plan columns are too narrow for the prices: one column, centred */
    .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; gap: 28px; }
    .menu { display: none; }
    .topbar-inner { justify-content: space-between; }
    .hero h1 { font-size: 38px; }
}

/* Phone */
@media (max-width: 640px) {
    body { font-size: 16px; }
    .features, .plans { grid-template-columns: 1fr; }
    .hero { padding: 56px 0 48px; }
    .hero h1 { font-size: 30px; }
    .lead { font-size: 18px; }
    .section { padding: 52px 0; }
    .section h2 { font-size: 28px; }
    .actions .btn-ghost { display: none; }
    .plans { gap: 28px; }
}

/* Text pages (chinh-sach-bao-mat.html): headings on the left, smaller than the home page's sections */
.policy h1 { font-size: 36px; margin: 0 0 4px; }
.policy h2 { text-align: left; font-size: 22px; margin: 32px 0 8px; }
.policy li { margin-bottom: 6px; }
