/* Clean Mac, the room. A very dark page where the only colour is refracted light. */

/* macOS gets its own SF Pro through -apple-system; this file is only fetched everywhere else. */
@font-face {
  font-family: "Geist CM";
  src: url("/assets/worlds/fonts/geist-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --void: #07080c;
  --ink: #f2f3f7;
  --mist: #aeb3bf;
  --ash: #8a8f9c;
  --hair: rgba(255, 255, 255, 0.085);

  /* The spectrum, read left to right off the top of the app's icon. */
  --s-blue: #7c9bff;
  --s-violet: #c4a6ff;
  --s-cyan: #7fe3f5;
  --s-green: #7fe8b4;
  --s-yellow: #ffd866;
  --s-orange: #ffa37a;
  --spectrum: var(--s-blue), var(--s-violet), var(--s-cyan), #fff, var(--s-green), var(--s-yellow), var(--s-orange);

  --face: -apple-system, BlinkMacSystemFont, "Geist CM", sans-serif;
  --code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --gut: clamp(20px, 5.6vw, 88px);
  --max: 1200px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; background: var(--void); }
body {
  margin: 0;
  background: var(--void);
  color: var(--mist);
  font: 400 18px/1.56 var(--face);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: rgba(127, 227, 245, 0.28); color: #fff; }
img, video, svg, canvas { display: block; }
img { max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.5vw, 60px); line-height: 1.06; letter-spacing: -0.032em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -0.014em; }
p { margin: 0; }
strong { color: var(--ink); font-weight: 500; }
a { color: inherit; }
code { font: 0.86em/1 var(--code); color: #d8dbe3; overflow-wrap: anywhere; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(100%, var(--max)); margin-inline: auto; }

/* Top bar */
.bar {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 14px max(var(--gut), calc((100% - var(--max)) / 2)) 0;
  color: var(--mist);
  font-size: 15px;
  letter-spacing: -0.006em;
}
.bar__name { color: var(--ink); font-weight: 600; letter-spacing: -0.012em; }
.world-exit { justify-self: start; transition: color 160ms ease; }
.world-lang {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 44px;
  justify-content: flex-end;
  transition: color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .world-exit:hover, .world-lang:hover { color: #fff; }
}

/* Hero */
.hero {
  --beam-in: 119;
  --beam-out: 104;
  --beam-spread: 30;
  position: relative;
  isolation: isolate;
  padding: clamp(88px, 12.5vh, 128px) var(--gut) 0;
  overflow: clip;
}
.hero__light {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  opacity: 0;
  transition: opacity 200ms linear;
}
.has-gl .hero__light { opacity: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  column-gap: clamp(24px, 4vw, 64px);
  width: min(100%, var(--max));
  margin-inline: auto;
}
.hero__h1 {
  grid-column: 1;
  font-size: clamp(50px, min(6.5vw, 10.6vh), 96px);
  line-height: 1.01;
  letter-spacing: -0.03em;
  --ch: 0.7px;
  text-shadow:
    calc(var(--ch) * -1) 0 0 rgba(124, 155, 255, 0.62),
    var(--ch) 0 0 rgba(255, 163, 122, 0.62);
}
/* the opening quote hangs in the margin, so "Your" lines up with the text under it */
@media (min-width: 761px) { .hang { margin-left: -0.43em; } .nb { white-space: nowrap; } }
.hero__copy { grid-column: 1; margin-top: clamp(22px, 3.4vh, 34px); max-width: 35em; }
.lede { color: #c4c8d2; font-size: clamp(18px, 1.42vw, 20px); line-height: 1.5; letter-spacing: -0.01em; }
.note { margin-top: 16px; color: var(--ash); font-size: 14.5px; line-height: 1.45; letter-spacing: -0.003em; text-wrap: pretty; }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: clamp(22px, 3.2vh, 32px); }
.actions--center { justify-content: center; }

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 140ms var(--ease), background-color 160ms ease, box-shadow 160ms ease;
}
.btn:active { transform: scale(0.98); }
.btn--prime { color: #08090d; background: #f2f3f7; }
/* the one fringe a visitor can act on: a hairline of spectrum along the foot of the button, and its reflection */
.btn--prime::before, .btn--prime::after {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  background: linear-gradient(90deg, transparent, var(--spectrum), transparent);
  pointer-events: none;
}
.btn--prime::before { z-index: 1; bottom: -1px; height: 1.5px; }
.btn--prime::after { z-index: -1; bottom: -9px; height: 16px; filter: blur(11px); opacity: 0.62; transition: opacity 200ms ease; }
.btn--quiet { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15); }
@media (hover: hover) and (pointer: fine) {
  .btn--prime:hover { background: #fff; }
  .btn--prime:hover::after { opacity: 1; }
  .btn--quiet:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.04); }
}

/* The drive */
.hero__stage { --drive-w: clamp(180px, 21vw, 300px); grid-column: 2; grid-row: 1 / span 2; position: relative; align-self: center; margin-top: -2vh; }
.drive { position: relative; width: var(--drive-w); margin-left: auto; }
.has-gl .beam-still { display: none; }
/* Without WebGL or JavaScript the beam and its fan are drawn with CSS. */
.beam-still, .hero__stage::after { position: absolute; pointer-events: none; }
.beam-still {
  z-index: -1;
  bottom: 100%;
  right: calc(var(--drive-w) * 0.475);
  width: 1px;
  height: min(400px, 44vh);
  margin-bottom: -2px;
  background: linear-gradient(transparent, rgba(255, 255, 255, 0.75));
  transform: rotate(29deg);
  transform-origin: bottom center;
}
.hero__stage::after {
  content: "";
  z-index: -1;
  top: 86%;
  right: calc(var(--drive-w) * 0.52);
  width: calc(var(--drive-w) * 0.62);
  height: min(240px, 34vh);
  background: linear-gradient(90deg, var(--spectrum));
  opacity: 0.55;
  clip-path: polygon(92% 0, 100% 0, 96% 100%, 0 100%);
  /* fine threads rather than a solid wedge */
  -webkit-mask-image: linear-gradient(transparent, #000 45%), repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 5px);
  mask-image: linear-gradient(transparent, #000 45%), repeating-linear-gradient(90deg, #000 0 1px, transparent 1px 5px);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.has-gl .hero__stage::after { display: none; }

/* Windows: real recordings of the app */
.win { position: relative; margin: 0; --fx: 74%; --fw: 180px; }
.win__glass {
  position: relative;
  overflow: hidden;
  border-radius: clamp(10px, 1.9vw, 22px);
  background: #1d1d21;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 110px -30px rgba(0, 0, 0, 0.9);
}
.win__glass img { width: 100%; }
.win__glass video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 420ms ease;
}
.win.is-playing .win__glass video { opacity: 1; }
.win__cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--ash);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.003em;
}
.win__toggle {
  flex: none;
  appearance: none;
  background: none;
  border: 0;
  padding: 10px 0 10px 12px;
  margin: -10px 0;
  color: var(--ash);
  font: inherit;
  cursor: pointer;
  transition: color 160ms ease;
}
@media (hover: hover) and (pointer: fine) { .win__toggle:hover { color: #fff; } }

/* Where the light lands: the fine line on the window's top edge, and what falls on the glass under it. */
.win__edge, .win__spill {
  position: absolute;
  z-index: 2;
  top: 0;
  left: var(--fx);
  width: var(--fw);
  transform: translateX(-50%);
  pointer-events: none;
}
.win__edge {
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--spectrum), transparent);
}
.win__spill {
  display: none;
  height: 52%;
  background: radial-gradient(ellipse 50% 100% at 50% 0, rgba(255, 255, 255, 0.075), transparent 72%);
}
.win--hero .win__spill { display: block; width: calc(var(--fw) * 2.1); }
.win--hero .win__cap span { max-width: 62%; }
.win--hero { grid-column: 1 / -1; margin-top: clamp(40px, 8vh, 84px); }
.win--wide { margin-top: clamp(60px, 9vw, 120px); --fx: 30%; --fw: 260px; }

/* What it finds */
.finds { padding: clamp(110px, 15vw, 210px) var(--gut) clamp(90px, 11vw, 150px); }
.finds h2 { max-width: 15em; }
.finds__why { max-width: 36em; margin-top: 24px; font-size: clamp(18px, 1.45vw, 20px); line-height: 1.55; }
.big {
  margin-top: clamp(70px, 10vw, 140px);
  max-width: 21em;
  color: var(--ink);
  font-size: clamp(30px, 4.9vw, 68px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.03em;
}
.js-sweep .big {
  --p: -12%;
  background-image: linear-gradient(112deg,
    var(--ink) calc(var(--p) - 9%),
    var(--s-orange) calc(var(--p) - 6%),
    var(--s-yellow) calc(var(--p) - 4.2%),
    var(--s-green) calc(var(--p) - 2.4%),
    #fff calc(var(--p) - 0.4%),
    var(--s-cyan) calc(var(--p) + 1.8%),
    var(--s-violet) calc(var(--p) + 3.8%),
    var(--s-blue) calc(var(--p) + 5.6%),
    var(--ash) calc(var(--p) + 8.5%));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* The places */
.places { padding: clamp(50px, 7vw, 100px) var(--gut) clamp(90px, 12vw, 170px); }
.places__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 6vw, 96px); }
.places__grid > h2 { position: sticky; top: 48px; align-self: start; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; }
.place { padding-block: clamp(26px, 3vw, 38px); }
.place:first-child { padding-top: 6px; }
.place + .place { border-top: 1px solid var(--hair); }
.place h3 { font-size: clamp(23px, 2.2vw, 30px); letter-spacing: -0.024em; line-height: 1.15; }
.place p { margin-top: 12px; max-width: 37em; font-size: 17px; line-height: 1.58; }

/* Safety */
.safety { padding: clamp(60px, 8vw, 110px) var(--gut) clamp(90px, 12vw, 170px); }
.safety__head { max-width: 41em; margin-inline: auto; text-align: center; }
.safety__head p { max-width: 36em; margin: 22px auto 0; font-size: clamp(18px, 1.45vw, 20px); line-height: 1.55; }
.split { width: 100%; height: clamp(60px, 7vw, 100px); margin-top: clamp(36px, 4.4vw, 56px); overflow: visible; }
.split path { fill: none; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.split.is-waiting path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.split.is-drawn path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 900ms var(--ease); }

.tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(24px, 3.6vw, 56px); }
.tag { position: relative; padding: 0 0 0 clamp(16px, 1.6vw, 22px); --band: var(--s-green); }
.tag::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  background: linear-gradient(var(--band), rgba(255, 255, 255, 0.05));
}
.tag--yellow { --band: var(--s-yellow); }
.tag--orange { --band: var(--s-orange); }
.tag h3 { display: flex; align-items: center; gap: 10px; font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -0.02em; padding-top: 2px; }
.tag__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--band); box-shadow: 0 0 12px var(--band); }
.tag__fr { margin-top: 4px; color: var(--ash); font-size: 15px; }
.tag ul { margin: 22px 0 0; padding: 0; list-style: none; }
.tag li { font-size: 16px; line-height: 1.52; }
.tag li + li { margin-top: 16px; }

