/* TOYS SNOB — clean, product-first layout (big type, generous space, alternating light/dark bands) */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --bg-dark-alt: #161617;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-inv: #f5f5f7;
  --text-inv-2: #a1a1a6;
  --link: #0066cc;
  --link-inv: #2997ff;
  --accent: #ff6a00;          /* TOYS SNOB orange (MAX 3.1 kit) */
  --accent-2: #00c8ff;        /* MAX cyan */
  --line: #d2d2d7;
  --radius: 18px;
  --radius-lg: 28px;
  --nav-h: 48px;
  --max: 1024px;
  --wide: 1240px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 17px; line-height: 1.47; letter-spacing: -0.022em; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.03em; line-height: 1.07; font-weight: 700; }
p { margin: 0; }
button { font: inherit; }

/* ---------- global nav ---------- */
.gnav {
  position: sticky; top: 0; z-index: 50; height: var(--nav-h);
  background: rgba(22, 22, 23, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.gnav-in { max-width: var(--max); margin: 0 auto; height: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.brand { display: flex; align-items: center; gap: 8px; color: #f5f5f7; font-weight: 800; letter-spacing: .02em; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--accent), #ffb000); display: grid; place-items: center; color: #000; font-size: 12px; font-weight: 900; }
.gnav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.gnav-links a { color: #e8e8ed; font-size: 12.5px; opacity: .85; letter-spacing: -0.01em; }
.gnav-links a:hover, .gnav-links a[aria-current="page"] { opacity: 1; text-decoration: none; color: #fff; }
.gnav-links a[aria-current="page"] { font-weight: 600; }
.gnav-cta { font-size: 12px; background: var(--accent); color: #000 !important; padding: 4px 12px; border-radius: 980px; font-weight: 600; opacity: 1 !important; }
.gnav-toggle { display: none; background: none; border: 0; color: #fff; width: 40px; height: 40px; cursor: pointer; }
.gnav-toggle span { display: block; width: 18px; height: 1.5px; background: currentColor; margin: 5px auto; transition: transform .25s; }
/* ---------- flyout menus (desktop hover, phone drill-in) ---------- */
:root { --fly-bg: #fafafc; --fly-ease: cubic-bezier(.4, 0, .6, 1); }
.gnav { transition: background-color .24s var(--fly-ease) .08s; }
.gnav.menu-open { background: var(--fly-bg); transition-delay: 0s; }
.gnav .brand, .gnav-links a, .gnav-toggle { transition: color .24s var(--fly-ease); }
.gnav.menu-open .brand, .gnav.open .brand { color: #1d1d1f; }
.gnav.menu-open .gnav-links a:not(.gnav-cta) { color: #1d1d1f; opacity: .8; }
.gnav.menu-open .gnav-links a:not(.gnav-cta):hover, .gnav.menu-open .has-menu > a[aria-expanded="true"] { opacity: 1; color: #000; }
.gnav-flyout { position: absolute; left: 0; right: 0; top: var(--nav-h); height: 0; overflow: hidden; background: var(--fly-bg);
  transition: height .32s var(--fly-ease) .1s; }
.gnav.menu-open .gnav-flyout { transition-delay: 0s; }
.fly-inner { position: relative; max-width: var(--max); margin: 0 auto; }
.fly-panel { position: absolute; top: 0; left: 0; right: 0; padding: 40px 22px 84px; visibility: hidden; transition: visibility 0s .32s; }
.fly-panel.active { visibility: visible; transition-delay: 0s; }
.fly-cols { display: flex; gap: 72px; }
.fly-col.big { min-width: 300px; }
.fly-col ul { list-style: none; margin: 0; padding: 0; }
.fly-head { font-size: 12px; color: #6e6e73; margin-bottom: 14px; letter-spacing: -0.01em; }
.fly-col a, .fly-col li span { display: inline-block; color: #333336; font-size: 12px; font-weight: 600; padding: 5px 0; letter-spacing: -0.01em; }
.fly-col.big a { font-size: 24px; line-height: 1.17; letter-spacing: -0.015em; padding: 6px 0; }
.fly-col a:hover { color: #000; text-decoration: none; }
.fly-col .soon span { color: #86868b; font-weight: 400; }
.fly-col .soon span::after { content: " · segera"; font-size: 11px; }
.fly-col a.fly-extra { margin-top: 14px; font-size: 12px; color: #6e6e73; }
.fly-back { display: none; }
/* items drop in one after another, and leave all at once */
.fly-item { opacity: 0; transform: translateY(-4px); transition: opacity .16s ease, transform .2s ease; }
.fly-panel.active .fly-item { opacity: 1; transform: none; transition: opacity .3s ease, transform .3s ease; transition-delay: calc(.1s + var(--i) * 20ms); }
.gnav.menu-switch .fly-panel.active .fly-item { transition-delay: calc(var(--i) * 12ms); }
/* page behind gets blurred */
.gnav-curtain { position: fixed; inset: 0; z-index: 45; background: rgba(232, 232, 237, .4); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transition: opacity .32s var(--fly-ease) .1s, visibility 0s .42s; }
.gnav-curtain.on { opacity: 1; visibility: visible; transition: opacity .32s var(--fly-ease), visibility 0s; }
.gnav { z-index: 50; }

@media (max-width: 760px) {
  .gnav-toggle { display: block; }
  /* backdrop-filter would make the nav the containing block of its fixed menus (cut to 48 px) */
  .gnav.open { background: var(--fly-bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .gnav.open .gnav-toggle { color: #1d1d1f; }
  .gnav-links { position: fixed; inset: var(--nav-h) 0 0 0; flex-direction: column; gap: 0; background: var(--fly-bg); padding: 16px 40px 28px; display: none; overflow: auto; }
  .gnav.open .gnav-links { display: flex; animation: flyDown .3s var(--fly-ease); }
  .gnav.open.sub .gnav-links { display: none; }
  .gnav-links a { display: block; font-size: 28px; font-weight: 600; padding: 8px 0; color: #333336 !important; opacity: 1 !important; }
  .has-menu > a::after { content: "›"; float: right; font-weight: 300; color: #86868b; }
  .gnav-cta { display: inline-block; margin-top: 14px; font-size: 17px !important; padding: 8px 18px; color: #000 !important; }
  .gnav.open .gnav-toggle span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .gnav.open .gnav-toggle span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .gnav-flyout { display: none; }
  .gnav.open.sub .gnav-flyout { display: block; position: fixed; top: var(--nav-h); bottom: 0; height: auto !important; overflow: auto; }
  .fly-panel { position: static; display: none; padding: 8px 40px 40px; }
  .fly-panel.active { display: block; animation: flyIn .32s var(--fly-ease); }
  .fly-back { display: block; background: none; border: 0; color: #6e6e73; font-size: 17px; padding: 8px 0 18px; cursor: pointer; }
  .fly-cols { flex-direction: column; gap: 34px; }
  .fly-col a, .fly-col li span { font-size: 17px; }
  .fly-col.big a { font-size: 28px; }
  .fly-col.big a.fly-extra { font-size: 15px; }
  .gnav-links a.gnav-cta { display: inline-block; align-self: flex-start; padding: 8px 18px; }
  .gnav-curtain { display: none; }
}
@keyframes flyIn { from { opacity: 0; transform: translateX(24px); } }
@keyframes flyDown { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) {
  .gnav-flyout, .fly-item, .fly-panel.active .fly-item, .gnav-curtain { transition-duration: 0s !important; transition-delay: 0s !important; }
}

/* sub nav (product pages) */
.subnav { position: sticky; top: var(--nav-h); z-index: 40; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.12); }
.subnav.dark { background: rgba(22,22,23,.82); border-color: rgba(255,255,255,.12); }
.subnav-in { max-width: var(--max); margin: 0 auto; padding: 0 22px; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.subnav-title { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.subnav.dark .subnav-title { color: #f5f5f7; }
.subnav-links { display: flex; align-items: center; gap: 22px; font-size: 12px; overflow-x: auto; scrollbar-width: none; }
.subnav-links::-webkit-scrollbar { display: none; }
.subnav-links a { color: var(--text); white-space: nowrap; opacity: .85; }
.subnav.dark .subnav-links a { color: #f5f5f7; }
.subnav-links a.btn-pill { opacity: 1; }
@media (max-width: 760px) { .subnav-title { font-size: 17px; } .subnav-links a:not(.btn-pill) { display: none; } }

/* ---------- buttons / links ---------- */
.btn-pill { display: inline-block; background: #0071e3; color: #fff !important; padding: 11px 22px; border-radius: 980px; font-size: 17px; font-weight: 400; line-height: 1.17; border: 0; cursor: pointer; transition: background .2s; }
.btn-pill:hover { background: #0077ed; text-decoration: none; }
.btn-pill.sm { padding: 4px 12px; font-size: 12px; }
.btn-pill.orange { background: var(--accent); color: #000 !important; }
.btn-pill.orange:hover { background: #ff7d1f; }
.btn-pill.ghost { background: transparent; color: #0071e3 !important; box-shadow: inset 0 0 0 1px #0071e3; }
.btn-pill.ghost:hover { background: #0071e3; color: #fff !important; }
.dark .btn-pill.ghost, .btn-pill.ghost.inv { color: #2997ff !important; box-shadow: inset 0 0 0 1px #2997ff; }
.dark .btn-pill.ghost:hover, .btn-pill.ghost.inv:hover { background: #2997ff; color: #000 !important; }
.chev::after { content: " ›"; }
.links { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; align-items: center; font-size: 19px; }
.links.left { justify-content: flex-start; }

/* ---------- sections ---------- */
.band { padding: 100px 22px; }
.band.alt { background: var(--bg-alt); }
.band.dark { background: var(--bg-dark); color: var(--text-inv); }
.band.dark-alt { background: var(--bg-dark-alt); color: var(--text-inv); }
.dark a, .dark-alt a { color: var(--link-inv); }
.wrap { max-width: var(--max); margin: 0 auto; }
.wrap-wide { max-width: var(--wide); margin: 0 auto; }
.center { text-align: center; }
.eyebrow { font-size: 21px; font-weight: 600; color: var(--accent); letter-spacing: -0.01em; margin-bottom: 8px; }
.eyebrow.cyan { color: var(--accent-2); }
.h-hero { font-size: clamp(44px, 8vw, 96px); letter-spacing: -0.045em; }
.h-xl { font-size: clamp(40px, 6vw, 80px); letter-spacing: -0.04em; }
.h-l { font-size: clamp(32px, 4.6vw, 56px); }
.h-m { font-size: clamp(26px, 3.2vw, 40px); }
.h-s { font-size: 24px; letter-spacing: -0.02em; }
.lead { font-size: clamp(19px, 2.2vw, 28px); line-height: 1.25; letter-spacing: -0.02em; font-weight: 500; color: var(--text-2); margin-top: 14px; }
.dark .lead, .dark-alt .lead { color: var(--text-inv-2); }
.body-l { font-size: 21px; line-height: 1.38; color: var(--text-2); }
.dark .body-l, .dark-alt .body-l { color: var(--text-inv-2); }
.body-l strong { color: var(--text); }
.dark .body-l strong, .dark-alt .body-l strong { color: #fff; }
.muted { color: var(--text-2); }
.small { font-size: 12px; line-height: 1.33; color: var(--text-2); letter-spacing: -0.01em; }
.dark .small, .dark-alt .small { color: #86868b; }
.gradient-text { background: linear-gradient(90deg, #ff6a00, #ffb000 40%, #00c8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; } .mt-64 { margin-top: 64px; }

/* ---------- home hero tiles ---------- */
.hero { text-align: center; padding: 64px 22px 0; overflow: hidden; }
.hero .links { margin-top: 22px; }
.hero-visual { margin: 48px auto 0; max-width: 980px; }
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
.tile { position: relative; border-radius: 0; min-height: 580px; overflow: hidden; text-align: center; padding: 52px 24px 0; display: flex; flex-direction: column; align-items: center; background: var(--bg-alt); }
.tile.dark { background: #000; color: var(--text-inv); }
.tile h2 { font-size: clamp(32px, 3.6vw, 48px); }
.tile p.lead { font-size: clamp(17px, 1.8vw, 24px); margin-top: 6px; }
.tile .links { margin-top: 16px; font-size: 17px; gap: 16px; }
.tile-art { margin-top: auto; width: 100%; display: flex; justify-content: center; align-items: flex-end; padding-top: 28px; }
@media (max-width: 860px) { .tile-grid { grid-template-columns: 1fr; padding: 12px 0; } .tile { min-height: 520px; } }

/* ---------- cards ---------- */
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 12px rgba(0,0,0,.04); transition: transform .3s cubic-bezier(0,0,.5,1), box-shadow .3s; }
.alt .card { background: #fff; }
.band:not(.alt):not(.dark):not(.dark-alt) .card { background: var(--bg-alt); box-shadow: none; }
.dark .card, .dark-alt .card { background: #1d1d1f; color: var(--text-inv); box-shadow: none; }
.card:hover { transform: scale(1.012); box-shadow: 0 6px 30px rgba(0,0,0,.08); }
.card h3 { font-size: 24px; letter-spacing: -0.02em; }
.card p { color: var(--text-2); margin-top: 8px; font-size: 17px; }
.dark .card p, .dark-alt .card p { color: var(--text-inv-2); }
.feature-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, #ff6a00, #ffb000); color: #000; font-weight: 800; }
.feature-icon.cyan { background: linear-gradient(135deg, #00c8ff, #0071e3); color: #fff; }

/* big stat row */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; text-align: center; }
.stat-num { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.stat-label { font-size: 17px; color: var(--text-2); margin-top: 8px; }
.dark .stat-label, .dark-alt .stat-label { color: var(--text-inv-2); }

/* ---------- footer ---------- */
.footer { background: var(--bg-alt); color: var(--text-2); font-size: 12px; line-height: 1.33; padding: 20px 22px 32px; }
.footer .wrap { border-top: 1px solid var(--line); padding-top: 18px; }
.footer-notes p { margin-bottom: 10px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 24px 0; }
.footer-cols h4 { font-size: 12px; color: var(--text); font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.footer-cols a { display: block; color: var(--text-2); margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 14px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- LCD art (used on home + store as pure CSS screens) ---------- */
.lcd-frame { background: #0d0f12; border-radius: 26px; padding: 18px; box-shadow: 0 40px 80px rgba(0,0,0,.35), inset 0 0 0 1px #2a3036; display: inline-block; }
.lcd-frame canvas { display: block; border-radius: 6px; image-rendering: pixelated; width: 100%; height: auto; }

/* ---------- chassis guide ---------- */
.timeline { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 0; overflow-x: auto; padding: 10px 0 24px; scroll-snap-type: x mandatory; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 48px; height: 2px; background: linear-gradient(90deg, #ff6a00, #ffb000, #00c8ff); }
.tl-item { scroll-snap-align: start; padding: 0 12px; text-align: left; cursor: pointer; background: none; border: 0; color: inherit; }
.tl-year { font-size: 13px; color: var(--text-inv-2); font-weight: 600; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: #000; border: 3px solid var(--accent); margin: 14px 0; position: relative; z-index: 1; transition: transform .2s; }
.tl-item:hover .tl-dot { transform: scale(1.3); }
.tl-name { font-size: 17px; font-weight: 600; color: #fff; }
.tl-gen { font-size: 12px; color: var(--text-inv-2); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.chip { border: 0; background: #e8e8ed; color: var(--text); padding: 8px 16px; border-radius: 980px; font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.chip:hover { background: #dcdce0; }
.chip[aria-pressed="true"] { background: var(--text); color: #fff; }

.chassis-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.ch-card { background: #fff; border-radius: var(--radius-lg); padding: 28px 28px 24px; display: flex; flex-direction: column; cursor: pointer; border: 0; text-align: left; color: inherit; transition: transform .3s cubic-bezier(0,0,.5,1), box-shadow .3s; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.ch-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.1); }
.ch-card .gen { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.ch-card h3 { font-size: 28px; margin-top: 4px; }
.ch-card .meta { color: var(--text-2); font-size: 14px; margin-top: 4px; }
.ch-card svg { margin: 18px auto 10px; width: 100%; max-width: 260px; height: auto; }
.ch-card .summary { color: var(--text-2); font-size: 15px; line-height: 1.4; }
.ch-card .more { margin-top: auto; padding-top: 16px; color: var(--link); font-size: 15px; }
.spec-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.spec { background: var(--bg-alt); border-radius: 10px; padding: 6px 10px; font-size: 12px; color: var(--text-2); }
.spec b { color: var(--text); font-weight: 600; }

/* chassis detail dialog */
.sheet { position: fixed; inset: 0; z-index: 100; display: none; }
.sheet.open { display: block; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.48); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .25s; }
.sheet-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(880px, calc(100% - 32px)); max-height: calc(100% - 48px); overflow: auto; background: #fff; border-radius: 28px; padding: 48px 48px 40px; animation: pop .35s cubic-bezier(.2,.8,.2,1); }
.sheet-close { position: sticky; top: 0; float: right; margin: -28px -28px 0 0; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #e8e8ed; cursor: pointer; font-size: 20px; line-height: 1; color: var(--text); }
.sheet-close:hover { background: #dcdce0; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
@media (max-width: 640px) { .sheet-panel { padding: 36px 22px 28px; border-radius: 22px; } .sheet-close { margin: -20px -10px 0 0; } }
.detail-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 700px) { .detail-head { grid-template-columns: 1fr; } }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 15px; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid #e8e8ed; vertical-align: top; }
.spec-table th { color: var(--text-2); font-weight: 400; width: 44%; }
.bars { display: grid; gap: 10px; margin-top: 8px; }
.bar-row { display: grid; grid-template-columns: 140px 1fr 34px; gap: 10px; align-items: center; font-size: 14px; color: var(--text-2); }
.bar { height: 8px; background: #e8e8ed; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff6a00, #ffb000); border-radius: 99px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.pros-cons div { background: var(--bg-alt); border-radius: 16px; padding: 18px 20px; }
.pros-cons h4 { font-size: 15px; margin-bottom: 6px; }
.pros-cons ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 15px; }
@media (max-width: 600px) { .pros-cons { grid-template-columns: 1fr; } }

.compare-wrap { overflow-x: auto; border-radius: var(--radius); background: #fff; }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
.compare th, .compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid #ececf0; white-space: nowrap; }
.compare thead th { position: sticky; top: 0; background: #fff; font-size: 12px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; user-select: none; }
.compare thead th:hover { color: var(--text); }
.compare tbody tr:hover { background: #fafafc; }
.compare td:first-child { font-weight: 600; }
.pos-badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 600; }
.pos-rear { background: #fff1e6; color: #b34700; }
.pos-front { background: #e6f7ff; color: #005f86; }
.pos-mid { background: #f0ebff; color: #5b2bb5; }

.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 40px; }
.glossary dt { font-weight: 600; font-size: 19px; margin-top: 24px; }
.glossary dd { margin: 6px 0 0; color: var(--text-inv-2); }

/* ---------- store ---------- */
.product-hero { background: #000; color: #f5f5f7; text-align: center; padding: 80px 22px 0; overflow: hidden; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: stretch; }
.price-card { background: #fff; border-radius: var(--radius-lg); padding: 36px 30px; display: flex; flex-direction: column; text-align: center; position: relative; border: 2px solid transparent; }
.price-card.featured { border-color: var(--accent); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: #fff1e6; color: #b34700; }
.badge.new { background: var(--accent); color: #000; }
.badge.cyan { background: #e6f7ff; color: #005f86; }
.badge.gray { background: #ececf0; color: #515154; }
.badge.warn { background: #fff7d6; color: #7a5b00; }
.price-card h3 { font-size: 32px; margin-top: 14px; }
.price-card .tag { color: var(--text-2); margin-top: 6px; min-height: 48px; }
.price { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; margin: 22px 0 4px; }
.price small { font-size: 15px; font-weight: 400; color: var(--text-2); letter-spacing: 0; }
.price-card ul { text-align: left; padding: 0; list-style: none; margin: 22px 0 28px; color: var(--text-2); font-size: 15px; }
.price-card li { padding: 8px 0 8px 26px; border-top: 1px solid #ececf0; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 2px; color: var(--accent); font-weight: 700; }
.price-card .actions { margin-top: auto; display: grid; gap: 10px; }

.matrix-wrap { overflow-x: auto; }
.matrix { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 15px; }
.matrix th, .matrix td { padding: 14px 12px; border-bottom: 1px solid #ececf0; text-align: center; }
.matrix th:first-child, .matrix td:first-child { text-align: left; color: var(--text); }
.matrix thead th { font-size: 17px; font-weight: 600; vertical-align: bottom; }
.matrix thead th span { display: block; font-size: 12px; color: var(--text-2); font-weight: 400; margin-top: 2px; }
.matrix td { color: var(--text-2); }
.yes { color: #1d8a3a; font-weight: 700; }
.no { color: #c7c7cc; }
.matrix .grp td { background: var(--bg-alt); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); text-align: left; }

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(420px, 82%); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 22px 22px; margin: 0 -22px; scrollbar-width: thin; }
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery img { border-radius: 22px; width: 100%; aspect-ratio: 1; object-fit: cover; background: #111; }
.gallery figcaption { font-size: 14px; color: var(--text-inv-2); margin-top: 10px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { background: #fff; border-radius: var(--radius); padding: 28px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--text); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 19px; }
.step p { color: var(--text-2); font-size: 15px; margin-top: 6px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 26px; line-height: 1; color: var(--text-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--text-2); margin-top: 10px; }
.notice { background: #fff7d6; border-radius: 16px; padding: 18px 22px; color: #5c4500; font-size: 15px; }

/* ---------- simulator ---------- */
.sim-page { background: #000; color: var(--text-inv); }
.ver-tabs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; background: #1d1d1f; padding: 6px; border-radius: 980px; width: max-content; max-width: 100%; margin: 0 auto; }
.ver-tab { border: 0; background: none; color: #d2d2d7; padding: 8px 16px; border-radius: 980px; cursor: pointer; font-size: 14px; white-space: nowrap; }
.ver-tab:hover { color: #fff; }
.ver-tab[aria-selected="true"] { background: #f5f5f7; color: #000; font-weight: 600; }
.ver-tab .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: var(--accent); }
.ver-tab .dot.mock { background: #86868b; }
@media (max-width: 700px) { .ver-tabs { border-radius: 18px; } .ver-tab { padding: 7px 11px; font-size: 13px; } }

.sim-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-top: 36px; align-items: start; }
@media (max-width: 980px) { .sim-layout { grid-template-columns: 1fr; } }
.device { background: linear-gradient(180deg, #23272c, #15181b); border-radius: 34px; padding: 26px; box-shadow: 0 50px 120px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.05); position: relative; user-select: none; -webkit-user-select: none; }
.device-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; font-size: 13px; }
.device-top .model { color: #9aa4ad; font-weight: 700; letter-spacing: .02em; }
.device-top .fw { color: var(--accent-2); font-weight: 700; letter-spacing: .04em; font-size: 12px; text-transform: uppercase; }
.device-main { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 26px; align-items: center; }
@media (max-width: 640px) { .device-main { grid-template-columns: 1fr; } .device { padding: 16px; border-radius: 24px; } }
.screen-bezel { position: relative; background: #050607; border-radius: 12px; padding: 12px; box-shadow: inset 0 0 0 2px #2c333a; }
#lcd { width: 100%; height: auto; display: block; border-radius: 4px; image-rendering: pixelated; touch-action: none; }
.controls { display: flex; flex-direction: column; align-items: center; gap: 18px; }
@media (max-width: 640px) { .controls { flex-direction: row; justify-content: center; gap: 22px; } }
.knob { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #3a434c, #1a1f24 70%); box-shadow: 0 10px 24px rgba(0,0,0,.6), inset 0 2px 2px rgba(255,255,255,.12), inset 0 0 0 3px #2f3840; position: relative; touch-action: none; cursor: grab; }
.knob:active { cursor: grabbing; }
.knob-mark { position: absolute; left: 50%; top: 9px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--accent-2); box-shadow: 0 0 8px var(--accent-2); }
.knob-ring { position: absolute; inset: 0; transition: transform .08s; }
.push-btn { position: absolute; left: 50%; top: 50%; width: 66px; height: 66px; margin: -33px 0 0 -33px; border-radius: 50%; border: 2px solid var(--accent-2); background: #222a31; color: #f5f5f7; font-weight: 700; font-size: 13px; cursor: pointer; letter-spacing: .04em; }
.push-btn.down, .back-btn.down { background: #3a5866; }
.knob-arrows { display: flex; justify-content: space-between; width: 150px; font-size: 12px; color: #86868b; margin-top: -8px; }
.knob-arrows button { background: #1d2126; color: #d2d2d7; border: 1px solid #333a41; border-radius: 99px; padding: 4px 12px; cursor: pointer; font-size: 13px; }
.knob-arrows button:hover { color: #fff; border-color: #4a545e; }
.back-btn { width: 130px; height: 44px; border-radius: 12px; border: 2px solid var(--accent); background: #222a31; color: #f5f5f7; font-weight: 700; cursor: pointer; letter-spacing: .04em; }
.slots { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 22px; }
.slot { background: #0b0e11; border-radius: 12px; padding: 10px 6px 10px; text-align: center; cursor: pointer; border: 1px solid #262c32; color: #d2d2d7; transition: border-color .2s; }
.slot:hover { border-color: #4a545e; }
.slot.sel { border-color: var(--accent-2); }
.slot-name { font-size: 12px; font-weight: 700; }
.slot-leds { display: flex; justify-content: center; gap: 6px; margin: 6px 0; }
.led { width: 9px; height: 9px; border-radius: 50%; background: #1b2b1f; }
.led.r { background: #2e1414; }
.led.on-g { background: #39ff6a; box-shadow: 0 0 8px #39ff6a; }
.led.on-r { background: #ff4040; box-shadow: 0 0 8px #ff4040; }
.cell { width: 26px; height: 64px; margin: 4px auto 6px; border: 2px solid #59636d; border-radius: 4px; position: relative; overflow: hidden; }
.cell::before { content: ""; position: absolute; top: -2px; left: 7px; width: 8px; height: 4px; background: #59636d; }
.cell i { position: absolute; left: 0; right: 0; bottom: 0; background: #e6c230; transition: height .3s; }
.cell.empty { border-style: dashed; border-color: #333a41; }
.cell.empty i { display: none; }
.slot-v { font-family: var(--mono); font-size: 11px; color: #a1a1a6; line-height: 1.3; min-height: 28px; }
@media (max-width: 640px) { .slots { grid-template-columns: repeat(3, 1fr); } }

.panel { background: #1d1d1f; border-radius: 22px; padding: 22px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: #f5f5f7; margin-bottom: 12px; }
.panel p, .panel li { font-size: 14px; color: var(--text-inv-2); }
.seg { display: grid; grid-auto-flow: column; background: #2c2c2e; border-radius: 10px; padding: 2px; }
.seg button { border: 0; background: none; color: #d2d2d7; padding: 7px 0; border-radius: 8px; cursor: pointer; font-size: 13px; }
.seg button[aria-pressed="true"] { background: #636366; color: #fff; font-weight: 600; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; color: var(--text-inv-2); }
.row input[type=range] { flex: 1; accent-color: var(--accent-2); }
.row output { font-family: var(--mono); color: #f5f5f7; min-width: 70px; text-align: right; font-size: 13px; }
.switch { display: flex; align-items: center; gap: 10px; font-size: 14px; color: #d2d2d7; cursor: pointer; margin-top: 12px; }
.switch input { accent-color: var(--accent-2); width: 18px; height: 18px; }
.btn-dark { width: 100%; background: #2c2c2e; color: #f5f5f7; border: 0; border-radius: 12px; padding: 10px; cursor: pointer; font-size: 14px; margin-top: 8px; }
.btn-dark:hover { background: #3a3a3c; }
.kbd { font-family: var(--mono); font-size: 12px; background: #2c2c2e; border-radius: 6px; padding: 1px 6px; color: #f5f5f7; }
.status-line { font-family: var(--mono); font-size: 12px; color: #a1a1a6; margin-top: 14px; min-height: 18px; }
.sim-note { margin-top: 14px; font-size: 13px; color: #86868b; text-align: center; }
.mode-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: rgba(255,106,0,.15); color: #ffb37a; }
.mode-badge.mock { background: rgba(255,255,255,.08); color: #c7c7cc; }
.ver-info { text-align: center; margin-top: 22px; }
.ver-info h2 { font-size: clamp(28px, 4vw, 44px); }
.ver-info p { color: var(--text-inv-2); max-width: 720px; margin: 10px auto 0; font-size: 17px; }
.feature-pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.feature-pills span { font-size: 13px; padding: 5px 12px; border-radius: 99px; background: #1d1d1f; color: #d2d2d7; }

/* ---------- chassis photos ---------- */
.ch-media { margin: 18px -6px 14px; aspect-ratio: 4 / 3; border-radius: 16px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.ch-photo { width: 100%; height: 100%; object-fit: contain; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.ch-card:hover .ch-photo { transform: scale(1.04); }
.ch-media svg { margin: 0; max-width: 240px; }
.ch-figure { margin: 0; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px #ececf0; }
.ch-figure .ch-photo { aspect-ratio: 4 / 3; height: auto; }
.ch-figure figcaption { font-size: 12px; color: var(--text-2); padding: 8px 14px 10px; text-align: right; }
.hero-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; max-width: 1100px; margin: 56px auto 0; }
.hero-chip { border: 0; padding: 0 0 12px; background: #fff; border-radius: 20px; cursor: pointer; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.08); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; font: inherit; color: inherit; }
.hero-chip:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(0,0,0,.14); }
.hero-chip .ch-photo { aspect-ratio: 1; height: auto; }
.hero-chip span { display: block; font-size: 15px; font-weight: 600; margin-top: 4px; }
@media (max-width: 760px) { .hero-strip { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
.hero-photo, .tile-photo { display: block; border-radius: 28px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.12); }
.hero-photo .ch-photo, .tile-photo .ch-photo { aspect-ratio: 4 / 3; height: auto; }
.tile-photo { width: 100%; margin-bottom: 40px; }

/* ---------- chassis data + stats (detail sheet) ---------- */
.spec-block { margin-top: 48px; }
.key-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.key-tile { background: linear-gradient(160deg, #fff7f0, #f2f7ff); border-radius: 18px; padding: 18px 18px 16px; }
.kt-num { display: block; font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.kt-num small { font-size: 15px; font-weight: 600; color: var(--text-2); letter-spacing: 0; }
.kt-lab { display: block; font-size: 13px; color: var(--text-2); margin-top: 8px; }
@media (max-width: 640px) { .key-tiles { grid-template-columns: 1fr 1fr; } }
.data-table { margin: 22px 0 0; border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px #ececf0; }
.dt-row { display: grid; grid-template-columns: 38% 1fr; }
.dt-row + .dt-row { border-top: 1px solid #ececf0; }
.dt-row dt { background: #fafafc; padding: 13px 18px; font-size: 14px; font-weight: 600; color: var(--text); }
.dt-row dd { margin: 0; padding: 13px 18px; font-size: 15px; color: #333336; line-height: 1.5; }
.gear-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.gear-pills span { background: #fff1e6; color: #b34700; border-radius: 99px; padding: 3px 10px; font-size: 13px; font-weight: 600; }
.stats-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cmp-pick { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.cmp-pick select { font: inherit; font-size: 14px; color: var(--text); border: 0; background: #f0f0f3; border-radius: 10px; padding: 7px 10px; cursor: pointer; }
.stats-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; margin-top: 18px; }
@media (max-width: 700px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-list { list-style: none; margin: 0; padding: 0; }
.stat-list li { display: grid; grid-template-columns: 112px 1fr 40px; gap: 12px; align-items: center; padding: 9px 0; font-size: 14px; }
.stat-list li + li { border-top: 1px solid #f0f0f3; }
.sl-lab { color: var(--text-2); }
.sl-bar { position: relative; height: 10px; border-radius: 99px; background: #ececf0; }
.sl-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, #ff6a00, #ffb000 60%, #00c8ff); }
.sl-cmp { position: absolute; top: -4px; width: 3px; height: 18px; margin-left: -1.5px; border-radius: 2px; background: #1d1d1f; opacity: 0; transition: left .55s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.sl-cmp.on { opacity: .75; }
.sl-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.radar-wrap { position: relative; }
.radar { width: 100%; height: auto; overflow: visible; }
.rg-ring { fill: none; stroke: #e3e3e8; stroke-width: 1; }
.rg-ring:last-of-type { fill: #fafafc; }
.rg-axis { stroke: #e3e3e8; stroke-width: 1; }
.rg-label { font: 600 11px -apple-system, "Segoe UI", sans-serif; fill: #6e6e73; }
.rg-shape { fill: url(#rgFill); fill-opacity: .28; stroke: #ff6a00; stroke-width: 2.5; stroke-linejoin: round; }
.rg-cmp { fill: #1d1d1f; fill-opacity: .06; stroke: #1d1d1f; stroke-width: 1.5; stroke-dasharray: 5 4; stroke-linejoin: round; opacity: 0; transition: opacity .3s; }
.radar.has-cmp .rg-cmp { opacity: 1; }
.rg-dot { fill: #fff; stroke: #ff6a00; stroke-width: 2.5; }
.radar-legend { display: flex; gap: 16px; justify-content: center; font-size: 12px; color: var(--text-2); margin-top: 4px; }
.radar-legend span::before { content: ""; display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; background: #ff6a00; }
.radar-legend .lg-b::before { background: repeating-linear-gradient(90deg, #1d1d1f 0 5px, transparent 5px 8px); }

/* entrance animation: plays when the block scrolls into view */
.spec-block.anim .key-tile, .spec-block.anim .dt-row, .spec-block.anim .stat-list li { opacity: 0; transform: translateY(14px); }
.spec-block.play .key-tile, .spec-block.play .dt-row, .spec-block.play .stat-list li { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.spec-block.play .key-tile:nth-child(2) { transition-delay: .07s; } .spec-block.play .key-tile:nth-child(3) { transition-delay: .14s; } .spec-block.play .key-tile:nth-child(4) { transition-delay: .21s; }
.spec-block.play .dt-row { transition-delay: calc(.25s + var(--i) * 45ms); }
.spec-block.play .stat-list li { transition-delay: calc(var(--i) * 70ms); }
.spec-block.play .sl-bar i { width: var(--w); transition: width 1.1s cubic-bezier(.2,.8,.2,1); transition-delay: calc(.15s + var(--i) * 70ms); }
.stat-list li .sl-bar i { transition-delay: inherit; }
.spec-block.anim .rg-ring, .spec-block.anim .rg-axis, .spec-block.anim .rg-label { opacity: 0; }
.spec-block.play .rg-ring, .spec-block.play .rg-axis { opacity: 1; transition: opacity .6s ease; }
.spec-block.play .rg-label { opacity: 1; transition: opacity .6s ease .9s; }
.spec-block.anim .rg-shape { transform: scale(0); transform-origin: 160px 150px; transform-box: view-box; }
.spec-block.play .rg-shape { transform: scale(1); transition: transform 1.1s cubic-bezier(.34, 1.4, .5, 1) .25s; }
.spec-block.anim .rg-dot { opacity: 0; transform: scale(0); transform-box: fill-box; transform-origin: center; }
.spec-block.play .rg-dot { opacity: 1; transform: none; transition: opacity .3s ease, transform .45s cubic-bezier(.34, 1.8, .5, 1); transition-delay: calc(1s + var(--k) * 70ms); }
@media (prefers-reduced-motion: reduce) {
  .spec-block.anim * { transition: none !important; transform: none !important; opacity: 1 !important; }
  .spec-block.anim .sl-bar i { width: var(--w); }
}

/* =====================================================================================
   Apple palette (apple.com/id): white / #f5f5f7 / #000 surfaces, #1d1d1f text, #6e6e73 secondary,
   #0071e3 buttons, #0066cc links (#2997ff on dark). No orange, no gradients. Overrides the rules above.
   ===================================================================================== */
:root { --accent: #0071e3; --accent-2: #2997ff; --link: #0066cc; --fly-bg: #fafafc; }
.gnav { background: rgba(255, 255, 255, .8); }
.gnav .brand { color: #1d1d1f; }
.gnav-links a { color: rgba(0, 0, 0, .8); opacity: 1; font-size: 12px; }
.gnav-links a:hover, .gnav-links a[aria-current="page"] { color: #000; }
.gnav-links a[aria-current="page"] { font-weight: 400; }
.gnav-toggle { color: #1d1d1f; }
.brand-mark { background: #1d1d1f; color: #fff; border-radius: 5px; }
.subnav { background: rgba(255, 255, 255, .72); }
.subnav.dark { background: rgba(22, 22, 23, .92); border-color: rgba(255,255,255,.08); }
.eyebrow { color: #6e6e73; font-size: 17px; font-weight: 600; }
.eyebrow.new, .badge.new { color: #bf4800; }
.eyebrow.cyan { color: #6e6e73; }
.dark .eyebrow, .dark-alt .eyebrow, .tile.dark .eyebrow, .product-hero .eyebrow, .sim-page .eyebrow { color: #86868b; }
.dark .eyebrow.new, .product-hero .eyebrow.new { color: #ff791b; }
.gradient-text { background: none; -webkit-background-clip: initial; background-clip: initial; color: inherit; }
.btn-pill, .btn-pill.orange { background: #0071e3; color: #fff !important; }
.btn-pill:hover, .btn-pill.orange:hover { background: #0077ed; }
.btn-pill.ghost { background: transparent; color: #0066cc !important; box-shadow: inset 0 0 0 1px #0066cc; }
.btn-pill.ghost:hover { background: #0066cc; color: #fff !important; }
.dark .btn-pill.ghost, .dark-alt .btn-pill.ghost, .tile.dark .btn-pill.ghost, .product-hero .btn-pill.ghost { color: #2997ff !important; box-shadow: inset 0 0 0 1px #2997ff; }
.badge { background: transparent; color: #6e6e73; padding: 0; font-size: 12px; font-weight: 600; }
.badge.new { background: transparent; color: #bf4800; }
.badge.cyan, .badge.gray, .badge.warn { background: transparent; color: #6e6e73; }
.feature-icon, .feature-icon.cyan { background: #f5f5f7; color: #1d1d1f; }
.dark .feature-icon, .dark-alt .feature-icon { background: #2c2c2e; color: #f5f5f7; }
.price-card.featured { border-color: #0071e3; }
.price-card li::before { color: #1d1d1f; }
.yes { color: #1d1d1f; }
.gear-pills span { background: #f5f5f7; color: #1d1d1f; }
.key-tile { background: #f5f5f7; }
.sl-bar i { background: #0071e3; }
.rg-shape { fill: #0071e3; fill-opacity: .14; stroke: #0071e3; }
.rg-dot { stroke: #0071e3; }
.radar-legend span::before { background: #0071e3; }
.bar i { background: #0071e3; }
.ch-card .gen { color: #6e6e73; }
.timeline::before { background: #424245; }
.tl-dot { border-color: #2997ff; }
.pos-rear, .pos-front, .pos-mid { background: #f5f5f7; color: #1d1d1f; }
.chip[aria-pressed="true"] { background: #1d1d1f; }
.notice { background: #f5f5f7; color: #1d1d1f; }
.mode-badge { background: rgba(255,255,255,.1); color: #f5f5f7; }
.ver-tab .dot { background: #2997ff; }
.knob-mark { background: #f5f5f7; box-shadow: none; }
.push-btn { border-color: #6e6e73; }
.back-btn { border-color: #6e6e73; }
.device-top .fw { color: #86868b; }
.slot.sel { border-color: #2997ff; }
.row input[type=range], .switch input { accent-color: #0071e3; }
.footer { background: #f5f5f7; color: rgba(0, 0, 0, .56); }

/* homepage: one product per band, like apple.com */
.home-hero { text-align: center; padding: 56px 22px 0; overflow: hidden; }
.home-hero h2 { font-size: clamp(40px, 5.6vw, 56px); font-weight: 600; letter-spacing: -0.03em; }
.home-hero p { font-size: clamp(21px, 2.4vw, 28px); line-height: 1.14; letter-spacing: .007em; margin-top: 6px; }
.home-hero .links { margin-top: 18px; gap: 14px; font-size: 17px; }
.home-hero .visual { max-width: 760px; margin: 40px auto 0; padding-bottom: 56px; }
.home-hero.light { background: #f5f5f7; color: #1d1d1f; }
.home-hero.dark { background: #000; color: #f5f5f7; }
.home-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
.home-tile { min-height: 520px; text-align: center; padding: 52px 24px 0; display: flex; flex-direction: column; align-items: center; overflow: hidden; }
.home-tile h3 { font-size: clamp(32px, 3.4vw, 40px); font-weight: 600; letter-spacing: -0.02em; }
.home-tile p { font-size: 19px; margin-top: 6px; }
.home-tile .links { margin-top: 16px; gap: 14px; font-size: 17px; }
.home-tile.light { background: #f5f5f7; }
.home-tile.dark { background: #000; color: #f5f5f7; }
.home-tile .art { margin-top: auto; width: 100%; max-width: 440px; padding-top: 28px; }
@media (max-width: 860px) { .home-tiles { grid-template-columns: 1fr; padding: 12px 0; } .home-tile { min-height: 460px; } }
.lcd-frame.light { background: #1d1d1f; box-shadow: 0 30px 60px rgba(0,0,0,.18); }

/* ---------- simplified product pages ---------- */
.simple-hero { padding-top: 64px; }
.simple-hero h1 { font-size: clamp(40px, 6vw, 64px); font-weight: 600; letter-spacing: -0.03em; }
.simple-hero .visual { max-width: 640px; }
.hero-chip.big { width: 100%; padding: 0; box-shadow: none; background: transparent; border-radius: 0; }
.hero-chip.big:hover { transform: none; box-shadow: none; }
.hero-chip.big .ch-photo { aspect-ratio: 4 / 3; mix-blend-mode: multiply; }
.plain-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.plain-cols h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.plain-cols p { color: var(--text-2); margin-top: 8px; font-size: 17px; }
.dark .plain-cols p, .dark-alt .plain-cols p { color: #a1a1a6; }
@media (max-width: 760px) { .plain-cols { grid-template-columns: 1fr; gap: 28px; } }
.chassis-grid.simple { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.chassis-grid.simple .ch-card { text-align: center; align-items: center; padding: 22px 18px 26px; border-radius: 22px; box-shadow: none; }
.chassis-grid.simple .ch-card:hover { transform: scale(1.02); box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.chassis-grid.simple .ch-media { margin: 0 0 14px; width: 100%; }
.chassis-grid.simple h3 { font-size: 21px; margin: 0; }
.chassis-grid.simple .meta { font-size: 14px; }
.chip { background: transparent; color: #0066cc; }
.chip:hover { background: transparent; text-decoration: underline; }
.chip[aria-pressed="true"] { background: #1d1d1f; color: #fff; text-decoration: none; }
.glossary.light { grid-template-columns: repeat(3, 1fr); text-align: center; }
.glossary.light dd { color: var(--text-2); }
@media (max-width: 760px) { .glossary.light { grid-template-columns: 1fr 1fr; } }
.compare-matrix { width: 100%; border-collapse: collapse; }
.compare-matrix th, .compare-matrix td { padding: 16px 10px; text-align: center; border-bottom: 1px solid #e8e8ed; font-size: 15px; color: #1d1d1f; }
.compare-matrix th:first-child, .compare-matrix td:first-child { text-align: left; color: #6e6e73; font-weight: 400; width: 34%; }
.compare-matrix thead th { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; border-bottom: 0; padding-bottom: 6px; }
.compare-matrix td.no { color: #c7c7cc; }
.price-grid.two { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
@media (max-width: 760px) { .price-grid.two { grid-template-columns: 1fr; } }
.extra-line { text-align: center; color: var(--text-2); font-size: 17px; margin-top: 32px; }
.extra-line a { white-space: nowrap; }
.num-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: n; text-align: center; }
.num-steps div::before { counter-increment: n; content: counter(n); display: block; font-size: 40px; font-weight: 600; color: #1d1d1f; margin-bottom: 8px; }
.num-steps h3 { font-size: 19px; font-weight: 600; }
.num-steps p { color: var(--text-2); margin-top: 6px; font-size: 15px; }
@media (max-width: 760px) { .num-steps { grid-template-columns: 1fr 1fr; } }

.product-hero .links { margin-top: 22px; }
.product-hero .lead { color: #f5f5f7; }

/* ---------- firmware feature highlights ---------- */
.feature-band { padding: 110px 22px; background: #fff; }
.feature-band.light { background: #f5f5f7; }
.feature-band.dark { background: #000; color: #f5f5f7; }
.fb-in { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.fb-in.rev .fb-text { order: 2; }
.fb-kicker { font-size: 17px; font-weight: 600; color: #6e6e73; }
.feature-band.dark .fb-kicker { color: #86868b; }
.fb-text h2 { font-size: clamp(32px, 4.4vw, 48px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin-top: 8px; }
.fb-text > p:not(.fb-kicker) { font-size: 19px; line-height: 1.42; color: #6e6e73; margin-top: 18px; }
.feature-band.dark .fb-text > p:not(.fb-kicker) { color: #a1a1a6; }
.fb-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; color: #1d1d1f; }
.feature-band.dark .fb-points { color: #f5f5f7; }
.fb-points b { font-size: 21px; font-weight: 600; margin-right: 4px; }
.fb-visual .lcd-frame { width: 100%; padding: 14px; border-radius: 22px; }
.fb-visual .lcd-frame img { width: 100%; height: auto; border-radius: 6px; image-rendering: pixelated; }
@media (max-width: 860px) { .fb-in { grid-template-columns: 1fr; gap: 36px; } .fb-in.rev .fb-text { order: 0; } .feature-band { padding: 72px 22px; } }
.hold-chart { width: 100%; height: auto; }
.hc-hold { fill: #0071e3; fill-opacity: .06; }
.hc-grid { stroke: #e8e8ed; stroke-width: 1; }
.hc-target { stroke: #1d1d1f; stroke-width: 1; stroke-dasharray: 4 5; opacity: .35; }
.hc-lab, .hc-axis { font: 600 12px -apple-system, "Segoe UI", sans-serif; fill: #6e6e73; }
.hc-tag { font: 600 13px -apple-system, "Segoe UI", sans-serif; fill: #0071e3; letter-spacing: .06em; }
.hc-tag.dim { fill: #86868b; }
.hc-line { fill: none; stroke: #0071e3; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 700; }
.hc-dot { fill: #fff; stroke: #0071e3; stroke-width: 3; opacity: 0; }
.reveal.in .hc-line { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s cubic-bezier(.4,0,.2,1) .3s; }
.reveal.in .hc-dot { opacity: 1; transition: opacity .4s ease 1.4s; }
@media (prefers-reduced-motion: reduce) { .hc-line { stroke-dashoffset: 0; } .hc-dot { opacity: 1; } }

/* ---------- accounts ---------- */
.auth-page { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; padding: 56px 22px 80px; background: #fff; }
.auth-card { width: 100%; max-width: 420px; text-align: center; }
.brand-mark.big { width: 56px; height: 56px; font-size: 22px; border-radius: 14px; margin: 0 auto 22px; display: grid; }
.auth-card h1 { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.auth-sub { color: #6e6e73; margin-top: 8px; }
.auth-foot { color: #6e6e73; font-size: 13px; margin-top: 22px; }
.seg-light { display: inline-grid; grid-auto-flow: column; background: #f0f0f3; border-radius: 10px; padding: 3px; margin: 26px 0 8px; }
.seg-light button { border: 0; background: none; padding: 7px 18px; border-radius: 8px; font-size: 14px; color: #1d1d1f; cursor: pointer; }
.seg-light button[aria-selected="true"] { background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); font-weight: 600; }
.field { display: block; text-align: left; margin-top: 14px; }
.field > span { display: block; font-size: 12px; color: #6e6e73; margin: 0 0 6px 4px; }
.field input, .field select { width: 100%; font: inherit; font-size: 17px; padding: 13px 14px; border: 1px solid #d2d2d7; border-radius: 12px; background: #fff; color: #1d1d1f; outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus { border-color: #0071e3; box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.form-hint { font-size: 12px; color: #6e6e73; text-align: left; margin: 6px 0 0 4px; }
.form-error { color: #e30000; font-size: 14px; min-height: 20px; margin-top: 12px; text-align: left; }
.btn-pill.wide { display: block; width: 100%; margin-top: 10px; padding: 13px 22px; }
.btn-pill:disabled { opacity: .45; cursor: default; }

/* ---------- writer ---------- */
.write-page { max-width: 1180px; margin: 0 auto; padding: 32px 22px 80px; display: grid; grid-template-columns: 270px 1fr; gap: 36px; align-items: start; }
@media (max-width: 860px) { .write-page { grid-template-columns: 1fr; } }
.write-side { position: sticky; top: calc(var(--nav-h) + 72px); }
@media (max-width: 860px) { .write-side { position: static; } }
.side-head { font-size: 12px; font-weight: 600; color: #6e6e73; text-transform: uppercase; letter-spacing: .05em; margin: 26px 0 8px; }
.my-list { list-style: none; margin: 0; padding: 0; }
.my-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 10px; cursor: pointer; font: inherit; color: #1d1d1f; }
.my-list button:hover { background: #f5f5f7; }
.my-list button.active { background: #e8f1fc; }
.li-title { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li-meta { display: block; font-size: 12px; color: #6e6e73; margin-top: 2px; }
.my-list .empty { font-size: 14px; color: #86868b; padding: 6px 10px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: #c7c7cc; vertical-align: middle; }
.dot.s-pending { background: #ff9f0a; }
.dot.s-published { background: #34c759; }
.dot.s-rejected { background: #ff3b30; }
.count-badge { display: inline-block; min-width: 18px; padding: 0 6px; border-radius: 99px; background: #1d1d1f; color: #fff; font-size: 11px; text-align: center; margin-left: 4px; }
.status-row { display: flex; gap: 12px; align-items: center; }
.status-pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: #f0f0f3; color: #1d1d1f; }
.status-pill.s-pending { background: #fff4e0; color: #8a5300; }
.status-pill.s-published { background: #e5f7ea; color: #1c7a35; }
.status-pill.s-rejected { background: #ffeceb; color: #b3261e; }
.title-input { width: 100%; border: 0; outline: none; font: inherit; font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -0.025em; color: #1d1d1f; padding: 18px 0 8px; background: transparent; }
.title-input::placeholder { color: #c7c7cc; }
.meta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field.inline { margin-top: 6px; }
.field.inline select { min-width: 180px; }
.field.grow, .grow { flex: 1; }
.editor { margin-top: 18px; border: 1px solid #d2d2d7; border-radius: 16px; overflow: hidden; background: #fff; }
.editor-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid #e8e8ed; background: #fafafc; flex-wrap: wrap; }
.tools { display: flex; gap: 2px; flex-wrap: wrap; }
.tools button { width: 36px; height: 32px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: 15px; color: #1d1d1f; }
.tools button:hover { background: #ececf0; }
.small-seg { margin: 0; }
.small-seg button { padding: 5px 12px; font-size: 13px; }
.editor textarea { display: block; width: 100%; min-height: 460px; border: 0; outline: none; resize: vertical; padding: 20px 22px; font: 17px/1.6 var(--font); color: #1d1d1f; }
.editor .preview { padding: 20px 26px 30px; min-height: 460px; }
.action-row { display: flex; gap: 10px; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.review-note { background: #ffeceb; color: #8c1d18; border-radius: 12px; padding: 12px 16px; font-size: 15px; margin-bottom: 14px; }
.mod-box { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #f5f5f7; border-radius: 14px; padding: 12px 14px; margin-top: 14px; font-size: 15px; }
.mod-box .btn-pill { font-size: 14px; padding: 8px 16px; }

/* ---------- article reading ---------- */
.article-body { font-size: 19px; line-height: 1.6; color: #1d1d1f; }
.article-body h1 { font-size: 36px; margin-bottom: 16px; }
.article-body h2 { font-size: 28px; letter-spacing: -0.02em; margin: 36px 0 12px; }
.article-body h3 { font-size: 22px; margin: 28px 0 10px; }
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px; padding-left: 26px; }
.article-body li { margin: 4px 0; }
.article-body blockquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 3px solid #d2d2d7; color: #6e6e73; }
.article-body img { border-radius: 16px; margin: 8px 0 18px; max-width: 100%; }
.article-body code { background: #f5f5f7; border-radius: 6px; padding: 1px 6px; font-size: .88em; }
.article-body hr { border: 0; border-top: 1px solid #e8e8ed; margin: 28px 0; }
.article-body a { color: #0066cc; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 36px; }
.art-card { display: flex; flex-direction: column; background: #f5f5f7; border-radius: 22px; overflow: hidden; color: inherit; transition: transform .3s cubic-bezier(0,0,.5,1), box-shadow .3s; }
.art-card:hover { text-decoration: none; transform: scale(1.015); box-shadow: 0 12px 34px rgba(0,0,0,.1); }
.art-cover { aspect-ratio: 16 / 9; background: #e8e8ed; display: grid; place-items: center; overflow: hidden; }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }
.art-cover .ph { font-size: 21px; font-weight: 600; color: #86868b; }
.art-text { padding: 20px 22px 24px; }
.art-cat { font-size: 12px; font-weight: 600; color: #6e6e73; }
.art-text h3 { font-size: 22px; letter-spacing: -0.015em; margin-top: 6px; line-height: 1.2; }
.art-text p { color: #6e6e73; font-size: 15px; margin-top: 8px; }
.art-meta { display: block; font-size: 13px; color: #86868b; margin-top: 14px; }
.read-view { background: #fff; padding: 48px 22px 100px; }
.read-in { max-width: 720px; margin: 0 auto; }
.back-link { font-size: 15px; }
.read-cat { font-size: 15px; font-weight: 600; color: #6e6e73; margin-top: 28px; }
.read-in h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; margin-top: 8px; }
.read-meta { color: #6e6e73; margin: 14px 0 30px; }
.read-cover { margin: 0 0 32px; }
.read-cover img { width: 100%; border-radius: 22px; }
.read-foot { margin-top: 48px; padding-top: 18px; border-top: 1px solid #e8e8ed; }
.gnav-account { font-weight: 400; }

.footer-cols { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* the hidden attribute always wins over component display rules */
[hidden] { display: none !important; }

/* ---------- store, licenses, installer, admin ---------- */
.store-page { max-width: 1080px; margin: 0 auto; padding: 40px 22px 90px; }
.store-block + .store-block { margin-top: 64px; }
.buy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.buy-card { background: #f5f5f7; border-radius: 22px; padding: 26px; }
.buy-card h3 { font-size: 24px; font-weight: 600; }
.buy-card .price { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin: 10px 0 8px; }
.buy-card .price small { font-size: 14px; color: #6e6e73; font-weight: 400; }
.buy-total { margin-top: 14px; color: #6e6e73; }
.buy-total b { color: #1d1d1f; font-size: 19px; }
.switch-light { display: flex; gap: 10px; align-items: center; font-size: 15px; margin-top: 14px; cursor: pointer; }
.switch-light input { width: 18px; height: 18px; accent-color: #0071e3; }
.order-list, .lic-list { display: grid; gap: 12px; }
.order-card, .lic-card { border: 1px solid #e8e8ed; border-radius: 18px; padding: 18px 20px; }
.order-card p { color: #333336; margin-top: 6px; font-size: 15px; }
.oc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lic-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.lic-card h3 { font-size: 19px; font-weight: 600; }
code { font-family: var(--mono); font-size: .92em; background: #f5f5f7; border-radius: 6px; padding: 1px 6px; }
.install-page { max-width: 760px; margin: 0 auto; padding: 40px 22px 90px; }
.install-page h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 600; letter-spacing: -0.03em; margin-top: 18px; }
.wizard { list-style: none; counter-reset: w; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.wz { counter-increment: w; border: 1px solid #e8e8ed; border-radius: 20px; padding: 18px 22px 18px 64px; position: relative; color: #86868b; }
.wz::before { content: counter(w); position: absolute; left: 20px; top: 18px; width: 28px; height: 28px; border-radius: 50%; background: #e8e8ed; color: #6e6e73; display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.wz h2 { font-size: 19px; font-weight: 600; }
.wz > p, .wz > .action-row, .wz > .progress, .wz > .small, .wz > .field { display: none; }
.wz.active { border-color: #0071e3; color: #1d1d1f; box-shadow: 0 8px 30px rgba(0,113,227,.08); }
.wz.active::before { background: #0071e3; color: #fff; }
.wz.active > p, .wz.active > .action-row, .wz.active > .field { display: block; }
.wz.active > .action-row { display: flex; }
.wz.active > .progress, .wz.active > .small { display: block; }
.wz.active > p { color: #6e6e73; margin-top: 8px; }
.wz.done::before { content: "✓"; background: #34c759; color: #fff; }
.progress { height: 8px; border-radius: 99px; background: #e8e8ed; overflow: hidden; margin-top: 16px; }
.progress i { display: block; height: 100%; width: 0; background: #0071e3; border-radius: 99px; transition: width .2s; }
.log-box { margin-top: 28px; }
.log-box summary { cursor: pointer; color: #6e6e73; font-size: 14px; }
.log-box pre { font: 12px/1.5 var(--mono); background: #1d1d1f; color: #e8e8ed; border-radius: 14px; padding: 14px 16px; max-height: 260px; overflow: auto; white-space: pre-wrap; }
.grant-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; align-items: end; max-width: 760px; }
.grant-form .btn-pill { margin-top: 18px; justify-self: start; }
@media (max-width: 700px) { .grant-form { grid-template-columns: 1fr; } }
.search { font: inherit; font-size: 15px; padding: 9px 14px; border: 1px solid #d2d2d7; border-radius: 10px; min-width: min(360px, 100%); outline: none; }
.search:focus { border-color: #0071e3; box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.admin-table th { text-align: left; font-size: 12px; color: #6e6e73; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid #e8e8ed; }
.admin-table td { padding: 12px 10px; border-bottom: 1px solid #f0f0f3; vertical-align: top; }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .btn-pill { margin-left: 6px; }

/* install: waiting for the admin to register the charger */
.wz > .self-code { display: none; }
.wz.active > .self-code { display: block; margin-top: 14px; }
.self-code summary { cursor: pointer; color: #0066cc; font-size: 15px; }
.wait-line { display: flex !important; align-items: center; gap: 10px; font-size: 15px; }
.wz:not(.active) > .wait-line { display: none !important; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #d2d2d7; border-top-color: #0071e3; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- payment page (gateway simulator) ---------- */
.pay-page { min-height: calc(100vh - var(--nav-h)); background: #f5f5f7; padding: 48px 22px 80px; }
.pay-card { max-width: 440px; margin: 0 auto; background: #fff; border-radius: 24px; padding: 30px 28px; box-shadow: 0 12px 40px rgba(0,0,0,.08); }
.sim-flag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #8a5300; background: #fff4e0; border-radius: 99px; padding: 4px 10px; }
.pay-merchant { font-size: 14px; color: #6e6e73; margin-top: 18px; }
.pay-amount { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; margin-top: 2px; }
.pay-order { font-size: 14px; color: #6e6e73; margin-top: 4px; }
.pay-card h2 { font-size: 17px; font-weight: 600; margin: 26px 0 12px; }
.pay-methods { display: grid; gap: 10px; }
.pay-methods label { display: flex; gap: 12px; align-items: center; border: 1px solid #d2d2d7; border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.pay-methods label:has(input:checked) { border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0,113,227,.15); }
.pay-methods input { accent-color: #0071e3; width: 18px; height: 18px; }
.pay-methods b { display: block; font-size: 16px; }
.pay-methods small { color: #6e6e73; font-size: 13px; }
.qr-box { display: grid; place-items: center; margin: 24px 0 10px; }
.qr { width: 210px; height: 210px; fill: #1d1d1f; }
.va { text-align: center; font-size: 15px; color: #6e6e73; }
.va b { display: block; font-size: 28px; color: #1d1d1f; letter-spacing: .04em; margin-top: 6px; font-family: var(--mono); }
.sim-row { display: flex; gap: 10px; margin-top: 10px; }
.sim-row .btn-pill { flex: 1; font-size: 14px; padding: 9px 10px; }
.res-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 22px auto 10px; font-size: 32px; color: #fff; }
.res-icon.ok { background: #34c759; } .res-icon.bad { background: #ff3b30; }
.paid-banner { background: #e5f7ea; color: #1c7a35; border-radius: 14px; padding: 14px 18px; margin-bottom: 28px; font-size: 16px; }
.buy-card.pick { box-shadow: 0 0 0 2px #0071e3; }

/* ---------- guest checkout + secret install link ---------- */
.buy-form { background: #f5f5f7; border-radius: 24px; padding: 26px; }
.prod-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .prod-pick { grid-template-columns: 1fr; } }
.prod-pick label { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #d2d2d7; border-radius: 16px; padding: 16px; cursor: pointer; }
.prod-pick label:has(input:checked) { border-color: #0071e3; box-shadow: 0 0 0 3px rgba(0,113,227,.15); }
.prod-pick input { accent-color: #0071e3; width: 18px; height: 18px; }
.prod-pick b { display: block; font-size: 17px; }
.prod-pick small { color: #6e6e73; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; padding-top: 16px; border-top: 1px solid #e8e8ed; }
.total-row b { font-size: 28px; letter-spacing: -0.02em; }
.keep-link { background: #f5f5f7; border-radius: 16px; padding: 16px 18px; font-size: 15px; color: #333336; }
.link-row { display: flex; gap: 8px; margin-top: 10px; }
.link-row input { flex: 1; min-width: 0; font: 13px var(--mono); padding: 8px 10px; border: 1px solid #d2d2d7; border-radius: 10px; background: #fff; color: #1d1d1f; }

/* ---------- install HUD (white, neon blue, minimal) ---------- */
.hud-body { background: #fff; }
.hud { --hc: #0a84ff; --hc-rgb: 10,132,255; --ok: #28c24f; --bad: #ff3b30;
  --hc-a: rgba(var(--hc-rgb), .14); --hc-b: rgba(var(--hc-rgb), .32); --hc-glow: rgba(var(--hc-rgb), .55);
  color: #1d1d1f; min-height: calc(100vh - var(--nav-h)); padding: 28px 22px 70px; overflow: hidden; position: relative;
  background:
    radial-gradient(circle at 50% 36%, rgba(var(--hc-rgb), .10) 0, rgba(var(--hc-rgb), 0) 340px),
    #fff;
  }
.hud[data-state="done"] { --hc: var(--ok); --hc-rgb: 40,194,79; }
.hud[data-state="error"] { --hc: var(--bad); --hc-rgb: 255,59,48; }
.hud[data-state="locked"] { --hc: #8e8e93; --hc-rgb: 142,142,147; }
.hud-top { max-width: 980px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.hud-back { color: #6e6e73; font-size: 14px; }
.hud-back:hover { color: #1d1d1f; text-decoration: none; }
.hud-steps { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #c7c7cc; }
.hud-steps li { display: flex; align-items: center; gap: 8px; transition: color .4s; }
.hud-steps span { border: 1px solid currentColor; border-radius: 4px; padding: 1px 5px; }
.hud-steps li.on { color: var(--hc); text-shadow: 0 0 10px var(--hc-b); }
.hud-steps li.on span { box-shadow: 0 0 8px var(--hc-a), inset 0 0 6px var(--hc-a); }
.hud-steps li.ok { color: #6e6e73; }
.hud-title { text-align: center; font-size: clamp(30px, 4.6vw, 44px); font-weight: 600; letter-spacing: -0.02em; margin-top: 34px; }
.hud-sub { text-align: center; color: #6e6e73; margin-top: 6px; font-size: 17px; }

.hud-core { position: relative; width: min(400px, 76vw); aspect-ratio: 1; margin: 26px auto 0; color: var(--hc); }
.hud-core::before { content: ""; position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle, rgba(var(--hc-rgb), .09) 0, rgba(var(--hc-rgb), .03) 55%, transparent 70%); pointer-events: none; transition: background .4s; }
.hud-ring { width: 100%; height: 100%; overflow: visible; position: relative; }
.r-ticks line { stroke: rgba(var(--hc-rgb), .16); stroke-width: 1.4; transition: stroke .25s; }
.r-ticks line.lt { stroke: rgba(var(--hc-rgb), .3); stroke-width: 2; }
.r-ticks line.lit { stroke: rgba(var(--hc-rgb), .8); filter: drop-shadow(0 0 3px var(--hc-glow)); }
.r-ticks { transform-origin: 200px 200px; animation: hudspin 90s linear infinite; }
.r-track { fill: none; stroke: rgba(var(--hc-rgb), .1); stroke-width: 6; }
.r-prog { fill: none; stroke: rgba(var(--hc-rgb), .78); stroke-width: 6; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 200px 200px; filter: drop-shadow(0 0 6px var(--hc-glow)) drop-shadow(0 0 14px var(--hc-b)); transition: stroke-dashoffset .35s cubic-bezier(.4,0,.2,1), stroke .4s; }
.r-marks circle { fill: #fff; stroke: rgba(var(--hc-rgb), .45); stroke-width: 1.5; }
.r-inner { fill: none; stroke: rgba(var(--hc-rgb), .35); stroke-width: 1; stroke-dasharray: 2 9; transform-origin: 200px 200px; animation: hudspin 40s linear infinite reverse; }
.r-sweep { color: var(--hc); transform-origin: 200px 200px; opacity: 0; transition: opacity .4s; }
.r-pulse { fill: none; stroke: rgba(var(--hc-rgb), .7); stroke-width: 1.5; opacity: 0; transform-origin: 200px 200px; }
.hud[data-state="scan"] .r-sweep, .hud[data-state="probe"] .r-sweep { opacity: .7; animation: hudspin 1.6s linear infinite; }
.hud[data-state="erase"] .r-pulse, .hud[data-state="verify"] .r-pulse { animation: hudpulse 1.1s ease-out infinite; }
.hud[data-state="write"] .r-ticks { animation-duration: 18s; }
.hud[data-state="done"] .r-pulse { animation: hudpulse 1.4s ease-out 2; }
.hud[data-state="error"] .hud-core { animation: hudshake .4s 1; }
@keyframes hudspin { to { transform: rotate(360deg); } }
@keyframes hudpulse { 0% { opacity: .8; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.28); } }
@keyframes hudshake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.hud-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; }
.hud-pct { font: 600 clamp(52px, 9vw, 76px)/1 var(--font); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: #1d1d1f; }
.hud[data-state="write"] .hud-pct, .hud[data-state="done"] .hud-pct, .hud[data-state="error"] .hud-pct { color: var(--hc); text-shadow: 0 0 18px var(--hc-b); }
.hud-state { font: 600 12px var(--mono); letter-spacing: .18em; color: var(--hc); margin-top: 10px; text-shadow: 0 0 10px var(--hc-b); }
.br { position: absolute; width: 18px; height: 18px; border-color: rgba(var(--hc-rgb), .45); border-style: solid; border-width: 0; transition: border-color .4s; }
.br.tl { top: -8px; left: -8px; border-top-width: 1.5px; border-left-width: 1.5px; }
.br.tr { top: -8px; right: -8px; border-top-width: 1.5px; border-right-width: 1.5px; }
.br.bl { bottom: -8px; left: -8px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.br.br2 { bottom: -8px; right: -8px; border-bottom-width: 1.5px; border-right-width: 1.5px; }

.hud-actions { text-align: center; margin-top: 30px; }
.hud-btn { font: 500 17px var(--font); color: #fff; background: var(--hc); border: 0; border-radius: 980px; padding: 13px 34px; cursor: pointer; box-shadow: 0 4px 18px var(--hc-b), 0 0 0 0 var(--hc-a); transition: background .4s, box-shadow .3s, opacity .3s; }
.hud-btn:not(:disabled):hover { box-shadow: 0 4px 22px var(--hc-glow), 0 0 0 6px var(--hc-a); }
.hud-btn:disabled { opacity: .4; cursor: default; box-shadow: none; }
.hud[data-state="idle"] .hud-btn:not(:disabled), .hud[data-state="ready"] .hud-btn:not(:disabled) { animation: hudbtn 2.4s ease-in-out infinite; }
@keyframes hudbtn { 50% { box-shadow: 0 4px 22px var(--hc-glow), 0 0 0 8px var(--hc-a); } }
.hud-hint { color: #6e6e73; font-size: 14px; margin-top: 12px; min-height: 20px; }
.hud-err { color: var(--bad); font-size: 15px; margin-top: 6px; min-height: 20px; }

.hud-telemetry { max-width: 760px; margin: 30px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.hud-telemetry > div { padding: 12px 14px; border: 1px solid rgba(var(--hc-rgb), .2); border-radius: 12px; background: rgba(var(--hc-rgb), .04); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: border-color .4s, background .4s; }
.hud-telemetry dt { font: 600 10px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(var(--hc-rgb), .85); }
.hud-telemetry dd { margin: 6px 0 0; font: 500 14px var(--mono); color: #1d1d1f; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) { .hud-telemetry { grid-template-columns: repeat(2, 1fr); } }
.hud-log { max-width: 760px; margin: 16px auto 0; font: 12px/1.7 var(--mono); color: #aeaeb2; min-height: 62px; }
.hud-log div { animation: hudline .4s ease-out; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud-log div:last-child { color: var(--hc); }
.hud-log div:last-child::before { content: "› "; }
@keyframes hudline { from { opacity: 0; transform: translateY(6px); } }
.hud-keep { max-width: 760px; margin: 22px auto 0; border: 1px solid rgba(var(--hc-rgb), .2); background: rgba(var(--hc-rgb), .04); border-radius: 14px; padding: 14px 16px; font-size: 14px; color: #6e6e73; }
.hud-keep b { color: #1d1d1f; }
.hud-keep .link-row input { background: #fff; border-color: rgba(var(--hc-rgb), .25); color: #1d1d1f; }
.hud-mini { font: 500 13px var(--font); color: var(--hc); background: #fff; border: 1px solid var(--hc); border-radius: 980px; padding: 6px 14px; cursor: pointer; }
.hud-details { max-width: 760px; margin: 18px auto 0; }
.hud-details summary { color: #6e6e73; font-size: 13px; cursor: pointer; }
.hud-details pre { font: 12px/1.5 var(--mono); background: #f5f5f7; color: #424245; border: 1px solid #e8e8ed; border-radius: 12px; padding: 12px 14px; max-height: 240px; overflow: auto; white-space: pre-wrap; }
@media (prefers-reduced-motion: reduce) {
  .hud *, .hud *::before { animation: none !important; transition: none !important; }
  .hud[data-state="scan"] .r-sweep { opacity: .5; }
}

/* simulator: switched-off charger until the first click (browsers block sound before that) */
.power-ov { position: absolute; inset: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 4px; background: rgba(5,6,7,.55); color: #f5f5f7; font: 500 15px var(--font); cursor: pointer; transition: background .3s; }
.power-ov:hover { background: rgba(5,6,7,.35); }
.pw-ic { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #2997ff; box-shadow: 0 0 14px rgba(41,151,255,.55); position: relative; animation: hudbtnp 2.2s ease-in-out infinite; }
.pw-ic::before { content: ""; position: absolute; left: 50%; top: 9px; width: 2px; height: 14px; margin-left: -1px; background: #2997ff; border-radius: 1px; }
@keyframes hudbtnp { 50% { box-shadow: 0 0 22px rgba(41,151,255,.85); } }

/* ---------- admin dashboard ---------- */
.dash-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 900px) { .dash-tiles { grid-template-columns: repeat(2, 1fr); } }
.dash-tile { background: #f5f5f7; border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 6px; animation: dashin .5s ease-out both; }
.dash-tile:nth-child(2) { animation-delay: .05s; }
.dash-tile:nth-child(3) { animation-delay: .1s; }
.dash-tile:nth-child(4) { animation-delay: .15s; }
.dash-tile:nth-child(5) { animation-delay: .2s; }
.dash-tile span { font-size: 13px; color: #6e6e73; }
.dash-tile b { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dash-tile small { font-size: 12px; color: #6e6e73; }
@keyframes dashin { from { opacity: 0; transform: translateY(8px); } }
.dash-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.dash-card { border: 1px solid #e8e8ed; border-radius: 18px; padding: 18px 20px; }
.dash-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.dash-chart { width: 100%; height: 180px; display: block; }
.dash-chart rect { fill: #e8e8ed; transform-origin: 0 178px; transform-box: view-box; animation: dashgrow .6s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--i) * 15ms); }
.dash-chart rect.on { fill: #0071e3; }
.dash-chart rect.on:hover { fill: #2997ff; }
@keyframes dashgrow { from { transform: scaleY(0); } }
.dash-axis { display: flex; justify-content: space-between; font-size: 12px; color: #86868b; margin-top: 6px; }
.dash-bars { display: flex; flex-direction: column; gap: 16px; }
.dash-bar { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 14px; }
.dash-bar i { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #0071e3 var(--w), #f5f5f7 var(--w)); }
.st-pill { display: inline-block; font-size: 12px; font-weight: 500; border-radius: 980px; padding: 3px 10px; white-space: nowrap; }
.st-ok { background: rgba(48,209,88,.14); color: #1a7f37; }
.st-bad { background: rgba(255,59,48,.12); color: #c9221a; }
.st-wait { background: #f5f5f7; color: #6e6e73; }
@media (prefers-reduced-motion: reduce) { .dash-tile, .dash-chart rect { animation: none; } }

/* payment return page: waiting spinner */
.res-icon.wait { background: #f5f5f7; }
.res-icon .spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #d2d2d7; border-top-color: #0071e3; animation: hudspin .9s linear infinite; }

/* ---------- checkout (bayar.html) ---------- */
.ck-page { min-height: calc(100vh - var(--nav-h)); padding: 40px 18px 70px;
  background: radial-gradient(circle at 50% 0, rgba(10,132,255,.08), transparent 420px), #f5f5f7; }
.ck { --hc: 10,132,255; max-width: 430px; margin: 0 auto; background: #fff; border-radius: 28px; padding: 28px 26px 24px;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 24px 60px rgba(0,0,0,.08); position: relative; overflow: hidden; animation: ckin .5s cubic-bezier(.2,.8,.2,1); }
@keyframes ckin { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.ck-head { text-align: center; position: relative; }
.ck-merchant { font: 600 12px var(--mono); letter-spacing: .16em; color: #86868b; }
.ck-amount { font-size: 42px; font-weight: 600; letter-spacing: -0.035em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.ck-order { font-size: 13px; color: #6e6e73; margin-top: 2px; }
.ck-timer { display: inline-block; margin-top: 12px; font: 500 12px var(--mono); color: rgb(var(--hc)); background: rgba(var(--hc), .08); border-radius: 980px; padding: 4px 12px; transition: color .3s, background .3s; }
.ck-timer.low { color: #ff3b30; background: rgba(255,59,48,.1); }
.ck[data-view="loading"] .ck-amount { width: 180px; height: 46px; margin: 6px auto 0; border-radius: 12px; background: linear-gradient(90deg, #f2f2f4, #e8e8ed, #f2f2f4); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.ck-tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 22px; background: #f5f5f7; border-radius: 12px; padding: 3px; }
.ck-tabs button { position: relative; z-index: 1; border: 0; background: none; font: 500 14px var(--font); color: #6e6e73; padding: 9px 4px; border-radius: 10px; cursor: pointer; transition: color .25s; }
.ck-tabs button[aria-selected="true"] { color: #1d1d1f; }
.ck-tab-ink { position: absolute; top: 3px; left: 0; height: calc(100% - 6px); background: #fff; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,.1); transition: transform .35s cubic-bezier(.3,.9,.3,1), width .35s; }
.ck[data-view="done"] .ck-tabs, .ck[data-view="done"] .ck-panel, .ck[data-view="done"] .ck-status { display: none; }

.ck-panel { margin-top: 22px; text-align: center; }
.ck-panel.in { animation: panelin .35s ease-out; }
@keyframes panelin { from { opacity: 0; transform: translateY(8px); } }
.ck-hint { font-size: 14px; color: #6e6e73; margin-top: 14px; line-height: 1.45; }
.ck-link { display: inline-block; margin-top: 10px; font-size: 14px; }

.qr-frame { position: relative; width: min(250px, 72vw); aspect-ratio: 1; margin: 0 auto; border-radius: 22px; padding: 14px; background: #fff;
  box-shadow: 0 0 0 1px rgba(var(--hc), .14), 0 10px 30px rgba(var(--hc), .12); transition: box-shadow .5s; }
.qr-frame.ready { box-shadow: 0 0 0 1px rgba(var(--hc), .25), 0 0 26px rgba(var(--hc), .25), 0 10px 30px rgba(var(--hc), .12); }
.qr-frame img { width: 100%; height: 100%; object-fit: contain; display: block; image-rendering: pixelated; animation: qrin .45s cubic-bezier(.2,.8,.2,1); }
@keyframes qrin { from { opacity: 0; transform: scale(.94); filter: blur(4px); } }
.qf { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(var(--hc), .7); filter: drop-shadow(0 0 4px rgba(var(--hc), .6)); }
.qf.tl { top: -6px; left: -6px; border-top-width: 2.5px; border-left-width: 2.5px; border-top-left-radius: 12px; }
.qf.tr { top: -6px; right: -6px; border-top-width: 2.5px; border-right-width: 2.5px; border-top-right-radius: 12px; }
.qf.bl { bottom: -6px; left: -6px; border-bottom-width: 2.5px; border-left-width: 2.5px; border-bottom-left-radius: 12px; }
.qf.br { bottom: -6px; right: -6px; border-bottom-width: 2.5px; border-right-width: 2.5px; border-bottom-right-radius: 12px; }
.qr-scan { position: absolute; left: 10px; right: 10px; top: 12px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--hc), .85), transparent); box-shadow: 0 0 12px rgba(var(--hc), .7); }
.qr-frame.ready .qr-scan { opacity: 1; animation: qrscan 2.6s ease-in-out infinite; }
@keyframes qrscan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(min(250px, 72vw) - 26px)); } }
.qr-skel { position: absolute; inset: 14px; border-radius: 12px; display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, #f5f5f7 0 8px, #efeff2 8px 16px); }
.qr-skel span { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #d2d2d7; border-top-color: rgb(var(--hc)); animation: hudspin .9s linear infinite; }
.ck-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.ck-apps span { font-size: 12px; color: #6e6e73; background: #f5f5f7; border-radius: 980px; padding: 3px 10px; }

.bank-pick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
@media (max-width: 420px) { .bank-pick { grid-template-columns: repeat(3, 1fr); } }
.bank-pick button { font: 600 13px var(--font); color: #1d1d1f; background: #f5f5f7; border: 1.5px solid transparent; border-radius: 12px; padding: 12px 4px; cursor: pointer; transition: all .2s; }
.bank-pick button:hover { background: #ececf0; }
.bank-pick button.on { background: rgba(var(--hc), .07); border-color: rgba(var(--hc), .55); color: rgb(var(--hc)); box-shadow: 0 0 14px rgba(var(--hc), .18); }
.va-box { margin-top: 18px; border-radius: 18px; padding: 18px; background: linear-gradient(180deg, rgba(var(--hc), .05), rgba(var(--hc), .015)); border: 1px solid rgba(var(--hc), .18); text-align: left; }
.va-box.in { animation: panelin .35s ease-out; }
.va-label { font-size: 13px; color: #6e6e73; }
.va-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.va-num { flex: 1; font: 600 22px var(--mono); letter-spacing: .02em; word-break: break-all; }
.va-sub { font-size: 13px; color: #6e6e73; }
.va-sub-num { flex: 1; font: 600 16px var(--mono); }
.va-copy { font: 500 13px var(--font); color: rgb(var(--hc)); background: #fff; border: 1px solid rgba(var(--hc), .4); border-radius: 980px; padding: 6px 14px; cursor: pointer; transition: all .2s; }
.va-copy.ok { color: #fff; background: #34c759; border-color: #34c759; }

.ck-status { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #f0f0f2; font-size: 13px; color: #6e6e73; }
.ck-status .dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--hc)); box-shadow: 0 0 0 0 rgba(var(--hc), .5); animation: ckdot 1.6s ease-out infinite; }
@keyframes ckdot { 70% { box-shadow: 0 0 0 9px rgba(var(--hc), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--hc), 0); } }

.ck-done { text-align: center; margin-top: 22px; animation: panelin .4s ease-out; }
.ck-check { width: 76px; height: 76px; }
.ck-check circle { fill: none; stroke: #34c759; stroke-width: 2.5; stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw .6s ease-out forwards; }
.ck-check path { fill: none; stroke: #34c759; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .35s .5s ease-out forwards; }
.ck-done.bad .ck-check circle, .ck-done.bad .ck-check path { stroke: #ff3b30; }
.ck-done.bad .ck-check path { d: path("M18 18l16 16M34 18L18 34"); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.ck-done h2 { font-size: 22px; font-weight: 600; margin-top: 10px; }
.ck-foot { max-width: 430px; margin: 18px auto 0; text-align: center; font-size: 12px; color: #86868b; }
.ck-foot.sandbox { color: #b25000; }
@media (prefers-reduced-motion: reduce) { .ck *, .ck { animation: none !important; } }
.qr-skel.err span { display: none; }
.va-num.long { font-size: 16px; letter-spacing: 0; }

/* checkout: card tab */
.card-art { position: relative; width: min(280px, 78vw); aspect-ratio: 1.586; margin: 0 auto; border-radius: 16px; padding: 18px;
  background: linear-gradient(135deg, #0a84ff 0%, #5e5ce6 55%, #1d1d1f 100%); color: #fff; text-align: left;
  box-shadow: 0 14px 34px rgba(10,132,255,.28); overflow: hidden; animation: cardin .6s cubic-bezier(.2,.8,.2,1); }
.card-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.28) 45%, transparent 60%); transform: translateX(-100%); animation: cardshine 3.2s ease-in-out infinite 0.6s; }
.card-art .chip { position: absolute; top: 22px; left: 20px; width: 36px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, #f5d98b, #c9a24a); }
.card-art .cn { position: absolute; left: 20px; bottom: 44px; font: 500 16px var(--mono); letter-spacing: .08em; opacity: .9; }
.card-art .cb { position: absolute; right: 18px; bottom: 14px; font: italic 800 22px var(--font); letter-spacing: .02em; }
@keyframes cardin { from { opacity: 0; transform: translateY(10px) rotateX(18deg); } }
@keyframes cardshine { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.card-brands { display: flex; justify-content: center; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.card-brands span { font: 700 11px var(--font); letter-spacing: .04em; color: #1d1d1f; border: 1px solid #e0e0e5; border-radius: 6px; padding: 4px 8px; }
.ck-hint.en { font-size: 13px; color: #86868b; margin-top: 6px; }
.ck-hint.small-note { font-size: 12px; color: #86868b; }
.en-l { color: #86868b; font-weight: 400; }
