/* ==========================================================================
   JAECOO Jakarta Selatan — Article pages
   Builds on styles-new.css tokens (dark luxury • aurora accents • glass)
   ========================================================================== */

.nav.solid { background: rgba(6, 8, 10, .72); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); border-color: var(--line); }
.nav-back { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; color: #cdd5db; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); transition: background .25s, color .25s; }
.nav-back:hover { background: var(--surface-2); color: #fff; }
.nav-wa { display: none; padding: 11px 22px; font-size: .88rem; }
@media (min-width: 720px) { .nav-wa { display: inline-flex; } }

/* reading progress */
.read-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 95; background: transparent; }
.read-progress i { display: block; height: 100%; width: 0; background: var(--grad-aurora); box-shadow: 0 0 12px rgba(56, 212, 255, .6); }

/* ---------- Article hero ---------- */
.a-hero { position: relative; min-height: min(92svh, 820px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding: 140px 0 64px; }
.a-hero-img { position: absolute; inset: 0; z-index: -2; }
.a-hero-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 14s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.a-hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6,8,10,.55) 0%, rgba(6,8,10,.15) 35%, rgba(6,8,10,.85) 78%, var(--bg) 100%),
              radial-gradient(80% 60% at 0% 100%, rgba(46,230,166,.18), transparent 60%); }
.a-hero.amber::after { background: linear-gradient(180deg, rgba(6,8,10,.55) 0%, rgba(6,8,10,.15) 35%, rgba(6,8,10,.85) 78%, var(--bg) 100%),
              radial-gradient(80% 60% at 0% 100%, rgba(255,176,46,.2), transparent 60%); }
.a-hero-inner { max-width: 900px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--muted); margin-bottom: 22px; }
.crumbs a:hover { color: #fff; }
.crumbs span[aria-hidden] { opacity: .5; }
.a-cat { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(56,212,255,.14); color: var(--cyan); border: 1px solid rgba(56,212,255,.35); margin-bottom: 18px; }
.a-hero.amber .a-cat { background: rgba(255,176,46,.14); color: var(--amber); border-color: rgba(255,176,46,.35); }
.a-hero h1 { font-size: clamp(2.1rem, 5.4vw, 4.2rem); margin-bottom: 20px; text-wrap: balance; }
.a-lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: #c9d2d9; max-width: 720px; }
.a-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; font-size: .86rem; color: var(--muted); }
.a-meta span { display: inline-flex; align-items: center; gap: 8px; }
.a-meta i { color: var(--emerald); }

/* ---------- Layout ---------- */
.a-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding: 24px 0 clamp(72px, 9vw, 120px); }
@media (min-width: 1080px) { .a-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; } }

