/* ===== DKTech Tools — premium dark ===== */
:root {
  /* === BRAND COLOR — change this one line to re-skin the whole site === */
  --brand: #FF6600;

  /* Auto-derived accent variants (driven by --brand above) */
  --accent:       var(--brand);
  --accent-2:     color-mix(in oklab, var(--brand) 65%, white);
  --accent-soft:  color-mix(in oklab, var(--brand) 16%, transparent);
  --accent-glow:  color-mix(in oklab, var(--brand) 50%, transparent);

  --bg-0: #07090d;
  --bg-1: #0b0f15;
  --bg-2: #10151d;
  --surface: rgba(20, 27, 38, 0.65);
  --surface-2: rgba(28, 37, 52, 0.55);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e8edf5;
  --text-dim: #97a3b6;
  --text-faint: #5d6a7d;
  --good: #7CFFB2;
  --warn: #FFD166;
  --bad:  #FF8A8A;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -20px rgba(0,0,0,0.6);
  --shadow-2: 0 1px 0 rgba(255,255,255,0.05) inset, 0 50px 90px -30px rgba(0,0,0,0.7);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Geist", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-0);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  letter-spacing: -0.01em;
}

/* ===== Background motion ===== */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(1200px 800px at 78% -10%, rgba(110, 168, 255, 0.18), transparent 60%),
    radial-gradient(900px 700px at 8% 110%, rgba(110, 168, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #060810 0%, #0a0e16 100%);
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 35%, #000 30%, transparent 80%);
}
.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.bg-orb.o1 {
  width: 520px; height: 520px;
  left: 60%; top: -10%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  animation: drift1 14s ease-in-out infinite alternate;
}
.bg-orb.o2 {
  width: 460px; height: 460px;
  left: -8%; top: 55%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 70%, white) 0%, transparent 65%);
  opacity: 0.32;
  animation: drift2 18s ease-in-out infinite alternate;
}
.bg-orb.o3 {
  width: 320px; height: 320px;
  left: 40%; top: 40%;
  background: radial-gradient(circle, var(--accent-2) 0%, transparent 70%);
  opacity: 0.18;
  animation: drift3 22s ease-in-out infinite alternate;
}
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(-90px, 60px) scale(1.08); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(120px, -80px) scale(1.12); } }
@keyframes drift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(-60px, -40px) scale(1.05); } }

@media (prefers-reduced-motion: reduce) {
  .bg-orb { display: none; }
}

/* Hide blurred background orbs on mobile/tablet — large blur(70px) layers
   force expensive recomposition on every scroll frame on weaker GPUs. */
@media (max-width: 980px) {
  .bg-orb { display: none; }
}

/* ===== Layout ===== */
.app {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 40px 80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in oklab, var(--accent) 90%, white), var(--accent) 70%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1) inset,
    0 8px 24px -8px var(--accent-glow);
  position: relative;
  overflow: hidden;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-tag {
  margin-left: 4px;
  padding: 3px 8px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  background: rgba(255,255,255,0.02);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  color: var(--text-dim);
}
.topbar-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  text-decoration: none;
  padding: 6px 10px 6px 6px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.02);
  transition: color .15s, background .15s, border-color .15s;
}
.topbar-back svg { width: 14px; height: 14px; }
.topbar-back:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.22);
}
.topbar-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 12px var(--good);
}

/* ===== WIP banner ===== */
.wip-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0 0 28px;
  padding: 14px 18px;
  border: 1px solid color-mix(in oklab, var(--warn) 55%, transparent);
  background:
    linear-gradient(135deg,
      color-mix(in oklab, var(--warn) 14%, transparent) 0%,
      color-mix(in oklab, var(--warn) 6%, transparent) 100%);
  border-radius: 12px;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--warn) 18%, transparent) inset;
}
.wip-pill {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--warn);
  color: #1a1100;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wip-text {
  color: color-mix(in oklab, var(--warn) 80%, white);
  font-size: 14px;
  line-height: 1.45;
}

/* ===== Hero ===== */
.hero {
  margin-bottom: 36px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.02);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 20px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}
.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 18ch;
  text-wrap: balance;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--accent) 10%, var(--accent-2) 60%, #fff 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin: 0;
  max-width: 56ch;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ===== Card grid ===== */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr; }
  .app { padding: 24px 20px 64px; }
  .topbar { margin-bottom: 36px; }
}

