/* Site: navigation on the left (Home, Presets with its categories, About), the page on the right. Tokens and header live in base.css. */
.site{display:grid;grid-template-columns:var(--side) minmax(0,1fr);gap:var(--gap);padding-block:40px 80px}

.side{position:sticky;top:calc(var(--hdr) + 40px);align-self:start;display:flex;flex-direction:column;gap:28px}
.nav{display:flex;flex-direction:column;gap:6px}
.nav a{color:var(--mute);transition:color .2s;display:flex;gap:6px;align-items:baseline;width:max-content}
.nav a:hover,.nav a[aria-current="page"]{color:var(--fg)}
.nav sup{font-size:9px;color:var(--mute);font-variant-numeric:tabular-nums}
.folder{display:flex;flex-direction:column;gap:6px}
.nav[data-sec="presets"] #navPresets{color:var(--fg)}
/* the categories sit inside Presets like files in a folder */
.sub{display:flex;flex-direction:column;gap:6px;margin:2px 0 4px 1px;padding-left:14px;border-left:1px solid var(--line)}
.cat-note{margin:0;color:var(--mute);max-width:26ch}

/* Home and About: mostly white space */
.page{display:flex;flex-direction:column;gap:22px;max-width:60ch;padding-top:8px}
.page.in{animation:rise .7s cubic-bezier(.2,.7,.2,1) both}
.lead{margin:0;font-size:clamp(26px,3.2vw,40px);font-weight:400;line-height:1.12;letter-spacing:-.01em;max-width:18ch;text-wrap:balance}
.intro{margin:0;color:var(--ink2);max-width:46ch;text-wrap:pretty}
.facts{margin:8px 0 0;display:grid;grid-template-columns:140px minmax(0,1fr);border-top:1px solid var(--line)}
.facts dt,.facts dd{margin:0;padding:14px 0;border-bottom:1px solid var(--line)}
.facts dt{color:var(--mute)}
.facts dd{color:var(--ink2);text-wrap:pretty}

.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:48px 28px;align-content:start}
.card{display:flex;flex-direction:column;gap:10px;min-width:0}
.card .thumb{aspect-ratio:9/16;max-width:100%;background:var(--tile);overflow:hidden}
.card img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.card:hover img{transform:scale(1.025)}
.card .t{color:var(--fg)}
.card .s{color:var(--mute);margin-top:-8px}
.card.in{animation:rise .7s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i) * 55ms)}

.detail{display:flex;flex-direction:column;gap:16px}
.back{color:var(--mute);width:max-content}
.back:hover{color:var(--fg)}
.viewer{display:flex;flex-direction:column;align-items:center;gap:22px}
.screen{position:relative;height:min(calc(100vh - var(--hdr) - 330px),1000px);min-height:360px;aspect-ratio:9/16;max-width:100%;background:var(--tile)}
.screen img,.screen iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;object-fit:cover}
.screen iframe{opacity:0;transition:opacity .8s}
.screen iframe.live{opacity:1}
.caption{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;max-width:52ch}
.caption h1{font-size:13px;font-weight:400;margin:0}
.caption .meta{margin:0;color:var(--mute)}
.caption .about{margin:6px 0 10px;color:var(--ink2);text-wrap:pretty}
.try{display:inline-block;background:var(--fg);color:var(--bg);padding:12px 34px;letter-spacing:.02em;transition:opacity .2s}
.try:hover{opacity:.82}
.step{display:flex;gap:28px;margin-top:14px;color:var(--mute)}
.step a:hover{color:var(--fg)}
.detail.in .viewer{animation:rise .7s cubic-bezier(.2,.7,.2,1) both}

@media (max-width:760px){
  .site{grid-template-columns:minmax(0,1fr);padding-block:20px 60px;gap:24px}
  .side{position:static;gap:10px}
  .nav{flex-direction:row;flex-wrap:wrap;gap:8px 20px}
  .folder{display:contents}
  .sub{order:3;flex-basis:100%;flex-direction:row;flex-wrap:wrap;gap:6px 18px;margin:4px 0 0;padding:10px 0 0;border-left:0;border-top:1px solid var(--line)}
  .nav:not([data-sec="presets"]) .sub{display:none}
  .facts{grid-template-columns:minmax(0,1fr)}
  .facts dt{padding-bottom:0;border-bottom:0}
  .facts dd{padding-top:6px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:32px 16px}
  .screen{height:auto;width:100%;min-height:0}
}

/* free / paid */
.card .t{display:flex;align-items:baseline;gap:8px}
.tag{font-style:normal;font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:var(--mute)}
.tag.free{color:var(--fg)}

/* account page */
.signin{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap;max-width:46ch}
.signin .consent{flex-basis:100%;order:2}
.signin .try{order:3}
.signin input[type=email],.signin input.code{flex:1 1 220px;font:inherit;border:0;border-bottom:1px solid var(--line);padding:8px 0;background:transparent;color:var(--fg);outline:none}
.signin input[type=email]:focus,.signin input.code:focus{border-bottom-color:var(--fg)}
.try:disabled{opacity:.35;cursor:default}
button.try{font:inherit;border:0;cursor:pointer}
.hint-line{margin:0;color:var(--mute)}
.looklist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.looklist li{display:flex;gap:14px;align-items:baseline}
.looklist .mute{color:var(--mute)}
.looklist .acct-link{margin-left:auto}

