/* Hero: headline, lead text and button beside the story animation.
   On mobile the order becomes headline → animation → button → lead, all in the first screen. */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 45px;
  min-height: 680px;
  padding-top: var(--page-top);
  padding-bottom: 90px;
  overflow: clip;
}
.hero-copy { z-index: 2; }
.hero-copy > p { max-width: 480px; margin: 25px 0 29px; font-size: var(--text-lead); line-height: 1.85; color: var(--color-muted); }
.hero h1 em { color: var(--heading-em); }

/* Order mode: "Şimdi dene" sends the animation out to the right, the headline up and the lead text away;
   the order wizard (order-wizard.css) takes the hero. */
.hero-story, .hero-copy > * { transition: transform .6s var(--ease-story), opacity .45s ease; }
.hero.is-leaving h1 { transform: translateY(-24px); opacity: 0; }
.hero.is-leaving .hero-story { transform: translateX(45%); opacity: 0; }
.hero.is-leaving .hero-copy > p, .hero.is-leaving .hero-copy > .create { transform: translateY(12px); opacity: 0; }
.hero.is-ordering { display: block; min-height: 0; padding-top: var(--page-top); }
.hero.is-ordering .hero-story, .hero.is-ordering .hero-copy { display: none; }

@media (max-width: 1000px) {
  .hero { gap: 20px; }
}

@media (max-width: 700px) {
  .hero { display: flex; flex-direction: column; gap: 18px; min-height: auto; padding-top: var(--page-top); padding-bottom: 48px; text-align: center; }
  .hero-copy { display: contents; }
  .hero h1 { order: 1; }
  .hero-story { order: 2; }
  .hero-copy > .create { order: 3; align-self: center; margin-top: -4px; }
  .hero-copy > p { order: 4; margin: 6px auto 0; line-height: 1.7; }
  .hero.is-ordering { display: flex; padding-top: var(--page-top); }
  .hero.is-ordering .order { order: 2; }
}