.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)) ,
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  box-shadow: var(--shadow-1);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), transparent 30%);
  mask: linear-gradient(black, black) content-box, linear-gradient(black, black);
  mask-composite: exclude;
  padding: 1px;
  opacity: 0.6;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.card-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.card-step {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

/* ===== Form ===== */
.form { display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 10px; position: relative; }
.field-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.005em;
}

.ac-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(8, 12, 18, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.ac-input-wrap:hover { border-color: rgba(255,255,255,0.22); }
.ac-input-wrap.is-open,
.ac-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: rgba(8, 12, 18, 0.85);
}
.ac-icon {
  width: 18px; height: 18px;
  margin-left: 14px;
  color: var(--text-faint);
  flex-shrink: 0;
}
.ac-input-wrap:focus-within .ac-icon { color: var(--accent); }
.ac-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 14px 12px;
  min-width: 0;
}
.ac-input::placeholder { color: var(--text-faint); }
.ac-clear {
  background: transparent;
  border: none;
  cursor: pointer;
  margin-right: 8px;
  width: 28px; height: 28px;
  border-radius: 8px;
  color: var(--text-faint);
  display: grid;
  place-items: center;
  transition: background .15s, color .15s;
}
.ac-clear svg { width: 14px; height: 14px; }
.ac-clear:hover { background: rgba(255,255,255,0.06); color: var(--text); }

.ac-list {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 30;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(14, 19, 28, 0.92);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.7);
  max-height: 320px;
  overflow-y: auto;
  animation: ac-pop .14s ease-out;
}
@keyframes ac-pop {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ac-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.ac-item.is-active { background: var(--accent-soft); }
.ac-item-name { color: var(--text); }
.ac-mark { background: transparent; color: var(--accent-2); font-weight: 600; }
.ac-item-pop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
}
.ac-pop-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.ac-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  cursor: default;
  pointer-events: none;
}
.ac-head .ac-item-name { color: var(--text-faint); }

/* ===== Chips (RAM/SSD) ===== */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.chip {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(8, 12, 18, 0.5);
  color: var(--text-dim);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.chip:hover {
  border-color: rgba(255,255,255,0.24);
  color: var(--text);
}
.chip.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-2);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 20px -10px var(--accent-glow);
}
.chip-grid.ssd { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 540px) {
  .chip-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chip-grid.ssd { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===== Result panel ===== */
.result-panel {
  position: sticky;
  top: 32px;
  min-height: 540px;
  display: flex;
  flex-direction: column;
}
.result-panel .card-inner {
  flex: 1;
}
.result-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 16px 8px;
  color: var(--text-dim);
  min-height: 440px;
  justify-content: center;
}
.empty-illus { color: var(--accent); margin-bottom: 24px; opacity: 0.85; }
.empty-illus svg { width: 120px; height: 120px; }
.empty-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.empty-sub {
  margin: 0;
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.5;
}

.result {
  animation: result-in .55s cubic-bezier(.2,.8,.2,1);
}
@keyframes result-in {
  from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.result-head { margin-bottom: 32px; }
.result-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.result-price {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}
.result-price-range {
  background: linear-gradient(120deg, #fff 0%, var(--accent-2) 70%, var(--accent) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.result-price-dash {
  color: var(--text-faint);
  font-weight: 400;
  margin: 0 4px;
}
.result-price-unit {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0;
}
.result-mid {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 14px;
}
.result-mid strong {
  color: var(--text);
  font-weight: 600;
}

/* Range bar */
.range-wrap { padding: 28px 12px 64px; }
.range-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03) inset;
}
.range-band {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 24px -4px var(--accent-glow);
  animation: band-grow .9s cubic-bezier(.2,.8,.2,1) both;
  transform-origin: left center;
}
@keyframes band-grow {
  from { transform: translateY(-50%) scaleX(0); }
  to   { transform: translateY(-50%) scaleX(1); }
}
.range-band-glow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  filter: blur(16px);
  opacity: 0.18;
  pointer-events: none;
}
.range-tick {
  position: absolute;
  top: -10px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.range-tick-line {
  width: 1px;
  height: 26px;
  background: rgba(255,255,255,0.15);
}
.range-tick-label {
  position: absolute;
  top: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}
.range-tick-cap {
  position: absolute;
  top: 52px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.range-mid {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  animation: mid-in .7s .3s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes mid-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.range-mid-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 0 3px var(--bg-1),
    0 0 0 4px var(--accent),
    0 0 18px var(--accent-glow);
  position: relative;
  z-index: 2;
}
.range-mid-pulse {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: mid-pulse 2.4s ease-out infinite;
}
@keyframes mid-pulse {
  0%   { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(2.0); opacity: 0; }
}

/* Confidence + sample */
.result-meta {
  display: flex;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 24px;
}
.conf, .result-sample {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.02);
}
.conf-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.conf.is-high  .conf-dot { background: var(--good); box-shadow: 0 0 12px var(--good); }
.conf.is-med   .conf-dot { background: var(--warn); box-shadow: 0 0 12px var(--warn); }
.conf.is-low   .conf-dot { background: var(--bad);  box-shadow: 0 0 10px var(--bad); }
.conf-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.conf-label { font-size: 14px; font-weight: 600; color: var(--text); }
.conf-desc  { font-size: 12px; color: var(--text-faint); }

.result-sample { flex-direction: column; align-items: stretch; gap: 6px; }
.result-sample-pair {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
}
.result-sample-num {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.result-sample-side {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-faint);
  margin-left: 4px;
  letter-spacing: 0.04em;
}
.result-sample-cap {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-align: center;
}

/* Config summary */
.result-config {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  margin-bottom: 20px;
}
.config-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.config-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.config-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
}
.config-list li:last-child { border-bottom: none; }
.config-key { color: var(--text-faint); }
.config-val {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-align: right;
}
.config-val .config-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.35);
  text-underline-offset: 2px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.config-val .config-link:hover {
  color: var(--accent-2);
  text-decoration-color: var(--accent-2);
}

