/* =========================================================
   Deep Dive — shared stylesheet
   A calm, editorial system for a calm, editorial app.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500&family=Inter:wght@400;500;600&display=swap');

:root{
  --bg: #0B1020;
  --bg-mid: #0F172A;
  --card: #161F35;
  --elevated: #1C2640;
  --accent: #7C6FCD;
  --accent-bright: #9B8FE8;
  --text: #ECEEF4;
  --text-secondary: #8892AA;
  --text-muted: #4E5670;
  --border: #253047;
  --warm-red: #E05C5C;

  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --max: 640px;
  --max-wide: 1040px;
}

*{ box-sizing: border-box; }
html{
  scroll-behavior: smooth;
  background: var(--bg);
}

body{
  margin: 0;
  background: radial-gradient(120% 70% at 50% -10%, var(--bg-mid) 0%, var(--bg) 55%);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img{ max-width: 100%; display: block; }

a{ color: inherit; text-decoration: none; }

::selection{ background: var(--accent); color: var(--bg); }

:focus-visible{
  outline: 2px solid var(--accent-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-wide{
  max-width: var(--max-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-narrow{
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow{
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

h1, h2, h3{
  font-family: var(--serif);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 0;
}

p{ margin: 0; color: var(--text-secondary); }

/* =========================================================
   Header / Nav
   ========================================================= */

