:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --line: #d2d2d7;
  --hair: #e8e8ed;
  --link: #0066cc;
  --blue: #007aff;
  --ok: #248a3d;
  --sun: #d98a0b;
  --pill-bg: #1d1d1f;
  --pill-fg: #ffffff;
  --pill-hover: #000000;
  --nav-bg: rgba(255, 255, 255, .8);
  --nav-line: rgba(0, 0, 0, .08);
  --frame: 0 0 0 1px rgba(0, 0, 0, .06), 0 30px 60px -30px rgba(0, 0, 0, .25);
  --shot-shadow: 0 0 0 .5px rgba(0, 0, 0, .1), 0 24px 48px -20px rgba(0, 0, 0, .22);
  --wall-night: linear-gradient(180deg, #e4e7ef 0%, #e9e8f0 55%, #efebee 100%);
  --wall-day: radial-gradient(70% 70% at 50% 115%, #ffd9a8 0%, #fde8cf 35%, #fbf3ea 70%, #f8f4ef 100%);
  --mb-bg: rgba(255, 255, 255, .45);
  --mb-hl: rgba(0, 0, 0, .1);
  --term-bg: #ffffff;
  --term-bar: #ececec;
  --term-dot: #d0d0d0;
  --term-title: #4d4d4d;
  --win-edge: rgba(0, 0, 0, .2);
  --win-shadow: rgba(0, 0, 0, .14);
  --menu-bg: rgba(246, 246, 246, .78);
  --menu-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 20px 50px rgba(0, 0, 0, .18), inset 0 0 0 .5px rgba(255, 255, 255, .6);
  --card-bg: rgba(255, 255, 255, .7);
  --card-edge: rgba(0, 0, 0, .08);
  --sep: rgba(0, 0, 0, .12);
  --control-bg: #ffffff;
  --control-edge: 0 0 0 .5px rgba(0, 0, 0, .12), 0 1px 1px rgba(0, 0, 0, .06);
  --switch-off: #e1e1e3;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M2 5l3-3 3 3M2 9l3 3 3-3' fill='none' stroke='%231d1d1f' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --bg: #000000;
  --bg-2: #161617;
  --line: #424245;
  --hair: #2c2c2e;
  --link: #2997ff;
  --blue: #0a84ff;
  --ok: #30d158;
  --sun: #ffb340;
  --pill-bg: #f5f5f7;
  --pill-fg: #1d1d1f;
  --pill-hover: #ffffff;
  --nav-bg: rgba(22, 22, 23, .8);
  --nav-line: rgba(255, 255, 255, .1);
  --frame: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -30px rgba(0, 0, 0, .8);
  --shot-shadow: 0 0 0 .5px rgba(255, 255, 255, .12), 0 24px 48px -20px rgba(0, 0, 0, .7);
  --wall-night: linear-gradient(180deg, #1c1f29 0%, #16171e 55%, #121318 100%);
  --wall-day: radial-gradient(70% 70% at 50% 115%, #7a4a17 0%, #3f2b15 35%, #1f1a15 70%, #171513 100%);
  --mb-bg: rgba(30, 30, 32, .5);
  --mb-hl: rgba(255, 255, 255, .18);
  --term-bg: #1e1e1e;
  --term-bar: #2c2c2e;
  --term-dot: #4a4a4d;
  --term-title: #c7c7cc;
  --win-edge: rgba(0, 0, 0, .7);
  --win-shadow: rgba(0, 0, 0, .45);
  --menu-bg: rgba(42, 42, 44, .78);
  --menu-shadow: 0 0 0 .5px rgba(0, 0, 0, .7), 0 20px 50px rgba(0, 0, 0, .5), inset 0 0 0 .5px rgba(255, 255, 255, .14);
  --card-bg: rgba(255, 255, 255, .05);
  --card-edge: rgba(255, 255, 255, .09);
  --sep: rgba(255, 255, 255, .12);
  --control-bg: rgba(255, 255, 255, .14);
  --control-edge: 0 0 0 .5px rgba(0, 0, 0, .35), inset 0 .5px 0 rgba(255, 255, 255, .08);
  --switch-off: rgba(255, 255, 255, .18);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M2 5l3-3 3 3M2 9l3 3 3-3' fill='none' stroke='%23f5f5f7' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 52px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.47 var(--font);
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
p { margin: 0; }

.wrap { width: min(980px, 100% - 44px); margin-inline: auto; }
.wrap-wide { width: min(1120px, 100% - 44px); margin-inline: auto; }
.center { text-align: center; }

/* Buttons */
.pill {
  display: inline-block; padding: 12px 22px; border-radius: 980px;
  background: var(--pill-bg); color: var(--pill-fg); font-size: 17px; font-weight: 500;
  transition: background-color .2s;
}
.pill:hover { background: var(--pill-hover); text-decoration: none; }
.pill-small { padding: 4px 12px; font-size: 12px; font-weight: 500; }
.pill-coffee { display: inline-flex; align-items: center; gap: 8px; background: #ffdd00; color: #111; }
.pill-coffee:hover { background: #ffe433; }
.pill-coffee svg { width: 19px; height: 19px; }
.more { font-size: 17px; }
.more::after { content: " ›"; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 32px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--nav-line);
}
.nav-row { display: flex; align-items: center; height: 48px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 12px; }
.nav-links a { color: var(--text); opacity: .8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-end { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  display: grid; place-items: center; width: 28px; height: 28px; padding: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--text); cursor: pointer; opacity: .8;
}
.theme-toggle:hover { opacity: 1; background: var(--hair); }
.theme-toggle svg { width: 16px; height: 16px; }

/* Hero */
.hero { padding: 88px 0 100px; }
.hero-copy { text-align: center; }
.hero-icon { margin: 0 auto 28px; }
h1 { font-size: clamp(40px, 6.6vw, 76px); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
h1 span, h2 span { color: var(--text-3); }
.lede { max-width: 620px; margin: 24px auto 36px; font-size: 21px; line-height: 1.43; color: var(--text-2); letter-spacing: -.02em; }
.fine { margin-top: 22px; font-size: 14px; color: var(--text-3); }

/* Desk scene */
.desk {
  position: relative; overflow: hidden;
  height: 520px; margin-top: 72px; border-radius: 22px;
  box-shadow: var(--frame);
}
.wall { position: absolute; inset: 0; transition: opacity 1.2s ease; }
.wall-night { background: var(--wall-night); }
.wall-day { opacity: 0; background: var(--wall-day); }
.desk.is-awake .wall-day { opacity: 1; }

.menubar {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between;
  height: 30px; padding: 0 14px;
  background: var(--mb-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  font-size: 13px; letter-spacing: -.01em; color: var(--text);
}
.mb-left { display: flex; gap: 18px; }
.mb-left b { font-weight: 700; }
.mb-right { display: flex; align-items: center; gap: 16px; font-variant-numeric: tabular-nums; }
.mb-right svg { width: 16px; height: 16px; }
.mb-right .mb-batt { width: 22px; }
.mb-vaken { display: grid; place-items: center; width: 30px; height: 22px; border-radius: 5px; background: var(--mb-hl); }
.mb-vaken svg { width: 15px; height: 15px; }

.term {
  position: absolute; top: 96px; left: 80px; width: 500px;
  border-radius: 10px; overflow: hidden; background: var(--term-bg);
  box-shadow: 0 0 0 .5px var(--win-edge), 0 18px 40px var(--win-shadow);
}
.term-bar {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: 28px; padding: 0 12px; background: var(--term-bar); border-bottom: .5px solid var(--sep);
}
.term-bar i { width: 12px; height: 12px; border-radius: 50%; background: var(--term-dot); box-shadow: inset 0 0 0 .5px var(--sep); }
.term-bar span { position: absolute; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--term-title); letter-spacing: -.01em; pointer-events: none; }
.term pre { margin: 0; padding: 14px 16px 18px; font: 12.5px/1.65 var(--mono); color: var(--text); letter-spacing: 0; }
.t-dim { color: var(--text-3); }
.t-ok { color: var(--ok); }
.t-cursor { display: inline-block; width: 7px; height: 15px; vertical-align: -3px; background: var(--text); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.menu {
  position: absolute; z-index: 1; top: 36px; right: 120px;
  width: 300px; padding: 12px;
  border-radius: 12px;
  background: var(--menu-bg);
  backdrop-filter: blur(30px) saturate(180%); -webkit-backdrop-filter: blur(30px) saturate(180%);
  box-shadow: var(--menu-shadow);
  font-size: 13px; letter-spacing: -.01em;
}
.m-head { display: flex; align-items: center; gap: 8px; margin: 2px 2px 12px; font-size: 14px; }
.m-card { border-radius: 9px; background: var(--card-bg); box-shadow: 0 0 0 .5px var(--card-edge); }
.m-main { display: flex; align-items: center; gap: 11px; padding: 12px; }
.m-glyph { width: 26px; height: 26px; flex: none; color: var(--text); transition: color .4s, transform .6s ease; }
.desk.is-awake .m-glyph { color: #f0a020; transform: rotate(45deg); }
.m-label { display: flex; flex-direction: column; line-height: 1.3; }
.m-label strong { font-size: 14px; font-weight: 600; }
.m-label small { font-size: 12px; color: var(--text-2); }
.switch {
  position: relative; flex: none; margin-left: auto;
  width: 38px; height: 22px; padding: 0; border: 0; border-radius: 11px; cursor: pointer;
  background: var(--switch-off); box-shadow: inset 0 0 0 .5px var(--sep);
  transition: background-color .2s;
}
.switch span {
  position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 0 0 .5px rgba(0, 0, 0, .05);
  transition: transform .2s ease;
}
.switch[aria-checked="true"] { background: var(--blue); }
.switch[aria-checked="true"] span { transform: translateX(16px); }
.m-power { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-top: .5px solid var(--sep); font-size: 12px; color: var(--text-2); }
.m-power svg { width: 13px; height: 13px; }
.m-row { display: flex; align-items: center; justify-content: space-between; margin: 12px 2px 0; }
.m-row label, .m-dim { color: var(--text-2); }
.m-row select, .m-chips button, .m-chips a {
  border: 0; border-radius: 6px; cursor: pointer;
  background: var(--control-bg); color: var(--text);
  box-shadow: var(--control-edge);
  font: 400 13px var(--font); letter-spacing: -.01em;
}
.m-row select {
  appearance: none; -webkit-appearance: none; padding: 3px 26px 3px 9px;
  background: var(--control-bg) var(--chevron) no-repeat right 8px center / 7px 11px;
}
.m-note { margin: 6px 2px 0; min-height: 1.4em; font-size: 12px; color: var(--text-2); }
.m-count { font-weight: 600; font-variant-numeric: tabular-nums; }
.m-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 8px; }
.m-chips button, .m-chips a { padding: 3px 0; text-align: center; }
.m-chips a:hover { text-decoration: none; }
.m-chips button.is-active { background: var(--blue); color: #fff; box-shadow: none; }
.m-links button { padding: 0; border: 0; background: none; cursor: pointer; color: var(--text); font: 400 13px var(--font); letter-spacing: -.01em; }
.m-links button:hover { color: var(--blue); }
.m-links button:disabled { color: var(--text-3); cursor: default; }
.m-foot { display: flex; justify-content: space-between; margin-top: 12px; padding: 10px 2px 0; border-top: .5px solid var(--sep); color: var(--text-2); }
.m-foot span { display: flex; align-items: center; gap: 6px; }
.m-foot svg { width: 14px; height: 14px; }
.caption { margin-top: 18px; text-align: center; font-size: 14px; color: var(--text-3); }

/* Bands */
.band { padding: 120px 0; }
.band-grey { background: var(--bg-2); }
h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.07; letter-spacing: -.03em; text-wrap: balance; }
.intro { max-width: 640px; margin-top: 20px; font-size: 21px; line-height: 1.43; color: var(--text-2); letter-spacing: -.02em; }
.intro.center { margin-inline: auto; }
.small { margin-top: 48px; }

/* How it works */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 80px; text-align: center; }
.trio svg { width: 40px; height: 40px; margin: 0 auto 18px; color: var(--text); }
.trio-k { font-size: 14px; color: var(--text-2); }
.trio-v { margin: 2px 0 10px; font-size: 32px; font-weight: 600; letter-spacing: -.03em; }
.trio > div:first-child .trio-v { color: var(--sun); }
.trio p:last-child { max-width: 260px; margin-inline: auto; color: var(--text-2); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; margin-top: 80px; }
.features svg { width: 30px; height: 30px; margin-bottom: 16px; color: var(--text); }
.features h3 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 6px; }
.features p { color: var(--text-2); }

/* Screenshots */
.shots { display: flex; justify-content: center; align-items: flex-start; gap: 48px; margin-top: 72px; flex-wrap: wrap; }
.shots figure { margin: 0; }
.shots img {
  max-width: 100%; height: auto; border-radius: 12px;
  box-shadow: var(--shot-shadow);
}
.shots figcaption { margin-top: 18px; text-align: center; font-size: 14px; color: var(--text-2); }

/* Privacy */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--hair); color: var(--text-2); }
.checks li:first-child { padding-top: 6px; }
.checks svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--text); }
.checks b { color: var(--text); font-weight: 600; }
.checks .recovery { flex-direction: column; gap: 10px; border-bottom: 0; font-size: 14px; }
.code { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 10px; background: var(--bg-2); }
.code code { font: 13px var(--mono); color: var(--text); letter-spacing: 0; overflow-x: auto; white-space: nowrap; }
.code button { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 7px; background: transparent; color: var(--text-2); cursor: pointer; }
.code button:hover { background: var(--hair); color: var(--text); }
.code button svg { width: 16px; height: 16px; }
.code button.is-done { color: var(--ok); }

/* Install */
.steps { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); display: block; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--text-3); }
.steps h3 { font-size: 19px; letter-spacing: -.02em; margin-bottom: 6px; }
.steps p { color: var(--text-2); }

