/*
 * rpg-landing.css — Device Type Landing Page ("Workbench" design)
 * Separate from rpg-styles.css on purpose — keeps the brand/model/service
 * pages completely untouched. Only enqueued on template-device-type.php.
 *
 * Enqueue in functions.php:
 *   wp_enqueue_style('rpg-landing', get_template_directory_uri().'/rpg-landing.css', [], filemtime(get_template_directory().'/rpg-landing.css'));
 */

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

:root {
  --lp-dark:      #0a0d0a;
  --lp-dark-2:    #12160f;
  --lp-dark-3:    #1a201a;
  --lp-light:     #f0f0ec;
  --lp-light-2:   #ffffff;
  --lp-green:     #02ff02;
  --lp-green-text:#04230a;
  --lp-text-dim:  #9aa39a;
  --lp-text-dim2: #6b756b;
  --lp-border-dk: rgba(255,255,255,.08);
  --lp-border-lt: rgba(0,0,0,.08);
  --lp-font-display: 'Space Grotesk', var(--rpg-font, -apple-system, sans-serif);
}

.lp-main * { box-sizing: border-box; }

.lp-wrap {
  font-family: var(--rpg-font, -apple-system, sans-serif);
  max-width: 100%;
  overflow-x: hidden;
}

/* ─────────────────────────────────────────────
   HERO — dark diagnostic panel
───────────────────────────────────────────── */
.lp-hero {
  background: var(--lp-dark);
  color: #f0f0ec;
  padding: clamp(2rem, 6vw, 3.5rem) 1.5rem clamp(1.75rem, 4vw, 2.5rem);
  position: relative;
  overflow: hidden;
}
.lp-hero::before {
  content: '';
  position: absolute;
  top: -35%;
  right: -8%;
  width: 360px;
  height: 360px;
  background: var(--lp-green);
  opacity: .055;
  border-radius: 50%;
  pointer-events: none;
}
.lp-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.lp-eyebrow {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lp-green);
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lp-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--lp-green);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px var(--lp-green);
  animation: lp-pulse 2s ease-in-out infinite;
}
@keyframes lp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
.lp-title {
  font-family: var(--lp-font-display);
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin-bottom: .9rem;
  max-width: 560px;
}
.lp-title em {
  color: var(--lp-green);
  font-style: normal;
}
.lp-sub {
  font-size: 15px;
  color: var(--lp-text-dim);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 1.75rem;
}
.lp-stats {
  display: flex;
  gap: clamp(1rem, 4vw, 1.75rem);
  flex-wrap: wrap;
  padding-top: 1.25rem;
  border-top: 1px solid var(--lp-border-dk);
}
.lp-stat-num {
  font-family: var(--lp-font-display);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
}
.lp-stat-label {
  font-size: 11px;
  color: var(--lp-text-dim2);
  margin-top: 2px;
}

/* ─────────────────────────────────────────────
   BRAND TRAY — horizontal scroll, scan-line hover
───────────────────────────────────────────── */
.lp-tray-section {
  background: var(--lp-dark);
  padding: 0 1.5rem clamp(1.75rem, 4vw, 2.5rem);
}
.lp-tray-section__inner {
  max-width: 760px;
  margin: 0 auto;
}
.lp-tray-label {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--lp-text-dim2);
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lp-tray-label span:last-child {
  color: var(--lp-text-dim);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}
.lp-tray {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.lp-tray::-webkit-scrollbar { display: none; }
.lp-chip {
  flex: 0 0 auto;
  width: 108px;
  background: var(--lp-dark-2);
  border: 1px solid var(--lp-border-dk);
  border-radius: 10px;
  padding: 16px 10px 13px;
  text-align: center;
  position: relative;
  text-decoration: none;
  display: block;
  transition: border-color .2s, transform .15s;
}
.lp-chip:hover {
  border-color: rgba(2,255,2,.45);
  transform: translateY(-2px);
}
.lp-chip::after {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lp-green), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.lp-chip:hover::after { opacity: 1; }
.lp-chip-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--lp-dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 9px;
  font-size: 13px;
  font-weight: 600;
  color: #cfd6cf;
  overflow: hidden;
}
.lp-chip-logo img {
  width: 70% !important;
  height: 70% !important;
  max-width: 70% !important;
  object-fit: contain !important;
  margin: 0 !important;
}
.lp-chip-name {
  font-size: 12px;
  font-weight: 500;
  color: #e8ebe6;
}
.lp-chip-meta {
  font-size: 10px;
  color: #5e685e;
  margin-top: 3px;
}

