/* Hub for Jaecoo Lite. Same look as j5.lingkunganplus.com. No inline styles: the CSP blocks them. */
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/overpass-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/overpass-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Overpass"; font-style: normal; font-weight: 900; font-display: swap; src: url(fonts/overpass-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }

:root {
  --bg: #eef0ec; --card: #ffffff; --card-2: #f5f7f4; --ink: #16201b; --ink-2: #3f4c45; --ink-3: #5e6a63;
  --rule: #d3d9d3; --rule-2: #8d9992; --sign: #00704a; --sign-2: #005c3c; --sign-text: #00704a; --on-sign: #ffffff;
  --yellow: #ffcc00; --on-yellow: #111111; --asphalt: #2b2e30; --bar: #00704a;
  --focus: #1a5fd0; --shadow: 0 18px 40px -22px rgba(10,40,25,.45); --shadow-s: 0 8px 20px -14px rgba(10,40,25,.5);
  --r: 10px;
  --font: "Overpass", ui-sans-serif, system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2,.7,.1,1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d1210; --card: #151c18; --card-2: #1a221e; --ink: #eef3ef; --ink-2: #b9c5be; --ink-3: #8f9c94;
  --rule: #26302b; --rule-2: #5b6861; --sign: #0b6b46; --sign-2: #08553a; --sign-text: #5fd3a0; --on-sign: #f6faf7;
  --asphalt: #1a1d1f; --bar: #0a5a3b; --focus: #9cc2ff;
  --shadow: 0 18px 50px -20px rgba(0,0,0,.85); --shadow-s: 0 8px 24px -14px rgba(0,0,0,.9);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1210; --card: #151c18; --card-2: #1a221e; --ink: #eef3ef; --ink-2: #b9c5be; --ink-3: #8f9c94;
    --rule: #26302b; --rule-2: #5b6861; --sign: #0b6b46; --sign-2: #08553a; --sign-text: #5fd3a0; --on-sign: #f6faf7;
    --asphalt: #1a1d1f; --bar: #0a5a3b; --focus: #9cc2ff;
    --shadow: 0 18px 50px -20px rgba(0,0,0,.85); --shadow-s: 0 8px 24px -14px rgba(0,0,0,.9);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--font); overflow-wrap: break-word; }
::selection { background: var(--yellow); color: var(--on-yellow); }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--sign-text); text-underline-offset: 4px; text-decoration-thickness: 2px; }
a:hover { color: var(--ink); }
code { font: 400 .88em var(--mono); background: var(--card-2); border: 1px solid var(--rule); padding: .05em .35em; border-radius: 4px; overflow-wrap: anywhere; }
strong, b { font-weight: 900; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: 1100px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--yellow); color: var(--on-yellow); padding: 10px 14px; z-index: 30; font-weight: 900; }
.skip:focus { top: 8px; color: var(--on-yellow); }

h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
h1 { font-weight: 900; font-size: clamp(38px, 6.4vw, 84px); line-height: .98; text-wrap: balance; }
h2 { font-weight: 900; font-size: clamp(28px, 4vw, 44px); line-height: 1.05; text-wrap: balance; }
h3 { font-weight: 900; font-size: 21px; line-height: 1.2; letter-spacing: -.01em; }

/* Header: a green sign gantry */
.top { position: sticky; top: 0; z-index: 20; background: var(--bar); color: var(--on-sign); box-shadow: 0 1px 0 rgba(0,0,0,.15); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 900 20px/1 var(--font); white-space: nowrap; }
.brand:hover { color: inherit; }
.shield { flex: none; width: 32px; height: 36px; background: var(--on-sign); color: #00704a; display: grid; place-items: center; padding-bottom: 4px; font: 900 14px/1 var(--font);
  clip-path: polygon(50% 0, 100% 12%, 100% 62%, 50% 100%, 0 62%, 0 12%); }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--on-sign); text-decoration: none; padding: 0 10px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; font-size: 15px; border-radius: 6px; white-space: nowrap; }
.nav a:hover { background: rgba(255,255,255,.14); color: var(--on-sign); }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--yellow); border-radius: 0; }
.nav .nav-cta { background: var(--yellow); color: var(--on-yellow); font-weight: 900; }
.nav .nav-cta:hover { background: #ffd83d; color: var(--on-yellow); }
.tools { display: flex; align-items: center; gap: 8px; }
.tool-btn { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 8px; border: 2px solid var(--on-sign); border-radius: 8px; background: transparent; color: var(--on-sign); cursor: pointer; font: 900 14px var(--font); }
.tool-btn:hover { background: rgba(255,255,255,.14); }
.tool-btn:focus-visible { outline-color: var(--yellow); }
.tool-btn svg { width: 18px; height: 18px; }
.tool-btn .sun { display: none; }
:root[data-theme="dark"] .tool-btn .moon { display: none; }
:root[data-theme="dark"] .tool-btn .sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tool-btn .moon { display: none; }
  :root:not([data-theme="light"]) .tool-btn .sun { display: block; }
}
@media (max-width: 860px) {
  .top .wrap { flex-wrap: wrap; gap: 0 10px; padding-top: 8px; }
  .tools { margin-inline-start: auto; }
  .nav { order: 3; width: calc(100% + 48px); margin: 6px -24px 0; padding: 0 16px 6px; overflow-x: auto; scrollbar-width: none; }
  .nav a { flex: none; }
}
@media (max-width: 480px) { .nav { width: calc(100% + 32px); margin-inline: -16px; } .nav a { padding: 0 8px; font-size: 14px; } .brand { font-size: 18px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--r); border: 0;
  font: 900 17px/1.1 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sign); color: var(--on-sign); box-shadow: var(--shadow-s), inset 0 0 0 2px rgba(255,255,255,.25); }
