/* Vững Lái — user guide page. Builds on site.css tokens. */
.g-hero {
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(0, 120, 255, .30), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(0, 213, 200, .20), transparent 60%),
    linear-gradient(180deg, var(--hero-from), var(--hero-to));
  border-bottom: 1px solid var(--border);
  padding: 52px 0 40px;
}
.g-hero .eyebrow { font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); margin: 0 0 8px; }
.g-hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.5px; }
.g-hero h1 .g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-hero .lead { font-size: 19px; color: var(--text-dim); max-width: 640px; margin: 0 0 22px; }
.g-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.g-meta li { background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 15px; font-weight: 600; }

/* Platform switch */
.g-platform { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.g-platform span { font-weight: 600; color: var(--text-dim); font-size: 15px; }
.g-seg { display: inline-flex; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.g-seg button {
  font: inherit; font-weight: 700; font-size: 15px; border: 0; background: none; color: var(--text-dim);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; min-height: 40px;
}
.g-seg button[aria-pressed="true"] { background: var(--accent); color: #fff; }
html[data-platform="android"] [data-only="ios"],
html[data-platform="ios"] [data-only="android"] { display: none !important; }
.g-tag { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: 6px; padding: 2px 8px; vertical-align: middle; }
.g-tag.android { background: rgba(0, 199, 150, .16); color: var(--accent-2); }
.g-tag.ios { background: rgba(61, 141, 255, .16); color: var(--accent); }

/* Step bar */
.g-steps {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.g-steps ol { display: flex; gap: 6px; margin: 0 auto; padding: 10px 16px; list-style: none; overflow-x: auto; max-width: var(--maxw); scrollbar-width: none; }
.g-steps ol::-webkit-scrollbar { display: none; }
.g-steps a {
  display: flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; color: var(--text-dim);
  font-weight: 600; font-size: 15px; padding: 6px 12px 6px 6px; border-radius: 999px;
}
.g-steps a b {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--surface-2); color: var(--text); font-size: 13px;
}
.g-steps a:hover, .g-steps a.on { color: var(--text); background: var(--surface); }
.g-steps a.on b { background: var(--accent); color: #fff; }

/* Sections */
.g-main { padding-top: 8px; }
.g-sec { padding: 46px 0 10px; scroll-margin-top: 64px; border-top: 0; margin: 0; }
.g-sec + .g-sec { border-top: 1px solid var(--border); }
.g-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.g-num {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 800; font-size: 22px;
}
.g-head h2 { margin: 2px 0 4px; font-size: clamp(24px, 4.4vw, 30px); line-height: 1.25; }
.g-head p { margin: 0; color: var(--text-dim); }

.g-cols { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .g-cols.two { grid-template-columns: 1fr 1fr; } .g-cols.three { grid-template-columns: repeat(3, 1fr); } }
.g-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.g-card h3 { margin: 0 0 8px; font-size: 19px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.g-card p { margin: 0 0 10px; }
.g-card > :last-child { margin-bottom: 0; }

/* Numbered how-to list */
.g-list { counter-reset: s; list-style: none; margin: 0; padding: 0; }
.g-list > li { counter-increment: s; position: relative; padding: 0 0 14px 44px; }
.g-list > li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--accent); color: var(--accent); font-weight: 800; font-size: 15px; display: grid; place-items: center;
}
.g-list > li:last-child { padding-bottom: 0; }
.g-list strong { color: var(--text); }
.g-ui {
  display: inline-block; font-weight: 700; font-size: .92em; padding: 0 7px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--border); white-space: nowrap;
}

/* Download buttons */
.g-dl { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 4px; }
.g-btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700;
  padding: 11px 18px; border-radius: 12px; background: var(--text); color: var(--bg); min-height: 48px;
}
.g-btn svg { width: 22px; height: 22px; flex: none; }
.g-btn.alt { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); }
.g-btn small { display: block; font-weight: 600; font-size: 12px; opacity: .8; line-height: 1.1; }
.g-btn span { line-height: 1.2; }

/* Figures */
.g-fig { margin: 0; }
.g-fig img, .g-fig video { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); background: #000; }
.g-fig figcaption { font-size: 15px; color: var(--text-dim); margin-top: 8px; }

/* Annotated screenshot: on narrow screens keep pins readable and let the picture scroll sideways */
.g-scroll { overflow-x: auto; border-radius: 12px; }
.g-swipe { display: none; margin: 6px 0 0; font-size: 14px; color: var(--text-dim); }
@media (max-width: 640px) { .g-anno { min-width: 620px; } .g-swipe { display: block; } }
.g-anno { position: relative; }
.g-pin {
  position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%;
  background: #ffcc00; color: #121212; font-weight: 800; font-size: 15px; display: grid; place-items: center;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .55), 0 4px 12px rgba(0, 0, 0, .5);
}
@media (max-width: 520px) { .g-pin { width: 24px; height: 24px; font-size: 13px; } }
.g-legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .g-legend.two { grid-template-columns: 1fr 1fr; } }
.g-legend li { display: flex; gap: 12px; align-items: flex-start; }
.g-legend li > b {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: #ffcc00; color: #121212;
  display: grid; place-items: center; font-size: 13px; margin-top: 2px;
}

/* Alert levels */
.g-level { border-left: 6px solid var(--lv); }
.g-level .chip { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--lv); }
.lv-green { --lv: #1fbf6a; } .lv-amber { --lv: #e9a100; } .lv-red { --lv: #ff4b5c; } .lv-blue { --lv: #3d8dff; }
.g-say { display: block; font-style: italic; margin-top: 6px; color: var(--text); }
.g-say::before { content: "🔊 "; font-style: normal; }

/* Mount illustration */
.g-mount svg { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.g-dos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.g-dos li { padding-left: 30px; position: relative; }
.g-dos li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.g-dos.yes li::before { content: "✓"; color: #1fbf6a; }
.g-dos.no li::before { content: "✕"; color: #ff4b5c; }

/* Accordion */
.g-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 18px; margin: 0 0 10px; }
.g-faq summary { padding: 14px 0; font-weight: 700; cursor: pointer; }
.g-faq details[open] { padding-bottom: 14px; }
.g-faq details ul { margin: 0 0 10px; padding-left: 20px; }
.g-faq details li { margin: 0 0 6px; }

/* Final CTA */
.g-cta {
  margin: 46px 0 10px; padding: 28px; border-radius: 18px; color: #e6eefb;
  background: radial-gradient(600px 300px at 0% 0%, rgba(0, 120, 255, .45), transparent 60%), #0b1838;
}
.g-cta h2 { margin: 0 0 8px; }
.g-cta p { color: #b8c7e4; margin: 0 0 6px; }
.g-cta a { color: #8fd3ff; }
.g-cta .g-btn { background: #fff; color: #0b1838; }
.g-cta .g-btn.alt { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }

.g-safety { font-size: 15px; color: var(--text-dim); border-top: 1px solid var(--border); margin-top: 30px; padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.g-hero .lang-switch { margin: 0 0 18px; }
