/* Same family as the After Effects course site: light paper, navy ink, violet, Montserrat + Onest. */
:root {
  --paper: #f4f5fb;
  --surface: #fff;
  --ink: #17144a;
  --muted: #5e5b82;
  --line: #dcddf0;
  --violet: #5f4ff0;
  --violet-dark: #4a3bd6;
  --violet-soft: #ecebff;
  --f-display: Montserrat, Onest, system-ui, sans-serif;
  --f-body: Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 20px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
/* iPhone in power saving mode shows a play icon on muted video; the poster stays clean instead */
video::-webkit-media-controls, video::-webkit-media-controls-start-playback-button, video::-webkit-media-controls-overlay-play-button { display: none !important; -webkit-appearance: none; opacity: 0; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 5.4vw, 44px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; padding: 15px 24px; border-radius: 14px; background: var(--violet); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 8px 22px -8px rgba(95, 79, 240, .7); transition: background .15s, transform .15s; }
.btn:hover { background: var(--violet-dark); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-small { padding: 9px 16px; font-size: 15px; border-radius: 12px; box-shadow: none; }
.btn-big { padding: 19px 44px; font-size: 19px; }

.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px max(var(--gutter), calc((100% - var(--wrap)) / 2)); background: rgba(244, 245, 251, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-brand { font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav-links { display: none; gap: 26px; font-weight: 500; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

section:not(.intro) { padding: 44px max(var(--gutter), calc((100% - var(--wrap)) / 2)); }

/* Intro: tall section, sticky stage. JS scrubs the transforms; without JS the first frame still reads. */
.intro { height: 320svh; padding: 0; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.intro-head { position: absolute; z-index: 3; top: clamp(72px, 9.5svh, 92px); left: 0; right: 0; text-align: center; padding-inline: 16px; }
.intro-title { font-family: var(--f-display); font-weight: 800; font-size: min(10.4vw, 9.4svh); line-height: 1.04; letter-spacing: -0.03em; }
.line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line > span { display: inline-block; }
.intro-foot { margin-top: clamp(8px, 1.6svh, 16px); }
.intro-foot > p { max-width: 30em; margin: 0 auto 14px; font-size: clamp(15px, 2svh, 18px); line-height: 1.45; color: var(--muted); }

.hero-shot { position: absolute; z-index: 2; left: 50%; top: 50%; width: 100vw; height: 100svh; margin-left: -50vw; margin-top: -50svh; transform: translateY(26svh) scale(.42); border-radius: 34px; overflow: hidden; will-change: transform; box-shadow: 0 40px 90px -30px rgba(23, 20, 74, .55); }
.hero-shot video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.fan { position: absolute; inset: 0; z-index: 1; }
.fan-card { position: absolute; left: 50%; top: 50%; width: 42vw; height: 42svh; margin-left: -21vw; margin-top: -21svh; object-fit: cover; border-radius: 14px; will-change: transform; }
.c1 { transform: translate(-45vw, 26svh); }
.c2 { transform: translate(45vw, 26svh); }
.reveal { position: absolute; z-index: 3; left: var(--gutter); font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; opacity: 0; color: #fff; text-shadow: 0 1px 24px rgba(23, 20, 74, .6); }
.r-left { top: 78px; }
.r-right { top: 114px; }
.r-bottom { top: 150px; }

.demo { display: grid; gap: 30px; }
.demo-copy p { margin-top: 14px; color: var(--muted); max-width: 32em; }
.demo-shot { width: min(300px, 72vw); margin-inline: auto; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden; box-shadow: 0 24px 50px -26px rgba(23, 20, 74, .6); }
.demo-shot video { width: 100%; height: 100%; object-fit: cover; }

section.strip { padding: 0; }
.strip-pin { display: flex; flex-direction: column; gap: 22px; padding-block: 28px; overflow: hidden; }
.strip-pin h2 { padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2)); }
.strip-track { display: flex; align-items: flex-end; gap: 14px; width: max-content; padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); will-change: transform; }
.shot { flex: none; padding: 8px 8px 10px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.shot video { width: 100%; height: calc(100% - 28px); object-fit: cover; border-radius: 12px; }
.shot.wide { height: 44svh; aspect-ratio: 16 / 10.4; }
.shot.tall { height: 56svh; aspect-ratio: 9 / 17; }
.shot figcaption { margin-top: 8px; padding-inline: 4px; font-size: 14px; line-height: 20px; font-weight: 500; white-space: nowrap; }

/* Browsers start video muted, so every video gets its own sound button */
.shot, .demo-shot { position: relative; }
.sound { position: absolute; z-index: 4; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; border-radius: 999px; background: rgba(23, 20, 74, .78); color: #fff; font: 600 13px/1 var(--f-body); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sound svg { width: 16px; height: 16px; }
.sound.on { background: var(--violet); }
.shot .sound { bottom: 40px; right: 16px; }
.lesson .sound { top: 14px; right: 14px; bottom: auto; }

.reviews-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.note { position: relative; flex: none; width: 130px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--violet); }
.note video { width: 100%; height: 100%; object-fit: cover; }
.note-play { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(23, 20, 74, .22); cursor: pointer; }
.note-play::after { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-36%, -50%); border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.note.playing .note-play { background: none; }
.note.playing .note-play::after { display: none; }
.review-grid { columns: 1; column-gap: 14px; }
.review-grid img { width: 100%; margin-bottom: 14px; break-inside: avoid; border-radius: 14px; border: 1px solid var(--line); }

.lessons h2 { margin-bottom: 26px; }
.lesson { position: sticky; top: calc(72px + var(--i) * 10px); display: grid; gap: 18px; padding: 22px; margin-bottom: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 -10px 34px -22px rgba(23, 20, 74, .4); }
.l1 { --i: 0; } .l2 { --i: 1; } .l3 { --i: 2; } .l4 { --i: 3; } .l5 { --i: 4; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 10px; border-radius: 10px; background: var(--violet-soft); color: var(--violet); font-weight: 700; }
.lesson h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(21px, 3vw, 28px); line-height: 1.15; letter-spacing: -0.015em; }
.lesson p { margin-top: 8px; color: var(--muted); max-width: 30em; }
.lesson video, .lesson img, .wave { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.lesson video.portrait { aspect-ratio: 9 / 16; width: min(100%, 240px); justify-self: center; }
.wave { display: flex; align-items: center; justify-content: center; gap: 2.4%; background: var(--violet-soft); }
.wave i { width: 1.4%; min-width: 3px; height: 14%; border-radius: 99px; background: var(--violet); animation: wave 1.2s ease-in-out infinite alternate; }
.wave i:nth-child(3n) { animation-duration: .85s; }
.wave i:nth-child(3n+1) { animation-duration: 1.4s; animation-delay: -.5s; }
.wave i:nth-child(4n) { animation-delay: -.3s; }
@keyframes wave { to { height: 62%; } }

.who h2 { margin-bottom: 24px; }
.who-list { display: grid; gap: 12px; }
.who-list li { padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.who-list b { display: block; font-size: 19px; font-weight: 700; }
.who-list span { color: var(--muted); }

.author { display: grid; gap: 22px; }
.author img { width: 170px; aspect-ratio: 1; object-fit: cover; object-position: 50% 32%; border-radius: 50%; }
.author p { margin-top: 12px; max-width: 34em; color: var(--muted); }
.contacts { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.contacts a { color: var(--violet); font-weight: 600; }

.price-panel { padding: clamp(36px, 7vw, 72px) 22px; text-align: center; border-radius: 26px; background: var(--ink); color: #fff; }
.price-tag { font-family: var(--f-display); font-weight: 800; font-size: clamp(62px, 15vw, 128px); line-height: 1; letter-spacing: -0.03em; }
.price-panel h2 { margin-top: 10px; font-size: clamp(22px, 3.4vw, 30px); }
.price-panel > p:not(.price-tag):not(.price-note) { margin-top: 10px; color: #c9c7e8; }
.price-panel .btn { margin-top: 26px; }
.price-note { margin: 16px auto 0; font-size: 14px; color: #c9c7e8; max-width: 30em; }

.faq h2 { margin-bottom: 22px; }
.faq h2, .faq details { max-width: 800px; margin-inline: auto; }
.faq details { margin-bottom: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { padding: 16px 44px 16px 18px; font-weight: 600; cursor: pointer; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 24px; color: var(--violet); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 18px 16px; color: var(--muted); }

.foot { padding: 16px var(--gutter) 96px; text-align: center; }
.foot-word { max-width: 20em; margin: 0 auto 22px; font-family: var(--f-display); font-weight: 800; font-size: clamp(26px, 5vw, 40px); line-height: 1.12; letter-spacing: -0.02em; }
.foot-meta { margin-top: 24px; font-size: 14px; color: var(--muted); }

.sticky-buy { position: fixed; z-index: 15; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateY(160%); transition: transform .25s ease; }
.sticky-buy.show { transform: none; }

/* Phone: size follows screen width, so wide video fits whole and stays sharp */
@media (max-width: 859px) {
  .strip-track { align-items: flex-end; gap: 10px; }
  .shot.wide { width: 84vw; height: auto; aspect-ratio: auto; }
  .shot.tall { width: 50vw; height: auto; aspect-ratio: auto; }
  .shot.wide video { height: auto; aspect-ratio: 16 / 9; }
  .shot.tall video { height: auto; aspect-ratio: 9 / 16; }
  .shot figcaption { white-space: normal; font-size: 13px; }
}

@media (min-width: 860px) {
  :root { --gutter: 32px; }
  .nav-links { display: flex; }
  .sticky-buy { display: none; }
  section:not(.intro):not(.strip) { padding-block: 56px; }
  .hero-shot { width: calc(92svh * 9 / 16); height: 92svh; margin-left: calc(92svh * -9 / 32); margin-top: -46svh; transform: translateY(29svh) scale(.5); border-radius: 26px; }
  .fan-card { width: calc(46svh * 9 / 16); height: 46svh; margin-left: calc(46svh * -9 / 32); margin-top: -23svh; }
  .c1 { transform: translate(calc(-46svh * 9 / 16 - 16px), 29svh); }
  .c2 { transform: translate(calc(46svh * 9 / 16 + 16px), 29svh); }
  .reveal { color: var(--ink); text-shadow: none; }
  .r-left, .r-right { top: 44%; white-space: nowrap; font-size: clamp(28px, 3.4vw, 50px); }
  .r-left { left: auto; right: calc(50% + 92svh * 9 / 32 + 40px); }
  .r-right { left: calc(50% + 92svh * 9 / 32 + 40px); right: auto; }
  .r-bottom { top: 53%; left: calc(50% + 92svh * 9 / 32 + 40px); right: auto; white-space: nowrap; font-size: clamp(18px, 1.7vw, 24px); color: var(--violet); }
  .demo { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
  .demo-shot { width: min(320px, calc(70svh * 9 / 16)); }
  .review-grid { columns: 3; }
  .lesson { grid-template-columns: 1fr 1.15fr; align-items: center; gap: 34px; padding: 28px; }
  .who-list { grid-template-columns: repeat(2, 1fr); }
  .author { grid-template-columns: 220px 1fr; align-items: center; gap: 44px; }
  .author img { width: 220px; }
  .foot { padding-bottom: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  .intro { height: auto; }
  .stage { position: relative; }
  html { scroll-behavior: auto; }
  .wave i { animation: none; }
  .btn, .sticky-buy { transition: none; }
  .strip-pin { overflow-x: auto; }
}
