/* Homepage and feature catalog. Shared colors, typography, and navigation
   remain in styles.css; these layouts do not affect the beta or help pages. */
.showcase-page [id] {
  scroll-margin-top: 96px;
}
.showcase-page
  :where(
    .home-hero,
    .home-intro,
    .product-section,
    .home-insights,
    .home-steps,
    .home-faq,
    .catalog-intro
  )
  p {
  color: var(--gray-600);
}
.showcase-page .section-badge {
  font-size: 0.875rem;
}
.showcase-page .text-link {
  display: inline-block;
  color: var(--red-dark);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  margin-top: 20px;
}
.showcase-page .nav-links {
  gap: 24px;
}
.home-hero {
  padding: 114px 0 48px;
  background: linear-gradient(125deg, #fff 45%, var(--red-light));
}
.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}
.home-hero h1 {
  font-size: clamp(2.2rem, 4.1vw, 3.4rem);
  line-height: 1.12;
}
.home-hero-copy > p:not(.availability) {
  font-size: 1.125rem;
  max-width: 510px;
  margin-top: 24px;
}
.showcase-page .availability {
  font-size: 0.875rem;
  line-height: 1.65;
  margin-top: 16px;
}
.home-trust {
  border-block: 1px solid var(--gray-200);
  padding: 22px 0;
}
.home-trust .container {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--gray-600);
}
.home-trust a {
  color: inherit;
  text-underline-offset: 4px;
}
.home-intro {
  padding: 64px 0 16px;
  text-align: center;
}
.home-intro p {
  margin: 16px auto 24px;
  max-width: 660px;
  font-size: 1.0625rem;
}
.use-case-links,
.catalog-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.use-case-links a,
.catalog-links a {
  color: var(--gray-700);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.875rem;
  text-decoration: none;
}
.use-case-links a:hover,
.catalog-links a:hover {
  border-color: var(--red);
  color: var(--red-dark);
}
.product-section {
  padding: 52px 0;
}
.product-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}
.product-tint {
  background: var(--gray-50);
}
.product-copy h2 {
  font-size: clamp(1.9rem, 3.1vw, 2.65rem);
}
.product-copy > p {
  margin-top: 20px;
  max-width: 520px;
  font-size: 1.0625rem;
}
.product-points {
  list-style: none;
  margin-top: 24px;
  display: grid;
  gap: 14px;
  color: var(--gray-700);
}
.product-points:empty {
  display: none;
}
.product-points li {
  position: relative;
  padding-left: 24px;
}
.product-points li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
}
/* Full captures always have the same scale. Cropped panels retain their own
   aspect ratio, sit in a separate detail treatment, and are explicitly labeled. */
