/* Clamshell v2 homepage, normal scroll: the shared base (owner: structure, see
   scratch/site-reimagine-2026-10-28/build/site/SECTIONS.md).
   Page base, the cell grid, the palette, type, section rhythm, the nav, buttons, links,
   focus. The page scrolls at the normal rate: nothing here is sticky or pinned except the
   fixed nav. Light is stepped ramp tones or nothing: no gradients and no soft halos. */
@font-face{font-family:"Geist";font-style:normal;font-weight:100 900;font-display:swap;src:url(../hero/assets/geist-latin-9b6f5ff45b.woff2) format("woff2")}
@property --cell{syntax:"<length>";inherits:true;initial-value:3px}

:root{
  /* The v2 ramp (pixel art uses only these) and the text tones. */
  --black:#000;--n0:#0c0d0f;--n1:#131417;--n2:#191b1f;
  --night:#0d1534;--dusk:#142152;--deep:#1f3480;--blue:#345cd6;--sheen:#5476e8;--light:#7d9aff;--ice:#d6e0ff;
  --tx:#f4f5f6;--tx2:#9aa0a8;
  /* Layout tokens. --gutter is the nav's edge; --sec-gap is the one gap between sections
     (each section pads half of it at top and bottom). */
  --nav-h:72px;--gutter:max(24px,calc(50% - 680px));--sec-gap:clamp(112px,12vw,176px);--col:720px;
  /* The page cell: one pixel of the art, the hero's grid (desktop 480 x 285 cells of view). */
  --cell:3px;
}
@supports (width:round(nearest,1px,1px)){
  /* Capped by width as well as height, so a taller window (Zen without its toolbar) does not
     step the whole page up a size. */
  :root{--cell:clamp(2px,min(round(down,100vw / 560,.5px),round(down,100svh / 285,.5px)),6px)}
}
/* One content width for the whole page: the span of the features' three windows (406 of
   their cells). Every section, the nav included, sits on its edges (--gutter), and the
   module grid stretches its gaps to fill it exactly. */
:root{--fc:var(--cell);--content:calc(406 * var(--fc));--gutter:max(24px,calc((100vw - var(--content)) / 2))}
@supports (width:round(nearest,1px,1px)){
  :root{--fc:clamp(1.5px,min(var(--cell),round(down,(100vw - 32px) / 440,.5px)),6px)}
}
/* Where the module grid shows, never narrower than its four cards at a whole 2px cell (the
   features then sit a few pixels inside the edges at the smallest size). */
@media (min-width:1400px) and (min-aspect-ratio:4/5){
  :root{--content:max(calc(406 * var(--fc)),1072px)}
}
@media (max-width:759px),(max-aspect-ratio:4/5){
  :root{--nav-h:60px;--gutter:20px;--sec-gap:96px;--cell:2px}
  @supports (width:round(nearest,1px,1px)){
    :root{--cell:clamp(1.5px,min(round(nearest,100vw / 195,.5px),round(down,100svh / 405,.5px)),4px)}
  }
}

