/* The animated home page only. Every class starts with hp- so nothing here touches the calm pages. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.hp-main { font-size: 17px; line-height: 1.6; overflow-x: clip; }
.hp-main h1, .hp-main h2, .hp-main h3 { font-family: var(--display); text-wrap: balance; margin: 0; }
.hp-main p { margin: 0; }
.hp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.hp-btn { display: inline-block; font-family: var(--body); font-weight: 700; text-decoration: none; padding: 14px 26px; border-radius: 10px; border: 2px solid transparent; transition: transform .2s, box-shadow .2s; }
.hp-btn:hover { transform: translateY(-2px); }
.hp-btn.hp-gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px rgba(227, 194, 122, .28); }
.hp-btn.hp-plain { background: var(--card); color: var(--ink); border-color: var(--ink); }

/* hero */
.hp-hero { background: radial-gradient(1100px 600px at 75% 35%, var(--teal), var(--teal-deep) 72%); color: #fff; overflow: hidden; position: relative; }
.hp-hero .hp-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.hp-mark { position: absolute; width: min(760px, 120vw); aspect-ratio: 1; -webkit-mask: url("../img/logo-mark.png") center / contain no-repeat; mask: url("../img/logo-mark.png") center / contain no-repeat; pointer-events: none; }
.hp-mark.hp-m1 { left: -140px; top: -90px; background: #2E9C98; opacity: .34; animation: roam 22s ease-in-out infinite; translate: 0 calc(var(--s, 0) * 110px); }
.hp-mark.hp-m2 { left: -90px; top: -50px; background: #083A3C; opacity: .38; animation: roam 22s ease-in-out infinite reverse; animation-delay: -7s; translate: 0 calc(var(--s, 0) * 50px); }
@keyframes roam { 0%, 100% { transform: translate(0, 0) rotate(-4deg) scale(1); } 33% { transform: translate(60px, 24px) rotate(2deg) scale(1.06); } 66% { transform: translate(20px, -26px) rotate(5deg) scale(.97); } }
.hp-hero-text { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hp-hero h1 { font-size: clamp(52px, 7.4vw, 92px); line-height: 1; font-weight: 700; letter-spacing: -2px; }
.hp-hero .hp-tag { font-family: var(--display); font-size: clamp(20px, 3vw, 30px); font-weight: 500; color: var(--gold); }

.hp-stage { perspective: 1700px; min-height: 440px; display: flex; align-items: center; justify-content: center; }
.hp-plane { --S: 78px; --G: 14px; display: grid; grid-template-columns: repeat(4, var(--S)); gap: var(--G); transform: rotateX(56deg) rotateZ(45deg); transform-style: preserve-3d; }
.hp-blk { --H: 34px; --c: #2A8F8C; --c2: #155C5C; --c3: #1B6E6D; --ic: rgba(4, 40, 42, .7); position: relative; width: var(--S); height: var(--S); transform-style: preserve-3d; }
.hp-blk i { position: absolute; display: block; }
.hp-blk .hp-t { inset: 0; transform: translateZ(var(--H)); background: var(--c); display: grid; place-items: center; box-shadow: inset 3px 3px 0 rgba(255, 255, 255, .28), inset -3px -3px 0 rgba(0, 0, 0, .18); }
.hp-blk .hp-f { left: 0; top: 100%; width: 100%; height: var(--H); transform-origin: top; transform: rotateX(90deg); background: var(--c2); }
.hp-blk .hp-s { left: 100%; top: 0; width: var(--H); height: 100%; transform-origin: left; transform: rotateY(-90deg); background: var(--c3); }
.hp-blk svg { width: 58%; height: 58%; fill: none; stroke: var(--ic); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(1.2px 1.2px 0 rgba(255, 255, 255, .45)) drop-shadow(-.8px -.8px 0 rgba(0, 0, 0, .35)); }
.hp-blk.hp-tall { --H: 62px; }
.hp-blk.hp-low { --H: 18px; }
.hp-blk.hp-light { --c: #63BDB8; --c2: #2F8C89; --c3: #3F9F9B; }
.hp-blk.hp-gold { --c: #E3C27A; --c2: #A9842F; --c3: #C09B45; --ic: rgba(74, 52, 6, .75); }
.hp-blk.hp-navy { --c: #1B3158; --c2: #0A1324; --c3: #101D36; --ic: rgba(0, 0, 0, .7); }
.hp-blk.hp-white { --c: #F1F7F7; --c2: #A9C2C1; --c3: #C6D9D8; --ic: rgba(14, 82, 84, .8); }
.hp-blk.hp-navy svg { filter: drop-shadow(1.2px 1.2px 0 rgba(255, 255, 255, .28)) drop-shadow(-.8px -.8px 0 rgba(0, 0, 0, .6)); }
.hp-blk.hp-fix { --H: calc(var(--S) * var(--k)); }

/* moving strip */
.hp-strip { background: var(--navy); color: #fff; overflow: hidden; padding: 14px 0; }
.hp-track { display: flex; gap: 48px; width: max-content; animation: slide 28s linear infinite; font-family: var(--display); font-weight: 600; font-size: 18px; white-space: nowrap; }
.hp-track span::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); margin-right: 48px; vertical-align: middle; }
@keyframes slide { to { transform: translateX(-50%); } }

/* sections */
section.hp-block { padding: 88px 0; scroll-margin-top: 70px; }
.hp-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; max-width: 40rem; }
.hp-head h2 { font-size: clamp(28px, 4.5vw, 40px); line-height: 1.15; }
.hp-head p { color: var(--muted); }
.hp-rule { width: 56px; height: 4px; background: var(--gold-deep); border-radius: 2px; }

/* reveal on scroll (only when the page script is running) */
.hp-js .hp-reveal { opacity: 0; transform: translateY(36px) scale(.98); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.hp-js .hp-reveal.hp-from-left { transform: translateX(-48px); }
.hp-js .hp-reveal.hp-from-right { transform: translateX(48px); }
.hp-js .hp-reveal.hp-tip { transform: perspective(900px) rotateX(28deg) translateY(40px); transform-origin: bottom; }
.hp-js .hp-reveal.hp-in { opacity: 1; transform: none; }

/* features: a carousel of mini heroes */
#features { scroll-margin-top: 70px; }
.hp-car { position: relative; }
.hp-car-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hp-car-track::-webkit-scrollbar { display: none; }
.hp-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; color: #fff; padding: 80px 0 104px; }
.hp-slide.hp-s1 { background: radial-gradient(900px 520px at 80% 40%, #1B7475, var(--teal-deep) 75%); }
.hp-slide.hp-s2 { background: radial-gradient(900px 520px at 80% 40%, #1F3A68, var(--navy) 75%); }
.hp-slide.hp-s3 { background: radial-gradient(900px 520px at 80% 40%, #2C9692, #156768 75%); }
.hp-slide .hp-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px 56px; align-items: center; }
.hp-slide-text { display: flex; flex-direction: column; gap: 18px; }
.hp-slide h2 { font-size: clamp(40px, 6.5vw, 76px); line-height: 1; letter-spacing: -1px; }
.hp-slide p { font-size: clamp(18px, 2.2vw, 22px); color: #E4F1F0; max-width: 32rem; }
.hp-slide svg.hp-pic { width: 100%; height: auto; max-height: 380px; }
.hp-pic text { font-family: var(--body); font-size: 13px; fill: #fff; text-anchor: middle; }
.hp-pic .hp-flow { stroke-dasharray: 6 7; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -26; } }
.hp-ph { aspect-ratio: 7 / 5; max-height: 380px; width: 100%; border: 2px dashed rgba(255, 255, 255, .5); border-radius: 16px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: #E4F1F0; }
.hp-car-arrows { position: absolute; right: max(20px, calc(50% - 540px)); bottom: 28px; display: flex; gap: 12px; }
.hp-car-arrows button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.hp-car-arrows button:hover { background: rgba(255, 255, 255, .24); }
.hp-car-arrows svg { width: 22px; height: 22px; }

/* steps */
.hp-steps { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; display: flex; flex-direction: column; gap: 18px; max-width: 46rem; }
.hp-steps::before { content: ""; position: absolute; left: 17px; top: 8px; bottom: 8px; width: 3px; background: var(--line); border-radius: 2px; }
.hp-steps li.hp-fill { position: absolute; left: 17px; top: 8px; width: 3px; height: calc((100% - 16px) * var(--p, 0)); background: var(--teal); border-radius: 2px; }
.hp-steps li:not(.hp-fill) { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 18px 40px; box-shadow: 0 12px 28px rgba(14, 82, 84, .1); }
.hp-steps li b.hp-n { position: absolute; left: -35px; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: var(--teal); color: #fff; font-family: var(--display); display: flex; align-items: center; justify-content: center; border: 3px solid var(--paper); }

/* prices */
.hp-prices { background: var(--card); border-top: 1px solid var(--line); }
.hp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: stretch; }
.hp-plan { border: 1px solid var(--line); border-radius: 16px; padding: 30px; display: flex; flex-direction: column; gap: 14px; background: var(--paper); box-shadow: 0 16px 36px rgba(14, 82, 84, .12); }
.hp-plan.hp-full { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); box-shadow: 0 34px 64px rgba(14, 82, 84, .38); }
.hp-plan h3 { font-size: 21px; }
.hp-plan .hp-price { font-family: var(--display); font-size: 48px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.hp-plan .hp-per { display: block; margin-top: 10px; font-family: var(--body); font-size: 17px; font-weight: 500; line-height: 1.3; }
.hp-plan .hp-price.hp-word { font-size: 36px; line-height: 48px; }
.hp-plan p { color: var(--muted); flex: 1; }
.hp-life { margin-top: 28px; display: flex; gap: 16px; align-items: flex-start; background: #E8F3F3; border: 1px solid #BFE3E1; border-radius: 16px; padding: 22px 24px; }
.hp-life svg { flex: none; width: 34px; height: 34px; color: var(--teal); }
.hp-life p { color: var(--ink); max-width: 60rem; }
.hp-plan.hp-full p { color: #E4F1F0; }
.hp-plan .hp-btn { text-align: center; margin-top: 8px; }

@media (max-width: 640px) {
  .hp-hero .hp-wrap { padding-top: 48px; padding-bottom: 56px; gap: 8px; }
  .hp-stage { min-height: 320px; }
  .hp-plane { --S: 54px; --G: 10px; }
  .hp-blk:not(.hp-fix) { --H: 24px; }
  .hp-blk.hp-tall { --H: 44px; }
  .hp-blk.hp-low { --H: 12px; }
  section.hp-block { padding: 64px 0; scroll-margin-top: 150px; }
  .hp-slide { padding: 56px 0 96px; }
  #features { scroll-margin-top: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  .hp-track, .hp-mark, .hp-pic .hp-flow { animation: none; }
  .hp-js .hp-reveal, .hp-js .hp-reveal.hp-from-left, .hp-js .hp-reveal.hp-from-right, .hp-js .hp-reveal.hp-tip { opacity: 1; transform: none; transition: none; }
}

/* ---------- v0.12.9: name, hero text, media slots, the lion ---------- */
.hp-hero h1 .hp-tau { color: #E3C27A; }
.hp-hero h1 .hp-rek { color: #fff; }
.hp-hero .hp-lede { font-size: clamp(17px, 1.6vw, 19px); color: #E4F1F0; max-width: 34rem; margin: 4px 0 0; }
.hp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.hp-btn.hp-line { color: #fff; border-color: rgba(255, 255, 255, .7); }
.hp-facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.hp-facts li { font-size: 14px; font-weight: 500; color: #fff; border: 1px solid rgba(255, 255, 255, .35); background: rgba(4, 40, 42, .28); border-radius: 999px; padding: 6px 14px; }

/* a clip or picture in a feature slide */
.hp-media { display: block; width: 100%; height: auto; max-height: 380px; object-fit: contain; border-radius: 16px; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); background: rgba(4, 40, 42, .25); }
.hp-ph.hp-media-ph { flex-direction: column; gap: 10px; font-weight: 600; background: rgba(4, 40, 42, .25); }
.hp-ph.hp-media-ph small { font-weight: 400; font-size: 14px; opacity: .85; }
.hp-play { width: 54px; height: 54px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); position: relative; }
.hp-play::after { content: ""; position: absolute; left: 21px; top: 15px; border-left: 16px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }

/* the lion: one picture of 32 poses (8 x 4), shown one pose at a time by the script */
.hp-plane { position: relative; }
.hp-lion {
  --W: calc(var(--S) * 1.7);
  --H: calc(var(--W) * 192 / 224);
  position: absolute; left: 0; top: 0;
  width: var(--W); height: var(--H);
  margin-left: calc(var(--W) * -.5);
  margin-top: calc(var(--H) * -136 / 192);
  transform-origin: 50% 70.83%;
  pointer-events: none;
  opacity: 0; transition: opacity .4s;
  background-image: url("../img/taurek-lion.webp");
  background-size: 800% 400%; background-repeat: no-repeat;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .35));
}
.hp-lion.hp-on { opacity: 1; }