/* ─────────────────────────────────────────────
   BENCH — light section, repairs in progress
───────────────────────────────────────────── */
.lp-bench {
  background: var(--lp-light);
  padding: clamp(1.75rem, 4vw, 2.5rem) 1.5rem;
  color: #1a1c19;
}
.lp-bench__inner {
  max-width: 760px;
  margin: 0 auto;
}
.lp-bench-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 8px;
}
.lp-bench-title {
  font-family: var(--lp-font-display);
  font-size: 19px;
  font-weight: 600;
}
.lp-bench-tag {
  font-size: 11px;
  background: var(--lp-green);
  color: var(--lp-green-text);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}
.lp-bench-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}
.lp-bench-card {
  background: var(--lp-light-2);
  border: 1px solid var(--lp-border-lt);
  border-radius: 10px;
  padding: 12px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.lp-bench-card:hover {
  border-color: rgba(2,255,2,.5);
  box-shadow: 0 0 0 1px rgba(2,255,2,.15), 0 4px 16px rgba(2,255,2,.08);
  transform: translateY(-2px);
}
.lp-bench-img {
  width: 100%;
  aspect-ratio: 1.1 / 1;
  background: #f6f6f2;
  border-radius: 6px;
  margin-bottom: 9px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lp-bench-img img {
  width: 78% !important;
  height: 78% !important;
  max-width: 78% !important;
  object-fit: contain !important;
  margin: 0 !important;
}
.lp-bench-name {
  font-size: 12px;
  font-weight: 600;
  color: #1a1c19;
  margin-bottom: 1px;
}
.lp-bench-fix {
  font-size: 10.5px;
  color: var(--lp-text-dim2);
  margin-bottom: 7px;
}
.lp-bench-price {
  font-size: 13px;
  font-weight: 600;
  color: #0a8a0a;
}

/* ─────────────────────────────────────────────
   ALL BRANDS — quiet list below the fold
───────────────────────────────────────────── */
.lp-all-brands {
  background: var(--lp-light);
  padding: 0 1.5rem clamp(1.75rem, 4vw, 2.5rem);
}
.lp-all-brands__inner {
  max-width: 760px;
  margin: 0 auto;
}
.lp-all-brands-title {
  font-family: var(--lp-font-display);
  font-size: 15px;
  font-weight: 600;
  color: #1a1c19;
  margin-bottom: .9rem;
}
.lp-all-brands-list {
  display: flex;
  flex-direction: column;
}
.lp-all-brands-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--lp-border-lt);
  text-decoration: none;
  color: inherit;
  gap: 12px;
}
.lp-all-brands-row:last-child { border-bottom: none; }
.lp-all-brands-row__name {
  font-size: 13.5px;
  font-weight: 500;
  color: #1a1c19;
}
.lp-all-brands-row__meta {
  font-size: 11.5px;
  color: var(--lp-text-dim2);
  font-weight: 400;
}
.lp-all-brands-row__price {
  font-size: 12.5px;
  font-weight: 600;
  color: #0a8a0a;
  white-space: nowrap;
}

/* ─────────────────────────────────────────────
   WHY US — dark strip, quiet checklist
───────────────────────────────────────────── */
.lp-why {
  background: var(--lp-dark);
  padding: clamp(1.75rem, 4vw, 2.5rem) 1.5rem;
}
.lp-why__inner {
  max-width: 760px;
  margin: 0 auto;
}
.lp-why-title {
  font-family: var(--lp-font-display);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1.25rem;
}
.lp-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.lp-why-item {
  display: flex;
  gap: 12px;
}
.lp-why-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(2,255,2,.12);
  border: 1px solid rgba(2,255,2,.3);
  color: var(--lp-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.lp-why-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #f0f0ec;
  margin-bottom: 2px;
}
.lp-why-text span {
  font-size: 12.5px;
  color: var(--lp-text-dim);
  line-height: 1.5;
}

/* ─────────────────────────────────────────────
   FOOTER CTA — quiet, dark
───────────────────────────────────────────── */
.lp-foot {
  background: var(--lp-dark);
  padding: 1.5rem 1.5rem 2rem;
  border-top: 1px solid var(--lp-border-dk);
}
.lp-foot__inner {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.lp-foot-text {
  font-size: 13px;
  color: var(--lp-text-dim);
  line-height: 1.5;
}
.lp-foot-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.lp-foot-btn {
  background: var(--lp-green);
  color: var(--lp-green-text);
  border: none;
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--lp-font-display);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.lp-foot-btn--outline {
  background: transparent;
  color: #f0f0ec;
  border: 1px solid var(--lp-border-dk);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 480px) {
  .lp-stats { gap: 1rem 1.25rem; }
  .lp-bench-grid { grid-template-columns: repeat(2, 1fr); }
  .lp-foot__inner { flex-direction: column; align-items: flex-start; }
}