*{box-sizing:border-box;margin:0;padding:0}
html{background:#000;-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:calc(var(--nav-h) + 24px)}
body{background:#000;color:var(--tx);font-family:"Geist",-apple-system,BlinkMacSystemFont,system-ui,sans-serif;font-size:17px;line-height:1.6;letter-spacing:-.011em;-webkit-font-smoothing:antialiased;overflow-x:hidden}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit}
::selection{background:var(--blue);color:#fff}
:focus-visible{outline:2px solid var(--light);outline-offset:3px;border-radius:6px}
/* Art that waits off screen (the train beyond the right edge, wide blends) must never widen
   the page: clip it (positioned, so hidden text placed absolutely is clipped too), so a
   trackpad cannot nudge the page sideways. */
main{position:relative;overflow-x:clip}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.skip{position:absolute;left:16px;top:-60px;z-index:100;background:var(--tx);color:#000;padding:8px 14px;border-radius:10px;font-weight:600}
.skip:focus{top:16px}

/* ---------- Pixel art ---------- */
/* Art is pre-rendered at one texel per cell and upscaled: size every piece in cells,
   calc(n * var(--cell)), so edges land on the grid. */
.px{image-rendering:pixelated;image-rendering:crisp-edges;image-rendering:pixelated}
.px-bg{background-repeat:no-repeat;background-size:100% 100%;image-rendering:pixelated;image-rendering:crisp-edges;image-rendering:pixelated}
/* Parallax layers (parallax.js) get their own layer: a transform change never repaints. */
[data-px]{will-change:transform}

/* ---------- Nav: the site bar doubles as the menu bar ---------- */
/* Like clamshell.dev: the bar shows for a beat after load, then closes upward while the page
   sits at the very top so the hero room stands alone; it comes back the moment the page
   scrolls, the pointer nears the top edge, or a link in it takes focus. Transparent over
   the room, a solid black bar once the page moves (site.js sets .is-solid / .is-up). */
.nav{position:fixed;inset:0 0 auto;z-index:50;display:flex;align-items:center;gap:6px;height:var(--nav-h);padding:0 var(--gutter);background:transparent;transition:background-color .3s steps(3),transform .32s cubic-bezier(.2,.7,.2,1)}
.nav.is-solid{background:#000}
.nav.is-up:not(:focus-within){transform:translate3d(0,-100%,0)}
@media (scripting:none){.nav{background:#000}}
.brand{display:flex;align-items:center;gap:10px;margin-right:auto;font-weight:650;font-size:18px;letter-spacing:-.02em;color:var(--tx)}
.brand img{width:36px;height:36px;image-rendering:pixelated}
.brand>span{line-height:24px}
.nav-links{display:flex;gap:2px}
.nav-links a{color:var(--tx2);font-size:15px;font-weight:500;padding:8px 12px;border-radius:10px}
.nav-links a:hover{color:#fff;background:var(--deep)}
.btn-get{display:inline-flex;align-items:center;height:42px;padding:0 16px;border-radius:12px;background:var(--blue);color:#fff;font-size:14.5px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;transition:background-color .15s}
.btn-get:hover{background:#4a72ea}
@media (max-width:759px),(max-aspect-ratio:4/5){
  .nav{gap:4px;padding:0 14px}
  .brand span{display:none}
  .brand img{width:32px;height:32px}
  .nav-links a{font-size:14px;padding:7px 7px}
  .btn-get{height:38px;padding:0 12px;font-size:14px;border-radius:11px}
}
@media (max-width:900px){.nav-links a:not(:first-child){display:none}}
/* Phones: every nav target at least 44px tall, the bar's look unchanged (the hit area grows
   past the drawn shape, not the shape). Touch screens of any size get the same. */
@media (max-width:759px),(pointer:coarse){
  .brand{padding:6px;margin:-6px auto -6px -6px}
  .nav-links a{padding-block:11px}
  .btn-get{position:relative}
  .btn-get::after{content:"";position:absolute;inset:-4px -2px}
  .pick label{height:44px}
}

/* ---------- Sections: normal flow, one rhythm ---------- */
/* Every section is a plain block in the page flow. Text sections pad half the section gap
   at top and bottom (two neighbours make one gap); full-bleed art sets its own padding. */
.sec{position:relative;padding-block:calc(var(--sec-gap) / 2)}
.wrap{padding-inline:var(--gutter)}
.col{width:min(var(--col),calc(100% - 2 * var(--gutter)));margin-inline:auto}
/* Section heading: one size for every h2 that leads a block. */
.sec-h2{font-size:clamp(32px,calc(var(--cell) * 15),68px);line-height:1.02;font-weight:700;letter-spacing:-.045em;color:var(--tx);text-wrap:balance}
/* At most one body line under a heading. */
.sec-line{margin-top:16px;font-size:17px;line-height:1.5;color:var(--tx2);max-width:46ch}
@media (max-width:759px),(max-aspect-ratio:4/5){
  .sec-h2{font-size:clamp(28px,calc(var(--cell) * 15),40px)}
  .sec-line{font-size:16px}
}

/* ---------- Buttons and links (buttons are shapes, links are underlined) ---------- */
.btn-mac{display:inline-flex;align-items:center;gap:12px;height:60px;padding:0 28px 0 24px;border-radius:16px;background:#fff;color:#000;font-size:17.5px;font-weight:600;letter-spacing:-.01em;white-space:nowrap;transition:outline-color .15s steps(2)}
/* Hover goes brighter: the white face keeps its white and gains a lit ice ring. */
.btn-mac:hover{outline:2px solid var(--ice);outline-offset:2px}
.btn-mac:active{transform:translateY(1px)}
.apple{width:22.5px;height:27px;margin-top:-4px;flex:none}
.apple .ap-hi{fill:#000}.apple .ap-lo{fill:#6b6f76}
.btn-ghost{display:inline-flex;align-items:center;gap:8px;height:52px;padding:0 22px;border-radius:14px;border:2px solid var(--blue);color:var(--tx);font-size:16.5px;font-weight:600;white-space:nowrap;transition:border-color .15s steps(2),background-color .15s steps(2)}
.btn-ghost:hover{border-color:var(--light);background:var(--night)}
.link{color:var(--tx);text-decoration:underline;text-decoration-color:var(--blue);text-decoration-thickness:2px;text-underline-offset:4px;transition:color .15s steps(2),text-decoration-color .15s steps(2)}
.link:hover{color:#fff;text-decoration-color:var(--light)}
@media (max-width:759px),(max-aspect-ratio:4/5){
  .btn-mac{height:54px;padding:0 18px 0 16px;gap:10px;font-size:16px;border-radius:14px}
  .apple{width:20px;height:24px}
}
@media (min-width:1680px) and (min-height:960px) and (min-aspect-ratio:4/5){
  .btn-mac{height:68px;padding:0 32px 0 28px;font-size:19.5px;border-radius:18px}
  .apple{width:25px;height:30px}
}

/* Small layout helpers for section markup. */
.row{display:flex;flex-wrap:wrap;align-items:center;gap:16px 20px}
.mt-l{margin-top:calc(var(--cell) * 12)}
.mt-m{margin-top:24px}

/* The license picker (two options; the price and checkout path follow it, site.js). */
.pick{display:inline-flex;align-items:center;gap:4px;border:0}
.pick input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.pick label{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 12px;border-radius:10px;color:var(--tx2);font-size:15px;font-weight:550;white-space:nowrap;cursor:pointer;transition:color .15s steps(2),background-color .15s steps(2)}
.pick label::before{content:"";width:12px;height:12px;border:2px solid var(--deep);background:#000}
.pick label:hover{color:#fff;background:var(--night)}
.pick input:checked+label{color:var(--tx)}
.pick input:checked+label::before{border-color:var(--light);background:var(--light)}
.pick input:focus-visible+label{outline:2px solid var(--light);outline-offset:2px}

/* The Setapp badge (staged: shown after its release time, site.js). */
.card-setapp{display:flex;align-items:center;flex:none}
.card-setapp[hidden]{display:none}
.setapp-badge{display:inline-flex;align-items:center;gap:10px;padding:6px 12px 6px 8px;border-radius:10px;color:var(--tx);transition:background-color .15s steps(2)}
.setapp-badge:hover{background:var(--n1)}
.setapp-mark{width:21px;height:30px;image-rendering:pixelated}
.setapp-words{display:flex;flex-direction:column;line-height:1}
.setapp-on{font-size:12px;font-weight:600;line-height:14px;color:var(--tx2)}
.setapp-name{font-size:16px;font-weight:700;line-height:20px;letter-spacing:-.02em;color:var(--tx)}

/* The laurel slots (filled by the train section's laurel.js; empty until then). */
.laurel-slot:empty{display:none}

/* ---------- Reduced motion: no transitions on state flips ---------- */
@media (prefers-reduced-motion:reduce){
  .nav,.btn-get,.btn-mac,.btn-ghost,.link,.pick label,.setapp-badge{transition:none}
}
