/* =========================================================
   Bus Simulator — main stylesheet
   Light theme · Poppins · 1140px layout width
   ========================================================= */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff2") format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --red: #c8161d;
  --red-dark: #9c0f15;
  --red-soft: #fdeeee;
  --blue: #1c6fb8;
  --blue-soft: #eaf3fb;
  --amber: #f2a31b;
  --amber-soft: #fff5e3;
  --green: #1f8a4c;
  --green-soft: #e9f6ee;
  --ink: #15202d;
  --text: #3b4756;
  --muted: #677385;
  --line: #e3e8ef;
  --bg: #ffffff;
  --tint: #f6f8fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(21, 32, 45, .08);
  --shadow-lg: 0 22px 50px rgba(21, 32, 45, .14);
  --wrap: 1140px;
  --header-h: 74px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
svg { flex-shrink: 0; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: "Poppins", Arial, sans-serif; color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 1180px) { .wrap { padding: 0; } }

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

/* ---------- Section head (same alignment everywhere) ---------- */
.section { padding: 88px 0; position: relative; scroll-margin-top: var(--header-h); }
.section + .section { border-top: 1px solid var(--line); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.sec-head .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.sec-head .eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--red); }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 14px; }
.sec-head p { font-size: 17px; color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 12px; font-weight: 600; font-size: 16px; line-height: 1.2; border: 2px solid transparent; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; text-align: center; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 10px 24px rgba(200, 22, 29, .28); }
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(200, 22, 29, .34); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; transform: translateY(-2px); }
.btn-lg { padding: 17px 32px; font-size: 17px; }

