/* WarBrief Compare v1.0.0 — scoped under .wbc- */
.wbc-tool, .wbc-page {
  --wbc-bg: #0a0e17;
  --wbc-card: #101828;
  --wbc-card-2: #0d1424;
  --wbc-line: rgba(255, 255, 255, .09);
  --wbc-red: #bb0112;
  --wbc-red-soft: rgba(187, 1, 18, .16);
  --wbc-text: #f3f4f6;
  --wbc-dim: #9aa3b2;
  --wbc-win: #22c55e;
  --wbc-radius: 14px;
  color: var(--wbc-text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ---------- page shell ---------- */
.wbc-page { background: var(--wbc-bg); }
.wbc-container { max-width: 1080px; margin: 0 auto; padding: 28px 16px 64px; }
.wbc-crumbs { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--wbc-dim); margin-bottom: 14px; }
.wbc-crumbs a { color: var(--wbc-dim); text-decoration: none; }
.wbc-crumbs a:hover { color: #fff; }
.wbc-hero { text-align: center; max-width: 760px; margin: 0 auto 26px; }
.wbc-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: #ffb4b9; background: var(--wbc-red-soft); border: 1px solid rgba(187,1,18,.45);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 16px;
}
.wbc-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--wbc-red); animation: wbc-pulse 1.8s infinite; }
@keyframes wbc-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(187,1,18,.6);} 50% { box-shadow: 0 0 0 7px rgba(187,1,18,0);} }
.wbc-hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.01em; }
.wbc-hero h1 .wbc-accent {
  background: linear-gradient(100deg, #ff2a3c, var(--wbc-red) 60%, #7a010c);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.wbc-lede { color: var(--wbc-dim); font-size: 16px; line-height: 1.65; margin: 0; }

/* ---------- tool card ---------- */
.wbc-tool {
  background: linear-gradient(180deg, var(--wbc-card), var(--wbc-card-2));
  border: 1px solid var(--wbc-line);
  border-radius: var(--wbc-radius);
  padding: 20px 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.wbc-controls { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 6px; }
.wbc-field label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--wbc-dim); margin-bottom: 8px; }
.wbc-select {
  width: 100%; appearance: none; -webkit-appearance: none;
  background: #0a0f1c url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239aa3b2' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  border: 1px solid var(--wbc-line); border-radius: 10px;
  color: var(--wbc-text); font-size: 16px; font-weight: 600;
  padding: 13px 40px 13px 14px; cursor: pointer;
}
.wbc-select:focus-visible { outline: 2px solid var(--wbc-red); outline-offset: 2px; }
.wbc-select option, .wbc-select optgroup { background: #0d1424; color: #f3f4f6; }
.wbc-midbtns { display: flex; gap: 10px; justify-content: center; }
.wbc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 10px; padding: 11px 16px; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.wbc-btn:active { transform: scale(.97); }
.wbc-btn-ghost { background: rgba(255,255,255,.05); border-color: var(--wbc-line); color: var(--wbc-text); }
.wbc-btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
.wbc-btn:focus-visible { outline: 2px solid var(--wbc-red); outline-offset: 2px; }
#wbc-swap { padding: 11px 13px; }
.wbc-notice {
  background: rgba(234,179,8,.1); border: 1px solid rgba(234,179,8,.35); color: #fde68a;
  font-size: 13px; border-radius: 10px; padding: 10px 14px; margin: 12px 0 0;
}

/* ---------- scoreboard ---------- */
.wbc-scoreboard { text-align: center; margin: 18px 0 6px; min-height: 30px; }
.wbc-score { font-size: 15px; color: var(--wbc-dim); }
.wbc-score strong { color: #fff; }
.wbc-score .wbc-dot { display:inline-block; width:7px; height:7px; border-radius:50%; margin: 0 4px; vertical-align: middle; }
.wbc-dot-a { background: var(--wbc-red); } .wbc-dot-b { background: #3b82f6; }

/* ---------- rows ---------- */
.wbc-rows { display: grid; gap: 10px; margin-top: 10px; }
.wbc-row {
  background: rgba(255,255,255,.025); border: 1px solid var(--wbc-line);
  border-radius: 12px; padding: 14px;
  display: grid; gap: 10px; grid-template-columns: 1fr;
}
.wbc-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.wbc-metric { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.wbc-about { font-size: 11px; color: var(--wbc-dim); cursor: help; border-bottom: 1px dotted var(--wbc-dim); }
.wbc-lane { display: grid; grid-template-columns: 86px 1fr; gap: 10px; align-items: center; }
.wbc-code {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--wbc-dim);
  border: 1px solid var(--wbc-line); border-radius: 6px; padding: 4px 0; text-align: center;
}
.wbc-barwrap { height: 26px; background: rgba(255,255,255,.05); border-radius: 7px; position: relative; overflow: hidden; }
.wbc-bar { height: 100%; width: 0; border-radius: 7px; transition: width .7s cubic-bezier(.22,.8,.3,1); }
.wbc-lane-a .wbc-bar { background: linear-gradient(90deg, #7a010c, var(--wbc-red)); }
.wbc-lane-b .wbc-bar { background: linear-gradient(90deg, #1d4ed8, #3b82f6); }
.wbc-lane-a .wbc-code { color: #ffb4b9; border-color: rgba(187,1,18,.5); }
.wbc-lane-b .wbc-code { color: #bfdbfe; border-color: rgba(59,130,246,.5); }
.wbc-val { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); white-space: nowrap; }
.wbc-winbadge {
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #052e16; background: var(--wbc-win); border-radius: 999px; padding: 3px 9px; margin-left: 8px; vertical-align: 2px;
}
.wbc-tiebadge {
  font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #fef3c7; background: rgba(234,179,8,.25); border: 1px solid rgba(234,179,8,.5); border-radius: 999px; padding: 3px 9px; margin-left: 8px; vertical-align: 2px;
}
.wbc-note { font-size: 12px; color: var(--wbc-dim); line-height: 1.5; margin: 2px 0 0; }
.wbc-note strong { color: #fca5a5; }

/* skeleton */
.wbc-skeleton { display: grid; gap: 10px; }
.wbc-skeleton span { height: 86px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.08), rgba(255,255,255,.03)); background-size: 200% 100%; animation: wbc-shimmer 1.2s infinite; }
@keyframes wbc-shimmer { to { background-position: -200% 0; } }

/* ---------- share ---------- */
.wbc-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--wbc-line); }
.wbc-share-label { font-size: 13px; color: var(--wbc-dim); font-weight: 600; }
.wbc-share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.wbc-share-btns .wbc-btn { padding: 8px 13px; font-size: 13px; }
.wbc-fineprint { font-size: 12px; color: var(--wbc-dim); margin: 14px 0 0; line-height: 1.6; }

/* ---------- landing sections ---------- */
.wbc-section { margin-top: 44px; }
.wbc-section h2 { font-size: clamp(20px, 3.4vw, 28px); margin: 0 0 14px; letter-spacing: -0.01em; }
.wbc-section p { color: var(--wbc-dim); line-height: 1.7; font-size: 15px; }
.wbc-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.wbc-chip {
  border: 1px solid var(--wbc-line); background: rgba(255,255,255,.03); color: var(--wbc-text);
  border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; text-decoration: none;
  transition: border-color .12s ease, background .12s ease;
}
.wbc-chip:hover { border-color: var(--wbc-red); background: var(--wbc-red-soft); color: #fff; }
.wbc-sources { margin: 12px 0 0; padding-left: 20px; color: var(--wbc-dim); font-size: 14px; line-height: 1.8; }
.wbc-faq details { border: 1px solid var(--wbc-line); border-radius: 12px; margin-bottom: 10px; background: rgba(255,255,255,.02); }
.wbc-faq summary { cursor: pointer; padding: 15px 16px; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.wbc-faq summary::-webkit-details-marker { display: none; }
.wbc-faq summary::after { content: "+"; color: var(--wbc-red); font-size: 20px; font-weight: 400; flex-shrink: 0; }
.wbc-faq details[open] summary::after { content: "–"; }
.wbc-faq details p { padding: 0 16px 16px; margin: 0; font-size: 14.5px; }
.wbc-related { display: grid; gap: 10px; grid-template-columns: 1fr; }
.wbc-rel {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--wbc-line); border-radius: 12px; padding: 14px 16px;
  color: var(--wbc-text); text-decoration: none; background: rgba(255,255,255,.02);
  transition: border-color .12s ease, background .12s ease;
}
.wbc-rel:hover { border-color: var(--wbc-red); background: var(--wbc-red-soft); }
.wbc-rel strong { font-size: 14.5px; }
.wbc-rel span { font-size: 12.5px; color: var(--wbc-dim); display: block; margin-top: 3px; }
.wbc-rel::after { content: "→"; color: var(--wbc-red); font-size: 18px; flex-shrink: 0; }

/* ---------- desktop ---------- */
@media (min-width: 720px) {
  .wbc-tool { padding: 28px; }
  .wbc-controls { grid-template-columns: 1fr auto 1fr; align-items: end; }
  .wbc-midbtns { flex-direction: column; padding-bottom: 2px; }
  .wbc-row { grid-template-columns: 1fr 1fr; grid-template-areas: "head head" "a b"; }
  .wbc-row-head { grid-area: head; }
  .wbc-lane-a { grid-area: a; } .wbc-lane-b { grid-area: b; }
  .wbc-related { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .wbc-related { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- motion + print ---------- */
@media (prefers-reduced-motion: reduce) {
  .wbc-bar { transition: none; }
  .wbc-eyebrow i, .wbc-skeleton span { animation: none; }
}