.btn-primary:hover { background: var(--sign-2); color: var(--on-sign); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 56px 0 150px; }
.kicker { display: inline-flex; gap: 10px; align-items: center; margin: 0; font: 400 13px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--sign-text); }
.kicker .post { flex: none; width: 14px; height: 18px; border-radius: 2px; background: var(--card); border: 2px solid currentColor; border-top-width: 6px; }
.hero h1 { margin-top: 18px; max-width: 12ch; }
.hero h1 .hl { color: var(--sign-text); }
.lead { font-size: 20px; color: var(--ink-2); max-width: 34em; margin: 22px 0 28px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: center; margin-top: 30px; position: relative; z-index: 1; }
.unit { margin: 0; justify-self: end; width: 100%; max-width: 360px; padding: 12px; background: #0b0c0e; border-radius: 18px; box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,.25); }
.unit img { width: 100%; border-radius: 8px; }
.road { position: absolute; inset-inline: 0; bottom: 0; height: 120px; background: var(--asphalt); clip-path: polygon(0 100%, 100% 100%, 100% 62%, 0 30%); }
.road::after { content: ""; position: absolute; inset-inline: 0; top: 54%; height: 6px; transform: skewY(-1.2deg);
  background: repeating-linear-gradient(90deg, #f4f4ef 0 70px, transparent 70px 140px); animation: lane 1.6s linear infinite; }
@keyframes lane { to { background-position: -140px 0; } }
.rise { animation: rise .8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) { .rise, .road::after { animation: none; } }
@media (max-width: 860px) {
  .hero { padding: 36px 0 110px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .unit { justify-self: center; max-width: 320px; }
}

/* Facts as plates */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0; }
.facts div { background: var(--card); border: 2px solid var(--ink); border-radius: 8px; padding: 14px 16px 12px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.facts dd { margin: 0; font: 900 26px/1.05 var(--font); }
.facts dt { color: var(--ink-3); font-size: 14px; font-weight: 600; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr 1fr; } .facts dd { font-size: 22px; } }

/* Sections with a KM post */
.sec { padding-top: 84px; }
.sec-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 30px; }
.km { flex: none; width: 60px; background: var(--card); border: 2px solid var(--ink); border-radius: 6px 6px 2px 2px; text-align: center; overflow: hidden; box-shadow: var(--shadow-s); }
.km span { display: block; background: var(--sign); color: var(--on-sign); font: 400 11px/1 var(--mono); letter-spacing: .1em; padding: 6px 0 4px; }
.km b { display: block; font: 900 24px/1 var(--font); padding: 8px 0 6px; }
.sub { margin: 10px 0 0; color: var(--ink-2); font-size: 18px; max-width: 42em; }
@media (max-width: 560px) { .sec { padding-top: 60px; } .km { width: 50px; } .km b { font-size: 20px; } .sec-head { gap: 14px; } }

/* Features */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: f; align-items: start; }
.features > li { counter-increment: f; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 22px; box-shadow: var(--shadow-s); min-width: 0; }
.features > li::before { content: counter(f); display: grid; place-items: center; width: 36px; height: 40px; margin-bottom: 14px; padding-bottom: 4px; background: var(--sign); color: var(--on-sign); font: 900 16px/1 var(--font);
  clip-path: polygon(50% 0, 100% 12%, 100% 62%, 50% 100%, 0 62%, 0 12%); }
.features h3 { margin-bottom: 8px; }
.features p { margin: 0 0 10px; color: var(--ink-2); }
.features p:last-child { margin-bottom: 0; }
.shot { margin: 16px 0 0; padding: 6px; background: #0b0c0e; border-radius: 10px; box-shadow: var(--shadow-s); }
.shot img { width: 100%; border-radius: 5px; }
.shot-note { margin: 18px 0 0; color: var(--ink-3); font-size: 15px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr; } }

/* Why Lite */
.why { display: grid; gap: 22px; }
.why-list { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 8px; max-width: 60ch; color: var(--ink-2); }
.why-list li::marker { color: var(--sign-text); }

/* Download box: an exit panel */
.panel { background: var(--card); border: 2px solid var(--ink); border-radius: 14px; padding: 0 26px 26px; display: grid; gap: 16px; box-shadow: var(--shadow); overflow: hidden; }
.panel > h2 { margin: 0 -26px; padding: 18px 26px 14px; background: var(--sign); color: var(--on-sign); font-size: 26px; line-height: 1.1; }
.panel p { margin: 0; color: var(--ink-2); }
.dev { display: flex; gap: 10px 36px; flex-wrap: wrap; margin: 0; padding: 14px 16px; background: var(--card-2); border: 1px solid var(--rule); border-radius: 10px; }
.dev > div { min-width: 0; }
.dev dt { font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.dev dd { margin: 2px 0 0; font: 400 15px var(--mono); overflow-wrap: anywhere; }
.cmd { display: flex; gap: 8px; align-items: stretch; margin: 0; }
.cmd pre { flex: 1; min-width: 0; margin: 0; background: var(--asphalt); color: #f1f3f2; border-radius: 10px; padding: 14px; overflow-x: auto; font: 400 13px/1.5 var(--mono); direction: ltr; text-align: left; }
.cmd pre.sh { padding-inline-start: 32px; position: relative; }
.cmd pre.sh::before { content: "$"; position: absolute; left: 14px; color: var(--yellow); }
.cmd .btn { min-height: 44px; align-self: center; padding-inline: 16px; font-size: 15px; }
.cmd .btn[data-state="done"] { background: var(--yellow); color: var(--on-yellow); }
.hash pre { white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-all; }
@media (max-width: 520px) { .cmd { flex-direction: column; } .cmd .btn { align-self: stretch; } }
.small { font-size: 14px; color: var(--ink-3); }
.tick { display: grid; gap: 0; }

/* Steps on a dashed road line */
.route { position: relative; list-style: none; margin: 0 0 30px; padding: 0; padding-inline-start: 66px; display: grid; gap: 18px; max-width: 780px; counter-reset: s; }
.route::before { content: ""; position: absolute; inset-inline-start: 22px; top: 12px; bottom: 12px; width: 6px; border-radius: 3px;
  background: repeating-linear-gradient(180deg, var(--sign) 0 18px, transparent 18px 30px); }
.route > li { counter-increment: s; position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 18px 22px; box-shadow: var(--shadow-s); min-width: 0; }
.route > li::before { content: counter(s); position: absolute; inset-inline-start: -66px; top: 12px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--sign); color: var(--on-sign); border: 4px solid var(--bg); display: grid; place-items: center; font: 900 19px/1 var(--font); }
.route p { margin: 0 0 8px; color: var(--ink-2); }
.route .cmd { margin-top: 8px; }
.route > li > :last-child { margin-bottom: 0; }
@media (max-width: 480px) { .route { padding-inline-start: 52px; } .route::before { inset-inline-start: 15px; } .route > li::before { inset-inline-start: -52px; width: 40px; height: 40px; font-size: 16px; } .route > li { padding: 16px; } }
.alt { max-width: 780px; background: var(--card); border: 2px dashed var(--rule-2); border-radius: 12px; padding: 18px 22px; }
.alt p { margin: 0; }

/* FAQ */
.faq details { max-width: 860px; border-bottom: 2px solid var(--rule); }
.faq details:first-of-type { border-top: 2px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding-block: 14px; font: 900 19px/1.35 var(--font); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sign); color: var(--on-sign); font: 900 20px/1 var(--font); padding-top: 3px; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--sign-text); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 70ch; }

