.page-products img {
  max-width: 100%;
  height: auto;
}

.page-products [id] {
  scroll-margin-top: calc(var(--header-h-mobile) + 16px);
}

/* ===== Hero ===== */
.page-products .hero-strip {
  position: relative;
  background: var(--color-primary);
  color: #ffffff;
  padding: 2rem 0 3rem;
  overflow: hidden;
}

.page-products .hero-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 55%, rgba(255, 107, 53, 0.16) 55% 75%, transparent 75%),
    radial-gradient(circle at 88% 20%, rgba(255, 107, 53, 0.22), transparent 32%);
  pointer-events: none;
}

.page-products .hero-strip__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

.page-products .hero-strip__main {
  min-width: 0;
}

.page-products .hero-strip__title {
  color: #ffffff;
  margin: 0.35rem 0 0.75rem;
}

.page-products .hero-strip__desc {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.82);
  max-width: 38rem;
  margin: 0;
}

.page-products .hero-strip__side {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin-top: 1.5rem;
  padding-top: 1.5rem;
}

.page-products .hero-strip__side-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 1.25rem;
  max-width: 20rem;
}

.page-products .hero-strip__badge {
  display: inline-block;
  background: var(--color-accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem;
  transform: skewX(-10deg);
  margin-bottom: 1rem;
}

.page-products .hero-strip__badge span {
  display: inline-block;
  transform: skewX(10deg);
}

.page-products .hero-strip__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 1.75rem;
}

.page-products .hero-metric__value {
  display: block;
  font-family: var(--font-head);
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-accent);
  letter-spacing: 0.02em;
}

.page-products .hero-metric__label {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
}

.page-products .hero-strip .breadcrumb a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.page-products .hero-strip .breadcrumb a:hover {
  color: #ffffff;
}

.page-products .hero-strip .breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.55);
}

.page-products .breadcrumb__sep {
  margin: 0 0.45rem;
  color: rgba(255, 255, 255, 0.4);
}

.page-products .section-tag--on-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-products .section-tag--on-dark::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-accent);
}

/* ===== Section headings ===== */
.page-products .section-head {
  max-width: 640px;
  margin-bottom: 1.75rem;
}

.page-products .section-head__title {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0.3rem 0 0.6rem;
}

.page-products .section-head__desc {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ===== Features ===== */
.page-products .features-section {
  position: relative;
  padding-top: 3.5rem;
  background: var(--color-bg);
}

.page-products .features-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--color-accent);
  clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%);
}

.page-products .features-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.page-products .features-panel {
  min-width: 0;
}

.page-products .features-panel__title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.12;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0.3rem 0 0.65rem;
}

.page-products .features-panel__intro {
  color: var(--color-text-secondary);
  font-size: 0.96rem;
  line-height: 1.6;
  max-width: 46ch;
  margin-bottom: 1.5rem;
}

.page-products .feature-list {
  display: grid;
  gap: 1rem;
}

.page-products .feature-item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.25rem 1.25rem 1.1rem;
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--color-accent);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.page-products .feature-item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 22px;
  height: 22px;
  background: var(--color-accent);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  opacity: 0.7;
}

.page-products .feature-item:hover,
.page-products .feature-item:focus-within {
  box-shadow: var(--shadow-lift);
  transform: translateX(4px);
}

.page-products .feature-item:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.page-products .feature-item__icon {
  grid-row: 1;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: rgba(10, 25, 47, 0.05);
  border: 1px solid rgba(10, 25, 47, 0.1);
  color: var(--color-primary);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.page-products .feature-item:hover .feature-item__icon,
.page-products .feature-item:focus-within .feature-item__icon {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}

.page-products .feature-item__index {
  grid-column: 1;
  grid-row: 2;
  text-align: center;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--color-muted);
}

.page-products .feature-item__body {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
}

.page-products .feature-item__body h3 {
  font-family: var(--font-head);
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin: 0 0 0.35rem;
}

