/* Vietcodex / TailGrab site — shared styles */
:root {
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e7ecf3;
  --blue: #2563eb;
  --blue-d: #1d4ed8;
  --bg: #ffffff;
  --soft: #f6f8fc;
  --radius: 14px;
  --max: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px;
}
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 24px; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .logo { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(#3b82f6,#1d4ed8); display: grid; place-items: center; }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; display: block; flex: none; }
.brand b { color: var(--blue); }
.nav .spacer { flex: 1; }
.nav a.link { color: #334155; font-size: 14px; font-weight: 600; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 14px; border: 0; cursor: pointer; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-d); text-decoration: none; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--soft); text-decoration: none; }

/* hero */
.hero { background: radial-gradient(900px 520px at 78% -12%, #dde7ff 0%, #eef2ff 38%, #ffffff 80%); }
.hero .wrap { padding: 72px 24px 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--blue-d); background: #fff; border: 1px solid #dbe4f3; border-radius: 999px; padding: 6px 14px; box-shadow: 0 2px 8px rgba(30,64,175,.07); }
h1 { font-size: 52px; line-height: 1.05; letter-spacing: -.02em; font-weight: 800; margin: 20px 0 14px; max-width: 760px; }
h1 b { color: var(--blue); }
.lead { font-size: 20px; color: #475569; max-width: 600px; }
.cta-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.cta-note { font-size: 13px; color: var(--muted); }
.shot { margin-top: 44px; border-radius: 16px; box-shadow: 0 30px 70px rgba(15,23,42,.16); border: 1px solid var(--line); overflow: hidden; }

/* sections */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.01em; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 10px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.card h3 { font-size: 16px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .ic { width: 38px; height: 38px; border-radius: 9px; background: #eef4ff; color: var(--blue); display: grid; place-items: center; margin-bottom: 14px; font-size: 19px; }

.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; counter-reset: s; }
.step { padding: 22px; border-radius: var(--radius); background: var(--soft); }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.step h3 { font-size: 16px; margin-bottom: 4px; }
.step p { color: var(--muted); font-size: 14.5px; }

.shots-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.shots-grid img { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(15,23,42,.08); }

/* pricing */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 760px; margin: 0 auto; }
.price { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: #fff; }
.price.pro { border: 2px solid var(--blue); box-shadow: 0 22px 50px rgba(37,99,235,.16); position: relative; }
.price .tier { font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.price.pro .tier { color: var(--blue); }
.price .amt { font-size: 40px; font-weight: 800; margin: 8px 0 2px; }
.price .amt span { font-size: 15px; font-weight: 600; color: var(--muted); }
.price ul { list-style: none; margin-top: 16px; }
.price li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; color: #334155; }
.price li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 800; }
.price .btn { margin-top: 18px; width: 100%; justify-content: center; }
.badge-best { position: absolute; top: -12px; right: 20px; background: #16a34a; color: #fff; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }

/* footer */
footer { border-top: 1px solid var(--line); background: var(--soft); padding: 40px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; }
footer .spacer { flex: 1; }
footer a { color: var(--muted); font-size: 14px; }
footer .copyr { color: var(--muted); font-size: 13px; }

/* legal / article pages */
.article { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.article h1 { font-size: 36px; margin-bottom: 6px; }
.article .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.article h2 { font-size: 21px; margin: 30px 0 8px; }
.article p, .article li { color: #334155; font-size: 15.5px; }
.article ul { padding-left: 22px; margin: 8px 0; }
.article li { margin: 5px 0; }
.article a { font-weight: 600; }
.back { font-size: 14px; font-weight: 600; }

/* studio hub */
.products { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.product { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.product .tag { font-size: 12px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .04em; }
.product h3 { font-size: 18px; }
.product p { color: var(--muted); font-size: 14.5px; flex: 1; }
.product .go { font-size: 14px; font-weight: 700; }

@media (max-width: 880px) {
  h1 { font-size: 38px; }
  .grid, .steps, .products { grid-template-columns: 1fr; }
  .shots-grid, .prices { grid-template-columns: 1fr; }
  .nav a.link { display: none; }
}
