/* Acclines marketing — the home-page hero and its showcase.
   Loaded by index.html after site.css + close.css. Everything is scoped under
   `.show-hero` so it can't touch the shared primitives or the module tour
   below it. Reuses site.css tokens; only the missing ones are added here. */

:root{
  --mono:'Geist Mono',ui-monospace,'SF Mono',Menlo,monospace;
  --subtle:#6C757D;
}
body{overflow-x:hidden}

/* ---------- hero text ---------- */
/* trim the section's default 104px padding: the showcase below carries its own air */
.show-hero{position:relative;padding:64px 0;isolation:isolate}
/* A tactile field of source paper sits behind the opening copy. It is evidence,
   not decoration: neutral, text-free, and edge-weighted so the real product
   sequence remains the hero. The mask lets the paper recede before the
   showcase instead of ending on a visible image edge. */
.show-hero .hero-paper-bg{position:absolute;z-index:-1;inset:0 0 auto;width:100%;height:760px;object-fit:cover;object-position:center top;opacity:.28;pointer-events:none;
  -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 50%,transparent 70%);
          mask-image:linear-gradient(to bottom,#000 0%,#000 50%,transparent 70%)}
.show-hero .hero-copy{position:relative;z-index:1;max-width:920px;margin:0 auto;padding:56px 24px 26px;text-align:center}
.show-hero .eyebrow{font-family:var(--mono);font-size:11px;font-weight:500;letter-spacing:.16em;text-transform:uppercase;color:var(--subtle);margin-bottom:26px}
.show-hero .hero-copy h1{font-family:var(--serif);font-size:clamp(40px,5.4vw,64px);line-height:1.05;letter-spacing:-.02em;font-weight:500;text-wrap:balance;margin:0 auto 22px;max-width:16ch}
/* keep the italic emphasis in ink — blue is reserved for AI provenance only,
   so it must not leak onto a headline word (site.css styles <em> blue). */
.show-hero .hero-copy h1 em{font-style:italic;font-weight:400;color:var(--ink)}
.show-hero .hero-copy .sub{font-size:18.5px;line-height:1.55;color:var(--meta);max-width:44ch;margin:0 auto 34px;text-wrap:balance}
.show-hero .cta-row{display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;margin-bottom:52px}
.show-hero .follow{font-family:var(--mono);font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--subtle)}
.show-hero .follow .arr{display:block;margin-top:6px;font-size:12px}
@keyframes heroIn{from{opacity:0;transform:translateY(16px)}}
@keyframes heroBob{0%,100%{transform:translateY(0)}50%{transform:translateY(3px)}}
@media(prefers-reduced-motion:no-preference){
  .js .show-hero .hero-anim{animation:heroIn .7s var(--ease) backwards}
  .js .show-hero .hero-anim:nth-child(2){animation-delay:.08s}
  .js .show-hero .hero-anim:nth-child(3){animation-delay:.16s}
  .js .show-hero .hero-anim:nth-child(4){animation-delay:.24s}
  .js .show-hero .hero-anim:nth-child(5){animation-delay:.32s}
  .show-hero .follow .arr{animation:heroBob 1.9s ease-in-out infinite}
}

/* ---------- the showcase ----------
   Screen captures of the running app, played as one bill's journey. The stage
   keeps a fixed aspect ratio so the page below never moves while frames load.
   The film inside is laid out at the captured size and scaled to fit, which
   keeps the overlaid strips and the click ring on the captured pixels. */
/* The width is capped by the viewport's height as well, so the stage, its
   rail and its caption are on screen together on a laptop. */
.show-hero .showcase{position:relative;z-index:1;max-width:clamp(760px,calc((100svh - 300px)*1.6 + 76px),1168px);margin:0 auto;padding:22px 24px 0;scroll-margin-top:84px}
.show-hero .sc-frame{background:var(--paper);border-radius:20px;padding:14px;box-shadow:inset 0 0 0 1px rgba(47,52,55,.05)}
.show-hero .sc-stage{position:relative;aspect-ratio:16/10;overflow:hidden;border-radius:9px;background:var(--surface);box-shadow:var(--frame)}
.show-hero .sc-poster img{display:block;width:100%;height:100%;object-fit:cover}
.show-hero .sc-film{position:absolute;left:0;top:0;transform-origin:0 0;opacity:0}
.show-hero .sc-film.ready{opacity:1}
.show-hero .sc-film picture{position:absolute;inset:0;opacity:0}
.show-hero .sc-film picture.on{opacity:1}
.show-hero .sc-film picture.sc-fade{transition:opacity .28s linear}
.show-hero .sc-film picture.sc-strip{right:auto;bottom:auto;z-index:2}
.show-hero .sc-film img{display:block;width:100%;height:100%;max-width:none}
/* Marks where the click lands. It is an annotation over the capture, not app UI. */
.show-hero .sc-ring{position:absolute;z-index:4;width:44px;height:44px;margin:-22px 0 0 -22px;border-radius:50%;border:2px solid var(--action);opacity:0;pointer-events:none}
.show-hero .sc-ring.go{animation:scRing .7s var(--ease)}
@keyframes scRing{0%{opacity:0;transform:scale(1.6)}35%{opacity:.9;transform:scale(1)}70%{opacity:.9;transform:scale(.8)}100%{opacity:0;transform:scale(.8)}}