.page-products .feature-item__brief {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

.page-products .feature-item__detail {
  margin-top: 0.35rem;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.page-products .feature-coverage {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
}

.page-products .feature-coverage li {
  background: rgba(10, 25, 47, 0.06);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid rgba(10, 25, 47, 0.1);
  transform: skewX(-5deg);
}

/* ===== Phone mockup ===== */
.page-products .phone-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.page-products .phone-stage__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.page-products .phone-frame {
  position: relative;
  width: min(300px, 100%);
  background: var(--color-primary);
  border-radius: 38px;
  padding: 12px 10px 14px;
  box-shadow: var(--shadow-lift), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.page-products .phone-frame::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 74px;
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  z-index: 2;
}

.page-products .phone-frame__statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 8px;
  color: var(--color-white);
  font-size: 11px;
  font-family: var(--font-mono);
}

.page-products .phone-statusbar__icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.page-products .phone-frame__screen {
  background: var(--color-bg);
  border-radius: 24px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  height: 580px;
  max-height: 70vh;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.page-products .phone-frame__screen:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.page-products .phone-screen {
  margin: 0;
  scroll-snap-align: start;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.page-products .phone-screen img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 2;
  object-fit: cover;
  background: var(--color-white);
}

.page-products .phone-screen figcaption {
  padding: 0.5rem 0.75rem;
  font-size: 0.72rem;
  color: var(--color-muted);
  text-align: center;
  background: #ffffff;
  border-top: 1px solid var(--color-border);
}

.page-products .phone-stage__hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-top: 0.6rem;
}

/* ===== Download ===== */
.page-products .download-section {
  background: #ffffff;
  padding-bottom: 3rem;
}

.page-products .download-platform {
  max-width: 720px;
  margin: 0 auto;
}

.page-products .tab-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.page-products .tab-button {
  font-family: var(--font-head);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.2rem;
  background: transparent;
  border: 0;
  color: var(--color-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.page-products .tab-button:hover {
  color: var(--color-primary);
}

.page-products .tab-button.is-active,
.page-products .tab-button[aria-selected="true"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.page-products .tab-panel {
  max-width: 640px;
  margin: 0 auto;
}

.page-products .download-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  overflow: hidden;
}

.page-products .download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: var(--color-accent);
  clip-path: polygon(0 0, 100% 0, 62% 100%, 0 100%);
}

.page-products .download-card__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}

.page-products .download-card__title {
  font-family: var(--font-head);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  margin: 0;
}

.page-products .download-card__sub {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.page-products .qr-code {
  width: 190px;
  height: 190px;
  margin: 1.25rem auto;
  padding: 0.6rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.page-products .qr-code svg {
  width: 100%;
  height: 100%;
  display: block;
}

.page-products .download-card__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}

.page-products .download-card__list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.page-products .download-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  transform: rotate(45deg);
}

.page-products .download-card__note {
  margin: 0.9rem 0 0;
  font-size: 0.78rem;
  color: var(--color-muted);
  text-align: center;
  border-top: 1px dashed var(--color-border);
  padding-top: 0.75rem;
}

/* ===== Install steps ===== */
.page-products .install-steps {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.page-products .install-steps__intro h3 {
  font-family: var(--font-head);
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.3rem;
}

.page-products .install-steps__intro p {
  color: var(--color-text-secondary);
  margin: 0;
}

.page-products .install-steps__grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.5rem;
  align-items: center;
}

.page-products .install-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: install-step;
}

.page-products .install-steps__list li {
  counter-increment: install-step;
  position: relative;
  padding-left: 2.75rem;
  padding-bottom: 1rem;
}

.page-products .install-steps__list li:last-child {
  padding-bottom: 0;
}

.page-products .install-steps__list li::before {
  content: counter(install-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  background: var(--color-accent);
  color: #ffffff;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  transform: skewX(-8deg);
}

.page-products .install-steps__list strong {
  display: block;
  font-family: var(--font-head);
  letter-spacing: 0.04em;
}

.page-products .install-steps__list p {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.page-products .install-steps__media {
  background: var(--color-bg);
  padding: 0.25rem;
}

.page-products .install-steps__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Version timeline ===== */
.page-products .version-section {
  background: var(--color-bg);
}

.page-products .version-timeline {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .version-timeline::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
}

.page-products .version-item {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1.75rem;
}

.page-products .version-item:last-child {
  margin-bottom: 0;
}

.page-products .version-item__dot {
  position: absolute;
  left: 7px;
  top: 0.55rem;
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  transform: rotate(45deg);
}

.page-products .version-item__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--color-accent);
  background: rgba(255, 107, 53, 0.09);
  border: 1px solid rgba(255, 107, 53, 0.28);
  padding: 0.22rem 0.6rem;
  transform: skewX(-8deg);
}

.page-products .version-item__body h3 {
  font-family: var(--font-head);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin: 0.35rem 0 0.4rem;
}

.page-products .version-item__body p {
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  max-width: 56ch;
  margin: 0;
}

/* ===== Scenarios ===== */
.page-products .scenario-section {
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.85);
  padding: 3rem 0;
}

.page-products .scenario-section .section-tag {
  color: var(--color-accent);
}

.page-products .section-head--light .section-head__title {
  color: #ffffff;
}

.page-products .section-head--light .section-head__desc {
  color: rgba(255, 255, 255, 0.7);
}

.page-products .scenario-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.page-products .scenario-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 3px solid var(--color-accent);
  transition: background 0.2s ease, transform 0.2s ease;
}

.page-products .scenario-card:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-3px);
}

.page-products .scenario-card__num {
  font-family: var(--font-head);
  font-size: 1.7rem;
  line-height: 1;
  color: var(--color-accent);
}

.page-products .scenario-card h3 {
  margin: 1rem 0 0.5rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.page-products .scenario-card p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

.page-products .related-link {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.page-products .related-link__desc {
  flex-basis: 100%;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

.page-products .scenario-section .btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: rgba(255, 255, 255, 0.92);
}

.page-products .scenario-section .btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ===== Tablet / Desktop ===== */
@media (min-width: 720px) {
  .page-products .scenario-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .page-products .related-link {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .page-products .related-link__desc {
    flex-basis: auto;
    margin-right: auto;
  }

  .page-products .install-steps__grid {
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .page-products .hero-strip {
    padding: 3.5rem 0 4rem;
  }

  .page-products .hero-strip__grid {
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
  }

  .page-products .hero-strip__side {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    padding-top: 0;
    padding-left: 2rem;
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .page-products .features-grid {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 3rem;
  }

  .page-products .feature-item__detail {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.25s ease, opacity 0.25s ease, margin-top 0.25s ease;
  }

  .page-products .feature-item:hover .feature-item__detail,
  .page-products .feature-item:focus-within .feature-item__detail {
    max-height: 9rem;
    opacity: 1;
    margin-top: 0.35rem;
  }

  .page-products .phone-frame__screen {
    height: 600px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products *,
  .page-products *::before,
  .page-products *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