.result-disclaimer {
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-faint);
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}
.result-caveat {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.result-caveat a {
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.result-caveat a:hover { color: var(--text); }
.result-caveat a svg { width: 13px; height: 13px; flex-shrink: 0; }

/* Tips card — shown under the confidence row when the user's RAM/SSD picks
   suggest they could earn more by selling components separately. */
.result-tips {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.02);
}
.result-tips-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.result-tips ul {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-dim);
}
.result-tips li { margin-bottom: 6px; }
.result-tips li:last-child { margin-bottom: 0; }
.tip-why-btn {
  margin-left: 4px;
  padding: 0 2px;
  background: none;
  border: 0;
  color: var(--accent-2);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tip-why-btn:hover { color: var(--accent); }
.tip-why-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}
.tip-modal-text {
  margin: 12px 0 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
}
.tip-modal-text strong {
  color: var(--text);
  font-weight: 600;
}
.tip-modal-details {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
}
.tip-detail-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}
.tip-detail-label {
  color: var(--text-faint);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tip-detail-value {
  color: var(--text);
  min-width: 0;
  overflow-wrap: anywhere;
}
.tip-detail-meta {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
}
.tip-detail-row-summary {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.tip-detail-row-summary .tip-detail-value {
  color: var(--accent-2);
  font-weight: 600;
}
.form-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-faint);
}

/* Footer */
.footer {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
  color: var(--text-faint);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.footer-row,
.footer-centered > div {
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer a { color: var(--text-dim); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 20px; }
.footer-centered {
  align-items: center;
  text-align: center;
}

/* ===== Landing — tools list ===== */
.tools-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tool-card {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 24px 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0)) ,
    var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  text-decoration: none;
  color: inherit;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .2s, box-shadow .25s, background .2s;
  overflow: hidden;
  opacity: 0;
  animation: tool-in .55s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes tool-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px 200px at var(--mx, 30%) 0%, var(--accent-soft), transparent 60%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.tool-card:hover {
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-2px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.5), 0 0 0 1px var(--border-strong);
}
.tool-card:hover::before { opacity: 1; }
.tool-card:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.tool-card-icon {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--accent-soft), rgba(255,255,255,0.02));
  border: 1px solid var(--border-strong);
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .25s cubic-bezier(.2,.8,.2,1);
}
.tool-card-icon svg { width: 44px; height: 44px; }
.tool-card:hover .tool-card-icon {
  transform: scale(1.04);
  box-shadow: 0 0 24px -8px var(--accent-glow);
}