.site-header{
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 16, 32, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap-wide{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo{
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text);
}

.logo-mark{
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: relative;
  background:
    radial-gradient(circle at 50% 50%, var(--accent-bright) 0%, var(--accent-bright) 8%, transparent 45%),
    radial-gradient(circle at 50% 50%, var(--accent) 0%, transparent 65%);
  flex: none;
}

.nav-links{
  display: none;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}

.nav-links a{
  transition: color 0.2s ease;
}
.nav-links a:hover, .nav-links a.active{
  color: var(--text);
}

.menu-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.menu-toggle svg{ width: 18px; height: 18px; }

@media (min-width: 720px){
  .nav-links{ display: flex; }
  .menu-toggle{ display: none; }
}

/* Mobile menu overlay */
.mobile-menu{
  position: fixed;
  inset: 0;
  background: rgba(11, 16, 32, 0.97);
  backdrop-filter: blur(20px);
  z-index: 50;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.mobile-menu.open{ display: flex; }
.mobile-menu a{
  font-family: var(--serif);
  font-size: 26px;
  color: var(--text);
}
.mobile-menu .close-menu{
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  min-height: 48px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.btn-primary{
  background: linear-gradient(180deg, var(--accent-bright), var(--accent));
  color: #12142B;
  box-shadow: 0 8px 30px -8px rgba(124, 111, 205, 0.55);
}
.btn-primary:hover{ transform: translateY(-1px); }

.btn-quiet{
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-quiet:hover{ color: var(--text); border-color: var(--text-muted); }

.store-badges{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

@media (min-width: 420px){
  .store-badges{ flex-direction: row; }
}

.badge-store{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
}
.badge-store strong{ display: block; color: var(--text); font-size: 15px; font-weight: 500; }

/* =========================================================
   Hero + Orb (signature element)
   ========================================================= */

.hero{
  padding-top: 72px;
  padding-bottom: 40px;
  text-align: center;
  position: relative;
}

.orb{
  width: 220px;
  height: 220px;
  margin: 0 auto 8px;
  position: relative;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(155,143,232,0.9) 0%, rgba(155,143,232,0.35) 12%, transparent 42%),
    radial-gradient(circle at 50% 50%, rgba(124,111,205,0.28) 0%, transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(124,111,205,0.14) 0%, transparent 70%);
  animation: breathe 7s ease-in-out infinite;
}

@keyframes breathe{
  0%, 100%{ opacity: 0.85; transform: scale(0.97); }
  50%{ opacity: 1; transform: scale(1.03); }
}

.hero .eyebrow{ margin-bottom: 18px; }

.hero h1{
  font-size: 34px;
  line-height: 1.25;
  max-width: 340px;
  margin: 0 auto 16px;
}

.hero p.lede{
  max-width: 320px;
  margin: 0 auto 32px;
  font-size: 16px;
  color: var(--text-secondary);
}

.hero-actions{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-note{
  font-size: 12px;
  color: var(--text-muted);
}

@media (min-width: 720px){
  .hero{ padding-top: 110px; padding-bottom: 60px; }
  .orb{ width: 280px; height: 280px; }
  .hero h1{ font-size: 46px; max-width: 460px; }
  .hero p.lede{ max-width: 380px; font-size: 17px; }
}

/* =========================================================
   Feature list
   ========================================================= */

.features{
  padding-top: 24px;
  padding-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-card{
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 22px 22px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  cursor: pointer;
  transition:
    transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 320ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* soft ambient glow beneath the card, dormant until hovered */
.feature-card::after{
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -14px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(124, 111, 205, 0.32) 0%, transparent 72%);
  opacity: 0;
  filter: blur(2px);
  transition: opacity 320ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.feature-card:hover,
.feature-card:focus-visible{
  transform: translateY(-5px);
  background: var(--elevated);
  border-color: rgba(155, 143, 232, 0.4);
  box-shadow: 0 22px 36px -22px rgba(124, 111, 205, 0.4);
}
.feature-card:hover::after,
.feature-card:focus-visible::after{
  opacity: 1;
}

.feature-card.open{
  background: var(--elevated);
  border-color: rgba(155, 143, 232, 0.4);
}

.feature-tick{
  width: 3px;
  border-radius: 3px;
  align-self: stretch;
  flex: none;
  background: var(--accent);
  opacity: 0.8;
  transition: opacity 400ms ease, filter 400ms ease, box-shadow 400ms ease;
}
.feature-card:nth-child(2) .feature-tick{ background: #7FB8A6; }
.feature-card:nth-child(3) .feature-tick{ background: #D9A25C; }
.feature-card:nth-child(4) .feature-tick{ background: #6FA0C9; }
.feature-card:nth-child(5) .feature-tick{ background: var(--accent-bright); }

.feature-card.open .feature-tick{
  opacity: 1;
  filter: brightness(1.25);
  box-shadow: 0 0 14px rgba(155, 143, 232, 0.55);
}

.feature-body{ flex: 1; min-width: 0; }

.feature-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.feature-body h3{
  font-size: 19px;
  margin-bottom: 8px;
  color: var(--text);
}
.feature-body p{ font-size: 14.5px; }

.feature-arrow{
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--text-muted);
  transition: color 300ms ease, transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-arrow svg{ width: 100%; height: 100%; display: block; }

.feature-card:hover .feature-arrow,
.feature-card:focus-visible .feature-arrow{
  color: var(--accent-bright);
}
.feature-card.open .feature-arrow{
  color: var(--accent-bright);
  transform: rotate(90deg);
}

/* expanded content — height animated via grid-template-rows so no JS measuring is needed */
.feature-expand{
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-card.open .feature-expand{
  grid-template-rows: 1fr;
}

.feature-expand-inner{
  overflow: hidden;
  min-height: 0;
}

.feature-divider{
  height: 1px;
  background: var(--border);
  margin: 18px 0 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 380ms ease, transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-philosophy{
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 380ms ease, transform 380ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 40ms;
}

.feature-card.open .feature-divider,
.feature-card.open .feature-philosophy{
  opacity: 1;
  transform: translateY(0);
  transition-delay: 90ms;
}

@media (min-width: 720px){
  .features{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
  }
  .feature-card:last-child{ grid-column: span 2; max-width: 520px; margin: 0 auto; }
}

/* =========================================================
   Screenshots strip
   ========================================================= */

.screens-section{ padding-top: 8px; padding-bottom: 64px; }
.screens-section h2{ font-size: 24px; margin-bottom: 6px; }
.screens-intro{ margin-bottom: 26px; font-size: 14.5px; max-width: 320px; }

.screens-row{
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 20px 0 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.screens-row::-webkit-scrollbar{ display: none; }

.phone-frame{
  position: relative;
  flex: none;
  width: 190px;
  scroll-snap-align: center;
  border-radius: 34px;
  will-change: transform;
}

.phone-glow{
  position: absolute;
  inset: -8% -6% -12%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 45%, rgba(124, 111, 205, 0.28) 0%, transparent 70%);
  filter: blur(14px);
  opacity: 0;
  transition: opacity 500ms ease;
  z-index: 0;
  pointer-events: none;
}

.phone-frame img{
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 34px;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.5));
}

@media (min-width: 720px){
  .screens-row{
    overflow: visible;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 48px 0 56px;
  }
  .phone-frame{ width: 210px; }

  /* editorial stagger — each phone sits at a different height,
     with the outer two slightly smaller for depth */
  .phone-frame--1{ transform: translateY(28px) scale(0.94); }
  .phone-frame--2{ transform: translateY(-22px); }
  .phone-frame--3{ transform: translateY(22px); }
  .phone-frame--4{ transform: translateY(-30px) scale(0.94); }

  .phone-frame:hover{ z-index: 2; }
  .phone-frame:hover .phone-glow{ opacity: 1; }
}

/* =========================================================
   Generic content sections (privacy / terms / support)
   ========================================================= */

.page-hero{
  padding-top: 56px;
  padding-bottom: 8px;
}
.page-hero .eyebrow{ margin-bottom: 14px; }
.page-hero h1{ font-size: 30px; margin-bottom: 10px; }
.page-hero .updated{ font-size: 13px; color: var(--text-muted); }

.content{ padding-top: 32px; padding-bottom: 80px; }

.content h2{
  font-size: 19px;
  margin: 40px 0 12px;
  color: var(--text);
}
.content h2:first-child{ margin-top: 0; }

.content p{ margin-bottom: 14px; font-size: 15px; }

.content ul{
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 15px;
}
.content li{ margin-bottom: 8px; }

.callout{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
}
.callout p{ margin-bottom: 8px; font-size: 14.5px; }
.callout p:last-child{ margin-bottom: 0; }

.placeholder-tag{
  display: inline-block;
  background: rgba(224, 92, 92, 0.12);
  color: var(--warm-red);
  border: 1px solid rgba(224, 92, 92, 0.3);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 12px;
  font-family: var(--sans);
}

/* FAQ */
.faq-item{
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.faq-item summary{
  cursor: pointer;
  font-size: 15.5px;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-item summary::after{
  content: '+';
  color: var(--text-muted);
  font-size: 20px;
  transition: transform 0.2s ease;
  flex: none;
}
.faq-item[open] summary::after{ transform: rotate(45deg); }
.faq-item p{ margin-top: 12px; font-size: 14.5px; }

.contact-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px;
  margin: 20px 0 36px;
  text-align: center;
}
.contact-card .eyebrow{ margin-bottom: 10px; }
.contact-card .email{
  font-family: var(--serif);
  font-size: 22px;
  color: var(--accent-bright);
  word-break: break-all;
}

/* Pro stub */
.pro-hero{
  text-align: center;
  padding-top: 70px;
  padding-bottom: 70px;
}
.pro-orb{
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(155,143,232,0.6) 0%, transparent 60%);
  animation: breathe 8s ease-in-out infinite;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer{
  border-top: 1px solid var(--border);
  padding-top: 40px;
  padding-bottom: 48px;
}
.footer-top{
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 28px;
}
.footer-brand{ display: flex; align-items: center; gap: 10px; }
.footer-tagline{ font-size: 13.5px; margin-top: 10px; max-width: 280px; }

.footer-links{
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
  color: var(--text-secondary);
}
.footer-links a:hover{ color: var(--text); }

.footer-meta{
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

@media (min-width: 720px){
  .footer-top{
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }
}


/* =========================================================
   Story — "why Lanter exists"
   An art-directed sequence, not an explanation. No feature
   cards, minimal borders. Each scene has a different shape —
   some quiet, some built from the app's own UI, one driven
   by scroll. Subtle hairlines and background depth mark the
   transitions so the sequence reads as full, not empty.
   ========================================================= */

.story{ position: relative; }

.story-scene{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 64px;
  padding-bottom: 64px;
  overflow: hidden;
  border-top: 1px solid rgba(37, 48, 71, 0.6);
}
.story-scene:first-child{ border-top: none; }

.story-scene:nth-of-type(even){
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4), rgba(15, 23, 42, 0) 65%);
}

.story-line{
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.55;
  color: var(--text);
  font-weight: 400;
}

.story-line--tight{
  font-size: 16px;
  color: var(--text-secondary);
  margin-top: 28px;
  max-width: 340px;
}

.story-line--dim{
  color: var(--text);
  opacity: 0.4;
  transition: opacity 80ms linear;
  margin-top: 0;
}

.story-copy{
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 18px 0 32px;
}

.ambient-orb{
  position: absolute;
  top: 50%;
  left: 50%;
  width: 640px;
  height: 640px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(155, 143, 232, 0.16) 0%, rgba(124, 111, 205, 0.08) 40%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  animation: ambient-drift 18s ease-in-out infinite alternate;
}

@keyframes ambient-drift{
  0%{ transform: translate(-50%, -50%) scale(1); }
  100%{ transform: translate(-47%, -53%) scale(1.06); }
}

.ambient-orb--faint{ opacity: 0.55; }

.manifesto-inner{ position: relative; z-index: 1; }

.manifesto-heading-md{
  font-size: 24px;
  line-height: 1.35;
  max-width: 420px;
  margin: 10px auto 0;
}

/* --- scene: who it's for --- */

.story-scene--audience{ padding-top: 76px; }

.audience-list{
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: left;
  max-width: 380px;
  margin: 0 auto;
}

.audience-item{
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.audience-mark{
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  margin-top: 8px;
  flex: none;
  box-shadow: 0 0 8px rgba(155, 143, 232, 0.6);
}

.audience-item p{
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* --- scene: semester rhythm (upgraded, more considered) --- */

.story-scene--rhythm .manifesto-heading-md{ margin-bottom: 44px; }

.rhythm-field{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 300px;
  margin: 0 auto;
  padding: 6px 0;
}

.rhythm-thread{
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(155, 143, 232, 0.5), rgba(155, 143, 232, 0.5), transparent);
  box-shadow: 0 0 10px rgba(124, 111, 205, 0.4);
  z-index: 0;
}

.rhythm-banner{
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: var(--elevated);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: 0 18px 34px -14px rgba(0, 0, 0, 0.5);
  max-width: 264px;
}
.rhythm-banner--heavy{
  align-self: flex-start;
  border-left-color: var(--warm-red);
  animation: rhythm-float-heavy 7s ease-in-out infinite;
}
.rhythm-banner--moderate{
  align-self: center;
  border-left-color: #D9A25C;
  animation: rhythm-float-moderate 8.6s ease-in-out infinite;
  animation-delay: 0.4s;
}
.rhythm-banner--light{
  align-self: flex-end;
  border-left-color: #7FB8A6;
  animation: rhythm-float-light 9.4s ease-in-out infinite;
  animation-delay: 0.8s;
  opacity: 0.92;
}

@keyframes rhythm-float-heavy{
  0%, 100%{ transform: translateY(0) scale(1.04); }
  50%{ transform: translateY(-6px) scale(1.04); }
}
@keyframes rhythm-float-moderate{
  0%, 100%{ transform: translateY(0) scale(1); }
  50%{ transform: translateY(-6px) scale(1); }
}
@keyframes rhythm-float-light{
  0%, 100%{ transform: translateY(0) scale(0.96); }
  50%{ transform: translateY(-6px) scale(0.96); }
}

.rhythm-dot{
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex: none;
}
.rhythm-banner--heavy .rhythm-dot{ background: var(--warm-red); box-shadow: 0 0 10px rgba(224, 92, 92, 0.5); }
.rhythm-banner--moderate .rhythm-dot{ background: #D9A25C; box-shadow: 0 0 10px rgba(217, 162, 92, 0.5); }
.rhythm-banner--light .rhythm-dot{ background: #7FB8A6; box-shadow: 0 0 10px rgba(127, 184, 166, 0.5); }

.rhythm-copy{
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 13.5px;
  color: var(--text-secondary);
  text-align: left;
}
.rhythm-copy strong{
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
}

/* --- scene: calm arriving (scroll-driven, not animation-driven) --- */

.story-scene--calm{ padding-top: 56px; padding-bottom: 56px; }

.calm-progress-track{
  width: 220px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin: 0 auto 32px;
  box-shadow: 0 0 16px rgba(124, 111, 205, 0.15);
}

.calm-progress-fill{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  border-radius: 2px;
}

/* --- scene: closing (quiet confidence) --- */

.story-scene--closing{ min-height: 42vh; padding-top: 56px; }

.manifesto-heading{
  font-size: 30px;
  line-height: 1.25;
  margin-bottom: 8px;
}

.orb-small{
  width: 110px;
  height: 110px;
  margin-bottom: 20px;
}

.closing-cta-actions{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
}

.btn-soft{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--elevated);
  border: 1px solid rgba(155, 143, 232, 0.4);
  color: var(--accent-bright);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  min-height: 48px;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), border-color 280ms ease, background-color 280ms ease;
}
.btn-soft:hover{
  transform: translateY(-2px);
  border-color: rgba(155, 143, 232, 0.65);
  background: var(--card);
}

/* --- desktop scale-up --- */

@media (min-width: 720px){
  .story-scene{ padding-top: 96px; padding-bottom: 96px; }
  .story-scene--audience{ padding-top: 108px; }
  .story-scene--closing{ min-height: 48vh; }
  .story-line{ font-size: 28px; }
  .story-line--tight{ font-size: 17px; }
  .manifesto-heading-md{ font-size: 28px; max-width: 480px; }
  .manifesto-heading{ font-size: 36px; }
  .ambient-orb{ width: 780px; height: 780px; }
  .rhythm-banner{ max-width: 280px; padding: 18px 22px; }
}