/* Text pages */
.doc { padding-block: 48px 0; max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 56px); margin-bottom: 16px; }
.doc h2 { font-size: clamp(24px, 3vw, 32px); margin: 36px 0 12px; }
.doc p { margin: 0 0 12px; color: var(--ink-2); }
.doc ul { margin: 0 0 12px; padding-inline-start: 1.2em; display: grid; gap: 8px; color: var(--ink-2); }
.doc ul li::marker { color: var(--sign-text); }
.doc .lead { margin: 0 0 24px; }
.big404 { font: 900 clamp(80px, 20vw, 180px)/1 var(--font); color: var(--sign-text); margin: 0 0 8px; }

/* Footer */
.foot { margin-top: 100px; background: var(--asphalt); color: #c9cfcb; padding: 34px 0 48px; border-top: 6px solid var(--yellow); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; }
.foot .brand { color: #fff; }
.foot p { margin: 0 0 8px; max-width: 80ch; }
.foot a { color: #ffe066; }
.foot a:hover { color: #fff; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 700px) { .foot-grid { grid-template-columns: 1fr; } }

/* Hero info sign */
.sign { justify-self: end; width: 100%; max-width: 360px; background: var(--sign); color: var(--on-sign); border-radius: 18px; padding: 10px; box-shadow: var(--shadow); }
.sign-in { border: 3px solid var(--on-sign); border-radius: 12px; padding: 18px 22px 20px; }
.sign-in b { display: block; font: 900 34px/1.05 var(--font); }
.sign-in p { margin: 6px 0 0; font-weight: 600; }
.sign-in .mono { font: 400 14px/1.4 var(--mono); overflow-wrap: anywhere; }
.tab { display: inline-block; margin-top: 14px; background: var(--yellow); color: var(--on-yellow); font: 900 13px/1 var(--font); letter-spacing: .06em; padding: 8px 10px 6px; border-radius: 5px; }
@media (max-width: 860px) { .sign { justify-self: center; max-width: 420px; } }