.guards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 4.6vw, 64px) clamp(32px, 6vw, 96px); margin-top: clamp(64px, 8vw, 110px); }
.guard p { margin-top: 10px; max-width: 34em; font-size: 16.5px; line-height: 1.56; }

/* Trust */
.trust { position: relative; padding: clamp(110px, 15vw, 220px) var(--gut); text-align: center; }
.trust h2 {
  max-width: 15.5em;
  margin-inline: auto;
  font-size: clamp(36px, 6vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-shadow: -0.6px 0 0 rgba(124, 155, 255, 0.55), 0.6px 0 0 rgba(255, 163, 122, 0.55);
}
.trust p { max-width: 35em; margin: 28px auto 32px; font-size: clamp(18px, 1.45vw, 20px); }

/* History */
.history { padding: clamp(40px, 5vw, 70px) var(--gut) clamp(90px, 12vw, 170px); }
.history__grid { display: grid; grid-template-columns: minmax(0, 7.4fr) minmax(0, 4.6fr); column-gap: clamp(32px, 6vw, 96px); align-items: center; }
.history__text { grid-column: 2; grid-row: 1; }
.crop { grid-column: 1; grid-row: 1; }
.history h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; }
.history p { margin-top: 20px; font-size: 17px; }
.crop { position: relative; margin: 0; }
.crop img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.crop::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: 11%;
  width: 34%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--spectrum), transparent);
}
.crop figcaption { margin-top: 12px; color: var(--ash); font-size: 14px; line-height: 1.4; }

