/* Landing page (marketing/landing.html); also loaded by marketing/print.html
   for the sample-card deck. Layout, type and colour come from
   GeeksUI utilities; this file only adds what they cannot express: the hero
   backdrop, the sample-card deck, the step illustrations' size and the
   review timeline. Subject colours come from shared/css/custom.css. */

[x-cloak] {
  display: none !important;
}

/* Hero: a soft brand wash top right, so the white sample card stands out
   without a heavy background. */
.landing-hero {
  background:
    radial-gradient(48rem 32rem at 100% 0%, var(--gk-light-primary), transparent 70%),
    var(--gk-white);
  /* The fanned deck cards are rotated past the column edge on small screens. */
  overflow: hidden;
}

/* On phones the lead text one step smaller, so the sample card starts
   higher up on the first screen. */
@media (max-width: 575.98px) {
  .landing-hero-lead {
    font-size: 1.0625rem;
  }
}

.landing-highlight {
  color: var(--gk-primary);
  background: linear-gradient(transparent 68%, color-mix(in srgb, var(--gk-primary) 16%, transparent) 68%, color-mix(in srgb, var(--gk-primary) 16%, transparent) 92%, transparent 92%);
}

/* Relevance crosses, coloured like the study screen's .relevance-crosses. */
.landing-crosses {
  color: #dc3545;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.landing-crosses .is-muted {
  color: #d9dde3;
}

/* Subject icon next to its name; the name itself stays in grey ink. */
.landing-subject {
  color: var(--subject-color);
}

/* Sample-card deck: a brand-tinted and a grey card fanned out behind the
   live card. */
.landing-demo {
  max-width: 34rem;
}

.landing-demo-stack span {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
}

.landing-demo-stack span:first-child {
  background-color: var(--gk-light-primary);
  transform: rotate(-4deg) translate(-0.75rem, 0.5rem);
}

.landing-demo-stack span:last-child {
  background-color: var(--gk-gray-200);
  transform: rotate(3deg) translate(0.75rem, 0.25rem);
}

/* A fixed minimum height keeps the deck from jumping between cards. */
.landing-demo-card {
  position: relative;
  min-height: 17rem;
}

.landing-demo-card [tabindex="-1"]:focus {
  outline: none;
}

/* Flipping back is secondary to rating, so it reads like the study screen's quiet
   grey .study-flip link rather than a primary-coloured one. */
.landing-demo-flip {
  --gk-btn-color: var(--gk-gray-600);
  --gk-btn-hover-color: var(--gk-gray-800);
  --gk-btn-active-color: var(--gk-gray-800);

  color: var(--gk-btn-color);
  font-size: 0.8125rem;
  text-decoration: none;
}

.landing-demo-flip:hover,
.landing-demo-flip:focus-visible {
  color: var(--gk-btn-hover-color);
}

@media (prefers-reduced-motion: no-preference) {
  .landing-demo-face,
  .landing-demo-answer {
    animation: landing-fade-in 0.3s ease;
  }
}

@keyframes landing-fade-in {
  from {
    opacity: 0;
    transform: translateY(0.25rem);
  }
}

/* On large screens the card is tall enough for its revealed answer and
   rating buttons, so the hero beside it never moves. The tally overlaps the
   card's bottom-right corner; the card's extra bottom padding keeps it clear
   of the card's buttons. */
@media (min-width: 992px) {
  .landing-demo {
    padding-bottom: 3rem;
  }

  .landing-demo-card {
    min-height: 34rem;
  }

  .landing-demo-card > .card-body {
    padding-bottom: 5rem !important;
  }

  .landing-demo-tally {
    position: absolute;
    right: -1.5rem;
    bottom: 0;
    width: 17rem;
  }
}

/* Explainer play button: a frosted circle, so the poster's "6.000" stays
   readable underneath. Browsers without backdrop-filter get the plain
   translucent circle. */
.landing-video-play {
  background-color: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0.5rem 1rem rgba(0, 0, 0, 0.12);
  transition: background-color 0.15s ease;
}

.landing-video-play:hover,
.landing-video-play:focus-visible {
  background-color: rgba(255, 255, 255, 0.85);
}

/* Explainer end card: a white wash over the finished video so the real CTA
   replaces the one painted into the render. .bg-white is a fixed #fff, so
   the theme's bg-opacity utilities cannot express this. */
.landing-video-end {
  background-color: rgba(255, 255, 255, 0.9);
}

/* Step illustrations in "So lernst du mit SmartMedix". */
.landing-step-visual {
  min-height: 13rem;
}

.landing-step-visual > .card {
  width: 100%;
  max-width: 17rem;
}

/* Side by side, equal heights keep the step headings below on one line. */
@media (min-width: 768px) {
  .landing-step-visual {
    height: 17rem;
  }
}

.landing-topic-active {
  background-color: var(--gk-light-primary);
  color: var(--gk-dark-primary);
}

/* Subject cards: the subject colour marks the card's top edge. */
.landing-subject-card {
  border-top: 4px solid var(--subject-color) !important;
}

/* Review timeline: numbered steps joined by a vertical line. */
.landing-timeline > li {
  position: relative;
  padding-left: 4.5rem;
}

.landing-timeline > li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 3.5rem;
  bottom: -3rem;
  left: calc(1.75rem - 1px);
  border-left: 2px dashed var(--gk-gray-300);
}
