/* ==========================================
   Sample Print page (sample-print.html)
   Builds on about.css (badge, hero text, cards, call-to-action banner); only the layout and the
   answer chips live here. Behaviour: scripts/modules/sample-offer.js
   ========================================== */

/* --------------------------------------------------------------------------
   Hero: the pitch beside a picture
   -------------------------------------------------------------------------- */
.sample-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  margin-bottom: 72px;
}

.sample-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.sample-hero-media {
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
  overflow: hidden;
}

.sample-hero-media img {
  display: block;
  width: 100%;
  height: auto;
}

.sample-hero-caption {
  padding: 12px 18px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   What we see + how it works
   -------------------------------------------------------------------------- */
.sample-story-grid {
  align-items: stretch;
}

.sample-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sample-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.sample-step-num {
  flex: 0 0 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 800;
  color: rgb(var(--c-white));
  background: var(--accent-gradient);
}

/* --------------------------------------------------------------------------
   Request: two optional questions as tap-to-pick chips, then the buttons
   -------------------------------------------------------------------------- */
.sample-request {
  max-width: 920px;
  margin: 0 auto;
  scroll-margin-top: 96px;
}

.sample-choices {
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.sample-legend {
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.sample-chip-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* The real radio stays focusable for keyboards and screen readers; the label is what you see */
.sample-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.sample-option {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--glass-border);
  background: rgb(var(--c-white) / 0.04);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: var(--transition-fast);
}

.sample-option:hover {
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
}

.sample-radio:checked + .sample-option {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  background: rgb(var(--c-cyan) / 0.12);
}

.sample-radio:checked + .sample-option::before {
  content: '✓';
  margin-right: 6px;
  font-weight: 800;
  color: var(--accent-cyan);
}

.sample-radio:focus-visible + .sample-option {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.about-cta-banner .sample-fineprint {
  max-width: 620px;
  margin: 22px auto 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
}

[data-theme="light"] .sample-option {
  background: rgb(var(--c-white));
  border-color: rgb(var(--c-ink) / 0.14);
}

[data-theme="light"] .sample-radio:checked + .sample-option {
  background: rgb(var(--c-sky) / 0.1);
}

/* --------------------------------------------------------------------------
   Tablets and phones
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .sample-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 56px;
    text-align: center;
  }

  .sample-hero-actions {
    justify-content: center;
  }

  .sample-hero-media {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .sample-hero-actions .btn,
  .sample-request .about-cta-actions .btn {
    width: 100%;
  }

  .about-cta-banner.sample-request {
    padding: 32px 18px;
  }
}
