/* ═══════════════════════════════════════════════════════════════
   SILVA TENDER — product page (extends ../../styles.css)
   ═══════════════════════════════════════════════════════════════ */

/* ── Hero ─────────────────────────────────────────────────────── */
.p-hero { padding: calc(var(--nav-h) + clamp(56px, 8vw, 104px)) 0 clamp(72px, 9vw, 120px); }
.p-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
.p-wordmark { width: min(100%, 400px); margin-bottom: 34px; }
.p-title {
  font-size: clamp(2.3rem, 4.2vw, 3.7rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.p-sub { font-size: clamp(var(--t-md), 1.35vw, 1.15rem); max-width: 32em; margin-bottom: 36px; }

.p-hero-shot { position: relative; perspective: 1600px; }
.p-hero-device {
  position: absolute;
  right: -4%;
  bottom: -15%;
  z-index: 2;
  width: 19%;
  transform: rotate(7deg);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
  pointer-events: none;
}
.p-hero-shot .zoom-hint { right: auto; left: 14px; }
.p-hero-shot .window { transform: rotateY(-7deg) rotateX(3deg); transform-origin: left center; transition: transform 0.8s var(--ease); }
.p-hero-shot:hover .window { transform: rotateY(-2deg) rotateX(1deg); }

/* clickable screenshots */
.shot-zoom {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  border-radius: 14px;
  cursor: zoom-in;
}
.shot-zoom .window { display: block; }
.shot-zoom .window-bar { display: flex; }
.zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--hair-strong);
  background: rgba(7, 7, 13, 0.82);
  font-size: var(--t-xs);
  color: var(--steel-200);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.shot-zoom:hover .zoom-hint,
.shot-zoom:focus-visible .zoom-hint { opacity: 1; transform: none; }

/* ── Problem ──────────────────────────────────────────────────── */
.p-problem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.problem-list li {
  padding: 18px 0 18px 26px;
  border-top: 1px solid var(--hair);
  position: relative;
  font-size: var(--t-lg);
  line-height: 1.55;
  color: var(--steel-200);
}
.problem-list li:last-child { border-bottom: 1px solid var(--hair); }
.problem-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 31px;
  width: 10px;
  height: 1px;
  background: var(--danger);
  opacity: 0.8;
}

/* ── Feature tour ─────────────────────────────────────────────── */
.tour-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: clamp(28px, 4vw, 48px);
  border: 1px solid var(--hair-strong);
  border-radius: 14px;
  background: rgba(7, 7, 13, 0.55);
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tabs [role='tab'] {
  flex-shrink: 0;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--steel-400);
  transition: color 0.25s, background-color 0.25s;
}
.tour-tabs [role='tab']:hover { color: var(--steel-100); }
.tour-tabs [role='tab']:focus-visible { outline-offset: -3px; }
.tour-tabs [role='tab'][aria-selected='true'] {
  color: var(--steel-100);
  background: rgba(168, 184, 224, 0.12);
  box-shadow: inset 0 0 0 1px rgba(168, 184, 224, 0.35);
}

.tour-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.tour-panel:not([hidden]) { animation: tour-in 0.6s var(--ease); }
@keyframes tour-in { from { opacity: 0; transform: translateY(8px); } }
.tour-copy h3 { font-size: clamp(1.4rem, 2.2vw, 1.9rem); line-height: 1.15; margin-bottom: 16px; }
.tour-copy p { margin-bottom: 24px; max-width: 34em; }
.tour-points li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-top: 1px solid var(--hair);
  font-size: 15px;
  line-height: 1.5;
  color: var(--steel-200);
}
.tour-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 1px;
  background: var(--signal);
}

/* ── Workflow (a true sequence) ───────────────────────────────── */
.flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--hair-strong);
}
.flow li {
  padding: 26px 22px 6px 0;
  position: relative;
}
.flow li + li { padding-left: 22px; border-left: 1px solid var(--hair); }
.flow-num {
  display: block;
  font-family: var(--font-display);
  font-size: var(--t-xs);
  color: var(--signal);
  margin-bottom: 14px;
}
.flow h3 { font-size: 1.25rem; font-weight: 500; margin-bottom: 10px; }
.flow p { font-size: 15px; line-height: 1.6; color: var(--steel-400); }

/* ── Security ─────────────────────────────────────────────────── */
.p-security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.p-security-grid .display-2 { margin-bottom: 18px; }
.p-security-list li { padding-top: 14px; padding-bottom: 14px; font-size: 16px; }
.p-security-list li::before { top: 25px; }
.p-security-list li:last-child { border-bottom: 1px solid var(--hair); }

/* ── Audience ─────────────────────────────────────────────────── */
.p-audience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.audience { display: flex; flex-wrap: wrap; gap: 10px; }
.audience li {
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--hair-strong);
  background: rgba(7, 7, 13, 0.5);
  color: var(--steel-200);
  font-size: 15px;
}

/* ── Close ────────────────────────────────────────────────────── */
.p-close-panel {
  padding: clamp(40px, 6vw, 80px);
  border: 1px solid var(--hair-strong);
  border-radius: 22px;
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.45);
}
.p-close-panel .display-2 { max-width: 14em; margin-bottom: 18px; }
.p-close-panel .lead { margin-bottom: 32px; }

/* ── Lightbox ─────────────────────────────────────────────────── */
.lightbox {
  margin: auto;
  max-width: min(96vw, 1600px);
  max-height: 92vh;
  padding: 0;
  border: 1px solid var(--hair-strong);
  border-radius: 14px;
  background: var(--graphite);
  color: var(--steel-300);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(4, 4, 8, 0.88); backdrop-filter: blur(6px); }
.lightbox[open] { animation: fade-in 0.35s var(--ease); }
.lightbox img { width: 100%; max-height: calc(92vh - 52px); object-fit: contain; background: #000; }
.lightbox figcaption { padding: 14px 64px 14px 18px; font-size: var(--t-sm); }
.lightbox-close {
  position: absolute;
  right: 10px;
  bottom: 6px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--steel-200);
}
.lightbox-close:hover { background: rgba(255, 255, 255, 0.06); color: var(--steel-100); }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 980px) {
  .p-hero-grid,
  .p-problem-grid,
  .tour-panel,
  .p-security-grid,
  .p-audience-grid { grid-template-columns: 1fr; }
  .p-hero-device { right: -2%; bottom: -12%; width: 22%; }
  .p-hero-shot .window,
  .p-hero-shot:hover .window { transform: none; }
  .tour-panel .shot-zoom { order: -1; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li,
  .flow li + li { padding: 22px 18px 16px 0; border-left: 0; border-bottom: 1px solid var(--hair); }
}

@media (max-width: 600px) {
  .flow { grid-template-columns: 1fr; }
  .p-hero .hero-actions .btn { flex: 1 1 100%; }
  .tour-tabs { flex-wrap: wrap; width: 100%; }
  .tour-tabs [role='tab'] { flex: 1 1 auto; padding: 0 14px; }
}

/* touch screens can't hover, so always show the zoom hint */
@media (hover: none) {
  .zoom-hint { opacity: 1; transform: none; }
}

.nowrap { white-space: nowrap; }
