/*
 * Wakeframe's website. Every colour here is one the display already uses: black is the face when
 * nobody's around, mist and ink are the Fjord morning scene's, ember is the night clock, rain is
 * the forecast's chance of rain, gold is the daylight dial's arc. Outfit is the clock's typeface
 * and Inter the display's text, both bundled with the app.
 */
@font-face { font-family: Outfit; src: url("/assets/fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Inter; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --black: #000;
  --white: #fff;
  --mist: #eef2f5;
  --mist-2: #dbe6ef;
  --ink: #1b2d3f;
  --ink-2: #4b627a;
  --ember: #ff8a5c;
  --rain: #9fd0ff;
  --gold: #ffd27a;
  --on-black-2: #a3a8b0;
  --on-black-3: #6e737b;
  --line-dark: rgba(255, 255, 255, .14);
  --line-light: rgba(27, 45, 63, .14);
  --focus: #9fd0ff;
  --nav-h: 52px;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 34rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--black); color: var(--white);
  font: 400 1.0625rem/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--white); color: var(--black); text-decoration: none; font-weight: 600; }
.skip:focus { top: 10px; }

/* Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h); color: var(--white);
  background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: saturate(1.6) blur(20px); backdrop-filter: saturate(1.6) blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.nav-in { height: 100%; max-width: 1080px; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 1.25rem/1 Outfit, sans-serif; letter-spacing: -.01em; margin-right: auto; }
.brand img { width: 28px; height: auto; display: block; }
.nav a:not(.brand) { font-size: .8125rem; color: rgba(255, 255, 255, .8); text-decoration: none; }
.nav a:not(.brand):hover, .nav a[aria-current] { color: var(--white); }
.nav .nav-docs { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); }
@media (max-width: 620px) { .nav .nav-hide { display: none; } }

/* Buttons and links that act like them */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; font: 500 1.0625rem/1 Inter, sans-serif; text-decoration: none; border: 0; cursor: pointer; }
.btn-light { background: var(--white); color: var(--black); }
.btn-light:hover { background: #e6e9ee; }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #2a4560; }
.btn-ghost { color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: rgba(127, 127, 127, .12); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; }
.text-link { color: var(--rain); text-decoration: none; font-weight: 500; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.light .text-link { color: #1f6fb2; }

/* Type */
.display { font-family: Outfit, sans-serif; font-weight: 200; letter-spacing: -.035em; line-height: .95; margin: 0; text-wrap: balance; }
.h1 { font-size: clamp(2.75rem, 7.6vw, 6rem); }
.h2 { font-size: clamp(2.25rem, 5.4vw, 4.5rem); }
.h3 { font-family: Outfit, sans-serif; font-weight: 300; font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.lead { font-size: clamp(1.1875rem, 1.9vw, 1.5rem); line-height: 1.45; color: var(--on-black-2); max-width: 36rem; margin: 24px auto 0; text-wrap: pretty; }
.lead strong { color: var(--white); font-weight: 500; }
.light .lead { color: var(--ink-2); }
.light .lead strong { color: var(--ink); }
.fine { font-size: .875rem; line-height: 1.55; color: var(--on-black-3); }
.light .fine { color: var(--ink-2); }

/* Sections */
.band { position: relative; padding: clamp(96px, 14vw, 180px) var(--gutter); }
.band.light { background: var(--mist); color: var(--ink); color-scheme: light; }
.band-head { text-align: center; max-width: 60rem; margin: 0 auto; }
.wrap { max-width: 1080px; margin: 0 auto; }

/* Hero: a live face, full bleed, that becomes a tablet as you scroll. */
.hero { position: relative; height: 280vh; height: 280svh; }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-screen {
  position: absolute; left: 50%; top: 50%; width: 1280px; height: 800px;
  transform: translate(-50%, -50%) scale(var(--s, 1.6)); will-change: transform;
  border-radius: calc(28px * var(--b, 0));
  box-shadow: 0 0 0 calc(16px * var(--b, 0)) #17181c, 0 0 0 calc(17.5px * var(--b, 0)) #34363d, 0 60px 160px rgba(0, 0, 0, calc(.7 * var(--b, 0)));
}
.hero-screen > .face { transform: none; border-radius: inherit; }
.hero-screen .ui { opacity: var(--ui, 0); }
.hero-title { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 0 var(--gutter); opacity: var(--t, 1); pointer-events: none; }
.hero-title::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 55% at 50% 50%, rgba(0, 0, 0, .34), transparent 75%); z-index: -1; }
.wordmark { font: 100 clamp(4.5rem, 17vw, 15rem)/.86 Outfit, sans-serif; letter-spacing: -.055em; margin: 0; text-shadow: 0 2px 30px rgba(0, 0, 0, .22); }
.hero-sub { font: 300 clamp(1.25rem, 2.6vw, 2rem)/1.25 Outfit, sans-serif; letter-spacing: -.01em; margin: 18px auto 0; max-width: 26ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.hero-caption { position: absolute; left: 0; right: 0; bottom: max(28px, 5vh); text-align: center; padding: 0 var(--gutter); opacity: var(--c, 0); transform: translateY(calc((1 - var(--c, 0)) * 16px)); }
.hero-caption p { margin: 0 auto; max-width: 40rem; font: 300 clamp(1.25rem, 2.4vw, 1.875rem)/1.3 Outfit, sans-serif; letter-spacing: -.01em; color: var(--on-black-2); }
.hero-caption p strong { color: var(--white); font-weight: 400; }
/* Their opacity follows the scroll: own layers, so the large soft shadows are painted once. */
.hero-title, .hero-caption, .hero-screen .ui { will-change: opacity; }

/* Scroll-told scenes: a tall section with a sticky stage and captions that take turns. */
.story { position: relative; height: 340vh; height: 340svh; }
.story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(20px, 4vh, 44px); padding: calc(var(--nav-h) + 12px) var(--gutter) 24px; }
.steps { display: grid; width: 100%; max-width: 52rem; text-align: center; font-size: clamp(1.75rem, min(4.6vw, 6.4vh), 3.75rem); }
.steps > div { grid-area: 1 / 1; align-self: center; opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.steps > div.on { opacity: 1; transform: none; }
.steps h2 { font: 200 1em/1.02 Outfit, sans-serif; letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.steps p { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--on-black-2); max-width: 34rem; margin: 18px auto 0; text-wrap: pretty; }

/* Walk in: the tablet and what its camera sees. */
.walk-row { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 56px); width: 100%; max-width: 1080px; }
.walk-tablet { flex: 1.7 1 0; min-width: 0; max-width: min(640px, 72vh); }
.walk-eye { flex: 1 1 0; min-width: 0; max-width: 340px; }
.walk-eye canvas { width: 100%; height: auto; aspect-ratio: 4 / 3; display: block; }
.readout { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font: 400 .8125rem/1.3 Inter, sans-serif; color: var(--on-black-2); font-variant-numeric: tabular-nums; }
.readout b { color: var(--white); font-weight: 500; }
/* A tablet's frame, drawn around its screen so it scales with the face (--k). */
.bezel { padding: 3%; }
.bezel .screen { box-shadow: 0 0 0 calc(var(--k, .5) * 34px) #17181c, 0 0 0 calc(var(--k, .5) * 34px + 1.5px) #34363d, 0 40px 100px rgba(0, 0, 0, .55); }
.light .bezel .screen { box-shadow: 0 0 0 calc(var(--k, .5) * 34px) #17181c, 0 0 0 calc(var(--k, .5) * 34px + 1.5px) #34363d, 0 40px 80px -20px rgba(27, 45, 63, .5); }
.wake-cover { position: absolute; inset: 0; background: #000; z-index: 5; transition: opacity 1.6s ease; pointer-events: none; }
.awake .wake-cover { opacity: 0; }
@media (max-width: 700px) {
  .walk-row { flex-direction: column; gap: 18px; }
  .walk-tablet { width: 100%; flex: none; }
  .walk-eye { width: 62%; flex: none; }
}

/* Light: the room's lux, the screen following it, the night clock taking over. */
.light-stage { gap: clamp(16px, 3vh, 36px); }
.lamp { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 55% at 50% 62%, rgba(255, 210, 122, calc(.2 * var(--glow, 1))), transparent 70%); pointer-events: none; }
.lux { position: relative; font: 100 clamp(3.5rem, 11vw, 8.5rem)/.9 Outfit, sans-serif; letter-spacing: -.05em; font-variant-numeric: tabular-nums; margin: 0; }
.lux small { font-size: .28em; font-weight: 300; letter-spacing: 0; color: var(--on-black-2); margin-left: .3em; }
.light-tablet { position: relative; width: min(680px, 100%, 78vh); }
.light-tablet .face-day { filter: brightness(var(--bright, 1)); }
.light-tablet .face-night { opacity: 0; transition: opacity 2s ease; }
.light-tablet.night .face-night { opacity: 1; }
.light-tablet .face-day { transition: opacity 2s ease; }
.light-tablet.night .face-day { opacity: 0; }
.light-stage .steps { font-size: clamp(1.5rem, min(3.6vw, 5vh), 3rem); }

/* Layouts: one rail of live faces. */
.rail-wrap { position: relative; margin: clamp(48px, 7vw, 88px) calc(-1 * var(--gutter)) 0; }
/* The rail runs to the window's edges, with the face in view centred in the
   window, the first and last ones included, and its neighbours peeking in. */
.rail { --face: min(80vw, 760px); display: flex; gap: clamp(16px, 2.4vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px calc((100% - var(--face)) / 2) 24px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > figure { flex: 0 0 var(--face); margin: 0; scroll-snap-align: center; }
.rail .screen { box-shadow: 0 30px 60px -20px rgba(27, 45, 63, .45); }
.rail figcaption { display: flex; gap: 16px; align-items: baseline; margin-top: 20px; padding-right: 8%; }
.rail .letter { font: 200 2.5rem/1 Outfit, sans-serif; color: var(--ink-2); flex: none; width: 1.1em; }
.rail .name { font: 400 1.25rem/1.25 Outfit, sans-serif; letter-spacing: -.01em; }
.rail .desc { color: var(--ink-2); font-size: 1rem; line-height: 1.5; margin-top: 4px; }
.rail-ctl { display: flex; justify-content: center; gap: 12px; margin: 4px auto 0; padding: 0 var(--gutter); }
.rail-ctl button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(27, 45, 63, .1); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.rail-ctl button:hover { background: rgba(27, 45, 63, .18); }
.rail-ctl button:disabled { opacity: .35; cursor: default; }
.rail-ctl svg { width: 20px; height: 20px; }
.portraits { display: flex; justify-content: center; align-items: flex-end; gap: clamp(24px, 4vw, 56px); margin-top: clamp(72px, 9vw, 120px); }
.portraits .bezel { width: clamp(100px, 18vw, 210px); padding: 0; }
.portraits .bezel:nth-child(2) { width: clamp(120px, 22vw, 250px); }
.portraits-note { text-align: center; margin-top: 28px; }

/* Photos: a slow wall of the generated scenes. */
.wall { margin: clamp(56px, 7vw, 88px) calc(-1 * var(--gutter)) 0; display: grid; gap: 14px; overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.wall-row { display: flex; gap: 14px; width: max-content; animation: drift 120s linear infinite; will-change: transform; }
.wall-row.rev { animation-direction: reverse; animation-duration: 140s; }
.wall.paused .wall-row { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.tile { position: relative; flex: none; width: clamp(200px, 26vw, 340px); aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; margin: 0; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile figcaption { position: absolute; left: 14px; bottom: 10px; font-size: .8125rem; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(72px, 9vw, 112px); }
.sources h3 { font: 400 1.375rem/1.2 Outfit, sans-serif; letter-spacing: -.01em; margin: 14px 0 8px; }
.sources p { margin: 0; color: var(--on-black-2); }
.sources .mark { width: 40px; height: 40px; color: var(--white); }
.tag { display: inline-block; margin-top: 12px; padding: 3px 10px; border-radius: 999px; font-size: .8125rem; color: var(--gold); box-shadow: inset 0 0 0 1px rgba(255, 210, 122, .45); }
@media (max-width: 760px) { .sources { grid-template-columns: 1fr; } }

/* Weather: the day's forecast, said in one sentence. */
.sentence { font: 200 clamp(2.25rem, 6.4vw, 5.25rem)/1.02 Outfit, sans-serif; letter-spacing: -.035em; text-align: center; max-width: 15em; margin: 0 auto; text-wrap: balance; }
.sentence .when { color: #1f6fb2; }
.timeline { max-width: 900px; margin: clamp(40px, 6vw, 72px) auto 0; }
.timeline svg { width: 100%; height: auto; overflow: visible; }
.timeline text { fill: var(--ink-2); font: 13px Inter, sans-serif; }
.timeline .t { fill: var(--ink); font: 400 20px Outfit, sans-serif; }
.weather-sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(72px, 9vw, 112px); border-top: 1px solid var(--line-light); }
.weather-sources > div { padding: 28px 28px 0 0; }
.weather-sources > div + div { padding-left: 28px; border-left: 1px solid var(--line-light); }
.weather-sources h3 { font: 400 1.375rem/1.2 Outfit, sans-serif; margin: 0 0 8px; letter-spacing: -.01em; }
.weather-sources p { margin: 0; color: var(--ink-2); }
.weather-sources .tag { color: #9a6a00; box-shadow: inset 0 0 0 1px rgba(154, 106, 0, .4); }
@media (max-width: 760px) {
  .weather-sources { grid-template-columns: 1fr; }
  .weather-sources > div, .weather-sources > div + div { padding: 24px 0; border-left: 0; }
  .weather-sources > div + div { border-top: 1px solid var(--line-light); }
}

/* Assistant and the dock */
.dock-shot { max-width: 980px; margin: clamp(48px, 7vw, 88px) auto 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); max-width: 1080px; margin: clamp(72px, 9vw, 120px) auto 0; }
.split h3 { margin-bottom: 12px; }
.split p { margin: 0; color: var(--on-black-2); max-width: var(--measure); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Privacy */
.promise { font: 200 clamp(2.25rem, 5.6vw, 4.5rem)/1.02 Outfit, sans-serif; letter-spacing: -.035em; max-width: 14em; margin: 0 auto; text-align: center; text-wrap: balance; }
.grid-cam { width: min(420px, 80%); margin: clamp(40px, 6vw, 64px) auto 0; }
.grid-cam svg { width: 100%; height: auto; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px clamp(32px, 6vw, 96px); max-width: 880px; margin: clamp(64px, 8vw, 104px) auto 0; }
.facts h3 { font: 400 1.25rem/1.25 Outfit, sans-serif; letter-spacing: -.01em; margin: 0 0 8px; }
.facts p { margin: 0; color: var(--ink-2); }
@media (max-width: 700px) { .facts { grid-template-columns: 1fr; } }

/* Premium */
.premium { background: radial-gradient(ellipse 80% 60% at 50% 0%, #0b2a45, var(--black) 70%); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: 20px; margin-top: clamp(48px, 7vw, 80px); }
.plan { padding: 32px 28px 30px; border-radius: 28px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line-dark); text-align: center; }
.plan .price { font: 200 4.5rem/1 Outfit, sans-serif; letter-spacing: -.04em; margin: 8px 0 6px; }
.plan .price sup { font-size: .4em; vertical-align: .9em; margin-right: .06em; letter-spacing: 0; }
.plan .per { color: var(--on-black-2); }
.plan .name { font: 400 1.125rem/1 Outfit, sans-serif; }
.plan .save { display: inline-block; margin-top: 14px; font-size: .875rem; color: var(--gold); }
.includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 920px; margin: clamp(56px, 7vw, 88px) auto 0; }
.includes h3 { font: 400 1.25rem/1.2 Outfit, sans-serif; margin: 0 0 8px; }
.includes p { margin: 0; color: var(--on-black-2); }
.premium-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 48px; }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } .includes { grid-template-columns: 1fr; } }

/* Getting started */
.start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 980px; margin: clamp(56px, 7vw, 88px) auto 0; counter-reset: step; padding: 0; list-style: none; }
.start li { counter-increment: step; }
.start li::before { content: counter(step); display: block; font: 100 4rem/1 Outfit, sans-serif; color: var(--ink-2); margin-bottom: 12px; }
.start h3 { font: 400 1.25rem/1.25 Outfit, sans-serif; margin: 0 0 8px; }
.start p { margin: 0; color: var(--ink-2); }
.start-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 56px; }
@media (max-width: 760px) { .start { grid-template-columns: 1fr; } }

/* Footer */
.foot { background: var(--black); color: var(--on-black-2); padding: 56px var(--gutter) 40px; font-size: .875rem; border-top: 1px solid rgba(255, 255, 255, .08); }
.foot-in { max-width: 1080px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--white); }
.foot p { margin: 0; max-width: 34rem; }

@media (prefers-reduced-motion: reduce) {
  .hero { height: 100vh; height: 100svh; }
  .wall-row { animation: none; }
  .steps > div { transition: none; }
}
