/* ===================================================================
   product.css — rules specific to /product/
   Loaded AFTER /styles.css. Contains only /product/'s own sections
   plus the places its design intentionally differs from the shared
   stylesheet (left-aligned hero and section headings).
   =================================================================== */
/* Account for fixed nav (72px) + sticky sub-nav (~50px) when scrolling to anchors */
section[id], a[id] {
  scroll-margin-top: 140px;
}

/* ─────────── STICKY SUB-NAV ─────────── */
.subnav {
  position: sticky;
  top: 72px;
  z-index: 90;
  background: rgba(245, 240, 232, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule-soft);
  padding: 0.85rem 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.8rem;
}
.subnav-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.subnav-links {
  display: flex;
  gap: 1.75rem;
}
.subnav-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.subnav-link:hover {
  color: var(--sage);
  border-bottom-color: var(--sage);
}

/* ─────────── HERO (Affinity product-page pattern: small, no big visual) ─────────── */
.hero {
  /* shared .hero centres its text; product's hero is left-aligned */
  text-align: left;
  padding: 8rem 3rem 5rem;
  background: var(--sage);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 30%, rgba(200, 168, 75, 0.12), transparent 65%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(15, 26, 20, 0.25), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  text-align: left;
}
.hero-eyebrow {
  /* shared adds a fadeUp entrance; product's hero is static */
  animation: none;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  background: var(--paper);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
}
h1 {
  /* shared centres h1 with auto side margins; product's is left-aligned */
  margin-left: 0;
  margin-right: 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 1.25rem;
  max-width: 800px;
}
.hero-sub {
  /* shared uses `margin: 0 auto 2.5rem` and a fadeUp entrance */
  margin-left: 0;
  margin-right: 0;
  animation: none;
  font-size: 1.1rem;
  color: rgba(245, 240, 232, 0.85);
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 2rem;
}
.hero-cta-row {
  /* shared centres the row and adds a fadeUp entrance */
  justify-content: flex-start;
  animation: none;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ─────────── SECTION BASE ─────────── */
.section-eyebrow {
  /* shared default is centred; product sections are left-aligned */
  text-align: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}
.section-title {
  /* shared default is centred; product sections are left-aligned */
  text-align: inherit;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.25rem;
  max-width: 720px;
}
.section-sub {
  /* shared default is centred with 5rem bottom margin */
  text-align: inherit;
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
  line-height: 1.6;
}

/* ─────────── WORKFLOW SECTION (repeats for capture, extract, views) ─────────── */
.workflow {
  padding: 8rem 3rem;
}
.workflow-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.workflow-header {
  text-align: left;
  max-width: 720px;
  margin-bottom: 4rem;
}
.workflow-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.workflow-grid.reverse {
  grid-template-columns: 1fr 1.1fr;
}
.workflow-grid.reverse .workflow-visual { order: 1; }
.workflow-grid.reverse .workflow-points { order: 2; }

.workflow-points {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.wp {
  border-top: 1px solid var(--rule);
  padding-top: 1.5rem;
}
.wp-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  line-height: var(--leading-snug);
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.wp-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Screenshot placeholders */
.workflow-visual {
  position: sticky;
  top: 8rem;
}
.screenshot {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 10px;
  box-shadow:
    0 20px 48px rgba(15, 26, 20, 0.10),
    0 6px 16px rgba(15, 26, 20, 0.06);
}
.screenshot-placeholder {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(45deg,
      rgba(61, 92, 66, 0.03),
      rgba(61, 92, 66, 0.03) 14px,
      rgba(61, 92, 66, 0.06) 14px,
      rgba(61, 92, 66, 0.06) 28px);
  border: 1px dashed var(--sage-light);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  padding: 2rem;
}
.screenshot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
}

/* ─────────── SHIPPING NEXT ─────────── */
.shipping-next {
  padding: 8rem 3rem;
  background: var(--paper-warm);
}
.shipping-next-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.shipping-next-header {
  max-width: 720px;
  margin-bottom: 3.5rem;
}
.shipping-next-subhead {
  margin: 3rem 0 1.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--rule);
}
.shipping-next-subhead:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.shipping-next-subtitle {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: var(--leading-snug);
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 0.5rem;
}
.shipping-next-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 3rem;
}
.sn-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--rule);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.sn-icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 4px;
}
.sn-icon svg { width: 100%; height: 100%; }
.sn-item-text {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.55;
}
.sn-item-text strong {
  color: var(--ink);
  font-weight: 500;
  display: block;
  margin-bottom: 0.2rem;
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.sn-item-text span {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.cta-section h2 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin-bottom: 1rem;
  position: relative;
}
@media (max-width: 900px) {

  /* Sub-nav: horizontal scroll rail instead of wrap */
  .subnav {
    padding: 0.6rem 1rem;
    gap: 0.75rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .subnav::-webkit-scrollbar { display: none; }
  .subnav-label {
    flex-shrink: 0;
    font-size: 0.65rem;
  }
  .subnav-links {
    gap: 1rem;
    flex-wrap: nowrap;
    flex-shrink: 0;
  }
  .subnav-link {
    flex-shrink: 0;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .hero { padding: 6rem 1.25rem 3.5rem; }
  .hero-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.13em;
    padding: 0.4rem 0.75rem;
    max-width: 100%;
    line-height: 1.4;
  }
  .workflow { padding: 4rem 1.5rem; }
  .workflow-grid,
  .workflow-grid.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .workflow-grid.reverse .workflow-visual { order: 1; }
  .workflow-grid.reverse .workflow-points { order: 2; }
  .workflow-visual { position: static; }
  .shipping-next { padding: 4rem 1.5rem; }
  .shipping-next-grid { grid-template-columns: 1fr; gap: 0; }
}
