/* ============================================================
   components.css — opt-in UI components extracted from app.css to
   keep page-chrome under 600 lines. Each block here is a variant
   class (.feature-sticky, .faq-section/.faq-item, .timeline-flow)
   that layers on top of base rules in app.css. Loaded AFTER
   app.css but BEFORE motion.css from base.html.
   ============================================================ */
/* ===== Sticky storytelling variant of feature-split ===== */
/* Pins the video while copy column scrolls past. Used on #story. */
.feature-split.feature-sticky {
  align-items: start;
  gap: clamp(2rem, 5vw, 4rem);
}
.feature-sticky .feature-copy {
  display: grid;
  gap: 2.5rem;
}
.feature-sticky .story-chapter {
  display: grid;
  gap: .6rem;
}
.feature-sticky .story-chapter h3 {
  color: var(--po-orange);
  font-size: clamp(1.2rem, 1.6vw, 1.45rem);
  margin: 0;
}
.feature-sticky .story-chapter p {
  margin: 0;
}
.feature-sticky .feature-video {
  position: sticky;
  top: 6rem;
  align-self: start;
}

/* ===== FAQ answer hub ===== */
.faq-section {
  background:
    radial-gradient(circle at 8% 18%, rgba(242, 184, 48, .16), transparent 22rem),
    radial-gradient(circle at 88% 82%, rgba(232, 114, 44, .11), transparent 24rem),
    linear-gradient(180deg, #fff 0%, #fffaf0 100%);
}
.faq-layout {
  align-items: start;
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  grid-template-columns: minmax(18rem, .72fr) minmax(0, 1.28fr);
}
.faq-intro {
  position: sticky;
  top: 6rem;
}
.faq-intro h2 {
  margin-bottom: 1rem;
}
.faq-cta {
  background:
    linear-gradient(145deg, rgba(26, 41, 66, .96), rgba(15, 26, 46, .98)),
    repeating-linear-gradient(-45deg, transparent 0 12px, rgba(242, 184, 48, .08) 12px 24px);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 1.25rem;
  box-shadow: 0 18px 44px rgba(13, 19, 28, .16);
  color: white;
  display: grid;
  gap: .75rem;
  margin-top: 1.6rem;
  overflow: hidden;
  padding: 1.25rem;
  position: relative;
}
.faq-cta::after {
  background: linear-gradient(90deg, var(--po-yellow), var(--po-orange));
  bottom: 0;
  content: "";
  height: 4px;
  left: 0;
  position: absolute;
  right: 0;
}
.faq-cta h3,
.faq-cta p {
  color: white;
  margin: 0;
}
.faq-cta p {
  color: rgba(255, 255, 255, .82);
}
.faq-cta .button {
  justify-self: start;
}
.faq-cta-badge {
  background: rgba(242, 184, 48, .95);
  border-radius: 999px;
  color: var(--po-navy);
  font-size: .72rem;
  font-weight: 950;
  justify-self: start;
  letter-spacing: .12em;
  padding: .35rem .65rem;
  text-transform: uppercase;
}
.faq-section .faq-list {
  counter-reset: faq;
  display: grid;
  gap: .85rem;
}
.faq-item {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(194, 207, 214, .95);
  border-radius: 1.15rem;
  box-shadow: 0 10px 26px rgba(13, 19, 28, .055);
  overflow: hidden;
  position: relative;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s var(--ease-cine, ease);
}
.faq-item::before {
  background: linear-gradient(180deg, var(--po-yellow), var(--po-orange));
  bottom: 0;
  content: "";
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  transition: opacity .25s ease;
  width: 5px;
}
.faq-item[open] {
  border-color: rgba(242, 184, 48, .95);
  box-shadow: 0 18px 42px rgba(242, 184, 48, .18);
}
.faq-item[open]::before {
  opacity: 1;
}
.faq-item summary {
  align-items: center;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font-size: 1.04rem;
  font-weight: 900;
  gap: .9rem;
  grid-template-columns: 2.35rem 1fr 2rem;
  list-style: none;
  padding: 1rem 1.15rem 1rem 1rem;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  align-items: center;
  background: var(--po-cream);
  border: 1px solid rgba(232, 114, 44, .22);
  border-radius: .85rem;
  color: var(--po-orange);
  content: counter(faq, decimal-leading-zero);
  counter-increment: faq;
  display: inline-flex;
  font-size: .76rem;
  font-weight: 950;
  height: 2.35rem;
  justify-content: center;
  letter-spacing: .08em;
  width: 2.35rem;
}
.faq-item summary::after {
  align-items: center;
  background: rgba(232, 114, 44, .1);
  border-radius: 999px;
  color: var(--po-orange);
  content: "+";
  display: inline-flex;
  font-size: 1.3rem;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  transition: transform .25s ease, background .25s ease;
  width: 2rem;
}
.faq-item[open] summary::before {
  background: linear-gradient(135deg, var(--po-yellow), var(--po-orange));
  color: white;
}
.faq-item[open] summary::after {
  background: var(--po-orange);
  color: white;
  content: "\2013";
  transform: rotate(180deg);
}
.faq-item summary:hover { background: rgba(242, 184, 48, .07); }
.faq-item summary:focus-visible {
  outline: 3px solid var(--po-yellow);
  outline-offset: -3px;
}
.faq-body {
  color: var(--gray-160);
  line-height: 1.65;
  padding: 0 1.35rem 1.25rem 4.25rem;
}
.faq-body p { margin: 0; }
@media (max-width: 850px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
  .faq-item summary {
    grid-template-columns: 2.2rem 1fr 2rem;
    padding: .95rem;
  }
  .faq-body { padding-left: 3.95rem; }
}
/* ============================================================
   Timeline (flow variant) — used by the "How to order" section.
   Adds numbered circles, SVG icons, a vertical gradient connector,
   and hover affordances. The base .timeline rules above still apply
   to any other use; .timeline-flow is opt-in.
   ============================================================ */
.timeline-flow {
  position: relative;
  gap: 1.1rem;
  padding-left: 0;
}
/* Vertical gradient connector line behind the numbered circles.
   Sits at the horizontal center of the 3rem-wide circle column. */
.timeline-flow::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 1.6rem;
  bottom: 1.6rem;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    var(--po-yellow) 0%,
    var(--po-orange) 100%
  );
  opacity: .55;
  z-index: 0;
}
.timeline-flow li {
  background: white;
  border-left: none;
  border: 1px solid var(--gray-50);
  border-radius: 1rem;
  box-shadow: 0 10px 28px rgba(13, 19, 28, .06);
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem 1.1rem .9rem;
  position: relative;
  z-index: 1;
  transition: transform .3s var(--ease-cine, ease),
              box-shadow .3s ease,
              border-color .3s ease;
}
.timeline-flow li:hover,
.timeline-flow li:focus-within {
  transform: translateX(4px);
  border-color: var(--po-yellow);
  box-shadow: 0 16px 36px rgba(242, 184, 48, .18);
}
.timeline-flow .step-num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--po-yellow), var(--po-orange));
  color: white;
  font-weight: 950;
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 16px rgba(242, 184, 48, .35),
    inset 0 0 0 3px rgba(255, 255, 255, .25);
  transition: transform .3s var(--ease-cine, ease),
              box-shadow .3s ease;
}
.timeline-flow li:hover .step-num,
.timeline-flow li:focus-within .step-num {
  transform: scale(1.06) rotate(-4deg);
  box-shadow:
    0 10px 22px rgba(242, 184, 48, .5),
    inset 0 0 0 3px rgba(255, 255, 255, .35);
}
.timeline-flow .step-body {
  display: grid;
  gap: .25rem;
}
.timeline-flow .step-head {
  align-items: center;
  display: flex;
  gap: .55rem;
  color: var(--ink);
}
.timeline-flow .step-head strong {
  color: var(--ink);
  font-size: 1.15rem;
}
.timeline-flow .step-icon {
  width: 20px;
  height: 20px;
  color: var(--po-orange);
  flex-shrink: 0;
  transition: transform .3s var(--ease-cine, ease);
}
.timeline-flow li:hover .step-icon,
.timeline-flow li:focus-within .step-icon {
  transform: translateX(3px);
}
.timeline-flow li > span:last-child {
  color: var(--gray-160);
}


/* ============================================================
   Custom options gallery — clean product cards matching the rest
   of the site. No fanned stack. No full-card image wallpaper.
   Just readable copy, strong photos, and a clear CTA.
   ============================================================ */
.custom-options-heading {
  margin-bottom: 1.5rem;
}
.custom-options-grid {
  margin-top: 1.5rem;
}
.custom-option-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.custom-option-photo {
  aspect-ratio: 4 / 3;
  background: var(--gray-10);
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}
.custom-option-body {
  display: grid;
  gap: .55rem;
  padding: 1.15rem;
}
.custom-option-body h3,
.custom-option-body p {
  margin: 0;
}
.custom-option-kicker {
  color: var(--po-orange);
  font-size: .76rem;
  font-weight: 950;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.custom-options-action {
  margin-top: 1.4rem;
}
