/* Sunlight teaser. The page is the canvas: real Mac windows, captured in dark mode, around one
   window that carries the pitch and the waitlist. Tokens from the app: the icon's yellow and ink,
   the canvas's dark, the snapping guide's pink, the minimap card. */
:root {
  --bg: #17171A;
  --ink: #2E2306;
  --sun: #FFC928;
  --pink: #FF529E;
  --card: rgba(28, 28, 31, .98);
  --hair: rgba(255, 255, 255, .12);
  --text: rgba(255, 255, 255, .92);
  --text2: rgba(255, 255, 255, .58);
  --text3: rgba(255, 255, 255, .38);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd {
  font: 12px/1 var(--mono);
  padding: 2px 6px 3px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--hair);
  color: var(--text);
  vertical-align: 1px;
}

/* The canvas fills the screen. */
.canvas {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  background: #3F7A2A;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
  isolation: isolate;
}
.canvas.panning, .canvas.dragging { cursor: grabbing; }
.wallpaper {
  position: absolute; inset: 0;
  background: #3F7A2A url("wallpaper.webp?v=3") center 40% / cover no-repeat;
}
.wallpaper::after {
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.world {
  --z: 1;
  position: absolute; left: 0; top: 0;
  width: 3600px; height: 2000px;
  transform-origin: 0 0;
  will-change: transform;
}
.world::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .12) 1px, transparent 1.6px);
  background-size: 40px 40px;
  background-position: 20px 20px;
  pointer-events: none;
}

/* Windows */
.win, .widget {
  position: absolute;
  left: calc(var(--x) * 1px);
  top: calc(var(--y) * 1px);
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  cursor: pointer;
}
.widget { cursor: grab; }
.win.lifted, .widget.lifted, .desk.lifted { z-index: 2; }
.desk.settle { transition: left .18s cubic-bezier(.2, .8, .2, 1), top .18s cubic-bezier(.2, .8, .2, 1); }
.desk.lifted { opacity: .85; }
.win.settle, .widget.settle { transition: left .18s cubic-bezier(.2, .8, .2, 1), top .18s cubic-bezier(.2, .8, .2, 1); }

/* A captured window: the screenshot carries its own corners, so the shadow follows its alpha. */
/* Each capture comes in the Mac's dark and light appearance; the page shows the one that matches the visitor's. */
.shot picture { display: block; width: 100%; height: 100%; }
/* The shadow is a box-shadow on a rounded box matching the captures' own corners (about 16 points),
   not a drop-shadow filter on the image: a filter has to be redrawn at every zoom step, which costs
   frames over seven large images, while a box-shadow is cheap to scale. */
.shot { border-radius: 16px; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .55), 0 16px 32px rgba(0, 0, 0, .45); }
.shot.lifted { box-shadow: 0 0 0 .5px rgba(0, 0, 0, .55), 0 30px 60px rgba(0, 0, 0, .55); }
.shot img {
  display: block; width: 100%; height: 100%;
  pointer-events: none;
}

