/* SMS CalCu — tinhbang.win. Mobile-first, no framework, system fonts. */

:root {
  --brand: #0b5fff;
  --brand-ink: #0846c2;
  --brand-soft: #e8f0ff;
  --green: #0b7d40;
  --green-soft: #e5f6ec;
  --tg: #1a74a6;
  --ink: #0f1f33;
  --mute: #4f5f74;
  --line: #e2e8f0;
  --soft: #f4f7fb;
  --white: #fff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 31, 51, .08);
  --wrap: 1160px;
  --pad: clamp(16px, 4vw, 32px);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-ink); }
a:hover { color: var(--brand); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.8vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 8px; color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.ic { width: 24px; height: 24px; flex: none; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; text-decoration: none; line-height: 1.2;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 20px; height: 20px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-ink); color: #fff; }
.btn-tg { background: var(--tg); color: #fff; }
.btn-tg:hover { background: #155f88; color: #fff; }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-ink); }
.btn-block { width: 100%; }

/* ---------- Header / nav (CSS-only toggle) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.logo img { width: 36px; height: 36px; }
.logo small { display: block; font-weight: 500; font-size: .75rem; color: var(--mute); line-height: 1; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-right: -8px; border-radius: 12px; cursor: pointer;
}
.nav-btn span, .nav-btn span::before, .nav-btn span::after {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: transform .2s, background-color .2s;
}
.nav-btn span::before, .nav-btn span::after { content: ""; position: absolute; left: 0; }
.nav-btn span::before { top: -7px; }
.nav-btn span::after { top: 7px; }
.nav-toggle:focus-visible + .nav-btn { outline: 3px solid var(--brand); }
.nav-toggle:checked + .nav-btn span { background: transparent; }
.nav-toggle:checked + .nav-btn span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle:checked + .nav-btn span::after { transform: translateY(-7px) rotate(-45deg); }
.nav-menu { display: none; width: 100%; padding: 4px 0 16px; }
.nav-toggle:checked ~ .nav-menu { display: block; }
.nav-menu ul { list-style: none; }
.nav-menu a {
  display: flex; align-items: center; min-height: 48px; padding: 0 4px;
  color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line);
}
.nav-menu .nav-cta { margin-top: 12px; }
.nav-menu .nav-cta a { border: 0; justify-content: center; color: #fff; padding: 12px 22px; border-radius: 999px; }

@media (min-width: 960px) {
  .nav { flex-wrap: nowrap; }
  .nav-btn { display: none; }
  .nav-menu { display: flex !important; width: auto; padding: 0; align-items: center; gap: 8px; }
  .nav-menu ul { display: flex; gap: 2px; }
  .nav-menu a { border: 0; min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: .95rem; }
  .nav-menu a:hover { background: var(--soft); color: var(--brand-ink); }
  .nav-menu .nav-cta { margin: 0 0 0 8px; }
  .nav-menu .nav-cta a { min-height: 44px; padding: 0 18px; border-radius: 999px; }
  .nav-menu .nav-cta a:hover { background: #155f88; color: #fff; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--soft); }
.section-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section-head p { color: var(--mute); font-size: 1.05em; margin: 0; }
.eyebrow {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand-ink); font-size: .8rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(48px, 7vw, 96px); background: linear-gradient(180deg, #f6f9ff 0%, #fff 100%); overflow: hidden; }
.hero-grid { display: grid; gap: 32px; align-items: center; }
.hero h1 span { color: var(--brand); }
.hero .lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--mute); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.hero-cta .btn { flex: 1 1 200px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); font-size: .875rem; font-weight: 600; color: var(--mute);
}
.chips .ic { width: 16px; height: 16px; color: var(--green); }
.hero-art { max-width: 520px; margin: 0 auto; width: 100%; }
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .hero-cta .btn { flex: 0 0 auto; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
}
.card p { color: var(--mute); margin: 0; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; margin-bottom: 16px; border-radius: 14px;
  background: var(--brand-soft); color: var(--brand);
}
.card-icon.green { background: var(--green-soft); color: var(--green); }

/* ---------- App cards ---------- */
.app-card { display: flex; flex-direction: column; box-shadow: var(--shadow); border-top: 5px solid var(--brand); }
.app-card.nam { border-top-color: var(--green); }
.app-tag {
  align-self: flex-start; padding: 3px 10px; border-radius: 999px; margin-bottom: 12px;
  font-size: .8rem; font-weight: 700; background: var(--brand-soft); color: var(--brand-ink);
}
.nam .app-tag { background: var(--green-soft); color: var(--green); }
.app-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.3rem; }
.app-card h3 .ic { width: 28px; height: 28px; color: var(--brand); }
.app-card.nam h3 .ic { color: var(--green); }
.ticks { list-style: none; margin: 8px 0 20px; flex: 1; }
.ticks li { position: relative; padding-left: 28px; margin: 8px 0; color: var(--mute); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7d40' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.app-card .btn + .btn { margin-top: 10px; }
.note {
  margin-top: 24px; padding: 14px 18px; border-radius: 12px; background: var(--white);
  border: 1px dashed #c3cede; color: var(--mute); font-size: .95rem; text-align: center;
}

/* ---------- Steps ---------- */
.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 56px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 800; font-size: 1.1rem;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--mute); margin: 0; }

/* ---------- Licence ---------- */
.plan { position: relative; }
.plan.highlight { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan .badge {
  position: absolute; top: -12px; right: 16px; padding: 2px 10px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700;
}
.plan ul { list-style: none; margin-top: 12px; }
.plan li { position: relative; padding-left: 22px; margin: 6px 0; color: var(--mute); font-size: .95rem; }
.plan li::before { content: "•"; position: absolute; left: 6px; color: var(--brand); font-weight: 800; }
.card .price { font-weight: 700; color: var(--ink); margin-top: 12px !important; }

/* ---------- Agency banner ---------- */
.agency {
  display: grid; gap: 24px; align-items: center;
  background: linear-gradient(135deg, #0b5fff 0%, #0846c2 100%); color: #fff;
  border-radius: 24px; padding: clamp(24px, 5vw, 48px);
}
.agency h2 { color: #fff; }
.agency p, .agency li { color: #e6eeff; }
.agency .ticks li::before { background-color: rgba(255, 255, 255, .95); }
.agency .ticks { margin-bottom: 0; }
.agency .btn-ghost { border-color: transparent; }
@media (min-width: 880px) { .agency { grid-template-columns: 1.4fr 1fr; } .agency-cta { justify-self: end; } }

/* ---------- Videos ---------- */
.video-list { list-style: none; }
.video-list li + li { border-top: 1px solid var(--line); }
.video-list a {
  display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 10px 0;
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.video-list a:hover { color: var(--brand-ink); }
.video-list .ic { color: #d63a3a; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px;
}
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 20px; cursor: pointer; font-weight: 700; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--mute);
  border-bottom: 2.5px solid var(--mute); transform: rotate(45deg) translateY(-3px); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details > div { padding: 0 20px 18px; color: var(--mute); }
.faq details > div p:last-child { margin: 0; }

/* ---------- Contact ---------- */
.contact { text-align: center; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.contact-actions .btn { flex: 1 1 240px; max-width: 320px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d3e0; padding: 48px 0 32px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; }
.site-footer .logo { color: #fff; }
.site-footer .logo small { color: #9fb0c4; }
.site-footer h2 { font-size: 1rem; color: #fff; margin-bottom: 10px; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 6px 0; }
.site-footer li a { display: inline-block; padding: 4px 0; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.disclaimer { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #9fb0c4; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px var(--pad); }
.notfound .code { font-size: clamp(4rem, 12vw, 7rem); font-weight: 800; color: var(--brand); line-height: 1; margin-bottom: 8px; }
