:root {
  --bg: #0b0f14;
  --surface: #121820;
  --surface-2: #1a2230;
  --border: #243044;
  --text: #e8edf5;
  --muted: #8b9bb5;
  --accent: #3dd68c;
  --accent-dim: #2a9d63;
  --accent-glow: rgba(61, 214, 140, 0.15);
  --warn: #f5b942;
  --warn-bg: rgba(245, 185, 66, 0.12);
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: 'DM Sans', system-ui, -apple-system, sans-serif;
  --max: 1080px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  font-size: 0.88em;
  background: var(--surface-2);
  padding: 0.15em 0.45em;
  border-radius: 6px;
  border: 1px solid var(--border);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(11, 15, 20, 0.85);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #062a18;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-name {
  margin: 0;
  font-weight: 700;
  font-size: 1.05rem;
}

.brand-tag {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.header-cta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #062a18;
}

.btn-primary:hover {
  background: #4ae99a;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: #222c3d;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-lg {
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 3rem 0 2rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--accent-glow), transparent),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 820px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-note {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-share-hint {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--accent);
}

.status-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
}

.status-label {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.status-value {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.status-value.is-live {
  color: var(--accent);
}

.status-value.is-cached {
  color: var(--warn);
}

.status-meta,
.status-count {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Prices */
.prices-section {
  padding: 2rem 0 3rem;
}

.section-head {
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin: 0 0 0.25rem;
  font-size: 1.45rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prices-toolbar {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.search-field input {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.search-field input::placeholder {
  color: var(--muted);
}

.search-field input:focus {
  outline: 2px solid rgba(61, 214, 140, 0.35);
  border-color: var(--accent-dim);
}

.section-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-chip {
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.38rem 0.8rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.filter-chip:hover {
  color: var(--text);
  border-color: #3a4d68;
}

.filter-chip.is-active {
  background: rgba(61, 214, 140, 0.14);
  border-color: rgba(61, 214, 140, 0.45);
  color: var(--accent);
}

.filter-meta {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.loading {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.error-panel {
  padding: 1.25rem 1.5rem;
  background: rgba(220, 80, 80, 0.1);
  border: 1px solid rgba(220, 80, 80, 0.35);
  border-radius: var(--radius);
  color: #f5c2c2;
}

.error-panel p {
  margin: 0.25rem 0;
}

.prices-root {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.section-block .section-body {
  display: grid;
  gap: 0.75rem;
  padding: 0.75rem;
}

.price-group {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.01);
}

.group-title {
  margin: 0;
  padding: 0.65rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.category-head {
  margin: 0;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.price-group .price-table th,
.price-group .price-table td {
  padding: 0.55rem 0.85rem;
}

.price-table th,
.price-table td {
  padding: 0.65rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.price-table tr:last-child td {
  border-bottom: none;
}

.price-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.col-money,
.money-cell {
  text-align: right !important;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.money-cell.is-same {
  color: var(--muted);
  font-weight: 500;
}

.sku-cell {
  min-width: 0;
}

.sku-main {
  display: block;
  font-weight: 500;
}

.sku-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
  word-break: break-word;
}

.price-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 640px) {
  .prices-toolbar {
    position: sticky;
    top: 4.2rem;
    z-index: 5;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  }

  .section-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
  }

  .filter-chip {
    flex: 0 0 auto;
  }

  .price-group .price-table thead {
    display: none;
  }

  .price-group .price-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.75rem;
    padding: 0.7rem 0.85rem;
    border-bottom: 1px solid var(--border);
  }

  .price-group .price-table tr:last-child {
    border-bottom: none;
  }

  .price-group .price-table td {
    border: 0;
    padding: 0;
  }

  .price-group .price-table td.sku-cell {
    grid-column: 1 / -1;
  }

  .price-group .price-table td.money-cell {
    grid-row: 2;
  }

  .price-group .price-table td.money-cell::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 0.1rem;
  }
}

.cache-banner {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: var(--warn-bg);
  border: 1px solid rgba(245, 185, 66, 0.35);
  border-radius: var(--radius);
  color: #f5d78a;
  font-size: 0.9rem;
}

/* How */
.how {
  padding: 2.5rem 0 3.5rem;
  border-top: 1px solid var(--border);
}

.how-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
}

@media (max-width: 720px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
}

.how h2 {
  margin-top: 0;
}

.steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.steps li {
  margin-bottom: 0.65rem;
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

.trust-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.trust-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.trust-card li {
  margin-bottom: 0.4rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.footer-inner p {
  margin: 0;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}
