/* Spherely Gear Lab — self-contained sports-tech styles reusing landing tokens */
.gear-lab-page {
  background: #f5f8fc;
  color: #0b1b34;
}

.gear-main {
  padding-top: 96px;
  padding-bottom: 56px;
}

.gear-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.gear-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #5b7091;
  margin-bottom: 16px;
}

.gear-breadcrumbs a {
  color: #0066ff;
  font-weight: 600;
  text-decoration: none;
}

.gear-breadcrumbs a:hover {
  text-decoration: underline;
}

.gear-hero {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(11, 27, 52, 0.05);
}

.gear-kicker {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0066ff;
}

.gear-hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.18;
  color: #0b1b34;
}

.gear-answer-box {
  margin: 18px 0 0;
  padding: 16px 20px;
  background: #eef5ff;
  border: 1px solid #cfe0ff;
  border-radius: 16px;
  color: #1e3a66;
  font-size: 15px;
  line-height: 1.75;
}

.gear-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.gear-btn-primary,
.gear-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.gear-btn-primary {
  background: #0066ff;
  color: #ffffff;
  border: 1px solid #0057db;
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.22);
}

.gear-btn-primary:hover {
  background: #0052cc;
  transform: translateY(-1px);
}

.gear-btn-secondary {
  background: #f1f6ff;
  color: #0057db;
  border: 1px solid #c7dcff;
}

.gear-btn-secondary:hover {
  background: #e4eeff;
}

.gear-section {
  margin-top: 28px;
}

.gear-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(11, 27, 52, 0.04);
}

.gear-section-head {
  margin-bottom: 18px;
}

.gear-section-head h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.8vw, 28px);
  line-height: 1.25;
  color: #0b1b34;
}

.gear-section-head p {
  margin: 0;
  color: #536888;
  font-size: 15px;
  line-height: 1.65;
}

/* Filters */
.gear-filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  margin-top: 22px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(11, 27, 52, 0.04);
}

.gear-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gear-field label {
  font-size: 12px;
  font-weight: 700;
  color: #475d7d;
}

.gear-field input,
.gear-field select {
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0b1b34;
  font-size: 14px;
}

.gear-field input:focus,
.gear-field select:focus {
  outline: 2px solid #0066ff;
  outline-offset: 1px;
  background: #ffffff;
}

.gear-filter-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 14px;
  font-size: 14px;
  color: #475d7d;
}

/* Hub Grid */
.gear-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 16px;
}

.gear-item-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 6px 20px rgba(11, 27, 52, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.gear-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(11, 27, 52, 0.08);
  border-color: #bfd7ff;
}

.gear-item-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 196px;
  padding: 12px;
  border-radius: 14px;
  background: radial-gradient(circle at 50% 35%, #f4f8ff, #eaf1fb);
  margin-bottom: 14px;
}

.gear-item-thumb img {
  max-height: 172px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.gear-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.gear-pill-readonly {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
}

.gear-pill-accent {
  background: #e8f1ff;
  color: #0052cc;
}

.gear-item-brand {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0066ff;
}

.gear-item-title {
  margin: 4px 0 10px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 750;
  color: #0b1b34;
}

.gear-item-title a {
  color: inherit;
  text-decoration: none;
}

.gear-item-title a:hover {
  color: #0066ff;
}

.gear-mini-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
}

.gear-mini-specs div {
  min-width: 0;
}

.gear-mini-specs dt {
  font-size: 11px;
  color: #64748b;
}

.gear-mini-specs dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.gear-item-actions {
  display: flex;
  gap: 8px;
}

.gear-item-actions .gear-btn-primary,
.gear-item-actions .gear-btn-secondary {
  flex: 1 1 0;
  padding: 9px 10px;
  font-size: 13px;
}

/* Detail Hero */
.gear-detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.gear-stage-box {
  background: radial-gradient(circle at 50% 40%, #f5f9ff, #e7effb);
  border: 1px solid #dbe6f6;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
}

.gear-stage-box img {
  max-height: 360px;
  width: auto;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.gear-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.gear-swatch-btn {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #1e293b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.gear-swatch-btn:hover {
  border-color: #0066ff;
  background: #eff6ff;
}

.gear-swatch-btn.is-active {
  background: #0066ff;
  border-color: #0057db;
  color: #ffffff;
}

.gear-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.gear-kpi-tile {
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.gear-kpi-label {
  font-size: 12px;
  color: #5b7091;
}

.gear-kpi-value {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 800;
  color: #0b1b34;
}

/* Two-column sections: Sweet Zone & Specs */
.gear-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: start;
}

.gear-svg-wrap {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}

.sz-svg {
  max-width: 100%;
  height: auto;
}

/* Tables */
.gear-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.gear-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.gear-table th,
.gear-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.gear-table th {
  color: #475d7d;
  font-weight: 650;
}

.gear-table td {
  color: #0b1b34;
  font-weight: 600;
}

.gear-table thead th {
  background: #f8fafc;
  color: #0b1b34;
  font-weight: 750;
}

/* Community Setup */
.gear-community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.gear-community-panel {
  padding: 16px;
  border-radius: 16px;
  background: #f8fbff;
  border: 1px solid #dce8fa;
}

.gear-community-panel h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 750;
  color: #0b1b34;
}

.gear-string-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.gear-string-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  color: #1e3a66;
}

/* Compare Tool & VS */
.gear-compare-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.gear-vs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-top: 18px;
}

.gear-vs-racket-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #dbe6f6;
}

.gear-vs-racket-card.is-b {
  background: #fff8f3;
  border-color: #fed7aa;
}

.gear-vs-racket-card img {
  width: 68px;
  height: auto;
  max-height: 112px;
  object-fit: contain;
  flex-shrink: 0;
}

.gear-vs-badge {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #0b1b34;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  margin: 0 auto;
}

.gear-choose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gear-choose-card {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid #dbe6f6;
  background: #f8fbff;
}

.gear-choose-card.is-b {
  border-color: #fed7aa;
  background: #fffaf5;
}

.gear-choose-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  color: #0b1b34;
}

.gear-choose-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: #334155;
  font-size: 14px;
  line-height: 1.6;
}

.gear-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.gear-link-card {
  display: block;
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  color: #0b1b34;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.gear-link-card:hover {
  border-color: #0066ff;
  background: #f0f6ff;
}

.gear-link-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.gear-link-card span {
  font-size: 13px;
  color: #536888;
}

.gear-cta-banner {
  background: linear-gradient(135deg, #0b1b34 0%, #123163 100%);
  color: #ffffff;
  border-radius: 24px;
  padding: 28px;
  margin-top: 28px;
}

.gear-cta-banner h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 28px);
  color: #ffffff;
}

.gear-cta-banner p {
  margin: 0 0 18px;
  color: #d7e6ff;
  max-width: 62ch;
  line-height: 1.7;
}

.gear-cta-banner .app-store-buttons {
  justify-content: flex-start;
}

.gear-cta-note {
  margin-top: 12px !important;
  margin-bottom: 0 !important;
  font-size: 13px;
  color: #a9c7f8 !important;
}

.gear-hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .gear-detail-grid,
  .gear-two-col,
  .gear-choose-grid,
  .gear-compare-controls,
  .gear-vs-hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .gear-main {
    padding-top: 86px;
  }

  .gear-container {
    padding: 0 14px;
  }

  .gear-hero,
  .gear-card,
  .gear-cta-banner {
    padding: 18px;
    border-radius: 18px;
  }
}
