:root {
  --blueprint: #2457E6;
  --ink: #0E2378;
  --grid: rgba(127, 162, 255, .16);
  --glass: #EAF0FF;
  --muted: #B9C8F7;
  --pink: #FF2D87;
  --red: #FF3B30;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--glass);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
code, pre { font-family: var(--mono); font-size: .88em; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: 0; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); max-width: 16ch; }
h3 { font-size: 1.33rem; letter-spacing: -.015em; }
p { margin: 0; }

/* Hero: tall section, sticky stage; hero.js maps scroll through it to the sweep. */
.hero { height: 320vh; background: var(--blueprint); }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s; }
.ready #scene { opacity: 1; }
.fallback { display: none; }
.no-webgl .fallback { display: block; position: absolute; width: min(40vw, 320px); right: 12%; top: 50%; translate: 0 -50%; }

.hero-copy {
  position: absolute; left: var(--gutter); bottom: clamp(32px, 9vh, 96px);
  max-width: min(36rem, calc(100% - 2 * var(--gutter)));
}
.hero h1 {
  display: flex; align-items: center; gap: .18em;
  font-size: clamp(3.6rem, 10vw, 8.5rem); letter-spacing: -.055em; margin: 0 0 .25em -.04em;
}
.hero h1 img { width: .78em; height: .78em; filter: drop-shadow(0 .06em .12em rgba(10, 30, 110, .35)); }
.line { font-size: clamp(1.15rem, 1.9vw, 1.5rem); line-height: 1.35; max-width: 30ch; transition: opacity .4s; }
.hero-copy .line { grid-area: 1 / 1; }
.hero-copy { display: grid; }
.hero-copy h1, .hero-copy .cta { grid-column: 1; }
.hero-copy h1 { grid-row: 1; }
.hero-copy .line { grid-row: 2; }
.hero-copy .cta { grid-row: 3; }
.line.after { opacity: 0; }
.swept .line.before { opacity: 0; }
.swept .line.after { opacity: 1; }

.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 28px; }
.cmd {
  background: rgba(14, 35, 120, .55); border: 1px solid rgba(234, 240, 255, .25);
  padding: .6em .9em; border-radius: 8px; font-size: .85rem; overflow-x: auto; max-width: 100%; white-space: nowrap;
}
.copy {
  font: 600 .9rem var(--sans); color: var(--ink); background: var(--glass);
  border: 0; border-radius: 8px; padding: .6em 1em; cursor: pointer;
}
.copy:hover { background: #fff; }
.link { font-weight: 600; }

.counter {
  position: absolute; top: clamp(20px, 4vh, 40px); right: var(--gutter);
  font: 600 .95rem var(--sans); color: var(--glass); text-align: right;
}
.counter #count { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.counter::before { content: "Still on your Mac"; display: block; color: var(--glass); opacity: .75; font-weight: 400; }
.hint { position: absolute; right: var(--gutter); bottom: clamp(32px, 9vh, 96px); font-size: .9rem; opacity: .7; transition: opacity .3s; }
.swept .hint, .moved .hint { opacity: 0; }

/* Content */
main {
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--ink);
}
main > section { padding: clamp(56px, 8vw, 112px) var(--gutter); max-width: 1280px; margin: 0 auto; }

.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 680px); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 680px) minmax(0, 1fr); }
.feature.flip .text { order: 2; }
.feature h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); }
.feature .text { display: grid; gap: 1.2em; max-width: 34rem; }
.feature .text p, .feature dd { color: var(--muted); }
.shot { margin: 0; }
.shot img { border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(2, 8, 40, .7), 0 0 0 1px rgba(234, 240, 255, .12); }

dl { margin: 0; display: grid; gap: .35em; }
dt { font-weight: 600; display: flex; align-items: center; gap: .5em; margin-top: .6em; }
dd { margin: 0; }
.tick { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--muted); flex: none; }
.tick.on { background: var(--pink); border-color: var(--pink); position: relative; }
.tick.on::after { content: ""; position: absolute; left: 4.5px; top: 1px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; rotate: 45deg; }
.ways dt { font-size: 1.2rem; }
.note { border-left: 3px solid var(--pink); padding-left: 1em; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px);  }
main > .trio { padding-top: 0; }
.trio > div { border-top: 1px solid rgba(234, 240, 255, .25); padding-top: 1.2em; display: grid; gap: .6em; align-content: start; }
.trio p { color: var(--muted); }

.safe { display: grid; gap: 1.5em; }
.safe ul { list-style: none; padding: 0; margin: .5em 0 0; display: grid; gap: .1em; font-size: clamp(1.2rem, 2.2vw, 1.75rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.3; max-width: 34ch; }
.safe li { padding: .45em 0; border-bottom: 1px solid rgba(234, 240, 255, .14); }
.safe > p { color: var(--muted); max-width: 60ch; }

.term {
  margin: 0; background: #06103F; color: var(--glass); border-radius: 10px; padding: 1.1em 1.2em;
  overflow-x: auto; line-height: 1.6; box-shadow: 0 0 0 1px rgba(234, 240, 255, .1);
}
.term .p { color: var(--pink); }
.cli .term { grid-column: 1 / -1; }

.install { display: grid; gap: 1.2em; }
.install > * { max-width: 52rem; }
.install > p { color: var(--muted); max-width: 60ch; }
.install ol { padding: 0; margin: .6em 0; list-style: none; counter-reset: s; display: grid; gap: 1.6em; }
.install ol > li { counter-increment: s; display: grid; grid-template-columns: 2.2em minmax(0, 1fr); gap: .6em 0; align-items: start; }
.install ol > li::before { content: counter(s); font-weight: 800; font-size: 1.3rem; line-height: 1.2; grid-row: span 3; }
.install ol > li .copy { justify-self: start; }
.install h3 { margin-top: 1.4em; }
.needs { padding-left: 1.2em; margin: 0; display: grid; gap: .6em; color: var(--muted); max-width: 64ch; }
.needs b { color: var(--glass); font-weight: 600; }

footer { background: #091A5E; padding: 40px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: var(--muted); font-size: .92rem; }

@media (max-width: 860px) {
  .feature, .feature.flip, .trio { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .text { order: 0; }
  .hero-copy { bottom: 28px; }
  .hint { display: none; }
  .cmd { font-size: .78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .line, #scene { transition: none; }
  .hint { display: none; }
}
