/* ═══════════════════════════════════════════════════════════
   products-page.css — /products (Ajvika Hardware)
   Built on main.css / theme-toggle.css variables, so light
   and dark themes work exactly like the rest of the site.
   ═══════════════════════════════════════════════════════════ */

.products-page #theme-toggle { display: none; }   /* page is always dark */

.products-page {
  --hw-line: color-mix(in srgb, var(--default-color), transparent 88%);
  --hw-soft: color-mix(in srgb, var(--accent-color), transparent 90%);
}

/* Buttons outside the hero get the same look as hero buttons */
.products-page .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 4px;
  transition: 0.3s;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}
.products-page .btn-get-started:hover { background: color-mix(in srgb, var(--accent-color), transparent 15%); color: var(--contrast-color); }

/* ── Hero ─────────────────────────────────────────────────── */
.products-hero { min-height: auto; padding: 80px 0 70px; }
.products-hero h1 { max-width: 16ch; }

.hw-lineup {
  border-radius: 16px;
  padding: 24px 22px 14px;
  border: 1px solid var(--hw-line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
.hw-lineup-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading-color);
  margin: 0 0 10px;
}
.hw-lineup ul { list-style: none; padding: 0; margin: 0; }
.hw-lineup li + li { border-top: 1px solid var(--hw-line); }
.hw-lineup a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  color: var(--heading-color);
  font-weight: 600;
  font-size: 15px;
}
.hw-lineup a:hover .hw-lineup-name { color: var(--accent-color); }
.hw-lineup-icon {
  width: 36px; height: 36px; flex: none;
  border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 17px;
}
.hw-lineup-name { flex: 1; transition: color .2s; }

.hw-status {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.hw-status.is-patent { background: var(--hw-soft); color: var(--accent-color); }
.hw-status.is-dev { background: rgba(249, 187, 21, .16); color: #F9BB15; }
html[data-theme="dark"] .hw-status.is-dev { background: rgba(249, 187, 21, .16); color: #F9BB15; }
.hw-status.is-ready { background: rgba(107, 185, 54, .18); color: #8fd35a; }
html[data-theme="dark"] .hw-status.is-ready { background: rgba(107, 185, 54, .18); color: #8fd35a; }

/* ── Stats ────────────────────────────────────────────────── */
.hw-stat-number { display: block; font-size: 2.4rem; font-weight: 800; color: var(--accent-color); line-height: 1; }
.hw-stat-label { margin: 6px 0 0; color: var(--default-color); font-size: 13px; font-weight: 600; }

/* ── Section subtitle under .section-title ────────────────── */
.section-title .hw-section-sub {
  font-family: var(--default-font);
  font-size: 16px;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  max-width: 620px;
  margin: 10px auto 0;
}

/* ── SmartCharge intro card ───────────────────────────────── */
.hw-intro {
  height: 100%;
  border-radius: 16px;
  padding: 32px;
  border-left: 5px solid var(--accent-color);
  box-shadow: 0 4px 24px rgba(2, 200, 245, .08);
}
.hw-intro-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--hw-soft);
  color: var(--accent-color);
  font-size: 26px;
  margin-bottom: 18px;
}
.hw-intro-photo { margin: 0 0 20px; border-radius: 14px; overflow: hidden; background: #070f1a; }
.hw-intro-photo img { display: block; width: 100%; height: 260px; object-fit: cover; object-position: center 30%; }
.hw-intro-photo figcaption { padding: 8px 12px; font-size: 12.5px; color: #a9b8c9; }
.hw-hook {
  font-family: var(--heading-font);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--heading-color);
  line-height: 1.5;
}
.hw-intro h3, .hw-panel h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading-color);
  margin: 22px 0 10px;
}
.hw-panel h3 { margin-top: 0; }
.hw-intro p { line-height: 1.75; }
.hw-who { margin-bottom: 24px; }
.hw-cta-btn { font-size: 14px !important; }

/* ── Feature tiles ────────────────────────────────────────── */
.hw-feature {
  height: 100%;
  border-radius: 14px;
  padding: 22px;
  border: 1px solid var(--hw-line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.hw-feature:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.hw-feature > i {
  font-size: 26px;
  color: var(--accent-color);
  display: block;
  margin-bottom: 12px;
}
.hw-feature h4 { font-size: 1rem; font-weight: 700; color: var(--heading-color); margin: 0 0 6px; }
.hw-feature p { font-size: 14px; line-height: 1.65; margin: 0; }

/* ── Panels: steps + comparison ───────────────────────────── */
.hw-panel {
  height: 100%;
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--hw-line);
}

.hw-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.hw-steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 48px;
  line-height: 1.6;
}
.hw-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-color);
  color: var(--contrast-color);
  font-weight: 700; font-size: 14px;
}
.hw-steps li:not(:last-child)::after {
  content: "";
  position: absolute; left: 15px; top: 32px; bottom: 2px;
  width: 2px;
  background: var(--hw-soft);
}
.hw-steps li:last-child { padding-bottom: 0; }

.hw-table-wrap { overflow-x: auto; }
.hw-compare { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 460px; }
.hw-compare th {
  text-align: left;
  font-weight: 700;
  color: var(--heading-color);
  padding: 10px 12px;
  border-bottom: 2px solid var(--hw-line);
}
.hw-compare th:last-child { color: var(--accent-color); border-bottom-color: var(--accent-color); }
.hw-compare td { padding: 11px 12px; border-bottom: 1px solid var(--hw-line); vertical-align: top; line-height: 1.55; }
.hw-compare td:last-child { background: color-mix(in srgb, var(--accent-color), transparent 95%); color: var(--heading-color); }
.hw-compare td i { margin-right: 4px; }
.hw-compare td:first-child i { color: color-mix(in srgb, var(--default-color), transparent 35%); }
.hw-compare td:last-child i { color: var(--accent-color); }