/* Closer */
.closer { text-align: center; }
.closer img { margin: 0 auto 24px; }
.closer .intro { margin: 16px auto 36px; }
.closer-link { margin-top: 24px; }

/* Footer */
.foot { padding: 20px 0 28px; background: var(--bg-2); border-top: 1px solid var(--hair); font-size: 12px; color: var(--text-2); letter-spacing: -.01em; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--text-2); }
.foot a:hover { color: var(--text); }
.foot nav { display: flex; gap: 20px; }
.foot-note { margin-top: 10px; color: var(--text-3); }

/* Responsive */
@media (max-width: 1080px) {
  .term { left: 40px; width: 420px; }
  .menu { right: 40px; }
  .mb-left span:nth-child(n+5) { display: none; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-row { justify-content: space-between; }
  .band { padding: 88px 0; }
  .trio, .features, .split { grid-template-columns: 1fr; }
  .features { gap: 40px; }
  .split { gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .desk { height: auto; padding-bottom: 32px; }
  .term { display: none; }
  .menu { position: relative; top: auto; right: auto; margin: 8px auto 0; }
  .mb-left { display: none; }
  .menubar { justify-content: flex-end; }
}
@media (max-width: 480px) {
  .hero { padding: 56px 0 72px; }
  .lede, .intro { font-size: 19px; }
  .steps { grid-template-columns: 1fr; }
  .desk { margin-top: 56px; border-radius: 16px; }
  .menu { width: calc(100% - 24px); }
  .mb-right span[data-clock] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