.tool-card-body { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tool-card-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tool-card-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.tool-card-desc {
  margin: 4px 0 0;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
  max-width: 60ch;
  text-wrap: pretty;
}

.tool-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.02);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background .2s, border-color .2s, color .2s, transform .25s cubic-bezier(.2,.8,.2,1);
}
.tool-card-cta svg { width: 16px; height: 16px; transition: transform .25s; }
.tool-card:hover .tool-card-cta {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-2);
}
.tool-card:hover .tool-card-cta svg { transform: translateX(3px); }
.tool-card-soon {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tool-card.is-disabled { cursor: not-allowed; opacity: 0.7; }
.tool-card.is-disabled:hover { transform: none; box-shadow: none; border-color: var(--border); }
.tool-card.is-disabled:hover::before { opacity: 0; }
.tool-card.is-disabled:hover .tool-card-icon { transform: none; box-shadow: none; }

@media (max-width: 720px) {
  .tool-card {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    gap: 16px 18px;
    padding: 20px;
  }
  .tool-card-icon { width: 56px; height: 56px; border-radius: 12px; }
  .tool-card-icon svg { width: 30px; height: 30px; }
  .tool-card-cta {
    grid-column: 1 / -1;
    justify-content: center;
  }
  .tool-card-title { font-size: 20px; }
}

/* ===== GPU page — config card ===== */
.config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 28px;
}
@media (max-width: 820px) {
  .config-grid { grid-template-columns: 1fr; }
}
.baseline-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 720px) { .baseline-row { grid-template-columns: 1fr; } }
.baseline-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(8, 12, 18, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0 14px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.baseline-input-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  background: rgba(8, 12, 18, 0.85);
}
.baseline-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 14px 0;
  min-width: 0;
  -moz-appearance: textfield;
}
.baseline-input::-webkit-outer-spin-button,
.baseline-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.baseline-unit { color: var(--text-faint); font-size: 14px; padding-left: 8px; }
.baseline-presets { grid-template-columns: repeat(4, 1fr); gap: 8px; }
.chip-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 9px 6px;
  line-height: 1.2;
}
.chip-stack-label { font-weight: 600; font-size: 13px; }
.chip-stack-sub   { font-size: 11px; color: var(--text-faint); font-family: var(--font-mono); }
.chip.is-selected .chip-stack-sub { color: var(--accent-2); opacity: 0.85; }
.field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-faint);
  line-height: 1.4;
}
.res-grid { grid-template-columns: repeat(3, 1fr); }

/* ===== GPU table ===== */
.table-card .card-head { align-items: center; }
.price-mode {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(8, 12, 18, 0.5);
}
.mode-btn {
  appearance: none;
  background: transparent;
  border: none;
  color: var(--text-dim);
  padding: 6px 14px;
  border-radius: 999px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color .15s, background .15s;
}
.mode-btn:hover { color: var(--text); }
.mode-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent-2);
  box-shadow: 0 0 0 1px var(--accent);
}

.gpu-table-wrap {
  margin: 0 -8px;
  overflow-x: auto;
  border-radius: 14px;
}
.gpu-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13.5px;
  min-width: 760px;
}
.gpu-th {
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 14px 12px;
  border-bottom: 1px solid var(--border-strong);
  user-select: none;
  cursor: pointer;
  transition: color .15s, background .15s;
  background: rgba(255,255,255,0.015);
}
.gpu-th:first-child { padding-left: 18px; border-top-left-radius: 12px; }
.gpu-th:last-child  { padding-right: 18px; border-top-right-radius: 12px; }
.gpu-th.num { text-align: right; }
.gpu-th:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.gpu-th.is-active { color: var(--accent-2); }
.gpu-th-inner { display: inline-flex; align-items: center; gap: 6px; }
.gpu-th.num .gpu-th-inner { flex-direction: row-reverse; }
.gpu-th-arrow { opacity: 0; transition: opacity .15s, transform .15s; font-size: 16px; line-height: 1; }
.gpu-th.is-active .gpu-th-arrow { opacity: 1; }
.gpu-th-arrow.asc { transform: rotate(180deg); }

.gpu-table tbody tr {
  transition: background .15s;
}
.gpu-table tbody tr:hover { background: rgba(255,255,255,0.025); }
.gpu-table td {
  padding: 14px 12px;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  vertical-align: middle;
}
.gpu-table td:first-child { padding-left: 18px; }
.gpu-table td:last-child  { padding-right: 18px; }
.gpu-table td.num { text-align: right; font-family: var(--font-mono); font-size: 13px; }
.gpu-table tbody tr:last-child td { border-bottom: none; }

.gpu-cell-model { min-width: 200px; }
.gpu-model-row { display: flex; align-items: center; gap: 10px; }
.gpu-model-name { font-weight: 600; font-size: 14px; color: var(--text); }
.gpu-model-sub  { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; font-family: var(--font-mono); }
.gpu-price { color: var(--accent-2); font-weight: 600; }
.gpu-total { color: var(--text); font-weight: 600; }
.gpu-vfm { color: var(--text-dim); }
.gpu-vfm-total { color: var(--text); font-weight: 600; font-size: 14px; }
.gpu-partial { color: var(--warn); margin-left: 2px; }
/* Fixed-width slot reserved at the right of every Pris cell so the "kr" suffix
   stays vertically aligned across rows whether or not the partial-data marker
   is shown. Without this, partial rows shift "kr" left by the asterisk width. */