.hw-callout {
  border-radius: 12px;
  padding: 20px 24px;
  background: var(--hw-soft);
  border-left: 4px solid var(--accent-color);
  line-height: 1.75;
}
.hw-callout strong { color: var(--heading-color); }

/* ── Feedback Device: photos, rating buttons, app screenshot ─ */
.hw-product-shot {
  position: relative;
  margin: 0;
  padding: 36px 24px 22px;
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
  /* dark stage in both light and dark theme */
  background: radial-gradient(ellipse at 50% 38%, #1d3654 0%, #0e1d30 55%, #070f1a 100%);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 20px 50px rgba(6, 15, 26, .28);
}
.hw-product-shot::before {            /* soft green glow behind the device */
  content: "";
  position: absolute;
  left: 50%; top: 44%;
  width: 70%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(107, 185, 54, .22), transparent 65%);
  pointer-events: none;
}
.hw-product-shot::after {             /* floor reflection line */
  content: "";
  position: absolute;
  left: 15%; right: 15%; bottom: 58px;
  height: 18px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .55), transparent 70%);
  pointer-events: none;
}
.hw-product-shot picture, .hw-product-shot img { position: relative; z-index: 1; }
.hw-product-shot img {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .6));
}
.hw-product-shot figcaption { position: relative; z-index: 1; margin-top: 16px; font-size: 13px; color: #a9b8c9; }
.hw-photo {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-color);
  border: 1px solid var(--hw-line);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .07);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.hw-photo img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.hw-photo figcaption { padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--heading-color); }
.hw-photo-note { margin: 12px 2px 0; font-size: 13px; color: color-mix(in srgb, var(--default-color), transparent 25%); }
.hw-photo-note i { margin-right: 4px; }

.hw-rating-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 6px; }
.hw-rating {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 4px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--r), transparent 60%);
  background: color-mix(in srgb, var(--r), transparent 90%);
  color: var(--heading-color);
  font-size: 13px; font-weight: 700;
  text-align: center;
}
.hw-rating-emoji { font-size: 24px; line-height: 1; }

.hw-phone {
  margin: 0 auto;
  max-width: 300px;
  padding: 10px;
  border-radius: 30px;
  background: #0b0f17;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}
.hw-phone img { width: 100%; height: auto; display: block; border-radius: 22px; }
html[data-theme="dark"] .hw-phone { box-shadow: 0 18px 50px rgba(0, 0, 0, .6); border: 1px solid rgba(255, 255, 255, .08); }

.hw-block-title { font-size: 1.35rem; font-weight: 700; color: var(--heading-color); margin: 0 0 18px; }

@media (max-width: 575px) {
  .hw-rating { font-size: 12px; padding: 10px 2px; }
}

/* ── Dark product visuals (all hardware sections) ─────────── */
.hw-visual {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #070f1a;
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 20px 50px rgba(6, 15, 26, .28);
}
.hw-visual img { display: block; width: 100%; height: auto; }

.hw-place {
  margin: 0;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #0b1622;
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 12px 34px rgba(6, 15, 26, .22);
  transition: transform .25s ease;
}
.hw-place:hover { transform: translateY(-4px); }
.hw-place img { display: block; width: 100%; height: auto; }
.hw-place figcaption { padding: 16px 18px 18px; }
.hw-place h4 { color: #f1f5f9; font-size: 1.02rem; font-weight: 700; margin: 0 0 6px; }
.hw-place p { color: #a9b8c9; font-size: 14px; line-height: 1.6; margin: 0; }

.hw-led {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #070f1a;
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 12px 34px rgba(6, 15, 26, .22);
}
.hw-led img { display: block; width: 100%; height: auto; }
.hw-led figcaption { padding: 10px 12px 12px; font-size: 13.5px; font-weight: 600; color: #cbd5e1; text-align: center; }

.hw-signals { margin: 16px 0 18px; border-radius: 12px; overflow: hidden; background: #0b1420; }
.hw-signals img { display: block; width: 100%; height: auto; }

.hw-phone.hw-phone-sm { max-width: 250px; }
.hw-screen-caption { text-align: center; font-size: 14px; font-weight: 600; color: var(--heading-color); margin: 14px auto 0; max-width: 26ch; }

/* ── Cards in "More products" (reuses .ajvika-platform-card) ─ */
#more .apc-title h3 { font-size: 1.05rem; }

/* ── CTA ──────────────────────────────────────────────────── */
.hw-cta {
  border-radius: 16px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--hw-line);
  border-left: 5px solid var(--accent-color);
  box-shadow: 0 4px 24px rgba(2, 200, 245, .08);
}
.hw-cta h2 { font-size: 1.6rem; font-weight: 700; color: var(--heading-color); margin: 0 0 8px; }
.hw-cta p { margin: 0; max-width: 60ch; }

@media (max-width: 575px) {
  .products-hero { padding: 50px 0; }
  .hw-intro, .hw-panel { padding: 22px; }
  .hw-cta { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hw-feature { transition: none; }
  .hw-feature:hover { transform: none; }
}
