/* ═══════════════════════════════════════════
   DESIGN TOKENS — mirrors new_index.css
═══════════════════════════════════════════ */
:root {
  --bg:       oklch(0.975 0.007 75);
  --bg2:      oklch(0.955 0.007 75);
  --bg3:      oklch(0.930 0.008 75);
  --line:     oklch(0.875 0.006 75);
  --text:     oklch(0.14  0.012 250);
  --text-dim: oklch(0.46  0.010 250);
  --text-sub: oklch(0.64  0.008 250);
  --accent:   oklch(0.34  0.08  162);
  --accent-l: oklch(0.34  0.08  162 / 0.09);
  --good:     oklch(0.40  0.12  145);
  --warn:     oklch(0.56  0.13  75);
  --bad:      oklch(0.48  0.17  25);
  --f-serif:  Georgia, Garamond, "Palatino Linotype", "Times New Roman", serif;
  --f-sans:   system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pad:      max(24px, 5vw);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:       oklch(0.10  0.010 200);
    --bg2:      oklch(0.135 0.010 200);
    --bg3:      oklch(0.165 0.010 200);
    --line:     oklch(0.24  0.008 200);
    --text:     oklch(0.93  0.005 75);
    --text-dim: oklch(0.66  0.008 200);
    --text-sub: oklch(0.48  0.006 200);
    --accent:   oklch(0.72  0.14  162);
    --accent-l: oklch(0.72  0.14  162 / 0.10);
    --good:     oklch(0.72  0.14  145);
    --warn:     oklch(0.76  0.14  75);
    --bad:      oklch(0.65  0.18  25);
  }
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: none; color: inherit; font: inherit; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
::selection { background: var(--accent); color: var(--bg); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

/* ═══════════════════════════════════════════
   HEADER — matches site-nav
═══════════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  background: oklch(0.975 0.007 75 / 0.92);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: oklch(0.10 0.010 200 / 0.92); }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
.logo-name {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  line-height: 1.2;
}
.logo-name small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-sub);
}
.back-link {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-sub);
  transition: color 0.2s;
}
.back-link:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
main { padding-top: 60px; }

.hero {
  padding: 72px var(--pad) 56px;
  border-bottom: 1px solid var(--line);
  max-width: 760px;
  margin: 0 auto;
}
.hero-title {
  font-family: var(--f-serif);
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 14px;
}
.hero-sub {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 520px;
}

/* Eyebrow */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.t-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-sub);
}

/* ═══════════════════════════════════════════
   SEARCH
═══════════════════════════════════════════ */
.search-wrap {
  position: relative;
  z-index: 4;
  width: 100%;
}
.search-bar {
  display: flex;
  align-items: center;
  background: var(--bg2);
  border: 1px solid var(--line);
  gap: 8px;
  padding: 4px 4px 4px 14px;
  transition: border-color 0.2s;
}
.search-bar:focus-within {
  border-color: var(--accent);
}
.search-ico {
  color: var(--text-sub);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
#search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-family: var(--f-sans);
  padding: 10px 0;
  min-width: 0;
}
#search-input::placeholder { color: var(--text-sub); }

.search-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.search-btn:hover { opacity: 0.85; }

/* ═══════════════════════════════════════════
   DROPDOWN
═══════════════════════════════════════════ */
#search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: var(--bg2);
  border: 1px solid var(--line);
  z-index: 20;
  box-shadow: 0 16px 48px oklch(0 0 0 / 0.12);
}
@media (prefers-color-scheme: dark) {
  #search-dropdown { box-shadow: 0 16px 48px oklch(0 0 0 / 0.45); }
}

.dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  transition: background 0.1s;
}
.dd-item:last-child { border-bottom: none; }
.dd-item:hover,
.dd-item.dd-active { background: var(--bg3); }

.dd-icon {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dd-icon img { width: 30px; height: 30px; border-radius: 4px; object-fit: contain; }

.dd-info { flex: 1; min-width: 0; }
.dd-name {
  font-size: 14px;
  font-weight: 500;
  display: block;
  color: var(--text);
}
.dd-name mark {
  background: var(--accent-l);
  color: var(--accent);
  font-style: normal;
}
.dd-alt { font-size: 12px; color: var(--text-sub); }
.dd-cat {
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-l);
  padding: 3px 8px;
  white-space: nowrap;
}
.dd-empty {
  padding: 16px 14px;
  color: var(--text-sub);
  font-size: 14px;
}

