/* ===== SHARED DESIGN TOKENS ===== */
:root {
  /* palette */
  --c-bg:       #0a0c10;
  --c-surface:  #13161d;
  --c-border:   #1e2330;
  --c-accent:   #e94560;
  --c-gold:     #c8963c;
  --c-text:     #e2e8f0;
  --c-muted:    #64748b;
  --c-water:    #3b82f6;
  --c-light:    #eab308;
  --c-dark:     #a855f7;
  --c-fire:     #ef4444;
  --c-nature:   #22c55e;

  /* type */
  --f-display: 'Georgia', 'Times New Roman', serif;
  --f-body:    -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* spacing */
  --nav-h: 60px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 15px;
  line-height: 1.65;
  padding-bottom: var(--nav-h);
  min-height: 100vh;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  display: flex;
  z-index: 999;
  /* safe area for iPhone */
  padding-bottom: env(safe-area-inset-bottom);
}
.bn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--c-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.bn-item.active,
.bn-item:active { color: var(--c-accent); }
.bn-icon { font-size: 20px; line-height: 1; }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(180deg, #0f1420 0%, var(--c-bg) 100%);
  border-bottom: 1px solid var(--c-border);
  padding: 20px 16px 16px;
}
.breadcrumb {
  font-size: 11px;
  color: var(--c-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:active { color: var(--c-accent); }
.breadcrumb-sep { opacity: 0.4; }
.page-header h1 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.2;
  margin-bottom: 4px;
}
.page-header .tagline {
  font-size: 12px;
  color: var(--c-muted);
}

/* ===== LANG BAR ===== */
.lang-bar {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 8px 16px;
  display: flex;
  gap: 6px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.lang-btn {
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid var(--c-border);
  color: var(--c-muted);
  -webkit-tap-highlight-color: transparent;
}
.lang-btn.active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}

/* ===== SECTION ===== */
.section { padding: 20px 16px; }
.section + .section { border-top: 1px solid var(--c-border); }
.section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 12px;
}
.section h2 {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--c-text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.section p {
  font-size: 14px;
  color: var(--c-muted);
  line-height: 1.7;
  margin-bottom: 10px;
}
.section p:last-child { margin-bottom: 0; }

/* ===== KEYWORD CARD (inline) ===== */
.keyword-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
  display: block;
  text-decoration: none;
  color: var(--c-text);
  -webkit-tap-highlight-color: transparent;
}
.keyword-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.keyword-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--c-accent);
  color: #fff;
}
.keyword-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 4px;
}
.keyword-card p {
  font-size: 12px;
  color: var(--c-muted);
  line-height: 1.5;
  margin: 0;
}
.keyword-arrow {
  font-size: 14px;
  color: var(--c-accent);
  flex-shrink: 0;
}

/* ===== CTA BUTTON ===== */
.btn-primary {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: var(--c-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  border: none;
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
}
.btn-secondary {
  display: block;
  width: 100%;
  padding: 13px 16px;
  background: transparent;
  color: var(--c-text);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 10px;
  border: 1.5px solid var(--c-border);
  margin-bottom: 10px;
  -webkit-tap-highlight-color: transparent;
}

/* ===== COMPARISON TABLE ===== */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 12px;
}
.compare-table th {
  background: var(--c-surface);
  color: var(--c-muted);
  font-weight: 700;
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}
.compare-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
  color: var(--c-text);
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { color: var(--c-muted); font-size: 11px; }

/* ===== NOTICE ===== */
.notice {
  background: #1a0e12;
  border: 1px solid var(--c-accent);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--c-muted);
  margin: 0 16px 16px;
}
.notice strong { color: var(--c-accent); }

/* ===== PRODUCT CARD (top) ===== */
.product-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  text-decoration: none;
  display: block;
  color: var(--c-text);
  -webkit-tap-highlight-color: transparent;
}
.product-card-thumb {
  height: 80px;
  background: linear-gradient(135deg, #0f1a2e, #1a0e2e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  border-bottom: 1px solid var(--c-border);
}
.product-card-body { padding: 12px; }
.product-card-code {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--c-accent);
  margin-bottom: 4px;
}
.product-card-name {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}
.product-card-meta { font-size: 11px; color: var(--c-muted); }
.badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
  margin-left: 6px;
}
.badge-new { background: var(--c-accent); color: #fff; }
.badge-starter { background: #1e3a5f; color: var(--c-water); }
.badge-booster { background: #1a2e1a; color: var(--c-nature); }

/* ===== HIGHLIGHT BOX ===== */
.highlight {
  background: var(--c-surface);
  border-left: 3px solid var(--c-gold);
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 13px;
  color: var(--c-text);
  line-height: 1.6;
}

/* ===== DESKTOP ===== */
@media (min-width: 640px) {
  body { max-width: 480px; margin: 0 auto; }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  display: block;
  text-align: center;
  margin: 24px 16px 8px;
  padding: 13px 20px;
  border: 1.5px solid var(--c-border);
  border-radius: 10px;
  color: var(--c-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.back-to-top:active { border-color: var(--c-accent); color: var(--c-accent); }
