/* ============================================================
   Supported devices — compatibility reference on the marketing site.
   Built on the site.css design tokens so it follows the visitor's
   dark/light choice without a second palette.
   ============================================================ */

.sd-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 56px 20px 88px;
}

/* ------------------------------------------------------------------ hero -- */

.sd-hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 34px;
}

.sd-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--text);
}

.sd-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-dim);
  margin: 0;
}

.sd-count {
  margin: 16px 0 0;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---------------------------------------------------- manufacturer wall -- */

.sd-brands {
  margin: 0 0 46px;
  text-align: center;
}

.sd-brands-title {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 18px;
}

.sd-brand-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 12px;
  max-width: 940px;
  margin: 0 auto;
}

/* Each tile paints a light plate so one logo asset works in both themes —
   brand wordmarks are dark-on-transparent, and on the dark theme they would
   otherwise disappear entirely. */
.sd-brand {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 88px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: border-color .18s, transform .18s, box-shadow .18s;
}

.sd-brand img {
  max-width: 100%;
  max-height: 40px;
  object-fit: contain;
  /* Resting state is a quiet grey wall; colour arrives on hover and on the
     selected tile, so the eye is drawn to one thing at a time. */
  filter: grayscale(1);
  opacity: .55;
  transition: filter .18s, opacity .18s;
}

/* Fallback when no logo file exists yet — set as a wordmark rather than left
   blank, so the wall reads as complete while logos are still being gathered. */
.sd-brand-word {
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -.01em;
  color: #5a6880;
  opacity: .78;
  transition: color .18s, opacity .18s;
}

.sd-brand-count {
  position: absolute;
  top: 8px;
  inset-inline-end: 10px;
  font-size: .68rem;
  font-weight: 700;
  color: #5a6880;
  background: rgba(15, 26, 44, .07);
  border-radius: 999px;
  padding: 1px 7px;
  transition: background .18s, color .18s;
}

.sd-brand:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--shadow-soft);
}

.sd-brand:hover img { filter: grayscale(0); opacity: 1; }
.sd-brand:hover .sd-brand-word { color: #101b30; opacity: 1; }

.sd-brand.is-on {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}

.sd-brand.is-on img { filter: grayscale(0); opacity: 1; }
.sd-brand.is-on .sd-brand-word { color: #101b30; opacity: 1; }

.sd-brand.is-on .sd-brand-count { background: var(--accent); color: #fff; }

.sd-brand-clear {
  display: inline-block;
  margin-top: 16px;
  font-size: .86rem;
  color: var(--accent);
  text-decoration: none;
}

.sd-brand-clear:hover { text-decoration: underline; }

/* ----------------------------------------------------------- groups ------ */

.sd-group { margin-bottom: 52px; }

.sd-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--text);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.sd-group-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
}

.sd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 18px;
}

/* ------------------------------------------------------------- card ------ */

.sd-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.18s, transform 0.18s;
}

.sd-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Product photography is shot on white, so the plate stays light in both
   themes — on the dark theme a transparent tile makes the devices look
   cut out and the shadows turn into grey smears. */
.sd-shot {
  background: #fff;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 168px;
}

.sd-shot img {
  max-width: 100%;
  max-height: 132px;
  object-fit: contain;
}

.sd-body {
  padding: 16px 17px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.sd-make-tag {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
}

.sd-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--text);
  line-height: 1.35;
}

.sd-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-dim);
}

/* Spec lines. Two shapes come out of the catalogue — a labelled pair and a
   plain bullet — so the label is a lead-in span rather than its own column,
   and a bullet with no label still sits flush. */
.sd-specs {
  list-style: none;
  margin: 6px 0 0;
  padding: 11px 0 0;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sd-specs li {
  position: relative;
  padding-inline-start: 13px;
  line-height: 1.5;
  color: var(--text);
}

.sd-specs li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.65;
}

.sd-spec-label {
  color: var(--text-dim);
  font-weight: 500;
}

.sd-spec-label::after {
  content: ":";
  margin-inline-end: 4px;
}

/* --------------------------------------------------------------- misc ---- */

.sd-empty {
  text-align: center;
  color: var(--text-dim);
  padding: 46px 0;
}

.sd-cta {
  text-align: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 40px 24px;
  margin-top: 12px;
}

.sd-cta h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--text);
}

.sd-cta p {
  margin: 0 auto 20px;
  max-width: 540px;
  color: var(--text-dim);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .sd-page { padding: 38px 16px 64px; }
  .sd-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
}