.prose { font-size: 1.06rem; line-height: 1.85; color: #d3dbe1; max-width: 760px; }
.prose > * + * { margin-top: 1.3em; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); color: #fff; margin-top: 2.2em; scroll-margin-top: 100px; }
.prose h3 { font-size: 1.25rem; color: #fff; margin-top: 1.8em; }
.prose strong { color: #fff; }
.prose a:not(.btn) { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose ul.dots { display: grid; gap: 12px; }
.prose ul.dots li { position: relative; padding-left: 28px; }
.prose ul.dots li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 10px; height: 10px; border-radius: 50%; background: var(--grad-aurora); box-shadow: 0 0 10px rgba(46,230,166,.6); }

.figure { margin: 2.4em 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0d1217; }
.figure img { width: 100%; height: auto; aspect-ratio: 1376 / 768; object-fit: cover; transition: transform 1.2s var(--ease); }
.figure:hover img { transform: scale(1.04); }
.figure figcaption { padding: 14px 18px; font-size: .86rem; color: var(--muted); border-top: 1px solid var(--line); }

/* highlight cards */
.hl-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 2em 0; }
.hl { padding: 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.hl:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.hl .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(46,230,166,.12); color: var(--emerald); font-size: 1.1rem; margin-bottom: 14px; }
.hl b { display: block; font-family: var(--font-display); font-size: 1.05rem; color: #fff; margin-bottom: 6px; }
.hl p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* compare */
.vs-grid { display: grid; gap: 16px; margin: 2.2em 0; }
@media (min-width: 720px) { .vs-grid { grid-template-columns: 1fr 1fr; } }
.vs-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0d1217; display: flex; flex-direction: column; }
.vs-card .img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.vs-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.vs-card:hover .img img { transform: scale(1.06); }
.vs-card .img span { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; color: #fff; background: rgba(0,0,0,.55); backdrop-filter: blur(8px); border: 1px solid var(--line-strong); }
.vs-card .body { padding: 20px 22px 24px; }
.vs-card h3 { margin: 0 0 6px !important; }
.vs-card p { font-size: .92rem; color: var(--muted); margin: 0; }
.vs-card .price { margin-top: 12px; font-family: var(--font-display); font-weight: 700; color: #fff; }

.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--line); margin: 2em 0; }
table.spec { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 520px; }
table.spec th, table.spec td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec thead th { background: rgba(255,255,255,.05); font-family: var(--font-display); color: #fff; font-size: .9rem; letter-spacing: .02em; }
table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr:hover { background: rgba(255,255,255,.025); }
table.spec td:first-child { color: var(--muted); white-space: nowrap; }

.callout { padding: 22px 24px; border-radius: var(--radius-sm); border: 1px solid rgba(46,230,166,.3); background: linear-gradient(135deg, rgba(46,230,166,.08), rgba(56,212,255,.05)); font-size: .98rem; }
.callout b { color: var(--emerald); }

.verdict { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-strong); }
.verdict h3 { margin-top: 0 !important; }

/* CTA box */
.cta-box { position: relative; overflow: hidden; margin-top: 3em; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: radial-gradient(120% 120% at 100% 0%, rgba(56,212,255,.18), transparent 50%), radial-gradient(120% 120% at 0% 100%, rgba(46,230,166,.16), transparent 50%), #0b1014; }
.cta-box h2 { margin-top: 0 !important; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.cta-box p { color: var(--muted); margin: 10px 0 22px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Sidebar ---------- */
.a-side { display: grid; gap: 20px; align-content: start; }
@media (min-width: 1080px) { .a-side { position: sticky; top: 100px; } }
.side-card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.side-card h4 { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-family: var(--font-body); font-weight: 600; }
.toc { display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: flex; gap: 10px; padding: 9px 10px; border-radius: 10px; font-size: .9rem; color: #cdd5db; transition: background .25s, color .25s; }
.toc a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); color: var(--dim); font-variant-numeric: tabular-nums; }
.toc a:hover, .toc a.active { background: var(--surface-2); color: #fff; }
.toc a.active::before { color: var(--emerald); }
.side-cta p { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.side-cta .btn { width: 100%; padding: 14px 20px; font-size: .92rem; }
.side-cta .btn + .btn { margin-top: 10px; }

/* related */
.related { padding: clamp(64px, 8vw, 110px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.related h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 12px 0 28px; }
.rel-card { display: grid; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #0d1217; transition: transform .45s var(--ease), border-color .3s; }
@media (min-width: 760px) { .rel-card { grid-template-columns: 1.1fr 1fr; } }
.rel-card:hover { transform: translateY(-6px); border-color: var(--line-strong); }
.rel-card .img { aspect-ratio: 16/10; overflow: hidden; }
.rel-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.rel-card:hover .img img { transform: scale(1.07); }
.rel-card .body { padding: clamp(22px, 3vw, 38px); display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.rel-card h3 { font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
.rel-card p { color: var(--muted); }
.rel-card .more { color: var(--emerald); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }


@media (prefers-reduced-motion: reduce) {
  .a-hero-img img { animation: none; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
.prose ol.dots { display: grid; gap: 12px; counter-reset: step; padding-left: 0; list-style: none; }
.prose ol.dots li { position: relative; padding-left: 40px; counter-increment: step; }
.prose ol.dots li::before { content: counter(step); position: absolute; left: 0; top: .1em; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; font-weight: 700; color: #04120c; background: var(--grad-aurora); }

/* mobile fit: keep tables inside the screen */
.a-layout > * { min-width: 0; }
@media (max-width: 640px) {
  table.spec { min-width: 0; font-size: .88rem; }
  table.spec th, table.spec td { padding: 11px 12px; }
  table.spec td:first-child { white-space: normal; }
  .hl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hl { padding: 16px 14px; }
}
