/* Akademi Foto Lestari landing. Loaded on this page only, after main.css (tokens) and afl.css (components).
   Only page layout and the pieces the design system has no component for live here. */
:root{--inset:clamp(14px,2.4vw,32px)}
html{scroll-behavior:auto}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}

/* hero: black band with the drifting photo wall behind it */
.landing{position:relative;overflow:hidden;min-height:100vh;min-height:100svh;background:var(--band);color:var(--on-band);display:flex;flex-direction:column}
.landing-gallery{position:absolute;inset:0;pointer-events:none}
.landing-tile{position:absolute;top:0;left:0;box-sizing:border-box;will-change:transform}
.landing-card{width:100%;height:100%;overflow:hidden}
.landing-card img,.landing-card video{display:block;width:100%;height:100%;object-fit:cover}
@media (hover:hover){.landing-tile{pointer-events:auto}.landing-card img,.landing-card video{transition:filter .3s}.landing-tile:hover .landing-card img,.landing-tile:hover .landing-card video{filter:brightness(1.5)}}
/* the one permitted gradient: photo fading to band so the copy stays readable */
.landing-scrim{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to bottom,#0c0c0ccc 0,#0c0c0c80 30%,#0c0c0cd9 60%,#0c0c0c 100%)}
.vf{position:absolute;inset:0;pointer-events:none;z-index:1}
.vf-c{position:absolute;width:28px;height:28px;border:0 solid var(--on-band)}
.tl{top:var(--inset);left:var(--inset);border-top-width:1px;border-left-width:1px}
.tr{top:var(--inset);right:var(--inset);border-top-width:1px;border-right-width:1px}
.bl{bottom:var(--inset);left:var(--inset);border-bottom-width:1px;border-left-width:1px}
.br{bottom:var(--inset);right:var(--inset);border-bottom-width:1px;border-right-width:1px}
.landing-top{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);padding:calc(var(--inset) + var(--space-1)) calc(var(--inset) + 40px) 0}
.rec{position:relative;z-index:2;display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-1) var(--space-3);align-self:flex-end;margin:var(--space-2) calc(var(--inset) + 40px) 0;padding:var(--space-2) 0;color:var(--on-band)}
.landing-pill{margin:0 0 var(--space-4)}
.rec-dot{width:8px;height:8px;background:var(--danger);border-radius:50%;animation:blink 1s steps(1) infinite}
@keyframes blink{50%{opacity:.15}}
@media (prefers-reduced-motion:reduce){.rec-dot{animation:none}}
.rec-w{color:var(--danger)}
.rec-tc{color:var(--danger);font-variant-numeric:tabular-nums}
.landing-copy{position:relative;z-index:2;padding:var(--space-4) calc(var(--inset) + 14px) calc(var(--inset) + 28px);max-width:640px}
.landing-copy h1{font-size:clamp(40px,7vw,64px);line-height:.94;font-weight:700;letter-spacing:-.03em;margin:0 0 var(--space-4)}
.landing-sub{font-size:18px;line-height:28px;margin:0 0 var(--space-6);max-width:40ch}
.landing-sub:has(+ .landing-by){margin-bottom:var(--space-3)}
.landing-by{font-size:16px;line-height:24px;margin:0 0 var(--space-6);color:var(--ink-muted)}
.landing-ctas{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-3) var(--space-6)}

/* sections */
.lp{background:var(--bg);padding-bottom:var(--space-24)}
.lp-sec{padding:var(--space-24) var(--gutter) 0}
.lp h2,.afl-price h2{font-size:clamp(32px,5vw,40px);line-height:1.1;font-weight:700;letter-spacing:-.02em;margin:var(--space-3) 0}
.lp-lead{font-size:18px;line-height:28px;color:var(--ink-muted);margin:0 0 var(--space-8);max-width:60ch}

/* example: title beside the comparison */
.contoh{display:grid;gap:var(--space-8);align-items:start}
.contoh .lp-lead{margin-bottom:0}
@media (min-width:800px){.contoh{grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);gap:var(--space-12)}}

