@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --pb-black: #07090b;
  --pb-panel: #11161a;
  --pb-panel-2: #171d22;
  --pb-line: #2b343b;
  --pb-text: #f7f9fa;
  --pb-muted: #a8b2b9;
  --pb-accent: #79e235;
  --pb-accent-2: #b6ff79;
  --pb-white: #ffffff;
}

.pb-app,
.pb-app * {
  box-sizing: border-box;
}

.pb-app {
  width: min(1180px, calc(100% - 32px));
  margin: 32px auto 80px;
  color: var(--pb-text);
  background: var(--pb-black);
  border: 1px solid var(--pb-line);
  border-radius: 4px;
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

.pb-hero {
  position: relative;
  padding: clamp(40px, 8vw, 92px);
  background:
    linear-gradient(130deg, rgba(121, 226, 53, .14), transparent 40%),
    radial-gradient(circle at 88% 15%, rgba(121, 226, 53, .18), transparent 28%),
    var(--pb-black);
}

.pb-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.pb-hero > * {
  position: relative;
  z-index: 1;
}

.pb-kicker,
.pb-results-heading > span {
  display: inline-flex;
  color: var(--pb-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
}

.pb-hero h1 {
  max-width: 850px;
  margin: 18px 0 18px;
  color: var(--pb-white);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.045em;
}

.pb-hero > p {
  max-width: 700px;
  margin: 0 0 34px;
  color: var(--pb-muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

.pb-matcher-form {
  display: grid;
  grid-template-columns: minmax(280px, 2.2fr) minmax(170px, 1fr) minmax(150px, .75fr) auto;
  gap: 12px;
  padding: 16px;
  background: rgba(17, 22, 26, .92);
  border: 1px solid var(--pb-line);
  border-left: 3px solid var(--pb-accent);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}

.pb-matcher-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pb-matcher-form label span {
  color: var(--pb-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pb-matcher-form input,
.pb-matcher-form select {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 0 14px;
  color: var(--pb-text);
  background: #0b0f12;
  border: 1px solid #39434a;
  border-radius: 2px;
  font: inherit;
}

.pb-matcher-form input:focus,
.pb-matcher-form select:focus {
  outline: 2px solid var(--pb-accent);
  outline-offset: 1px;
}

.pb-matcher-form button,
.pb-shop-button {
  min-height: 48px;
  padding: 12px 18px;
  color: var(--pb-white);
  background: transparent;
  border: 2px solid var(--pb-accent);
  border-radius: 2px;
  font: 800 14px/1 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: .035em;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.pb-matcher-form button {
  align-self: end;
}

.pb-matcher-form button:hover,
.pb-shop-button:hover {
  color: var(--pb-black);
  background: var(--pb-accent);
  transform: translateY(-1px);
}

.pb-results {
  padding: clamp(34px, 6vw, 68px);
  background: var(--pb-panel);
  border-top: 1px solid var(--pb-line);
}

.pb-results-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.pb-results-heading h2 {
  margin: 10px 0 10px;
  color: var(--pb-white);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -.03em;
}

.pb-results-heading p,
.pb-product-description,
.pb-disclosure {
  color: var(--pb-muted);
  line-height: 1.65;
}

.pb-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pb-product-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: 24px;
  background: var(--pb-panel-2);
  border: 1px solid var(--pb-line);
  border-radius: 2px;
  transition: border-color .18s ease, transform .18s ease;
}

.pb-product-card:hover {
  border-color: var(--pb-accent);
  transform: translateY(-3px);
}

.pb-product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--pb-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pb-product-meta strong {
  color: var(--pb-accent);
}

.pb-product-card h3 {
  margin: 22px 0 10px;
  color: var(--pb-white);
  font-size: 23px;
  line-height: 1.2;
  letter-spacing: -.025em;
}

.pb-product-description {
  margin: 0 0 26px;
  font-size: 15px;
}

.pb-product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--pb-line);
}

.pb-product-price {
  color: var(--pb-white);
  font-size: 22px;
  font-weight: 800;
}

.pb-shop-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
  color: var(--pb-white);
  text-decoration: none;
  font-size: 12px;
}

.pb-disclosure {
  margin: 24px 0 0;
  padding: 16px 18px;
  background: #0b0f12;
  border-left: 3px solid var(--pb-accent);
  font-size: 13px;
}

.pb-empty {
  padding: 28px;
  color: var(--pb-muted);
  border: 1px dashed #4a555d;
}

@media (max-width: 960px) {
  .pb-matcher-form {
    grid-template-columns: 1fr 1fr;
  }
  .pb-matcher-form label:first-child {
    grid-column: 1 / -1;
  }
  .pb-results-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pb-app {
    width: min(100% - 20px, 1180px);
    margin-top: 10px;
  }
  .pb-hero,
  .pb-results {
    padding: 30px 20px;
  }
  .pb-matcher-form,
  .pb-results-grid {
    grid-template-columns: 1fr;
  }
  .pb-matcher-form label:first-child {
    grid-column: auto;
  }
  .pb-product-footer {
    align-items: stretch;
    flex-direction: column;
  }
}
