/* Everyday memories lead the homepage; application screenshots remain original assets. */
.story-home { --story-width: 1200px; }
.story-home .container { max-width: calc(var(--story-width) + 64px); }
.story-home h1 { font-size: clamp(3.3rem, 5.6vw, 5.25rem); margin: 0; letter-spacing: -.045em; }
html[lang="zh-CN"] .story-home h1 { font-size: clamp(2.5rem, 4.2vw, 3.7rem); }
.story-home h2 { font-size: clamp(1.9rem, 3.3vw, 2.85rem); line-height: 1.22; letter-spacing: -.025em; text-wrap: balance; }
.story-home h3 { line-height: 1.35; }
.story-home p { color: var(--ink-soft); }
.story-home .eyebrow { color: var(--brand-primary-strong); font-size: .76rem; letter-spacing: .06em; }
.story-home .story-lead { font-size: 1.16rem; line-height: 1.85; margin: 24px 0; max-width: 640px; }
.story-home .story-small { font-size: .81rem; line-height: 1.7; color: #62685f; margin: 18px 0; }
.story-home .text-link { display: inline-block; margin-top: 22px; font-weight: 650; text-underline-offset: 5px; }
.story-hero { padding: 48px 0 20px; }
.story-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; }
.story-intro { min-width: 0; }
.story-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.story-actions .btn { font-size: .94rem; text-align: center; }
.story-moment { min-width: 0; margin: 0; padding: 12px; background: #f1ede7; border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 60px #372c2010; }
.moment-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .73rem; color: var(--brand-primary-strong); font-weight: 650; margin-bottom: 14px; }
.moment-heading span:last-child { color: var(--muted); font-weight: 450; }
.story-image-window { display: block; overflow: hidden; position: relative; background: #f7f3ef; }
.story-image-window img { display: block; width: 100%; height: auto; max-width: none; }
.story-moment.hero-letter { width: 100%; max-width: 440px; justify-self: center; }
.hero-letter .moment-heading { padding: 8px 6px 0; }
/* A larger, explicitly labelled excerpt; the link still opens the complete original. */
.hero-letter .letter-image { aspect-ratio: .62; }
.hero-letter .letter-image::after { content: ""; position: absolute; inset: auto 0 0; height: 28px; background: linear-gradient(transparent, #f7f3ef); pointer-events: none; }
.story-home figcaption { font-size: .72rem; line-height: 1.65; color: #60675f; padding-top: 14px; text-align: center; }
.story-home figcaption span { display: block; margin-top: 3px; font-size: .68rem; }
.story-result { padding: 40px 0 76px; }
.story-result-heading { max-width: 760px; }
.story-result-heading > p:last-child { margin-top: 20px; line-height: 1.8; }
.story-beats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 36px; }
.story-beats li { padding-top: 18px; border-top: 1px solid var(--line-strong); }
.beat-label { display: block; color: var(--brand-primary-strong); font-size: .78rem; font-weight: 700; margin-bottom: 12px; }
.story-beats p { font-size: .97rem; line-height: 1.8; }
.story-beats small { display: block; margin-top: 12px; font-size: .76rem; color: #62685f; }
.story-origin { background: var(--brand-primary-strong); padding: 60px 0; }
.story-origin .container { max-width: 940px; text-align: center; }
.story-home .story-origin :is(h2, p, a) { color: #fffaf3; }
.story-origin .story-lead { margin: 22px auto 0; font-size: 1.06rem; }
.story-origin .eyebrow { opacity: .8; }
.story-chapter { padding: 88px 0; }
.story-chapter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.chapter-copy { min-width: 0; }
.chapter-copy > p:not(.eyebrow) { margin-top: 22px; line-height: 1.9; font-size: 1.02rem; }
.chapter-copy > .story-small { font-size: .86rem !important; margin-top: 12px !important; }
.chapter-visual { min-width: 0; width: 100%; max-width: 460px; justify-self: center; margin: 0; padding: 14px; border-radius: 18px; background: #eee8dc; }
.letter-image { border-radius: 10px; }
.letter-image img { margin: 0; }
.chapter-tinted { background: #efeee7; }
.chapter-reverse .chapter-copy { order: 2; }
.chapter-reverse .chapter-visual { order: 1; }
.memories-visual { background: #e4e7dd; }
.memories-image { aspect-ratio: .86; border-radius: 10px; }
.memories-image img { margin-top: -3%; }
.invites-visual { background: #e8eae6; }
.invites-image { aspect-ratio: 1; border-radius: 10px; }
.invites-image img { margin-top: -8%; }
.story-home .story-quote { border: 0; border-left: 2px solid #7e917d; padding: 4px 0 4px 22px; margin: 26px 0; background: transparent; }
.story-quote p { font-size: 1.3rem; line-height: 1.6; color: var(--brand-primary-strong); }
.story-quote cite { display: block; font-size: .75rem; color: #62685f; font-style: normal; margin-top: 10px; }
.delivery-example { margin-top: 26px; }
.delivery-label { font-size: .8rem; font-weight: 650; margin-bottom: 12px; }
.delivery-controls { display: flex; gap: 6px; border-bottom: 1px solid var(--line-strong); }
.delivery-controls[hidden], .delivery-panel[hidden] { display: none; }
.delivery-controls button { flex: 1; font: inherit; font-size: .84rem; font-weight: 650; min-height: 48px; padding: 10px 8px; color: #555e53; background: transparent; border: 0; border-bottom: 3px solid transparent; cursor: pointer; }
.delivery-controls button[aria-pressed="true"] { color: var(--brand-primary-strong); border-bottom-color: var(--brand-primary); }
.delivery-panel { padding-top: 18px; }
.delivery-panel h3 { font-size: .97rem; }
.delivery-panel p { margin-top: 10px; font-size: .86rem; line-height: 1.8; }
.story-return { margin-top: 28px; border-top: 1px solid var(--line-strong); padding-top: 20px; }
.story-return > span { color: var(--brand-primary-strong); font-size: .78rem; font-weight: 700; }
.story-return p { margin: 10px 0; line-height: 1.8; }
.story-return a { font-size: .84rem; text-underline-offset: 4px; }
.story-cases { padding: 80px 0; background: #ece8df; }
.family-feature { max-width: 800px; margin: 32px 0 40px; padding: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius-card); background: var(--surface); }
.family-feature h3 { margin-top: 14px; font-size: clamp(1.4rem, 3vw, 1.9rem); line-height: 1.4; }
.family-feature > p:not(.eyebrow) { margin-top: 16px; line-height: 1.8; color: var(--ink-soft); }
.story-case-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 36px 0 24px; }
.story-case-grid article { padding-top: 22px; border-top: 1px solid #bbbcb0; }
.story-case-grid h3 { font-size: 1.3rem; }
.story-case-grid h3 a { text-decoration: none; }
.story-case-grid article > p:not(.eyebrow) { margin-top: 18px; font-size: .97rem; line-height: 1.8; }
.story-case-grid .text-link { font-size: .81rem; }
.story-plans { padding: 80px 0; }
.plan-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 28px; }
.plan-summary p { font-size: .97rem; line-height: 1.8; margin-top: 12px; }
.story-privacy { padding: 56px 0; background: #e9ece4; }
.privacy-points { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 28px; }
.privacy-points p { font-size: .95rem; line-height: 1.85; }
.privacy-points strong { display: block; margin-bottom: 8px; }
.story-faq { padding: 76px 0; }
.story-faq .container { max-width: 860px; }
.story-faq .faq-list { margin-top: 30px; }
.story-home a:focus-visible, .story-home button:focus-visible { outline: 3px solid var(--brand-primary-strong); outline-offset: 5px; }
.story-home [id] { scroll-margin-top: 96px; }
@media (max-width: 1000px) {
  .story-hero-grid { gap: 32px; }
  .story-chapter-grid { gap: 40px; }
  .story-home h1 { font-size: 3.65rem; }
  .story-case-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .story-home .container { padding-inline: 22px; }
  .story-hero { padding: 40px 0 20px; }
  .story-hero-grid, .story-chapter-grid { grid-template-columns: 1fr; gap: 30px; }
  .story-home h1 { font-size: clamp(2.9rem, 10vw, 4rem); }
  html[lang="zh-CN"] .story-home h1 { font-size: clamp(1.9rem, 8.5vw, 3.7rem); }
  .story-intro { text-align: left; }
  .story-home .story-lead { font-size: 1.02rem; line-height: 1.8; margin: 20px 0; }
  .story-actions { gap: 10px; margin-top: 22px; }
  .story-actions .btn { padding-inline: 14px; font-size: .85rem; flex: 1 1 135px; }
  .story-moment { padding: 10px; width: 100%; margin: 0 auto; }
  .story-result { padding: 30px 0 44px; }
  .story-result-heading > p:last-child { font-size: .92rem; }
  .story-beats { grid-template-columns: 1fr; gap: 22px; margin-top: 24px; }
  .story-beats li { padding-top: 16px; }
  .story-origin { padding: 42px 0; }
  .story-origin .story-lead { margin: 20px auto 0; }
  .story-chapter { padding: 48px 0; }
  .chapter-reverse .chapter-copy, .chapter-reverse .chapter-visual { order: initial; }
  .chapter-visual { width: 100%; margin: 0 auto; padding: 10px; }
  .chapter-copy > p:not(.eyebrow) { font-size: .97rem; }
  .story-quote p { font-size: 1.15rem; }
  .story-cases, .story-plans, .story-faq { padding: 48px 0; }
  .story-case-grid { gap: 26px 20px; margin-top: 26px; }
  .story-case-grid h3 { font-size: 1.12rem; }
  .story-case-grid .eyebrow { font-size: .67rem; }
  .story-case-grid article > p:not(.eyebrow) { font-size: .88rem; }
  .plan-summary, .privacy-points { grid-template-columns: 1fr; gap: 18px; }
  .story-privacy { padding: 42px 0; }
  .story-home .final-cta { padding: 40px 0 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-home *, .story-home *::before, .story-home *::after { transition: none; animation: none; }
}

/* Chapter captures stay complete, including voice controls and Presence settings. */
.chapter-copy .voice-note { color: var(--brand-primary-strong); font-weight: 600; }
@media (max-width: 480px) { .story-case-grid { grid-template-columns: 1fr; } }

/* My Moments, Family Moments, and Letters are equal entry points. */
.story-hero .story-intro { max-width: 1000px; text-align: center; }
.story-hero .story-lead { max-width: 780px; margin-inline: auto; text-wrap: balance; }
.story-hero .story-actions { justify-content: center; }
.product-previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-preview { display: flex; flex-direction: column; min-width: 0; border-top: 1px solid var(--line-strong); padding-top: 24px; }
.product-preview h3 { font-size: 1.4rem; margin: 10px 0 12px; text-wrap: balance; }
.product-preview h3 a { text-decoration: none; }
.product-preview .preview-copy > p:not(.eyebrow) { line-height: 1.75; font-size: .95rem; margin-bottom: 24px; }
.preview-image { display: flex; justify-content: center; margin-top: auto; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #f1ede7; }
.preview-image img { display: block; max-width: 100%; width: auto; height: auto; max-height: 420px; border-radius: 8px; }
.story-home .preview-note { text-align: center; font-size: .78rem; color: #60675f; margin: 16px 0 0; }
.story-case-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 820px) {
  .story-hero .story-intro { text-align: left; }
  .story-hero .story-actions { justify-content: flex-start; }
  .product-previews { grid-template-columns: 1fr; gap: 24px; }
  .product-preview { display: grid; grid-template-columns: minmax(0, 1fr) minmax(105px, .75fr); gap: 20px; align-items: center; }
  .product-preview h3 { font-size: 1.2rem; }
  .product-preview .preview-copy > p:not(.eyebrow) { font-size: .9rem; margin: 0; }
  .preview-image { padding: 8px; margin: 0; }
  .preview-image img { max-height: 300px; }
  .story-case-grid { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .product-preview { grid-template-columns: 1fr; }
  .preview-image img { max-height: 340px; }
}