/* toolbox grid + outcomes */
.kit{list-style:none;margin:0 0 var(--space-8);padding:0;display:grid;gap:var(--space-4);grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.kit li{background:var(--surface);border:1px solid var(--line);padding:var(--space-4)}
.kit li{transition:background-color .2s,border-color .2s}
.kit li:hover{background:var(--surface-raised);border-color:var(--accent-ink)}
/* subtle loop: one tile at a time takes the accent border, 2s each, 12s cycle; hover stops it */
@media (prefers-reduced-motion:no-preference){
.kit li{animation:kit-focus 12s linear infinite}
.kit li:nth-child(2){animation-delay:2s}.kit li:nth-child(3){animation-delay:4s}
.kit li:nth-child(4){animation-delay:6s}.kit li:nth-child(5){animation-delay:8s}.kit li:nth-child(6){animation-delay:10s}
/* entrance: once the column has come into focus (.in), each tile's text pulls into focus after the last */
.kit li:nth-child(2){--i:1}.kit li:nth-child(3){--i:2}.kit li:nth-child(4){--i:3}.kit li:nth-child(5){--i:4}.kit li:nth-child(6){--i:5}
.reveal-on .in .kit li p{animation:kit-enter .6s ease-out backwards;animation-delay:calc(150ms + var(--i,0) * 90ms)}
.kit:hover li{animation:none}
}
@keyframes kit-enter{from{opacity:.12;filter:blur(10px)}to{opacity:1;filter:none}}
@keyframes kit-focus{0%,16.6%{border-color:var(--accent-ink)}16.7%,100%{border-color:var(--line)}}
.kit .afl-label{margin:0 0 var(--space-2);color:var(--accent-ink)}
.kit li p:not(.afl-label){margin:0;color:var(--ink-muted)}
.kit-out ul{margin:var(--space-3) 0 var(--space-6);padding:0 0 0 var(--space-4);display:grid;gap:var(--space-2)}
.kit-cta{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-4)}

/* course grid (CourseCard) */
.courses{display:grid;gap:var(--space-4);grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}