/* The rail is the controls, so it only exists once the script can drive it. */
.show-hero .sc-rail{display:none;gap:12px;align-items:stretch;margin:22px 6px 0}
.js .show-hero .sc-rail{display:flex}
.show-hero .showcase.failed .sc-rail{display:none}
.show-hero .sc-toggle{flex:none;width:40px;height:40px;display:grid;place-items:center;border:1px solid var(--g300);border-radius:10px;background:var(--surface);color:var(--ink);cursor:pointer}
.show-hero .sc-toggle svg{width:14px;height:14px;fill:currentColor}
.show-hero .sc-toggle .i-pause,.show-hero .showcase.playing .sc-toggle .i-play{display:none}
.show-hero .showcase.playing .sc-toggle .i-pause{display:block}
.show-hero .sc-steps{flex:1;min-width:0;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.show-hero .sc-step{position:relative;min-width:0;padding:10px 0 0;border:0;background:none;text-align:left;font:500 13.5px/1.2 var(--font);color:var(--subtle);cursor:pointer}
.show-hero .sc-step::before,.show-hero .sc-step i{content:"";position:absolute;left:0;top:0;width:100%;height:2px;border-radius:2px;background:var(--g300)}
.show-hero .sc-step i{background:var(--action);transform:scaleX(0);transform-origin:left}
.show-hero .sc-step.past i{transform:none}
.show-hero .sc-step[aria-current="step"]{color:var(--ink)}
.show-hero .showcase.playing .sc-step[aria-current="step"] i{animation:scBeat var(--sc-beat,5s) linear forwards}
.show-hero .showcase:not(.playing) .sc-step[aria-current="step"] i{transform:none}
@keyframes scBeat{to{transform:none}}
.show-hero .sc-toggle:focus-visible,.show-hero .sc-step:focus-visible{outline:2px solid var(--action);outline-offset:3px}
.show-hero .sc-caption{margin:18px 6px 0;max-width:46ch;min-height:2.7em;font-family:var(--serif);font-size:clamp(18px,2vw,21px);line-height:1.35;letter-spacing:-.005em;color:var(--ink);text-wrap:pretty}
.show-hero .sc-note{margin:8px 6px 0;font-family:var(--mono);font-size:10.5px;letter-spacing:.02em;color:var(--subtle)}

@media(prefers-reduced-motion:reduce){
  .show-hero .sc-toggle{display:none}
  .show-hero .sc-film picture.sc-fade{transition:none}
  .show-hero .sc-ring.go,.show-hero .showcase.playing .sc-step[aria-current="step"] i{animation:none}
  .show-hero .sc-step[aria-current="step"] i{transform:none}
}

/* ---------- the close of the hero ---------- */
.show-hero .finale{position:relative;z-index:1;text-align:center;padding:92px 24px 8px}
.show-hero .finale .statement{font-family:var(--serif);font-size:clamp(24px,3vw,30px);font-weight:500;letter-spacing:-.015em;line-height:1.2;margin-bottom:14px;text-wrap:balance}
.show-hero .finale .fsub{font-size:14.5px;color:var(--meta);max-width:44ch;margin:0 auto 26px;line-height:1.55;text-wrap:balance}
.show-hero .quiet-link{font-size:14.5px;font-weight:500;color:var(--ink);display:inline-flex;align-items:baseline;gap:7px}
.show-hero .quiet-link .arr{font-family:var(--mono);font-size:13px;color:var(--subtle);transition:transform .15s ease}
.show-hero .quiet-link:hover{text-decoration:underline;text-underline-offset:4px}
.show-hero .quiet-link:hover .arr{transform:translateX(2px)}

/* A whole desktop screen is unreadable at this width, so the stage switches to
   the phone set: a 4:5 window on the part of each screen that carries the beat. */
@media(max-width:640px){
  .show-hero .showcase{padding:14px 16px 0}
  .show-hero .sc-frame{padding:8px;border-radius:16px}
  .show-hero .sc-stage{aspect-ratio:4/5;border-radius:8px}
  .show-hero .sc-rail{gap:8px;margin-inline:2px}
  .show-hero .sc-steps{gap:8px}
  .show-hero .sc-step{font-size:12.5px}
  .show-hero .sc-caption{margin-inline:2px;min-height:4.1em}
  .show-hero .sc-note{margin-inline:2px}
  .show-hero .finale{padding-top:68px}
}
@media(max-width:430px){
  .show-hero .hero-paper-bg{height:620px;opacity:.2;
    -webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 48%,transparent 66%);
            mask-image:linear-gradient(to bottom,#000 0%,#000 48%,transparent 66%)}
}