/* Requirements */
.needs { padding: clamp(40px, 5vw, 70px) var(--gut) clamp(90px, 11vw, 150px); }
.needs__perm {
  margin-top: clamp(40px, 5vw, 66px);
  color: var(--ink);
  font-size: clamp(22px, 3vw, 42px);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.026em;
  text-wrap: balance;
}
.needs__why { max-width: 42em; margin-top: 18px; font-size: 17px; }

/* FAQ */
.faq { padding: clamp(40px, 5vw, 70px) var(--gut) clamp(80px, 10vw, 140px); }
.faq__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 6vw, 96px); }
.faq h2 { position: sticky; top: 48px; align-self: start; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; }
.qa { padding-block: 24px; }
.qa:first-child { padding-top: 6px; }
.qa + .qa { border-top: 1px solid var(--hair); }
.qa h3 { font-size: 19px; font-weight: 500; }
.qa p { margin-top: 8px; font-size: 16.5px; line-height: 1.56; }

/* The last word */
.last { position: relative; overflow: clip; padding: clamp(90px, 13vw, 180px) var(--gut) clamp(90px, 12vw, 170px); text-align: center; }
.last__beam {
  position: absolute;
  top: calc(clamp(90px, 13vw, 180px) + clamp(38px, 4.4vw, 58px));
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(255, 255, 255, 0.5) 40%, #fff 50%, var(--s-green) 56%, var(--s-yellow) 66%, var(--s-orange) 78%, transparent 96%);
}
.last__drive { position: relative; width: clamp(130px, 12vw, 170px); margin: 0 auto clamp(36px, 4.4vw, 52px); }
.last h2 { font-size: clamp(36px, 5.4vw, 76px); letter-spacing: -0.04em; line-height: 1.03; }
.last .note { margin-inline: auto; }