/* format: a working lesson on a black stage; the course's own simulator beside its question, answer and tip */
.lp--flush{padding-bottom:0}
.fmt-sec{padding-bottom:var(--space-12)}
.fmt-head{display:grid;gap:var(--space-4);margin-bottom:var(--space-4)}
.fmt-head .lp-lead{margin-bottom:0}
.fmt-tabs{display:flex;gap:var(--space-2)}
.fmt-tab{flex:1 1 0;flex-direction:column;align-items:flex-start;gap:0;min-height:48px;padding:var(--space-2) var(--space-3);font-family:inherit;text-align:left;cursor:pointer}
.fmt-tab .afl-module__no{text-transform:uppercase}
/* current lesson: accent border, never a lime fill */
.fmt-tab[aria-selected="true"]{border-color:var(--accent-ink);box-shadow:inset 0 0 0 1px var(--accent-ink)}
.fmt{background:var(--band);border:1px solid var(--line-strong)}
.fmt-lesson{display:grid;align-content:start;gap:var(--space-6);padding:var(--space-4)}
/* with JS the lessons share one grid cell, so the stage is always as tall as the tallest and nothing below jumps */
.fmt.is-ready .fmt-panels{display:grid}
.fmt.is-ready .fmt-lesson{grid-area:1/1}
.fmt.is-ready .fmt-lesson[hidden]{display:grid;visibility:hidden}
/* switching tab: the new lesson eases in (its animation restarts each time it is unhidden) */
@media (prefers-reduced-motion:no-preference){
  .fmt.is-ready .fmt-lesson:not([hidden]){animation:fmt-in .45s ease-out both}
}
@keyframes fmt-in{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
.fmt .sim{max-width:none;margin:0;padding:0;border:0;background:none;font-size:16px}
/* room for the longest caption, so dragging a slider never moves the page */
.fmt .sim-caption{min-height:9em}
.fmt-text h3{margin:var(--space-2) 0 var(--space-4);font-size:20px;line-height:26px;font-weight:700}
.fmt-text .afl-label{margin:0;color:var(--accent-ink)}
.fmt-text p:not(.afl-label){margin:var(--space-2) 0 var(--space-4);color:var(--ink-muted);max-width:52ch}
.fmt-text p:last-child{margin-bottom:0}
.fmt-facts{margin:var(--space-4) 0 0}
/* wide screens: the whole section fits one screen, like the hero. --fmt-h is the photo height the screen can spare. */
@media (min-width:900px){
  .fmt-sec{--fmt-h:clamp(200px,calc(100svh - 500px),520px);min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding-block:var(--space-8)}
  .fmt-head{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:var(--space-8)}
  .fmt-head .lp-lead{font-size:16px;line-height:24px}
  .fmt-tab{flex:0 0 auto;flex-direction:row;align-items:baseline;gap:var(--space-3);min-width:140px;padding:var(--space-3) var(--space-4)}
  /* photo | lesson text on the first row, controls | live caption under them: the simulator's parts join the lesson grid */
  .fmt-lesson{grid-template-columns:auto minmax(0,1fr);gap:0 var(--space-8);padding:var(--space-6)}
  .fmt .sim{display:contents}
  /* a second simulator in the lesson: its own full-width row below the first, not joined to the grid */
  .fmt .sim.sim-solo{display:block;grid-column:1;width:calc(var(--fmt-h) * 1.5)}
  .fmt .sim.sim-solo .sim-caption{min-height:0;margin-top:var(--space-2)}
  .fmt .sim-stage{grid-area:1/1;width:calc(var(--fmt-h) * 1.5)}
  .fmt-text{grid-area:1/2}
  .fmt .sim-credit,.fmt .sim-control{grid-column:1}
  .fmt .sim-caption{grid-column:2;grid-row:2/span 3;align-self:start;min-height:100px;margin-top:var(--space-3);font-size:14px;line-height:20px;color:var(--ink-muted)}
}

/* tutor: full-width lime feature band, portrait bleeding to its edges.
   Owner's call: the system otherwise keeps lime to short labels, so this is the one lime panel on the site. */
.tutor-band{display:grid;background:var(--accent);color:var(--on-accent)}
.tutor-copy{display:flex;flex-direction:column;align-items:flex-start;gap:var(--space-4);padding:var(--space-24) var(--space-8) var(--space-24) var(--gutter)}
.tutor-copy .afl-label{margin:0;color:var(--on-accent)}
.tutor-band h2{margin:0;font-size:clamp(48px,7vw,88px);line-height:.92;font-weight:700;letter-spacing:-.03em}
.tutor-role{margin:0;font-size:20px;line-height:26px;font-weight:500}
.tutor-bio{margin:0 0 var(--space-4);font-size:18px;line-height:28px;max-width:44ch}
/* lime-on-lime would vanish, so the button here is black */
.tutor-copy .afl-btn{margin-top:var(--space-4);background:var(--on-accent);color:var(--accent);border-color:var(--on-accent)}
.tutor-copy .afl-btn:hover{background:transparent;color:var(--on-accent)}
.tutor-social{display:flex;gap:var(--space-3);margin:0;padding:0;list-style:none}
.tutor-social a{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--on-accent);color:var(--on-accent)}
.tutor-social a:hover,.tutor-social a:focus-visible{background:var(--on-accent);color:var(--accent)}
.tutor-social svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.tutor-photo{position:relative;min-height:360px;display:grid;place-items:center;background:var(--surface-raised)}
.tutor-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
@media (min-width:800px){.tutor-band{grid-template-columns:1.1fr .9fr}}

/* price band (PriceBlock): full width, content on the page grid */
.landing-page .afl-price{padding:var(--space-24) var(--gutter)}