/* ═══════════════════════════════════════════
   LIST SECTION
═══════════════════════════════════════════ */
.list-section {
  padding: 48px var(--pad);
  border-bottom: 1px solid var(--line);
  max-width: 760px;
  margin: 0 auto;
}
.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.list-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-sub);
}
.list-empty {
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 300;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

/* ═══════════════════════════════════════════
   SWITCH CARD
═══════════════════════════════════════════ */
.switch-card {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 24px;
  margin-bottom: 2px;
  position: relative;
  animation: cardIn 0.22s ease both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-rm {
  position: absolute;
  top: 14px; right: 14px;
  color: var(--text-sub);
  font-size: 18px;
  width: 28px; height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
  line-height: 1;
}
.card-rm:hover { color: var(--bad); }

.card-visual {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}
.card-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  max-width: 96px;
}
.card-side img {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: contain;
  background: var(--bg3);
}
.card-side-name {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-dim);
  text-align: center;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-arrow {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  min-width: 24px;
}

/* ═══════════════════════════════════════════
   ALT TABS
═══════════════════════════════════════════ */
.alt-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.alt-tab {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-sub);
  padding: 5px 12px;
  font-size: 11px;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.alt-tab:hover { border-color: var(--accent); color: var(--text); }
.alt-tab.active {
  border-color: var(--accent);
  background: var(--accent-l);
  color: var(--accent);
  font-weight: 600;
}

/* ═══════════════════════════════════════════
   CARD BODY
═══════════════════════════════════════════ */
.card-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 14px;
}
.card-desc p + p { margin-top: 6px; }
.card-why { color: var(--text-sub); font-size: 13px; }

.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.meta-tag {
  font-size: 11px;
  padding: 4px 10px;
  background: var(--bg3);
  border: 1px solid var(--line);
  color: var(--text-sub);
  letter-spacing: 0.03em;
}
.meta-tag.easy     { color: var(--good); border-color: color-mix(in oklch, var(--good) 40%, transparent); }
.meta-tag.medium   { color: var(--warn); border-color: color-mix(in oklch, var(--warn) 40%, transparent); }
.meta-tag.hard     { color: var(--bad);  border-color: color-mix(in oklch, var(--bad)  40%, transparent); }
.meta-tag.advanced { color: var(--bad);  border-color: color-mix(in oklch, var(--bad)  40%, transparent); }

.meta-visit {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-left: auto;
  transition: opacity 0.15s;
}
.meta-visit:hover { opacity: 0.75; }

/* ═══════════════════════════════════════════
   ICON PLACEHOLDER
═══════════════════════════════════════════ */
.ico-ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-l);
  color: var(--accent);
  font-weight: 600;
  font-family: var(--f-serif);
  width: 30px; height: 30px;
  font-size: 16px;
}
.ico-ph.lg { width: 48px; height: 48px; font-size: 22px; }

/* ═══════════════════════════════════════════
   SHARE BUTTON
═══════════════════════════════════════════ */
#share-wrap {
  display: flex;
  justify-content: flex-start;
  padding: 24px var(--pad);
  max-width: 760px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
#share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  border: 1.5px solid var(--accent);
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s;
}
#share-btn:hover { opacity: 0.85; }

/* ═══════════════════════════════════════════
   SHARE MODAL
═══════════════════════════════════════════ */
#share-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: oklch(0 0 0 / 0.45);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-box {
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 32px;
  width: 100%;
  max-width: 480px;
  animation: slideUp 0.2s ease both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}
.modal-title {
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
}
.modal-close {
  color: var(--text-sub);
  font-size: 20px;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.15s;
}
.modal-close:hover { color: var(--text); }

.modal-sub {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 300;
  margin-bottom: 18px;
  line-height: 1.65;
}
.share-row {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
#share-link {
  flex: 1;
  background: var(--bg3);
  border: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--text-dim);
  font-size: 13px;
  outline: none;
  min-width: 0;
  font-family: var(--f-sans);
}
#copy-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
#copy-btn:hover { opacity: 0.85; }
#copy-btn.copied { background: var(--good); }

.share-socials { display: flex; gap: 6px; }
.soc-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  color: var(--text-dim);
  padding: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.soc-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-l);
}

/* ═══════════════════════════════════════════
   FAQ
═══════════════════════════════════════════ */
.faq-section {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px var(--pad) 80px;
  border-bottom: 1px solid var(--line);
}
.faq-section h2 {
  font-family: var(--f-serif);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 40px;
}

details.faq { border-bottom: 1px solid var(--line); }
details.faq:first-of-type { border-top: 1px solid var(--line); }

details.faq > summary {
  padding: 18px 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color 0.2s;
}
details.faq > summary::after {
  content: '+';
  font-size: 18px;
  font-weight: 300;
  color: var(--text-sub);
  flex-shrink: 0;
  transition: transform 0.2s, color 0.2s;
  line-height: 1;
}
details.faq[open] > summary { color: var(--text); }
details.faq[open] > summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-ans {
  padding-bottom: 18px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  max-width: 600px;
}
.faq-ans p + p { margin-top: 8px; }
.faq-ans strong { font-weight: 600; color: var(--text); }

/* ═══════════════════════════════════════════
   FOOTER — matches site-footer
═══════════════════════════════════════════ */
.site-footer {
  padding: 28px var(--pad);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--text-sub);
}
.site-footer a {
  color: var(--text-sub);
  transition: color 0.2s;
}
.site-footer a:hover { color: var(--text); }

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 560px) {
  .hero { padding: 48px var(--pad) 36px; }
  .card-visual { gap: 8px; }
  .card-side { min-width: 60px; max-width: 76px; }
  .card-side img { width: 40px; height: 40px; }
  .ico-ph.lg { width: 40px; height: 40px; font-size: 18px; }
  .search-btn span { display: none; }
  .modal-box { padding: 24px 20px; }
}