/* Colophon */
.world-colophon {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding: 28px var(--gut) 36px;
  border-top: 1px solid var(--hair);
  color: var(--ash);
}
.world-colophon a { text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, 0.28); }
.world-colophon a:hover { color: var(--ink); }
.world-colophon p { margin: 0; }

/* Narrow screens */
@media (max-width: 860px) {
  .places__grid, .history__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .places__grid > h2, .faq h2 { position: static; margin-bottom: 30px; }
  .history__text, .crop { grid-column: 1; grid-row: auto; }
  .history .crop { margin-top: 36px; }
  .tags { grid-template-columns: minmax(0, 1fr); row-gap: 44px; }
  .split { display: none; }
  .safety__head { margin-bottom: 44px; text-align: left; margin-inline: 0; }
  .safety__head p { margin-inline: 0; }
  .guards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .hero { padding-top: 76px; --beam-in: 156; --beam-out: 99; --beam-spread: 30; }
  .win { display: flex; flex-direction: column; }
  .win__cap { order: 2; margin: 12px 0 0; }
  .win--hero .win__cap span { max-width: none; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__h1 { font-size: clamp(46px, 13vw, 62px); }
  /* the opening quote hangs in the margin, so "Your" lines up with the text under it */
@media (min-width: 761px) { .hang { margin-left: -0.43em; } .nb { white-space: nowrap; } }
.hero__copy { grid-column: 1; }
  .hero__stage { grid-column: 1; grid-row: auto; margin-top: 44px; }
  .drive { margin-right: 6%; }
  .win--hero { margin-top: 74px; }
  .win__cap { font-size: 13px; }
  .bar { padding-top: 8px; }
  .hero__stage { --drive-w: 168px; }
  .beam-still { right: calc(var(--drive-w) * 0.5); height: 170px; transform: rotate(66deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__light, .win__glass video, .btn, .btn::after, .world-exit, .world-lang { transition: none; }
  .btn:active { transform: none; }
}