/* price carousel: one course per slide. Native scroll-snap moves it; landing.js adds buttons and the counter. */
.harga-head{display:flex;flex-wrap:wrap;align-items:end;justify-content:space-between;gap:var(--space-4);margin-bottom:var(--space-8)}
.harga-nav{display:flex;align-items:center;gap:var(--space-3)}
.harga-nav .afl-btn{padding:var(--space-2) var(--space-4)}
.harga-track{position:relative;display:flex;gap:var(--gutter);overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.harga-track::-webkit-scrollbar{display:none}
.harga-slide{flex:0 0 100%;scroll-snap-align:start;display:grid;align-content:start;gap:var(--space-8)}
.harga-slide .afl-price__list{margin-bottom:var(--space-6)}
.harga-soon{margin:var(--space-4) 0 var(--space-2);font-size:clamp(32px,5vw,40px);line-height:1.1;font-weight:700;letter-spacing:-.02em;color:var(--ink-muted)}
/* module names as chips (square, per the system: no rounded pills) */
.harga-pills{list-style:none;margin:var(--space-3) 0 0;padding:0;display:flex;flex-wrap:wrap;gap:var(--space-2)}
.harga-pills li{display:flex;align-items:baseline;gap:var(--space-2);padding:var(--space-2) var(--space-3);background:var(--surface-raised);border-radius:var(--radius-sm);font-size:14px;line-height:20px;font-weight:500}
.harga-pills span{font-family:var(--font-mono);font-size:12px;letter-spacing:.08em;color:var(--accent-ink)}
@media (min-width:900px){.harga-slide{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:var(--space-12)}}

/* scroll reveal: a focus pull. Each block comes into focus once as it enters the screen; nothing slides.
   landing.js adds .reveal-on and .reveal, so without JS or with reduced motion everything is simply visible. */
.reveal-on .reveal{opacity:.12;filter:blur(10px);transition:opacity .6s ease-out,filter .6s ease-out;transition-delay:var(--reveal-delay,0ms)}
.reveal-on .reveal.in{opacity:1;filter:none}
@media print{.reveal-on .reveal{opacity:1;filter:none}}

/* faq + footer */
#faq .afl-faq{max-width:760px}
.lp-foot{padding:var(--space-8) var(--gutter) var(--space-12);border-top:1px solid var(--line)}
.lp-foot-row{display:flex;align-items:center;justify-content:space-between;gap:var(--space-3);min-height:44px}
.lp-credit{margin:var(--space-3) 0 0;font-size:14px;line-height:20px;color:var(--ink-muted);max-width:65ch}
.lp-credit a{color:inherit;display:inline-block;padding:10px 0;margin:-10px 0}

@media (max-width:650px){
  .landing-top{padding-inline:calc(var(--inset) + 14px)}
  .rec{margin-inline:calc(var(--inset) + 14px)}
  .landing-top .afl-btn{padding:var(--space-2) var(--space-3);white-space:nowrap;flex:none}
  .lp{padding-bottom:var(--space-12)}
  .lp-sec{padding-top:var(--space-12)}
  .tutor-copy{padding:var(--space-12) var(--gutter)}
  .landing-page .afl-price{padding-block:var(--space-12)}
  .afl-price__now{font-size:72px;line-height:68px}
}

/* key pill: the two facts that matter (date, limited seats). Lime outline, not a fill, so the one lime fill stays on the button. */
.afl-badge--key{border-color:var(--accent-ink);color:var(--accent-ink)}
.landing-pill .afl-badge--key::before{content:"";display:inline-block;width:8px;height:8px;margin-right:var(--space-2);background:var(--accent-ink)}

/* ---- landing: hero slider, module cards ---- */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* hero slider: one full-screen slide per product. Without JS the slides simply stack. */
.hs{position:relative;overflow:hidden;background:var(--band);color:var(--on-band)}
.hs-top{position:absolute;inset:0 0 auto;z-index:3}
.hs-slide{position:relative;min-height:100vh;min-height:100svh;display:flex;flex-direction:column;justify-content:flex-end}
.hs--js .hs-track{display:grid;touch-action:pan-y}
.hs--js .hs-slide{grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .8s ease,visibility .8s}
.hs--js .hs-slide.is-on{opacity:1;visibility:visible}
@media (prefers-reduced-motion:reduce){.hs--js .hs-slide{transition:none}}
.hs-media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* the one permitted gradient: the photo fading to band so the copy stays readable */
.hs-scrim{position:absolute;inset:0;pointer-events:none;background:linear-gradient(to bottom,color-mix(in srgb,var(--band) 75%,transparent),color-mix(in srgb,var(--band) 55%,transparent) 25%,color-mix(in srgb,var(--band) 90%,transparent) 55%,var(--band))}
.hs-rec{position:absolute;top:calc(var(--inset) + 56px);right:0}
.hs-copy{position:relative;z-index:2;max-width:680px;padding:calc(var(--inset) + 96px) calc(var(--inset) + 14px) calc(var(--inset) + 96px)}
.hs-title{font-size:clamp(40px,7vw,64px);line-height:.94;font-weight:700;letter-spacing:-.03em;margin:0 0 var(--space-4)}
/* e-book: placeholder cover until the real one exists */
.hs-cover{position:absolute;top:50%;right:var(--gutter);translate:0 -50%;width:min(28vw,320px);aspect-ratio:3/4;display:grid;place-items:center;background:var(--surface-raised);border:1px solid var(--line)}
.hs-nav{display:none}
.hs--js .hs-nav{position:absolute;z-index:3;left:calc(var(--inset) + 14px);bottom:calc(var(--inset) + var(--space-6));display:flex;align-items:center;gap:var(--space-4)}
.hs-dots{display:flex}
.hs-dot{width:44px;height:44px;padding:0;border:0;background:none;cursor:pointer;display:grid;place-items:center}
.hs-dot::before{content:"";width:28px;height:3px;background:var(--line-strong)}
.hs-dot[aria-current="true"]::before{background:var(--accent-ink)}
.hs-toggle{min-height:44px;padding:0 var(--space-3);background:none;border:1px solid var(--line-strong);border-radius:var(--radius-sm);color:var(--on-band);cursor:pointer}
@media (max-width:650px){
  .hs-top{padding-inline:calc(var(--inset) + 14px)}
  .hs-cover{top:calc(var(--inset) + 72px);right:auto;left:calc(var(--inset) + 14px);translate:none;width:40vw}
}

/* module cards: number, part, title, one real line from a chapter, chapter list */
.mods{list-style:none;margin:0;padding:0;display:grid;gap:var(--space-4);grid-template-columns:repeat(auto-fill,minmax(300px,1fr))}
.mod{display:flex;flex-direction:column;gap:var(--space-3);padding:var(--space-6);background:var(--surface);border:1px solid var(--line)}
.mod .afl-label{margin:0}
.mod-no{color:var(--accent-ink)}
.mod h3{margin:0;font-size:20px;line-height:26px;font-weight:500}
.mod blockquote{margin:0;padding-left:var(--space-4);border-left:2px solid var(--accent-ink);font-size:18px;line-height:28px}
.mod ul{margin:auto 0 0;padding:var(--space-3) 0 0;border-top:1px solid var(--line);list-style:none;display:grid;gap:var(--space-1);font-size:14px;line-height:20px;color:var(--ink-muted)}
.mods-note{margin:var(--space-6) 0 0}

/* single price block */
.harga-one{display:grid;gap:var(--space-8);margin-top:var(--space-6)}
.harga-one .afl-btn{margin-top:var(--space-4)}
@media (min-width:900px){.harga-one{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;gap:var(--space-12)}}

/* phones: sticky buy bar (landing.js shows it) */
.buybar{position:fixed;z-index:20;inset:auto 0 0;padding:var(--space-3) var(--space-4);background:var(--band);border-top:1px solid var(--line-strong)}
@media (min-width:651px){.buybar{display:none}}
@media (max-width:650px){body:has(.buybar) .lp-foot{padding-bottom:96px}}
