/* ============================================================
   PERFECTWEB — INNER PRODUCT PAGES
   Loaded IN ADDITION to main.css on product pages only.
   Reuses all design tokens from main.css (:root variables).
============================================================ */

[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }
.service-icon .emoji-icon { font-size: 26px; line-height: 1; }

/* ============================================================
   PAGE HERO (compact hero for inner pages)
============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 56px) 0 64px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.page-hero-inner { position: relative; z-index: 1; max-width: 760px; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-family: var(--font);
  font-size: 0.8rem;
  color: #64748B;
  margin-bottom: 24px;
}
.breadcrumb a { color: #94A3B8; transition: color var(--transition); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { color: #334155; }
.breadcrumb .current { color: #CBD5E1; font-weight: 600; }
.page-hero h1 {
  font-family: var(--font);
  font-size: clamp(2.1rem, 4.2vw, 3.15rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.16;
  letter-spacing: -0.03em;
}
.page-hero h1 .grad-text {
  background: linear-gradient(135deg, #60A5FA, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-hero-lead { font-size: 1.05rem; color: #94A3B8; max-width: 620px; line-height: 1.7; margin-top: 18px; }
.page-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.page-hero-note { margin-top: 24px; font-size: 0.8rem; color: #64748B; }

.section-jumplinks { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 40px 0 0; }
.section-jumplinks a {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  transition: all var(--transition);
}
.section-jumplinks a:hover { color: #fff; background: var(--grad); border-color: transparent; }

@media (max-width: 768px) {
  .page-hero { padding: calc(var(--nav-h) + 34px) 0 48px; }
  .page-hero-actions { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   PROTECTED SCREENSHOT FRAME
============================================================ */
.shot-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--navy);
  padding: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.shot-frame:hover { transform: translateY(-4px); box-shadow: 0 28px 70px rgba(15,23,42,.2); }
.shot-topbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 0 2px; }
.shot-dots { display: flex; gap: 5px; }
.shot-dots span { width: 8px; height: 8px; border-radius: 50%; }
.shot-dots .r { background: #FF5F57; }
.shot-dots .y { background: #FEBC2E; }
.shot-dots .g { background: #28C840; }
.shot-url {
  flex: 1;
  background: rgba(255,255,255,.06);
  border-radius: 6px;
  height: 24px;
  display: flex; align-items: center; gap: 6px;
  padding: 0 10px;
  font-size: 0.68rem; font-family: var(--font); color: #94A3B8;
  overflow: hidden; white-space: nowrap;
}
.shot-url svg { width: 10px; height: 10px; flex-shrink: 0; opacity: .8; }
.shot-img {
  width: 100%;
  aspect-ratio: 16/8;
  border-radius: 10px;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-color: #fff;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.shot-caption { margin-top: 16px; font-size: 0.82rem; color: var(--muted); text-align: center; line-height: 1.6; }

/* ============================================================
   ZIG-ZAG FEATURE ROWS
============================================================ */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row:last-child { border-bottom: none; padding-bottom: 8px; }
.feature-row.rev .feature-row-media { order: 2; }
.feature-row.rev .feature-row-text { order: 1; }
.feature-row-text h2, .feature-row-text h3 {
  font-family: var(--font);
  font-weight: 800;
  color: var(--navy);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.feature-row-text > p { font-size: 0.98rem; color: var(--muted); line-height: 1.75; max-width: 480px; }
.feature-row-list { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }

.product-features.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .feature-row .feature-row-media,
  .feature-row.rev .feature-row-media { order: 1; }
  .feature-row .feature-row-text,
  .feature-row.rev .feature-row-text { order: 2; }
  .product-features.cols-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   FAQ ACCORDION
============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; margin: 40px auto 0; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item.active { border-color: rgba(37,99,235,.35); box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}
.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--blue);
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.faq-item.active .faq-icon { transform: rotate(45deg); background: var(--grad); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; padding: 0 24px; }
.faq-answer p { font-size: 0.9rem; color: var(--muted); line-height: 1.75; padding-bottom: 22px; }
.faq-item.active .faq-answer { max-height: 400px; }

/* ============================================================
   FULL-WIDTH FEATURE BLOCK (text on top, screenshots below)
   Used when a section pairs 2-3 related screenshots together.
============================================================ */
.feature-row-full {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.feature-row-full:last-child { border-bottom: none; padding-bottom: 8px; }
.feature-row-full .feature-row-text { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.feature-row-full .feature-row-text > p { margin: 0 auto; max-width: 640px; }
.feature-row-full .feature-row-list {
  max-width: 900px;
  margin: 28px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  text-align: left;
}
.shot-duo, .shot-trio {
  display: grid;
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.shot-duo { grid-template-columns: 1fr 1fr; }
.shot-trio { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
  .feature-row-full .feature-row-list { grid-template-columns: 1fr; }
  .shot-duo, .shot-trio { grid-template-columns: 1fr; }
}
@media (min-width: 901px) and (max-width: 1100px) {
  .shot-trio { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RELATED PRODUCTS STRIP
============================================================ */
#related-products { background: var(--surface); }

@media (max-width: 768px) {
  .faq-question { padding: 17px 18px; font-size: 0.88rem; }
  .faq-answer { padding: 0 18px; }
}
