/* ── Story Arc (Pain → Solution) ─────────── */
.story-arc {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--surface) 50%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  max-width: none;
}

.story-narrative {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.story-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.story-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.12);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.12); }
  50% { box-shadow: 0 0 0 8px rgba(194, 65, 12, 0); }
}

.story-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: var(--tracking-heading);
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 56px;
  max-width: 760px;
}

.story-chapter {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.story-question em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-warm) 50%, var(--accent) 100%);
  background-size: 200% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.story-frames {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: stretch;
}

.story-frame {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}

.story-frame.before-story {
  border-color: rgba(180, 83, 9, 0.25);
}

.story-frame.before-story::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(180, 83, 9, 0.5), transparent);
}

.story-frame.after-story {
  border-color: rgba(21, 128, 61, 0.3);
}

.story-frame.after-story::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(21, 128, 61, 0.6), transparent);
}

.story-frame-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.story-frame-tag {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 4px 12px;
  border-radius: 20px;
}

.tag-problem-zh, .tag-problem-en {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.tag-solution-zh, .tag-solution-en {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid rgba(21, 128, 61, 0.25);
}

.story-frame-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.story-frame-point {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
}

.story-frame-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 500;
  flex-shrink: 0;
}

.story-frame-icon.sad {
  background: #fef2f2;
  color: #b91c1c;
}

.story-frame-icon.happy {
  background: var(--green-light);
  color: var(--green);
}

.story-frame-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.story-frame-text strong {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.story-pt-sub-zh, .story-pt-sub-en {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.story-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--accent);
  align-self: center;
}

.story-arrow svg {
  width: 64px;
  height: 24px;
}

.story-arrow-label {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--accent);
}

/* ── Testimonials ─────────── */
.story-testimonials {
  background: var(--bg);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 0 32px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: border-color 300ms, transform 300ms var(--ease-spring), box-shadow 300ms;
}

.testimonial-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(28, 25, 23, 0.08);
}

.testimonial-quote {
  width: 28px;
  height: 28px;
  color: var(--accent);
  opacity: 0.25;
  flex-shrink: 0;
}

.testimonial-quote-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  font-weight: 400;
}

.testimonial-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-name {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.testimonial-context {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

.testimonial-byline {
  text-align: center;
  margin-top: 48px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  position: relative;
}

.testimonial-byline::before,
.testimonial-byline::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1px;
  background: rgba(28, 25, 23, 0.12);
  vertical-align: middle;
  margin: 0 16px;
}

/* ── Closing Arc ─────────── */
.closing-arc {
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%,
      rgba(194, 65, 12, 0.06),
      transparent 60%),
    var(--bg);
  text-align: center;
}

.closing-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.closing-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.closing-title {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 600;
  letter-spacing: var(--tracking-heading);
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 20px;
  text-wrap: balance;
}

.closing-title em {
  font-style: normal;
  color: var(--accent);
}

.closing-body {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 36px;
}

.closing-body code {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  background: var(--surface2);
  padding: 3px 9px;
  border-radius: 5px;
  color: var(--accent-dark);
  border: 1px solid rgba(154, 52, 18, 0.12);
}

.closing-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Responsive ─────────── */
@media (max-width: 900px) {
  .story-frames {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .story-arrow {
    flex-direction: row;
    padding: 8px 0;
  }
  .story-arrow svg {
    transform: rotate(90deg);
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .story-narrative {
    padding: 0 20px;
  }
}
}

@media (max-width: 640px) {
  .story-frame {
    padding: 24px 20px;
  }
  .testimonial-card {
    padding: 24px 20px;
  }
  .closing-actions {
    flex-direction: column;
  }
  .closing-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-eyebrow-dot {
    animation: none;
  }
}