.gpu-partial-slot {
  display: inline-block;
  width: 14px;
  margin-left: 2px;
  text-align: left;
}

/* Podium rows — top-3 by perf_per_total */
.gpu-table tr.is-podium td:first-child {
  position: relative;
}
.gpu-table tr.is-podium td:first-child::before {
  content: "";
  position: absolute;
  left: 0; top: 6px; bottom: 6px;
  width: 3px;
  border-radius: 0 2px 2px 0;
}
.gpu-table tr.podium-row-1 { background: linear-gradient(90deg, rgba(255, 209, 102, 0.10), rgba(255, 209, 102, 0.02) 60%, transparent); }
.gpu-table tr.podium-row-1 td:first-child::before { background: #FFD166; box-shadow: 0 0 12px rgba(255,209,102,0.6); }
.gpu-table tr.podium-row-2 { background: linear-gradient(90deg, rgba(200, 210, 224, 0.10), rgba(200, 210, 224, 0.02) 60%, transparent); }
.gpu-table tr.podium-row-2 td:first-child::before { background: #C8D2E0; box-shadow: 0 0 12px rgba(200,210,224,0.5); }
.gpu-table tr.podium-row-3 { background: linear-gradient(90deg, rgba(205, 127, 76, 0.10), rgba(205, 127, 76, 0.02) 60%, transparent); }
.gpu-table tr.podium-row-3 td:first-child::before { background: #CD7F4C; box-shadow: 0 0 12px rgba(205,127,76,0.5); }
.gpu-table tr.is-podium .gpu-vfm-total { color: var(--text); }

.podium {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #0a0d12;
  flex-shrink: 0;
}
.podium-1 { background: linear-gradient(160deg, #FFE29A, #FFD166); }
.podium-2 { background: linear-gradient(160deg, #E8EDF5, #C8D2E0); }
.podium-3 { background: linear-gradient(160deg, #E5A87C, #CD7F4C); }

.table-meta {
  margin: 16px 4px 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-faint);
}
.table-meta strong { color: var(--text-dim); font-weight: 600; }

/* ===== Method card ===== */
.method-card { margin-top: 24px; }
.method-body p { margin: 0 0 12px; color: var(--text-dim); font-size: 14px; line-height: 1.55; }
.method-body em { color: var(--text); font-style: normal; font-weight: 600; }
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 16px 0;
}
@media (max-width: 720px) { .method-grid { grid-template-columns: 1fr; } }
.method-grid > div {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.method-grid > div > p:last-child { margin-bottom: 0; }
.method-grid h4 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.method-tag {
  font-family: var(--font);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
}
.method-tag-soft {
  background: rgba(255,255,255,0.05);
  color: var(--text-faint);
}
.method-foot { color: var(--text-faint); font-size: 13px; }
.method-analogy {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.method-analogy h4 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.method-analogy p {
  margin: 0 0 10px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.6;
}
.method-analogy p:last-child { margin-bottom: 0; }

/* Stack cards on GPU page */
.app > .card + .card { margin-top: 24px; }

/* Scrollbar polish */
.ac-list::-webkit-scrollbar { width: 8px; }
.ac-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.ac-list::-webkit-scrollbar-track { background: transparent; }

/* ===== Methodology modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  animation: modal-fade 180ms ease;
}
@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  position: relative;
  width: min(640px, 100%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 24px 64px -8px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  animation: modal-rise 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes modal-rise {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 8px;
  color: var(--text-faint);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms ease, color 120ms ease;
}
.modal-close svg { width: 16px; height: 16px; }
.modal-close:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.modal-header {
  padding: 28px 32px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.modal-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.modal-header h2 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
}
.modal-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}
.modal-body {
  overflow-y: auto;
  padding: 8px 32px 28px;
}
.method-section {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.method-section:last-child { border-bottom: none; }
.method-section-num {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-2);
  letter-spacing: 0.05em;
  padding-top: 2px;
  min-width: 24px;
}
.method-section-text { flex: 1; }
.method-section-text h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.method-section-text p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-dim);
}
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }

/* Hero eyebrow pill hidden site-wide. Delete this block to re-enable. */
.hero-eyebrow { display: none; }