/* Home: one live preset beside a big line of type, then every preset in a strip.
   The headline's top and the buttons' baseline line up with the frame's edges; the rest is air. */
/* on the home page the menu is three words, so its column shrinks and the page moves left */
.site.is-home{--side:112px}
.page.home{max-width:none;gap:0;padding-top:0;container-type:inline-size;
  --fh:clamp(440px,calc(100svh - var(--hdr) - 150px),780px);   /* frame height */
  --fw:calc(var(--fh) * 9 / 16);                                /* frame width */
  --air:clamp(0px,6.5vw,128px);                                 /* the margin right of the frame */
  --cg:clamp(40px,7vw,128px);                                   /* between the words and the frame */
}
.hero{
  display:grid;grid-template-columns:minmax(0,1fr) var(--fw) var(--air);grid-template-rows:1fr auto auto;
  grid-template-areas:"h f ." "s f ." "a f .";column-gap:0;
}
.hero-h,.hero-sub,.hero-act{margin-right:var(--cg)}
/* the headline: present, not shouting; it only shrinks further when its column is narrow */
.hero-h{grid-area:h;align-self:start;margin-top:-.06em;margin-bottom:0;font-size:clamp(36px,3.9vw,64px);font-size:min(clamp(36px,3.9vw,64px),calc((100cqi - var(--fw) - var(--air) - var(--cg)) / 7.9));font-weight:400;line-height:.98;letter-spacing:-.03em}
.hero-h span{display:block;white-space:nowrap}
.hero-sub{grid-area:s;margin:0 0 28px;max-width:34ch;font-size:clamp(15px,1.12vw,18px);line-height:1.5;color:var(--ink2);text-wrap:pretty}
.hero-act{grid-area:a;display:flex;align-items:center;gap:28px;flex-wrap:wrap}
.more{color:var(--mute);transition:color .2s}
.more:hover{color:var(--fg)}
.hero-fig{grid-area:f;margin:0;position:relative;width:var(--fw)}
.frame{position:relative;width:100%;aspect-ratio:9/16;background:var(--tile);overflow:hidden}
.frame img,.mini-th img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
#cv{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;opacity:0;transition:opacity .9s ease}
#cv.on{opacity:1}
.hero-cap{position:absolute;left:0;right:0;top:calc(100% + 12px);white-space:nowrap;display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--mute);font-variant-numeric:tabular-nums}
.snd{font:inherit;letter-spacing:inherit;text-transform:inherit;color:var(--fg);background:none;border:0;padding:10px 0;margin:-10px 0;cursor:pointer}
.snd[aria-pressed="true"]{text-decoration:underline;text-underline-offset:3px}

.proof{margin-top:clamp(120px,16vh,180px);margin-right:var(--air);display:flex;flex-direction:column;gap:20px}
.proof-h{margin:0;font-size:15px;color:var(--fg)}
.strip{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:14px}
.mini{display:flex;flex-direction:column;gap:8px;min-width:0}
.mini-th{position:relative;aspect-ratio:9/16;background:var(--tile);overflow:hidden}
/* a hairline over the picture, so a white preset (Metro) still has an edge */
.frame::after,.mini-th::after{content:"";position:absolute;inset:0;border:1px solid rgba(0,0,0,.06);pointer-events:none;z-index:1}
.mini-t{display:flex;align-items:baseline;gap:8px;font-size:12px;color:var(--fg)}
.access{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 48px;margin-top:28px;padding-top:18px;border-top:1px solid var(--line)}
.access p{margin:0;display:flex;flex-direction:column;gap:6px;max-width:46ch;color:var(--ink2);text-wrap:pretty}

@media (max-width:1100px){
  .strip{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-inline:-16px;padding-inline:16px;scroll-padding-inline:16px}
  .strip::-webkit-scrollbar{display:none}
  .mini{flex:0 0 140px;scroll-snap-align:start}
}
@media (max-width:1099px){
  /* stacked: the line, the button, then the picture, cropped to 4:5 so the button stays on the first screen */
  .page.home{--air:0px}
  .hero{grid-template-columns:minmax(0,1fr);grid-template-rows:none;grid-template-areas:"h" "s" "a" "f"}
  .hero-h,.hero-sub,.hero-act{margin-right:0}
  .hero-h{font-size:clamp(32px,9vw,52px);margin-bottom:18px}
  .hero-sub{margin-bottom:24px}
  .hero-fig{width:min(100%,460px);margin-top:40px}
  .hero-fig .frame{aspect-ratio:4/5}
}
@media (max-width:760px){
  .hero-sub{font-size:15px;max-width:30ch}
  .hero-fig{margin-top:32px}
  .proof{margin-top:84px}
  .access{grid-template-columns:minmax(0,1fr);gap:18px}
  .mini{flex-basis:128px;scroll-snap-align:center}
}
}
.sub-offer{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.sub-offer p{margin:0}