/* The Sunlight window: drawn, not captured, so the form works. Chrome matches the dark captures. */
.hero {
  display: flex; flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  box-shadow:
    0 0 0 .5px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(255, 255, 255, .1) inset,
    0 24px 60px rgba(0, 0, 0, .55);
}
.hero.lifted { box-shadow: 0 0 0 .5px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 40px 90px rgba(0, 0, 0, .65); }
.bar {
  position: relative; flex: none;
  height: 32px;
  display: flex; align-items: center;
  padding: 0 10px;
  background: #2A2A2D;
  border-bottom: 1px solid rgba(0, 0, 0, .6);
  cursor: grab;
  user-select: none; -webkit-user-select: none;
}
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #FF5F57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .25); }
.lights i:nth-child(2) { background: #FEBC2E; }
.lights i:nth-child(3) { background: #28C840; }
.title { position: absolute; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .78); }

.hero-body {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 40px 72px 32px;
  text-align: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(255, 201, 40, .1), transparent 70%),
    #1E1E21;
}
/* The shadow follows the icon's own rounded shape. */
.hero-body .mark { display: block; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .35)) drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.headline {
  margin: 22px 0 0;
  font-size: 112px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: .98;
  text-wrap: balance;
}
.sub {
  margin: 18px 0 0;
  max-width: 30ch;
  font-size: 24px;
  line-height: 1.45;
  color: var(--text2);
  text-wrap: pretty;
}
.waitlist {
  display: flex; flex-wrap: wrap; gap: 8px 0; justify-content: center;
  width: 100%; max-width: 520px;
  margin: 30px 0 0;
}
.waitlist input {
  flex: 1 1 0; min-width: 0;
  user-select: text; -webkit-user-select: text;
  cursor: text;
  height: 48px; padding: 0 16px;
  border-radius: 12px 0 0 12px;
  border: 1px solid var(--hair); border-right: 0;
  background: rgba(255, 255, 255, .06);
  color: var(--text);
  font: 16px var(--font);
  transition: border-color .15s, background .15s;
}
.waitlist .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.waitlist input::placeholder { color: var(--text3); }
.waitlist input:hover { border-color: rgba(255, 255, 255, .22); }
.waitlist input:focus { outline: none; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }
.waitlist button {
  flex: 0 0 auto;
  height: 48px; padding: 0 22px;
  border: 0; border-radius: 0 12px 12px 0;
  background: var(--sun); color: var(--ink);
  font: 600 16px var(--font);
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.waitlist button:hover { background: #FFD24A; }
.waitlist button:active { transform: translateY(1px); }
.waitlist button:disabled { opacity: .6; cursor: default; }
.form-note { width: 100%; margin: 6px 0 0; min-height: 1.4em; font-size: 14px; color: var(--text2); }

/* Joined: the field and button fold into one pill, a check draws itself, and the note names the address. */
.waitlist { position: relative; }
.waitlist.done input, .waitlist.done button { opacity: 0; transition: opacity .2s ease; }
.joined {
  position: absolute; left: 0; right: 0; top: 0; height: 48px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 12px; background: var(--ink); color: var(--sun);
  font: 600 16px var(--font);
  animation: join-pill .45s cubic-bezier(.2, .9, .25, 1.15) both;
}
.joined svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.joined circle { stroke-dasharray: 63; stroke-dashoffset: 63; animation: join-draw .5s .15s ease-out forwards; }
.joined path { stroke-width: 2.4; stroke-dasharray: 16; stroke-dashoffset: 16; animation: join-draw .3s .5s ease-out forwards; }
.joined b { font-weight: 600; animation: join-rise .4s .25s ease-out both; }
.waitlist .thanks { animation: join-rise .4s .55s ease-out both; }
.waitlist .addr { font-weight: 600; }
@keyframes join-pill { from { transform: scaleX(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes join-draw { to { stroke-dashoffset: 0; } }
@keyframes join-rise { from { transform: translateY(4px); opacity: 0; } to { transform: none; opacity: 1; } }
.hint { margin: 18px 0 0; font-size: 14px; color: var(--text3); }
.hint .m { display: none; }

/* The Sunlight window is sun yellow, the icon's own colour, so everything on it is ink. */
.hero::before {
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(255, 255, 255, .28), transparent 70%),
    #FFC928;
}
.hero { box-shadow: 0 0 0 .5px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 24px 60px rgba(0, 0, 0, .45); }
.hero .bar { background: #F0B91C; border-bottom-color: rgba(0, 0, 0, .14); }
.hero .title { color: rgba(46, 35, 6, .72); }
.hero .headline { color: var(--ink); transition: color .8s ease; }
.hero .sub { color: rgba(46, 35, 6, .72); }
.hero .mark { filter: drop-shadow(0 12px 22px rgba(90, 50, 0, .38)) drop-shadow(0 2px 4px rgba(60, 30, 0, .3)); }
.hero .waitlist input { background: rgba(255, 255, 255, .55); border-color: rgba(46, 35, 6, .16); color: var(--ink); }
.hero .waitlist input::placeholder { color: rgba(46, 35, 6, .45); }
.hero .waitlist input:hover { border-color: rgba(46, 35, 6, .3); }
.hero .waitlist input:focus { background: rgba(255, 255, 255, .75); border-color: rgba(46, 35, 6, .55); }
.hero .waitlist button { background: var(--ink); color: #FFC928; }
.hero .waitlist button:hover { background: #45350D; }
.hero .form-note { color: rgba(46, 35, 6, .7); }
.hero .waitlist .addr { color: var(--ink); }
.hero .hint { color: rgba(46, 35, 6, .55); }
.hero kbd { background: rgba(46, 35, 6, .08); border-color: rgba(46, 35, 6, .18); color: var(--ink); }
.hero :focus-visible { outline-color: var(--ink); }

/* The narrow Sunlight window, for phones: canvas.js switches to it. */
.hero.narrow .hero-body { padding: 36px 32px 28px; }
.hero.narrow .mark { width: 112px; height: 112px; }
.hero.narrow .headline { font-size: 84px; }
.hero.narrow .sub { font-size: 21px; }
.hero.narrow .hint .d { display: none; }
.hero.narrow .hint .m { display: inline; }

/* Widgets */
.widget {
  border-radius: 22px; overflow: hidden;
  color: #fff;
  background: rgba(36, 36, 44, .9);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .5), 0 10px 30px rgba(0, 0, 0, .4);
  font: 13px/1.35 var(--font);
}
.widget s { text-decoration: none; display: block; }

/* Desktop icons in the gaps between windows, at true Finder size: a 64 pt icon over a two-line label. */
.desk {
  position: absolute; left: calc(var(--x) * 1px); top: calc(var(--y) * 1px);
  width: 96px; cursor: default; touch-action: none;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.desk i { width: 72px; height: 72px; margin: -4px 0; border-radius: 6px; display: grid; place-items: center; }
.desk i img { width: 64px; height: 64px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .3)); }
.desk i img.thumb {
  width: 62px; height: 42px; object-fit: cover; object-position: top left;
  border: 2px solid #fff; border-radius: 2px; filter: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
}
.desk s {
  text-decoration: none; text-align: center; overflow-wrap: anywhere;
  font: 500 12px/1.25 var(--font); color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .75), 0 0 1px rgba(0, 0, 0, .6);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  padding: 0 4px; border-radius: 4px;
}
/* Selected, as Finder draws it: a grey wash behind the icon and the label in the accent blue. */
.desk.sel i { background: rgba(0, 0, 0, .28); }
.desk.sel s { background: #0A64D8; text-shadow: none; -webkit-line-clamp: 4; }
.wx {
  height: 100%; padding: 14px 16px 12px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(180deg, #2F6FD6 0%, #5A9BEA 100%);
}
.wx .top { display: flex; justify-content: space-between; align-items: flex-start; }
.wx .city { display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; }
.wx .loc { width: 9px; height: 9px; fill: #fff; }
.wx .temp { display: block; margin-top: 1px; font-size: 42px; font-weight: 300; line-height: 1; letter-spacing: -.03em; }
.wx .hl { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: 12px; font-weight: 600; line-height: 1.3; }
.wx .hl .wi { width: 20px; height: 20px; margin-bottom: 3px; }
.wx .hl s + s { font-weight: 500; opacity: .92; }
.wi { display: block; width: 18px; height: 18px; }
.hours { display: flex; justify-content: space-between; padding-top: 6px; }
.hours div { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; }
.hours s { opacity: .85; font-weight: 600; }
.hours b { font-size: 13px; font-weight: 600; }
.clock { position: absolute; inset: 12px; border-radius: 50%; background: #1C1C1F; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.clock s { position: absolute; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .85); }
.clock .n12 { top: 8px; left: 50%; transform: translateX(-50%); }
.clock .n6 { bottom: 8px; left: 50%; transform: translateX(-50%); }
.clock .n3 { right: 10px; top: 50%; transform: translateY(-50%); }
.clock .n9 { left: 10px; top: 50%; transform: translateY(-50%); }
.clock b { position: absolute; left: 50%; bottom: 50%; transform-origin: 50% 100%; border-radius: 2px; background: #fff; }
.clock .h { width: 4px; height: 28%; margin-left: -2px; transform: rotate(300deg); }
.clock .m { width: 3px; height: 40%; margin-left: -1.5px; transform: rotate(60deg); }
.clock .s { width: 1.5px; height: 42%; margin-left: -.75px; background: #FF9F0A; transform: rotate(200deg); }
.clock .dot { left: calc(50% - 4px); top: calc(50% - 4px); bottom: auto; width: 8px; height: 8px; border-radius: 50%; background: #FF9F0A; }

/* Labels, guides */
.label {
  position: absolute; z-index: 3;
  left: calc(var(--x) * 1px); top: calc(var(--y) * 1px);
  transform: translateY(calc(-100% - 6px)) scale(calc(1 / var(--z)));
  transform-origin: 0 100%;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(28, 28, 31, .92); color: rgba(255, 255, 255, .88);
  font-size: 12px; font-weight: 500; line-height: 1; white-space: nowrap;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.world.far .label { opacity: 1; }
.guide { position: absolute; z-index: 4; background: var(--pink); pointer-events: none; }
.guide.v { left: calc(var(--x) * 1px); top: calc(var(--y1) * 1px); width: calc(1.5px / var(--z)); height: calc((var(--y2) - var(--y1)) * 1px); }
.guide.h { top: calc(var(--y) * 1px); left: calc(var(--x1) * 1px); height: calc(1.5px / var(--z)); width: calc((var(--x2) - var(--x1)) * 1px); }

/* Minimap */
.minimap {
  position: absolute; z-index: 5; right: 16px; bottom: 16px; width: 200px;
  padding: 8px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--hair);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  touch-action: none;
}
.mm-map { position: relative; aspect-ratio: 3600 / 2000; border-radius: 6px; overflow: hidden; background: rgba(255, 255, 255, .05); cursor: pointer; }
.mm-map b { position: absolute; border-radius: 1px; background: rgba(255, 255, 255, .35); }
.mm-map b.wd { background: rgba(255, 255, 255, .2); border-radius: 2px; }
.mm-map b.hero { background: rgba(255, 201, 40, .75); }
.mm-view { position: absolute; border: 1px solid rgba(255, 255, 255, .8); border-radius: 2px; cursor: grab; }
.mm-bar { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.mm-bar button {
  padding: 4px 9px; border: 0; border-radius: 6px;
  background: rgba(255, 255, 255, .08); color: var(--text);
  font: 500 12px var(--font); cursor: pointer; transition: background .15s;
}
.mm-bar button:hover { background: rgba(255, 255, 255, .16); }
.zoom { margin-left: auto; padding-right: 2px; font: 12px var(--mono); font-variant-numeric: tabular-nums; color: var(--text2); }

/* The lens, while the zoom is changing (canvas.js sets .zooming and drives the values): the edges and
   corners warp and fringe through the #lens filter, blur a little, the frame darkens toward the corners,
   and the Sunlight icon flares on a canvas blended additively. All of it is ring-masked so the middle of
   the view, where the words and the form are, is never touched, and all of it is gone at rest. */
.lens, .flare { position: absolute; inset: 0; z-index: 4; pointer-events: none; display: none; }
.canvas.zooming :is(.lens, .flare) { display: block; }
.lens-warp, .lens-blur {
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, transparent 48%, #000 90%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, transparent 48%, #000 90%);
}
.lens-warp { -webkit-backdrop-filter: url(#lens); backdrop-filter: url(#lens); }
.lens-blur { -webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px); }
.lens-vignette { background: radial-gradient(ellipse 50% 50% at 50% 50%, transparent 50%, rgba(0, 0, 0, .55) 100%); }
.flare { width: 100%; height: 100%; mix-blend-mode: screen; }
@supports (mix-blend-mode: plus-lighter) { .flare { mix-blend-mode: plus-lighter; } }

/* Footer */
.foot {
  max-width: 1400px; margin: 0 auto; padding: 28px 24px 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14px; color: var(--text3);
}

@media (max-width: 700px) {
  .minimap { width: 128px; right: 10px; bottom: 10px; padding: 6px; }
  .mm-bar button { padding: 3px 7px; }
  /* On a phone the Sunlight window spans the width, so the lens keeps clear of a wider middle. */
  .lens-warp, .lens-blur {
    -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, transparent 56%, #000 95%);
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, transparent 56%, #000 95%);
  }
  .lens-vignette { background: radial-gradient(ellipse 80% 50% at 50% 50%, transparent 55%, rgba(0, 0, 0, .55) 100%); }
}
/* The intro, in three steps (canvas.js sets the classes):
   .s1  the icon and the name alone, on black;
   .s2  the rest of the Sunlight window fades in round them, still on black;
   then the wallpaper, the grid and the other windows fade in. */
.canvas { transition: background-color .9s ease; }
.wallpaper, .world::before, .shot, .widget, .desk, .label, .minimap { transition: opacity .9s ease; }
.hero { transition: box-shadow .8s ease; }
.hero::before, .hero .bar, .hero .sub, .hero .waitlist, .hero .hint { transition: opacity .8s ease; }
.canvas.s1, .canvas.s2 { background-color: #000; }
:is(.canvas.s1, .canvas.s2) :is(.wallpaper, .shot, .widget, .desk, .label, .minimap) { opacity: 0; }
.canvas.s1 .world::before, .canvas.s2 .world::before { opacity: 0; }
.canvas.s1 .hero { box-shadow: none; }
.canvas.s1 .hero::before { opacity: 0; }
.canvas.s1 .hero .headline { color: #fff; }
.canvas.s1 :is(.hero .bar, .hero .sub, .hero .waitlist, .hero .hint) { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .canvas.zooming :is(.lens, .flare) { display: none; }
  .canvas, .wallpaper, .world::before, .shot, .widget, .desk, .minimap, .hero, .hero::before, .hero .bar, .hero .sub, .hero .waitlist, .hero .hint { transition: none; }
  .win.settle, .widget.settle, .label, .waitlist button, .waitlist input { transition: none; }
  .joined, .joined b, .waitlist .thanks { animation: none; }
  .joined circle, .joined path { animation: none; stroke-dashoffset: 0; }
}
