/* Wake landing page. The Mac's own typeface (SF Pro) and no third-party requests at all: a site that promises no
   tracking shouldn't hand its visitors to a font CDN. */
:root {
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --fg: #1d1d1f;
  --muted: #6e6e73;
  --faint: #a1a1a6;
  --line: rgba(0, 0, 0, 0.1);
  --line-strong: rgba(0, 0, 0, 0.22);
  --card: #fff;
  --ink: #1d1d1f;
  --ink-fg: #fff;
  --panel: #000;
  --panel-fg: #f5f5f7;
  --panel-muted: #a1a1a6;
  --panel-line: rgba(255, 255, 255, 0.14);
  --bezel: #1d1d1f;
  --wall: radial-gradient(120% 90% at 20% 0%, #e9e9ee 0%, #dcdce3 45%, #cfd0d8 100%);
  --menubar: rgba(255, 255, 255, 0.55);
  --window: #fff;
  --window-bar: #f6f6f6;
  /* A macOS menu: frosted, with a hairline edge and a soft shadow. */
  --menu: rgba(246, 246, 248, 0.86);
  --menu-edge: rgba(0, 0, 0, 0.12);
  --menu-muted: rgba(0, 0, 0, 0.45);
  --menu-sep: rgba(0, 0, 0, 0.1);
  --highlight: #0a84ff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.12), 0 32px 80px rgba(0, 0, 0, 0.1);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
  /* The second tone of a headline: Apple's headline grey, which reads on white and black alike. */
  --ink-2: #86868b;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --gutter: clamp(16px, 5vw, 48px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --bg-alt: #101012;
    --fg: #f5f5f7;
    --muted: #a1a1a6;
    --faint: #6e6e73;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: rgba(255, 255, 255, 0.28);
    --card: #161618;
    --ink: #f5f5f7;
    --ink-fg: #000;
    --panel: #101012;
    --panel-line: rgba(255, 255, 255, 0.1);
    --bezel: #2c2c2e;
    --wall: radial-gradient(120% 90% at 20% 0%, #3a3a42 0%, #26262c 50%, #1b1b20 100%);
    --menubar: rgba(30, 30, 34, 0.6);
    --window: #1e1e20;
    --window-bar: #2a2a2d;
    --menu: rgba(40, 40, 44, 0.86);
    --menu-edge: rgba(255, 255, 255, 0.14);
    --menu-muted: rgba(255, 255, 255, 0.45);
    --menu-sep: rgba(255, 255, 255, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.45), 0 32px 80px rgba(0, 0, 0, 0.4);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 18px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -0.035em; word-spacing: 0.06em; line-height: 1.02; text-wrap: balance; }
/* A headline's second half is the same type in a second tone, not a different typeface. */
h1 em, h2 em { font-style: normal; color: var(--ink-2); }
h2 { font-size: clamp(36px, 5.6vw, 60px); }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
section { padding: clamp(80px, 12vw, 150px) var(--gutter); }
.intro p, .points p { color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
:focus-visible { outline: 3px solid #0a84ff; outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ink-fg);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), opacity 0.2s, box-shadow 0.2s;
}
.button:hover { transform: translateY(-1px); opacity: 0.88; }
.button:active { transform: translateY(0) scale(0.98); }
.button.small { min-height: 34px; padding: 0 16px; font-size: 14px; }
.button.wide { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; }
.nav nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 30px); font-size: 15px; }
.nav nav a:not(.button) { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav nav a:not(.button):hover { color: var(--fg); }

/* Hero */
.hero { padding-top: clamp(40px, 5vw, 72px); padding-bottom: 0; text-align: center; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); margin: 0 auto; max-width: 15ch; line-height: 1; }
.hero .lede { max-width: 30em; margin: 20px auto 26px; font-size: clamp(18px, 1.8vw, 20px); color: var(--muted); text-wrap: pretty; }

.rise { animation: rise 1s var(--ease) both; animation-delay: calc(var(--n) * 90ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* The picture: a Mac's screen with Wake's menu open from the menu bar, as the app draws it. A long export runs in a
   window behind it, which is the kind of job Wake is for. Every size is in em of the menu bar's text, so the whole
   scene scales with the screen. */
.story { padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(40px, 6vw, 72px); }
.device { width: min(100%, 940px); margin: 0 auto; }
.screen {
  position: relative;
  /* A 14-inch MacBook Pro display, 3024 by 1964. */
  aspect-ratio: 3024 / 1964;
  border: clamp(6px, 0.9vw, 11px) solid var(--bezel);
  border-radius: clamp(12px, 2vw, 24px);
  background: var(--wall);
  overflow: hidden;
  font-size: clamp(9px, 1.35vw, 13px);
  line-height: 1.3;
}
.menubar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 2em;
  padding: 0 1.1em;
  background: var(--menubar);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.menus { display: flex; gap: 1.2em; }
.status { display: flex; align-items: center; gap: 0.9em; }
.status svg { display: block; width: 1.25em; height: 1.25em; }
.status .wake { display: grid; place-items: center; height: 1.6em; padding: 0 0.45em; border-radius: 0.35em; }
/* Highlighted while its menu is open, as macOS does. */
.status .wake.open { background: color-mix(in srgb, var(--fg) 14%, transparent); }
.glyph { fill: currentColor; stroke: currentColor; }
.glyph .stroke { fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.glyph .fill { stroke: none; }
.battery { width: 1.9em !important; }

/* The window behind: a long export with a progress bar. */
.job {
  position: absolute;
  left: 8%;
  top: 30%;
  width: 42%;
  border-radius: 0.9em;
  background: var(--window);
  box-shadow: var(--shadow), 0 0 0 0.5px var(--line-strong);
  overflow: hidden;
}
.titlebar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2.6em;
  background: var(--window-bar);
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--muted);
}
.lights { position: absolute; left: 1em; display: flex; gap: 0.55em; }
.lights i { width: 0.85em; height: 0.85em; border-radius: 50%; background: #ff5f57; }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.job .body { padding: 1.3em 1.4em 1.5em; }
.job .file { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job .left { margin-top: 0.2em; color: var(--muted); }
.progress { height: 0.45em; margin-top: 1em; border-radius: 1em; background: var(--line); overflow: hidden; }
.progress i { display: block; width: 62%; height: 100%; border-radius: inherit; background: var(--highlight); }

/* Wake's menu, and its Turn On For submenu opening to the left. */
.menu {
  position: absolute;
  z-index: 3;
  padding: 0.35em;
  border-radius: 0.75em;
  background: var(--menu);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 0 0 0.5px var(--menu-edge), 0 0.6em 2.4em rgba(0, 0, 0, 0.22);
  white-space: nowrap;
}
.menu.main { top: 2.35em; right: 0.6em; width: 15em; }
/* Level with Turn On For: the main menu's top, its padding, the time-left row, a separator and Turn On. */
.menu.sub { top: 6.6em; right: 15.3em; width: 11.5em; }
.menu p { display: flex; align-items: center; gap: 0.4em; height: 1.75em; padding: 0 0.7em 0 1.6em; border-radius: 0.4em; }
.menu .state { padding-left: 0.7em; font-weight: 600; }
.menu .note { color: var(--menu-muted); }
.menu .more::after { content: "›"; margin-left: auto; font-size: 1.25em; line-height: 1; color: var(--menu-muted); }
.menu .hl { background: var(--highlight); color: #fff; }
.menu .hl::after { color: #fff; }
.menu .on { position: relative; }
.menu .on::before { content: "✓"; position: absolute; left: 0.5em; font-size: 0.9em; }
.menu .key { margin-left: auto; color: var(--menu-muted); }
.menu hr { height: 1px; margin: 0.35em 0.7em; padding: 0; border: 0; background: var(--menu-sep); }

/* What Wake does */
.features { background: var(--panel); color: var(--panel-fg); border-block: 1px solid var(--panel-line); }
.features .intro p, .features .points p { color: var(--panel-muted); }
.features .points li { border-top-color: var(--panel-line); }
.intro { max-width: 1040px; margin: 0 auto; }
.intro p { margin-top: 22px; max-width: 34em; font-size: 19px; }
.points { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); max-width: 1040px; margin: clamp(48px, 7vw, 80px) auto 0; padding: 0; list-style: none; }
.points li { padding-top: 22px; border-top: 1px solid var(--line); }
.points svg { width: 28px; height: 28px; margin-bottom: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.points h3 { margin-bottom: 6px; }
.points p { font-size: 16px; }

/* Pricing */
.pricing { background: var(--bg-alt); text-align: center; }
.card {
  max-width: 420px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding: clamp(28px, 4vw, 40px);
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 24px 60px rgba(0, 0, 0, 0.08);
  text-align: left;
}
.plan { font-size: 15px; font-weight: 600; color: var(--muted); }
.amount { display: flex; align-items: baseline; margin: 6px 0 22px; font-size: 88px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.currency { align-self: flex-start; margin-top: 10px; font-size: 36px; letter-spacing: 0; }
.amount em { margin-left: 12px; font-size: 30px; font-style: normal; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); }
.checks { display: grid; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 17px; }
.checks li { display: flex; gap: 12px; align-items: baseline; }
.checks li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  transform: translateY(3px);
  border-radius: 5px;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
@media (prefers-color-scheme: dark) {
  .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
}
.text-link { display: block; margin-top: 14px; text-align: center; font-size: 15px; color: var(--muted); }
.fine { margin-top: 18px; text-align: center; font-size: 13px; color: var(--faint); }
.teams { margin-top: 28px; font-size: 15px; color: var(--muted); }

/* FAQ */
.faq { max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto; }
.faq h2 { margin-bottom: clamp(28px, 4vw, 44px); }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; flex: none; font-weight: 300; font-size: 26px; line-height: 0.9; color: var(--muted); transition: transform 0.3s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 24px; max-width: 40em; color: var(--muted); }

/* Closing */
.closing { text-align: center; padding-bottom: clamp(96px, 14vw, 170px); }
.closing img { margin: 0 auto 20px; }
.closing h2 { max-width: 16ch; margin: 0 auto 36px; font-size: clamp(38px, 6vw, 72px); }

footer { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 28px var(--gutter); border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer .family { flex: 1 1 auto; text-align: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

/* The system requirement, by every Download Now button */
.requires { font-size: 14px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.requires b { font-weight: 600; color: var(--fg); }
.hero .requires, .closing .requires { margin-top: 14px; }
.card .requires { margin-top: 14px; text-align: center; }
.get-started .requires { margin: -4px 0 14px; }

/* What to do with the download, once Download Now is clicked */
.get-started {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  width: min(400px, calc(100vw - 32px));
  padding: 22px 24px 20px;
  border-radius: 22px;
  background: var(--bg);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
  animation: rise 0.5s var(--ease) both;
}
.get-started .title { margin-bottom: 12px; padding-right: 32px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.get-started ol { margin: 0; padding-left: 1.25em; font-size: 15px; line-height: 1.5; color: var(--muted); }
.get-started li + li { margin-top: 8px; }
.get-started .other p:last-child { font-size: 15px; line-height: 1.5; color: var(--muted); }
.get-started .close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--fg);
  cursor: pointer;
}
.get-started .close svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

/* Scroll reveals, only when scripts run */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].shown { opacity: 1; transform: none; }
.points li:nth-child(2) { transition-delay: 0.08s; }
.points li:nth-child(3) { transition-delay: 0.16s; }
.points li:nth-child(4) { transition-delay: 0.24s; }

@media (max-width: 900px) {
  .points { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  /* On a phone the screen gets taller, so the menu keeps a readable size, and the window behind moves down out of
     its way. */
  .screen { aspect-ratio: 4 / 3.4; font-size: clamp(8px, 2.75vw, 11px); }
  .job { left: 5%; top: auto; bottom: 7%; width: 56%; }
  .get-started { right: 16px; bottom: 16px; padding: 20px 20px 18px; }
  body { font-size: 17px; }
  .hide-small { display: none; }
  .points { grid-template-columns: minmax(0, 1fr); }
  .actions .button { flex: 1 1 100%; }
  .amount { font-size: 76px; }
  footer { flex-direction: column; }
  footer .family { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