/* ---------- Header ---------- */
.site-header { min-height: var(--header-h); position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .25s ease, border-color .25s ease; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(21, 32, 45, .08); border-color: var(--line); }
.header-inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -.01em; justify-self: start; }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 4px 12px rgba(200, 22, 29, .25); }
.brand span b { color: var(--red); }
.brand:hover { color: var(--ink); }
.main-nav { justify-self: center; }
.main-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 9px; color: var(--ink); font-weight: 500; font-size: 15px; position: relative; }
.main-nav a:hover, .main-nav a.active { color: var(--red); background: var(--red-soft); }
.header-cta { justify-self: end; display: flex; align-items: center; gap: 10px; }
.header-cta .btn { padding: 11px 20px; font-size: 15px; }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .i-close { display: none; }
.menu-open .menu-toggle .i-close { display: block; }
.menu-open .menu-toggle .i-menu { display: none; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .main-nav { justify-self: stretch; width: auto; position: fixed; left: 0; right: 0; top: var(--header-h); background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(21, 32, 45, .12); padding: 14px 20px 22px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .25s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
  .menu-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 14px; font-size: 16px; }
  .main-nav .nav-cta { display: block; margin-top: 12px; }
  .main-nav .nav-cta .btn { width: 100%; display: flex; color: #fff; background: var(--red); }
  .hero-badge { font-size: 13px; }
}
@media (min-width: 981px) { .main-nav .nav-cta { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 46px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 46px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 40px; background: var(--red-soft); color: var(--red-dark); font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.hero-badge i { width: 24px; height: 24px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-style: normal; }
.hero-badge svg { width: 14px; height: 14px; }
.hero h1 { font-size: clamp(34px, 4.3vw, 50px); letter-spacing: -.02em; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero-lead { font-size: 17px; color: var(--text); margin-bottom: 26px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.hero-trust svg { width: 20px; height: 20px; color: var(--blue); }
.hero-visual { position: relative; }
.hero-visual .frame { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1200 / 860; background: var(--tint); }
.hero-visual .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-chip { position: absolute; left: -26px; bottom: 26px; background: #fff; border-radius: 16px; padding: 12px 16px 12px 12px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); }
.hero-chip img { width: 52px; height: 52px; border-radius: 12px; }
.hero-chip strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.3; }
.hero-chip span { font-size: 13px; color: var(--muted); }
.hero-tag { position: absolute; right: 18px; top: 18px; background: rgba(255, 255, 255, .94); border-radius: 40px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; box-shadow: var(--shadow); }
.hero-tag svg { width: 16px; height: 16px; color: var(--amber); }

@media (max-width: 980px) {
  .hero { padding-top: 26px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-chip { left: 12px; bottom: 12px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero-lead { font-size: 16px; margin-bottom: 20px; }
  .hero-actions .btn { width: 100%; }
  .hero-chip img { width: 40px; height: 40px; }
  .hero-chip { padding: 8px 12px 8px 8px; }
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: 20px; box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-media::after { content: ""; position: absolute; inset: 22px -18px -18px 22px; border: 2px dashed rgba(200, 22, 29, .35); border-radius: 22px; z-index: -1; }
.about-copy h3 { font-size: 24px; }
.fact-strip { margin: 26px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
.fact-strip li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.fact-strip li:nth-child(odd) { padding-right: 18px; }
.fact-strip svg { width: 22px; height: 22px; color: var(--red); margin-top: 3px; }
.fact-strip small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.fact-strip b { color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.45; display: block; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } .about-media::after { inset: 14px -8px -10px 14px; } }
@media (max-width: 480px) { .fact-strip { grid-template-columns: 1fr; } .fact-strip li:nth-child(odd) { padding-right: 0; } }

/* ---------- Features: orbit layout around app icon ---------- */
.features-orbit { display: grid; grid-template-columns: 1fr 260px 1fr; gap: 34px; align-items: center; }
.feat-col { display: flex; flex-direction: column; gap: 34px; }
.feat { display: flex; gap: 16px; align-items: flex-start; padding: 6px; border-radius: 14px; transition: transform .25s ease; }
.feat-col.left .feat { flex-direction: row-reverse; text-align: right; }
.feat .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); flex-shrink: 0; transition: transform .25s ease, background-color .25s ease, color .25s ease; }
.feat .ico svg { width: 26px; height: 26px; }
.feat h3 { font-size: 17px; margin-bottom: 4px; }
.feat p { font-size: 15px; margin: 0; color: var(--muted); }
.feat:hover { transform: translateY(-3px); }
.feat:hover .ico { background: var(--red); color: #fff; transform: rotate(-6deg); }
.orbit-core { position: relative; width: 260px; height: 260px; display: grid; place-items: center; }
.orbit-core::before, .orbit-core::after { content: ""; position: absolute; border-radius: 50%; border: 2px dashed rgba(28, 111, 184, .3); }
.orbit-core::before { inset: 0; }
.orbit-core::after { inset: 30px; border-style: solid; border-color: rgba(200, 22, 29, .18); }
.orbit-core img { width: 150px; height: 150px; border-radius: 34px; box-shadow: 0 20px 40px rgba(200, 22, 29, .3); position: relative; z-index: 1; }
@media (max-width: 980px) {
  .features-orbit { grid-template-columns: 1fr; }
  .orbit-core { order: -1; margin: 0 auto; width: 200px; height: 200px; }
  .orbit-core img { width: 116px; height: 116px; border-radius: 28px; }
  .feat-col.left .feat { flex-direction: row; text-align: left; }
  .feat-col { gap: 24px; }
}

/* ---------- How it works: route line ---------- */
.route { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; padding-top: 12px; }
.route::before { content: ""; position: absolute; left: 6%; right: 6%; top: 41px; height: 8px; border-radius: 8px; background: repeating-linear-gradient(90deg, #c9d1db 0 26px, transparent 26px 40px), #e9edf2; background-size: auto; }
.stop { position: relative; text-align: center; padding: 0 6px; }
.stop .pin { width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); color: var(--blue); display: grid; place-items: center; position: relative; z-index: 1; transition: transform .25s ease, background-color .25s ease, color .25s ease; }
.stop .pin svg { width: 28px; height: 28px; }
.stop:hover .pin { transform: translateY(-4px); background: var(--blue); color: #fff; }
.stop .label { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.stop h3 { font-size: 18px; margin-bottom: 6px; }
.stop p { font-size: 15px; color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .route { grid-template-columns: 1fr; gap: 0; padding-left: 0; }
  .route::before { left: 32px; right: auto; top: 10px; bottom: 10px; width: 8px; height: auto; background: repeating-linear-gradient(180deg, #c9d1db 0 22px, transparent 22px 34px), #e9edf2; }
  .stop { display: grid; grid-template-columns: 66px 1fr; gap: 18px; text-align: left; padding: 0 0 26px; }
  .stop .pin { margin: 0; }
}

/* ---------- Compatibility: spec table ---------- */
.spec { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 260px 1fr 190px; align-items: center; gap: 20px; padding: 22px 28px; border-bottom: 1px solid var(--line); transition: background-color .2s ease; }
.spec-row:last-child { border-bottom: 0; }
.spec-row:hover { background: var(--tint); }
.spec-row.head { background: var(--ink); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; padding-top: 14px; padding-bottom: 14px; }
.spec-row.head:hover { background: var(--ink); }
.spec-plat { display: flex; align-items: center; gap: 14px; color: var(--ink); font-weight: 600; }
.spec-plat svg { width: 30px; height: 30px; color: var(--ink); }
.spec-row p { margin: 0; font-size: 15px; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 30px; font-size: 13px; font-weight: 600; justify-self: start; }
.status svg { width: 15px; height: 15px; }
.status.ok { background: var(--green-soft); color: var(--green); }
.status.alt { background: var(--amber-soft); color: #9a5b00; }
.status.sep { background: var(--blue-soft); color: var(--blue); }
@media (max-width: 860px) {
  .spec-row { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .spec-row.head { display: none; }
}

/* ---------- Use cases: zigzag list ---------- */
.zig { display: grid; grid-template-columns: 1fr 1fr; column-gap: 70px; position: relative; }
.zig::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(var(--line), var(--line)); transform: translateX(-1px); }
.zig-item { display: flex; gap: 18px; padding: 22px 0; position: relative; transition: transform .25s ease; }
.zig-item:nth-child(even) { transform: translateY(54px); }
.zig-item:nth-child(even):hover { transform: translateY(50px); }
.zig-item:nth-child(odd):hover { transform: translateY(-4px); }
.zig-item .ico { width: 50px; height: 50px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex-shrink: 0; }
.zig-item .ico svg { width: 24px; height: 24px; }
.zig-item h3 { font-size: 18px; margin-bottom: 4px; }
.zig-item p { margin: 0; font-size: 15px; color: var(--muted); }
.zig-pad { height: 54px; }
@media (max-width: 860px) {
  .zig { grid-template-columns: 1fr; }
  .zig::before { display: none; }
  .zig-item:nth-child(even), .zig-item:nth-child(even):hover { transform: none; }
  .zig-pad { display: none; }
  .zig-item { border-bottom: 1px solid var(--line); }
}

/* ---------- Benefits: split with sticky statement ---------- */
.benefit-split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.benefit-statement { position: sticky; top: calc(var(--header-h) + 30px); padding: 34px; border-left: 5px solid var(--red); background: linear-gradient(90deg, var(--red-soft), rgba(253, 238, 238, 0)); border-radius: 0 18px 18px 0; }
.benefit-statement p.big { font-size: 24px; line-height: 1.45; color: var(--ink); font-weight: 600; margin-bottom: 14px; }
.benefit-statement p { color: var(--text); margin: 0; }
.benefit-list { list-style: none; margin: 0; padding: 0; }
.benefit-list li { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); transition: padding-left .25s ease; }
.benefit-list li:first-child { padding-top: 0; }
.benefit-list li:hover { padding-left: 6px; }
.benefit-list .ico { width: 46px; height: 46px; border-radius: 12px; border: 2px solid var(--amber); color: #b46d00; display: grid; place-items: center; }
.benefit-list .ico svg { width: 22px; height: 22px; }
.benefit-list h3 { font-size: 18px; margin-bottom: 4px; }
.benefit-list p { margin: 0; font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .benefit-split { grid-template-columns: 1fr; gap: 34px; } .benefit-statement { position: static; } }

/* ---------- Installation: tabs ---------- */
.tabs { max-width: 940px; margin: 0 auto; }
.tab-list { display: flex; justify-content: center; gap: 8px; padding: 6px; background: var(--tint); border-radius: 16px; width: max-content; max-width: 100%; margin: 0 auto 36px; flex-wrap: wrap; }
.tab-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; color: var(--muted); cursor: pointer; transition: all .2s ease; }
.tab-btn svg { width: 18px; height: 18px; }
.tab-btn[aria-selected="true"] { background: #fff; color: var(--red); box-shadow: 0 6px 16px rgba(21, 32, 45, .1); }
.tab-panel[hidden] { display: none; }
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; }
.steps-row li { list-style: none; padding: 0 18px; border-left: 1px dashed #cfd6df; }
.steps-row li:first-child { border-left: 0; }
.steps-row { padding: 0; margin: 0; }
.steps-row .ico { width: 48px; height: 48px; color: var(--red); margin-bottom: 14px; display: grid; place-items: center; border-radius: 14px; background: var(--red-soft); }
.steps-row .ico svg { width: 24px; height: 24px; }
.steps-row h3 { font-size: 17px; margin-bottom: 6px; }
.steps-row p { font-size: 15px; color: var(--muted); margin: 0; }
.tab-note { text-align: center; font-size: 14px; color: var(--muted); margin: 30px auto 0; max-width: 700px; }
@media (max-width: 860px) {
  .steps-row { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .steps-row li:nth-child(3) { border-left: 0; }
}
@media (max-width: 520px) {
  .steps-row { grid-template-columns: 1fr; }
  .steps-row li { border-left: 0; padding: 0 0 22px; border-bottom: 1px dashed #cfd6df; }
  .steps-row li:last-child { border-bottom: 0; }
  .tab-list { width: 100%; }
  .tab-btn { flex: 1; justify-content: center; padding: 10px 12px; }
}

/* ---------- Download ---------- */
.dl-panel { display: grid; grid-template-columns: 1fr 1fr; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.dl-media { position: relative; min-height: 100%; }
.dl-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.dl-body { padding: 46px 46px 40px; }
.dl-body h3 { font-size: 28px; margin-bottom: 10px; }
.dl-meta { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; }
.dl-meta li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.dl-meta svg { width: 20px; height: 20px; color: var(--green); margin-top: 3px; }
.dl-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.store-row { display: flex; gap: 12px; flex-wrap: wrap; }
.store-btn { flex: 1; min-width: 180px; display: inline-flex; align-items: center; gap: 12px; padding: 11px 18px; border-radius: 12px; background: var(--ink); color: #fff; transition: transform .2s ease, background-color .2s ease; }
.store-btn:hover { color: #fff; background: #000; transform: translateY(-2px); }
.store-btn svg { width: 26px; height: 26px; }
.store-btn small { display: block; font-size: 11px; opacity: .8; line-height: 1.2; }
.store-btn b { display: block; font-size: 16px; line-height: 1.25; font-weight: 600; }
.dl-note { font-size: 13px; color: var(--muted); margin: 18px 0 0; display: flex; gap: 8px; }
.dl-note svg { width: 18px; height: 18px; color: var(--amber); margin-top: 2px; }
@media (max-width: 900px) { .dl-panel { grid-template-columns: 1fr; } .dl-body { padding: 30px 22px; } }

/* ---------- Safety: road checklist ---------- */
.safe-road { max-width: 900px; margin: 0 auto; position: relative; padding-left: 0; list-style: none; }
.safe-road li { display: grid; grid-template-columns: 70px 1fr; gap: 22px; position: relative; padding-bottom: 30px; }
.safe-road li:last-child { padding-bottom: 0; }
.safe-road li::before { content: ""; position: absolute; left: 34px; top: 60px; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--amber) 0 8px, transparent 8px 16px); }
.safe-road li:last-child::before { display: none; }
.safe-road .ico { width: 70px; height: 60px; border-radius: 30px; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: border-color .2s ease, color .2s ease; }
.safe-road li:hover .ico { border-color: var(--amber); color: #b46d00; }
.safe-road .ico svg { width: 26px; height: 26px; }
.safe-road h3 { font-size: 18px; margin: 4px 0 4px; }
.safe-road p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Pros & Cons ---------- */
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.pc-col { padding: 0 44px; }
.pc-col + .pc-col { border-left: 2px solid var(--line); }
.pc-col h3 { display: flex; align-items: center; gap: 12px; font-size: 22px; margin-bottom: 22px; }
.pc-col h3 span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.pc-col h3 svg { width: 22px; height: 22px; }
.pc-pros h3 span { background: var(--green-soft); color: var(--green); }
.pc-cons h3 span { background: var(--amber-soft); color: #9a5b00; }
.pc-col ul { list-style: none; margin: 0; padding: 0; }
.pc-col li { display: flex; gap: 12px; padding: 12px 10px; border-radius: 10px; transition: background-color .2s ease, transform .2s ease; }
.pc-col li:hover { background: var(--tint); transform: translateX(4px); }
.pc-col li svg { width: 22px; height: 22px; margin-top: 3px; }
.pc-pros li svg { color: var(--green); }
.pc-cons li svg { color: #c27800; }
.pc-col li span { font-size: 15.5px; }
@media (max-width: 860px) { .pc { grid-template-columns: 1fr; } .pc-col { padding: 0; } .pc-col + .pc-col { border-left: 0; border-top: 2px solid var(--line); margin-top: 30px; padding-top: 30px; } }

/* ---------- Release / updates ---------- */
.release { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.release-quote { font-size: 20px; line-height: 1.6; color: var(--ink); font-weight: 500; position: relative; padding-left: 30px; margin: 0 0 18px; }
.release-quote::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 4px; border-radius: 4px; background: var(--blue); }
.release-tl { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.release-tl li { position: relative; padding: 0 0 22px 26px; }
.release-tl li:last-child { padding-bottom: 0; }
.release-tl li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.release-tl b { color: var(--ink); display: block; font-size: 16px; }
.release-tl span { font-size: 15px; color: var(--muted); }
@media (max-width: 860px) { .release { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Troubleshooting: issue/fix table ---------- */
.fix-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.fix-table th { text-align: left; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 0 18px 14px; border-bottom: 2px solid var(--ink); }
.fix-table td { padding: 22px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
.fix-table tr:hover td { background: var(--tint); }
.fix-issue { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); font-weight: 600; min-width: 230px; }
.fix-issue svg { width: 24px; height: 24px; color: var(--red); margin-top: 2px; }
@media (max-width: 760px) {
  .fix-table thead { display: none; }
  .fix-table, .fix-table tbody, .fix-table tr, .fix-table td { display: block; width: 100%; }
  .fix-table tr { border-bottom: 1px solid var(--line); padding: 14px 0; }
  .fix-table td { border: 0; padding: 6px 0; }
  .fix-issue { min-width: 0; }
}

/* ---------- Guides preview ---------- */
.guide-feature { display: grid; grid-template-columns: 1.25fr 1fr; gap: 30px; }
.g-card { display: block; color: inherit; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.g-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; color: inherit; }
.g-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; background: var(--tint); }
.g-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.g-card:hover .thumb img { transform: scale(1.04); }
.g-card .g-body { padding: 20px 22px 24px; }
.g-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px; }
.g-card h3 { font-size: 19px; margin-bottom: 8px; color: var(--ink); }
.g-card p { font-size: 15px; color: var(--muted); margin: 0; }
.g-side { display: flex; flex-direction: column; gap: 18px; }
.g-row { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: center; color: inherit; padding: 10px; border-radius: 16px; transition: background-color .2s ease, transform .2s ease; }
.g-row:hover { background: var(--tint); transform: translateX(4px); color: inherit; }
.g-row img { border-radius: 12px; aspect-ratio: 16 / 10; object-fit: cover; width: 150px; }
.g-row h3 { font-size: 16px; margin: 0 0 4px; color: var(--ink); }
.g-row span { font-size: 13px; color: var(--muted); }
.guide-more { text-align: center; margin-top: 36px; }
@media (max-width: 900px) { .guide-feature { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .g-row { grid-template-columns: 110px 1fr; } .g-row img { width: 110px; } }

/* ---------- FAQ ---------- */
.faq-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; flex-wrap: wrap; }
.faq-tab { border: 2px solid var(--line); background: #fff; color: var(--ink); padding: 10px 22px; border-radius: 40px; font-weight: 600; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all .2s ease; }
.faq-tab svg { width: 18px; height: 18px; }
.faq-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.faq-group { width: 100%; max-width: 1140px; margin: 0 auto; }
.faq-group[hidden] { display: none; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 4px; background: none; border: 0; text-align: left; font-size: 17px; font-weight: 600; color: var(--ink); cursor: pointer; line-height: 1.45; }
.faq-q:hover { color: var(--red); }
.faq-q .pm { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--ink); transition: background-color .2s ease, color .2s ease, transform .25s ease; }
.faq-q .pm svg { width: 18px; height: 18px; }
.faq-q .pm .v { transition: opacity .2s ease; }
.faq-q[aria-expanded="true"] .pm { background: var(--red); color: #fff; }
.faq-q[aria-expanded="true"] .pm .v { opacity: 0; }
.faq-a { overflow: hidden; height: 0; transition: height .3s ease; }
.faq-a > div { padding: 0 4px 22px; color: var(--text); }
.faq-a p { margin: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 0; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 50px; padding-bottom: 46px; }
.footer-brand p { margin: 16px 0 0; font-size: 15px; color: var(--muted); max-width: 400px; }
.site-footer h4 { font-size: 16px; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--text); font-size: 15px; text-decoration: none; }
.site-footer ul a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0 28px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 14px; color: var(--muted); }
.footer-bottom a { color: var(--ink); font-weight: 600; text-decoration: none; }
.footer-bottom a:hover { color: var(--red); }
.site-footer a { text-decoration: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Scroll to top ---------- */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 48px; height: 48px; border-radius: 14px; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px rgba(200, 22, 29, .3); opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; z-index: 90; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 22px; height: 22px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 54px 0 40px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 14px; list-style: none; padding: 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #b6bfca; }
.page-hero h1 { font-size: clamp(30px, 4.2vw, 46px); margin-bottom: 12px; letter-spacing: -.015em; }
.page-hero p { font-size: 17px; color: var(--muted); max-width: 760px; margin: 0; }

/* ---------- Prose (legal / about / contact) ---------- */
.prose-wrap { padding: 54px 0 80px; }
.prose { max-width: 820px; }
.prose h2 { font-size: 24px; margin-top: 1.6em; }
.prose h3 { font-size: 19px; margin-top: 1.3em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.contact-line { display: inline-flex; align-items: center; gap: 12px; padding: 18px 24px; border: 1px solid var(--line); border-radius: 14px; font-weight: 600; color: var(--ink); font-size: 18px; margin: 10px 0 24px; }
.contact-line svg { width: 24px; height: 24px; color: var(--red); }

/* ---------- Blog listing ---------- */
.blog-list { padding: 54px 0 90px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 980px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

/* ---------- Article ---------- */
.article-wrap { padding: 46px 0 90px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 50px; align-items: start; }
.article-head h1 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.015em; margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--muted); margin-bottom: 22px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-meta svg { width: 16px; height: 16px; }
.article-cover { border-radius: 18px; overflow: hidden; margin: 0 0 30px; aspect-ratio: 16 / 9; background: var(--tint); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { font-size: 17px; line-height: 1.8; }
.article-body > p:first-of-type { font-size: 18px; color: var(--ink); }
.article-body h2 { font-size: 27px; margin: 1.6em 0 .6em; padding-top: 6px; }
.article-body h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.article-body ul { padding-left: 0; list-style: none; margin: 0 0 1.4em; }
.article-body ul li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.article-body ul li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 12px; height: 12px; border-radius: 3px; background: var(--red); transform: rotate(45deg) scale(.7); }
.table-scroll { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: 14px; }
.article-body table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.article-body th { background: var(--tint); color: var(--ink); text-align: left; padding: 13px 16px; font-weight: 600; border-bottom: 1px solid var(--line); }
.article-body td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body tr:last-child td { border-bottom: 0; }
.article-body .faq-inline h3 { font-size: 18px; margin-top: 1.1em; }
.callout { border-left: 4px solid var(--blue); background: var(--blue-soft); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 0 0 1.4em; font-size: 16px; }
.related { margin-top: 50px; border-top: 1px solid var(--line); padding-top: 34px; }
.related h2 { font-size: 24px; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.related-grid .g-card h3 { font-size: 16px; }
.related-grid .g-body { padding: 14px 16px 18px; }
@media (max-width: 700px) { .related-grid { grid-template-columns: 1fr; } }

.sidebar { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; scrollbar-width: thin; scrollbar-color: #c9d1db transparent; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: #c9d1db; border-radius: 6px; }
.side-block { border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 20px; background: #fff; }
.side-block h2 { font-size: 17px; margin-bottom: 14px; }
.side-dl { text-align: center; }
.side-dl img { width: 72px; height: 72px; border-radius: 18px; margin: 0 auto 12px; }
.side-dl p { font-size: 14px; color: var(--muted); }
.side-dl .btn { width: 100%; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links li + li { border-top: 1px solid var(--line); }
.side-links a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 10px 0; color: var(--ink); font-size: 14px; font-weight: 500; line-height: 1.45; }
.side-links a:hover { color: var(--red); }
.side-links img { width: 64px; height: 44px; object-fit: cover; border-radius: 8px; }
.side-links a.current { color: var(--red); }
@media (max-width: 980px) {
  .article-grid { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; max-height: none; overflow: visible; }
}

@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .sec-head { margin-bottom: 34px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* 2026 visual refresh — exact 1140px desktop content grid. */
:root { --wrap: 1140px; }
.wrap { width: min(1140px, calc(100% - 32px)); max-width: 1140px; padding: 0; margin-inline: auto; }
@media(min-width:1180px){ .wrap {padding:0} }
/* Magazine-style hero: one centered statement, then a full-bleed photo inside 1140px grid. */
.hero-editorial { padding: 70px 0 46px; background: linear-gradient(180deg,#f6f8fb 0%,#fff 88%); }
.hero-editorial .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 42px; }
.hero-editorial .hero-copy { max-width: 940px; text-align: center; margin: 0 auto; }
.hero-editorial .hero-badge { margin-bottom: 22px; background: #fff; box-shadow: 0 4px 22px rgba(21,32,45,.06); }
.hero-editorial h1 { font-size:clamp(38px,6vw,74px); letter-spacing:-.055em; line-height:1.08; margin-bottom:22px; }
.hero-editorial .hero-lead { max-width:750px; margin:0 auto 28px; font-size:17px; line-height:1.8; }
.hero-editorial .hero-actions { justify-content:center; margin-bottom:26px; }
.hero-editorial .hero-trust { justify-content:center; }
.hero-editorial .hero-visual { width:100%; }
.hero-editorial .hero-photo-frame { aspect-ratio: 2.15 / 1; border-radius:24px; position:relative; background:#182633; overflow:hidden; box-shadow:0 24px 60px rgba(21,32,45,.15); }
.hero-editorial .hero-photo-frame img { height:100%; width:100%; object-fit:cover; }
.hero-editorial .hero-photo-frame::after { content:""; position:absolute; inset:45% 0 0; background:linear-gradient(transparent,rgba(0,0,0,.65)); pointer-events:none; }
.hero-photo-caption { position:absolute; left:34px; bottom:26px; z-index:2; color:white; font-size:12px; font-weight:700; letter-spacing:.16em; }
/* Photo content uses photographs, never vector placeholder illustrations. */
.about-media img,.dl-media img,.thumb img,.g-row img,.post-cover img,.blog-card img { object-fit:cover; }
@media(max-width:700px){
 .hero-editorial{padding:42px 0 26px}
 .hero-editorial .hero-grid{gap:26px}
 .hero-editorial h1{font-size:clamp(36px,9vw,52px)}
 .hero-editorial .hero-photo-frame{aspect-ratio:4 / 3;border-radius:16px}
 .hero-photo-caption{left:16px;bottom:14px;font-size:10px;letter-spacing:.07em}
}

/* Editorial guide refresh: clean compact related-reading navigation and distinct editorial photos. */
.sidebar .side-links img {display:none!important}
.sidebar .side-links a {display:block;padding:12px 0;font-weight:600;line-height:1.55}
.sidebar .side-links li+li {border-top:1px solid #e7e9ef}
.article-cover {overflow:hidden;border-radius:20px;box-shadow:0 14px 38px rgba(20,35,45,.09)}
.article-cover img {width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;display:block}
.article .g-card .thumb {border-radius:13px;overflow:hidden}
.article .g-card .thumb img {aspect-ratio:16/9;object-fit:cover;width:100%;height:auto;display:block}
@media(max-width:700px){.article-cover{border-radius:14px}}