.product-gallery {
  min-width: 0;
  width: 100%;
  max-width: 420px;
  margin: auto;
}
.product-slide[hidden],
.gallery-controls[hidden] {
  display: none;
}
.capture-stage {
  min-height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  border-radius: 28px;
  background: linear-gradient(150deg, #fbeef0, #edf2f8);
}
.capture {
  position: relative;
  display: block;
  cursor: zoom-in;
  padding: 0;
  background: #fff;
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.13);
  flex-shrink: 0;
}
.capture img {
  display: block;
  width: 100%;
  height: auto;
}
.capture-screen {
  width: 216px;
  max-width: 100%;
  aspect-ratio: 840 / 1871;
  border: 5px solid #fff;
  border-radius: 25px;
}
.capture-screen img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.capture-detail {
  width: 290px;
  max-width: 100%;
  border-radius: 12px;
}
.capture-enlarge {
  position: absolute;
  right: 7px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gray-800);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  box-shadow: var(--shadow);
}
.product-slide figcaption {
  min-height: 104px;
  text-align: center;
  padding: 12px 8px 0;
  color: var(--gray-700);
  font-size: 0.875rem;
  line-height: 1.5;
}
.capture-label {
  display: block;
  color: var(--red-dark);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 2px;
}
.zoom-hint {
  color: var(--gray-500);
  display: block;
  font-size: 0.8125rem;
  margin-top: 4px;
}
.gallery-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 12px;
}
.gallery-controls button {
  width: 44px;
  height: 44px;
  background: #fff;
  color: var(--gray-800);
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
}
.gallery-controls button:hover {
  border-color: var(--red);
  color: var(--red);
}
.gallery-position {
  font-size: 0.875rem;
  color: var(--gray-600);
  min-width: 55px;
  text-align: center;
}
.home-hero .capture-stage {
  background: transparent;
  padding: 0;
  min-height: 0;
}
.home-hero .capture-screen {
  width: 226px;
}
.home-hero .product-slide figcaption {
  min-height: 0;
  max-width: 300px;
  margin: auto;
}
.home-hero .capture-label,
.home-hero .zoom-hint {
  display: none;
}
.home-insights,
.home-steps,
.home-faq {
  padding: 64px 0;
}
.insights-summary,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}
.insights-summary p {
  margin-top: 20px;
}
.insight-explanation {
  background: #fff;
  border: 1px solid var(--gray-200);
  padding: 30px;
  border-radius: 20px;
}
.insight-explanation .care-note {
  border-top: 1px solid var(--gray-200);
  padding-top: 20px;
  font-size: 0.9375rem;
}
.home-steps .section-header {
  margin-bottom: 32px;
}
.simple-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}
.simple-steps span {
  display: block;
  color: var(--red);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.simple-steps p {
  margin-top: 12px;
}
.section-action {
  text-align: center;
  margin-top: 32px;
}
.faq-list details {
  border-bottom: 1px solid var(--gray-200);
  padding: 18px 0;
}
.faq-list details:first-child {
  padding-top: 0;
}
.faq-list summary {
  font-weight: 600;
  cursor: pointer;
  padding: 5px 0;
}
.faq-list p {
  margin-top: 12px;
}
.faq-list a {
  color: var(--red-dark);
}
.home-cta {
  padding: 56px 0;
}
.home-cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--red-dark);
  padding: 44px;
  border-radius: 24px;
  color: #fff;
}
.showcase-page .home-cta-panel p {
  color: #fff;
  margin-top: 18px;
}
.home-cta-panel .btn {
  flex-shrink: 0;
}
.home-cta-panel .section-badge {
  background: #ffffff1a;
  color: #fff;
}
.home-blog {
  padding: 12px 0 64px;
}
.home-blog-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
}
.home-blog .blog-card-image-placeholder {
  display: none;
}
.home-blog .blog-card-excerpt {
  display: none;
}
.home-blog .blog-card-title {
  font-size: 1.0625rem;
}
.catalog-intro {
  padding: 104px 0 40px;
  text-align: center;
}
.catalog-intro h1 {
  margin: 24px 0 16px;
}
.catalog-intro p {
  max-width: 640px;
  margin: auto;
}
.catalog-intro .text-link {
  margin-top: 0;
}
.catalog-links {
  gap: 8px;
}
.catalog-links a {
  padding: 8px 14px;
}
/* Native dialog supplies focus containment and returns focus to the opener. */
.screenshot-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  padding: 56px 20px 20px;
  border: none;
  border-radius: 16px;
  max-width: min(94vw, 680px);
  max-height: 94dvh;
  background: var(--gray-900);
  color: #fff;
  overflow: auto;
}
.screenshot-dialog::backdrop {
  background: rgba(15, 23, 42, 0.88);
}
.screenshot-dialog img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 76dvh;
  margin: auto;
  object-fit: contain;
}
.screenshot-dialog p {
  color: #fff;
  margin: 16px auto 0;
  font-size: 0.875rem;
  max-width: 500px;
  text-align: center;
}
.screenshot-dialog .zoom-close {
  position: absolute;
  top: 8px;
  right: 12px;
}
@media (max-width: 1024px) {
  .showcase-page .nav-links {
    gap: 14px;
  }
  .home-hero-grid,
  .product-row,
  .insights-summary,
  .faq-layout {
    gap: 32px;
  }
}
@media (max-width: 900px) {
  .showcase-page .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
  }
  .showcase-page .nav-links.active {
    display: flex;
  }
  .showcase-page .nav-toggle {
    display: block;
  }
}
@media (max-width: 700px) {
  .home-hero {
    padding: 104px 0 28px;
  }
  .home-hero-grid,
  .product-row,
  .insights-summary,
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  .home-hero h1 {
    font-size: clamp(2rem, 7.5vw, 2.65rem);
  }
  .home-hero-copy {
    text-align: left;
  }
  .home-hero-copy .section-badge {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
  .home-hero-copy > p:not(.availability) {
    margin-top: 18px;
    font-size: 1rem;
  }
  .showcase-page .hero-actions {
    justify-content: flex-start;
    gap: 10px;
    margin-top: 22px;
  }
  .showcase-page .hero-actions .btn {
    padding: 12px 16px;
    font-size: 0.875rem;
    justify-content: center;
  }
  .home-hero .capture-screen {
    width: 208px;
  }
  .home-trust .container {
    gap: 8px 18px;
    justify-content: center;
    text-align: center;
  }
  .home-intro {
    padding: 40px 0 8px;
  }
  .use-case-links {
    gap: 8px;
  }
  .use-case-links a {
    padding: 8px 12px;
  }
  .product-section {
    padding: 40px 0;
  }
  .product-copy h2 {
    font-size: 1.875rem;
  }
  .product-copy > p {
    font-size: 1rem;
    margin-top: 16px;
  }
  .product-points {
    margin-top: 18px;
    gap: 10px;
  }
  .product-gallery {
    max-width: 360px;
  }
  .capture-stage {
    min-height: 490px;
    padding: 12px;
  }
  .capture-screen {
    width: 208px;
  }
  .product-slide figcaption {
    min-height: 104px;
  }
  .home-insights,
  .home-steps,
  .home-faq {
    padding: 40px 0;
  }
  .simple-steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .simple-steps li {
    position: relative;
    padding-left: 44px;
  }
  .simple-steps span {
    position: absolute;
    left: 0;
    top: 0;
  }
  .home-cta {
    padding: 36px 0;
  }
  .home-cta-panel {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 24px;
  }
  .home-cta-panel h2 {
    font-size: 1.75rem;
  }
  .home-blog-heading {
    display: block;
  }
  .home-blog .blog-grid {
    gap: 16px;
  }
  .home-blog .blog-card-body {
    padding: 20px;
  }
  .catalog-intro {
    padding-top: 100px;
  }
  .insight-explanation {
    padding: 24px;
  }
}
