/* First-screen story on the existing editorial system. */

.hero__video.is-ready { opacity: 1; }

.story-hero,
.story-hero .hero {
  height: auto;
  min-height: 100svh;
}
.story-hero .hero {
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.story-veil {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(5,5,5,.35) 0%, rgba(5,5,5,.18) 40%, rgba(5,5,5,.82) 100%),
    linear-gradient(90deg, rgba(5,5,5,.7) 0%, rgba(5,5,5,.18) 58%, rgba(5,5,5,.4) 100%);
}
.story {
  position: relative;
  z-index: 3;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(340px, 560px);
  gap: 48px;
  align-items: end;
  padding-top: 0;
  padding-bottom: 8px;
}
.story__copy { max-width: 640px; }
.story__copy h1 {
  max-width: 16ch;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.02;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0,0,0,.9);
}
.story__copy .hero__lead {
  max-width: 32rem;
  margin-top: 16px;
  color: rgba(255,255,255,.92);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  text-shadow: 0 1px 16px rgba(0,0,0,.85);
}
.story-stat {
  margin-top: 14px;
  color: #e0c88e;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 550;
  text-shadow: 0 1px 16px rgba(0,0,0,.85);
}
.story-slide { display: none; }
.story-slide.is-on { display: block; }
.story-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.story-form textarea {
  width: 100%;
  min-height: 92px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(5,5,5,.55);
  color: #fff;
  font-size: 16px;
  line-height: 1.4;
}
.story-form textarea::placeholder { color: rgba(255,255,255,.5); }
.story-error { margin-top: 10px; color: #f0c9b0; font-size: 15px; }
.story-switch { display: flex; gap: 22px; margin-top: 28px; }
.story-switch button {
  position: relative;
  padding: 0 0 8px;
  border: 0;
  background: none;
  color: rgba(255,255,255,.5);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.story-switch button.is-on { color: #fff; }
.story-switch button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(255,255,255,.2);
}
.story-switch button.is-on::after { background: #e0c88e; }
.story-switch button.is-timing::after {
  transform: scaleX(0);
  transform-origin: left;
  animation: fill-bar var(--t, 8s) linear forwards;
}
.story-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
@keyframes fill-bar {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.story-slide.is-on,
.story-card.is-on { animation: fade-in .4s ease; }
@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.story__proof { align-self: end; }
.story-form--under { margin-top: 14px; }
.story-card { display: none; position: relative; left: auto; right: auto; bottom: auto; }
.story-card.is-on { display: block; }
.story-card.workflow-card {
  width: 100%;
  max-width: 520px;
}
.story-card.message-demo {
  width: 100%;
  max-width: 440px;
  left: auto;
  right: auto;
}

.field-shot {
  margin: 14px 0 0;
}
.field-shot img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.story-card .done-list {
  margin-top: 14px;
  color: rgba(255,255,255,.88);
}
.intake-note {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}
.intake-note small {
  display: block;
  color: #e0c88e;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.intake-note p {
  margin-top: 6px;
  color: rgba(255,255,255,.9);
  font-size: 15px;
  line-height: 1.4;
}

.schedule-board { margin-top: 14px; }
.schedule-board.is-playing .schedule-row {
  opacity: 0;
  animation: row-in .4s var(--ease, ease) both;
}
.schedule-board.is-playing .schedule-row:nth-child(2) { animation-delay: .08s; }
.schedule-board.is-playing .schedule-row:nth-child(3) { animation-delay: .2s; }
.schedule-board.is-playing .schedule-row:nth-child(4) { animation-delay: .32s; }
.schedule-board.is-playing .schedule-row:nth-child(5) { animation-delay: .44s; }
@keyframes row-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.owner-tap {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.owner-tap p { color: rgba(255,255,255,.86); font-size: 14px; line-height: 1.4; }
.owner-tap p + p { margin-top: 6px; }
.owner-tap__btns { display: flex; gap: 8px; margin-top: 10px; }
.owner-tap__btns button {
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.28);
  background: transparent;
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}
.owner-tap__btns button:hover { border-color: #e0c88e; color: #e0c88e; }
.owner-tap__done { margin-top: 10px; color: #e0c88e !important; }

.books-head {
  margin-top: 18px;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  line-height: 1.15;
}
.books-app {
  margin-top: 16px;
  border: 1px solid rgba(224,200,142,.45);
  background: rgba(0,0,0,.35);
}
.books-app__bar {
  padding: 8px 12px;
  background: #e0c88e;
  color: #111;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.books-app__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 16px 12px 8px;
  color: #fff;
}
.books-app__row small {
  display: block;
  margin-top: 4px;
  color: rgba(255,255,255,.6);
  font-size: 12px;
}
.books-app__row strong {
  color: #e0c88e;
  font-size: 1.35rem;
}
.books-app__status {
  padding: 0 12px 14px;
  color: #e0c88e;
  font-size: 14px;
}
.bill-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  width: 100%;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: none;
  color: #fff;
  text-align: left;
  font-size: 15px;
  cursor: pointer;
}
.bill-row small { display: block; color: rgba(255,255,255,.55); font-size: 12px; }
.bill-row em { color: #e0c88e; font-style: normal; }
.bill-row.is-on em { color: #fff; }
.bill-note { margin-top: 14px; color: rgba(255,255,255,.72); font-size: 14px; }

@media (max-width: 900px) {
  .story-hero,
  .story-hero .hero { height: auto; min-height: 100svh; }
  .story {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
    padding-top: 4px;
    padding-bottom: 16px;
  }
  .story__copy h1 { max-width: none; font-size: 1.7rem; line-height: 1.12; }
  .story-stat { margin-top: 8px; font-size: .95rem; }
  .story-switch { margin-top: 14px; gap: 16px; }
  .story-cta { display: none; }
  .story-card.workflow-card { padding: 14px; }
  .books-head { margin-top: 10px; font-size: 1.15rem; }
  .owner-tap { display: none; }
  .story-veil {
    background: linear-gradient(180deg, rgba(5,5,5,.55) 0%, rgba(5,5,5,.82) 36%, rgba(5,5,5,.94) 100%);
  }
}
