/* Northlight: the Calm look. Centered, lots of white, pill tabs, one orange button, and a
   picture of the app. Light and dark follow the system. */
:root {
  --bg: #FFFFFF; --fg: #1D1D1F; --fg-2: #6E6E73; --fg-3: #A1A1A6; --line: #F0F0F3; --soft: #F7F7F9;
  --tabs: #F3F3F6; --tab-on: #FFFFFF; --stage: #F4F4F7;
  --orange: #D9530B; --on-orange: #FFFFFF; --orange-ink: #D9530B; --tint: #FFF0E6;
  --button: #1D1D1F; --on-button: #FFFFFF;
  --dot-off: #E6E6EB; --held: #F0912B; --stripe: #FF6A13; --lamp: #FF8A3D;
  --app: #FFFFFF; --app-side: #F7F7F9; --app-line: #ECECEF;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --sun: none; --moon: block;
  --top: 65px;
  color-scheme: light;
}
@media (max-width: 1000px) { :root { --top: 111px; } }
/* Dark: when the system is dark and the visitor hasn't picked light, or when they picked dark with
   the switch (theme.js sets data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #161618; --fg: #F2F2F4; --fg-2: #A3A3AC; --fg-3: #74747C; --line: #2B2B2F; --soft: #1F1F22;
  --tabs: #232327; --tab-on: #3A3A40; --stage: #1F1F22;
  --orange: #E4600F; --orange-ink: #FF8A3D; --tint: #3A2414;
  --button: #F2F2F4; --on-button: #161618;
  --dot-off: #3A3A40; --app: #1C1C1E; --app-side: #222225; --app-line: #303034;
  --sun: block; --moon: none; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #161618; --fg: #F2F2F4; --fg-2: #A3A3AC; --fg-3: #74747C; --line: #2B2B2F; --soft: #1F1F22;
  --tabs: #232327; --tab-on: #3A3A40; --stage: #1F1F22;
  --orange: #E4600F; --orange-ink: #FF8A3D; --tint: #3A2414;
  --button: #F2F2F4; --on-button: #161618;
  --dot-off: #3A3A40; --app: #1C1C1E; --app-side: #222225; --app-line: #303034;
  --sun: block; --moon: none; color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--stripe); outline-offset: 3px; border-radius: 8px; }
.defs { position: absolute; width: 0; height: 0; }

.wrap { max-width: 1040px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* Header: the studio's name, the tabs, and (on a product page) its Download button */
/* Pinned to the window, so it never moves: not with the page, and not when the page bounces at
   the top. The body leaves room for it (--top is its height). */
body { padding-top: var(--top); }
.top { position: fixed; inset: 0 0 auto; height: var(--top); z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-block: 12px; }
.word { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; justify-self: start; }
.word .mark { flex: none; color: var(--fg); }
.tabs { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--tabs); }
.tabs a { flex: none; white-space: nowrap; font: 500 14px/1 var(--sans); padding: 9px 16px; border-radius: 999px; color: var(--fg-2); }
.tabs a:hover { color: var(--fg); }
.tabs a[aria-current="page"] { background: var(--tab-on); color: var(--fg); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.right { justify-self: end; display: flex; align-items: center; gap: 10px; }
.get { font: 600 13.5px/1 var(--sans); background: var(--button); color: var(--on-button); padding: 10px 15px; border-radius: 999px; }
.get:hover, .button:hover { opacity: .9; }
/* The light/dark switch: a moon in light mode, a sun in dark. Hidden when scripts are off. */
.theme { display: none; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: var(--tabs); color: var(--fg-2); cursor: pointer; padding: 0; }
.js .theme { display: grid; }
.theme:hover { color: var(--fg); }
.theme .sun { display: var(--sun); }
.theme .moon { display: var(--moon); }
/* Eight tabs don't fit beside the name on a narrower window: they take a row of their own, and on a
   phone that row scrolls sideways (nav.js brings the current tab into view). */
@media (max-width: 1000px) {
  .nav { grid-template-columns: 1fr auto; gap: 10px; padding-block: 12px; }
  .tabs { grid-column: 1 / -1; grid-row: 2; justify-self: center; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { padding: 9px 13px; }
}
@media (max-width: 700px) { .get { display: none; } }

/* Hero */
.hero { display: grid; justify-items: center; gap: 16px; text-align: center; padding-block: 68px 0; }
.hero.alone { padding-bottom: 96px; }
.icon { width: 68px; height: 68px; border-radius: 17px; display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.icon.barricade { background: #1D1D1F; }
h1 { margin: 0; font: 700 clamp(36px, 6.4vw, 62px)/1.05 var(--display); letter-spacing: -.03em; max-width: 14ch; text-wrap: balance; }
.lede { margin: 0; max-width: 44ch; font-size: 18px; color: var(--fg-2); }
.button { display: inline-flex; align-items: center; gap: 9px; margin-top: 6px; background: var(--orange); color: var(--on-orange); font: 600 17px/1 var(--sans); padding: 16px 26px; border-radius: 999px; }
.button.quiet { background: var(--button); color: var(--on-button); }
.fine { font-size: 13px; color: var(--fg-3); }
.soon { font: 600 13.5px/1 var(--sans); color: var(--fg-2); background: var(--tabs); padding: 9px 14px; border-radius: 999px; margin-top: 6px; }
/* An app that's out: the button to its App Store page, and beside it a code to scan with an iPhone.
   The code sits on white in both themes so every camera reads it, and a phone, already holding the
   App Store, gets only the button. */
.get-app { display: flex; align-items: center; gap: 18px; margin-top: 6px; }
.get-app .button { margin-top: 0; }
.qr { display: grid; justify-items: center; gap: 5px; padding: 9px 9px 7px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line); box-shadow: 0 8px 20px -14px rgba(20, 22, 30, .45); }
.qr img { display: block; width: 96px; height: 96px; }
.qr span { font: 600 10px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #1D1D1F; }
@media (max-width: 720px) { .qr { display: none; } }

/* The picture of the app */
.stage { margin-top: 44px; padding: 44px 24px 0; border-radius: 28px 28px 0 0; background: linear-gradient(var(--stage), var(--bg)); display: grid; justify-items: center; gap: 12px; }
.app { width: min(100%, 640px); background: var(--app); border-radius: 12px; overflow: hidden; border: 1px solid var(--app-line); box-shadow: 0 24px 50px -24px rgba(20, 22, 30, .45); text-align: left; }
.app-stripe { height: 5px; background: repeating-linear-gradient(-45deg, var(--stripe) 0 8px, var(--app) 8px 16px); }
.app-bar { height: 34px; display: flex; align-items: center; padding: 0 12px; border-bottom: 1px solid var(--app-line); position: relative; }
.lights { display: flex; gap: 6px; }
.lights i { width: 9px; height: 9px; border-radius: 50%; background: #FF5F57; }
.lights i:nth-child(2) { background: #FEBC2E; }
.lights i:nth-child(3) { background: #28C840; }
.app-bar b { position: absolute; left: 0; right: 0; text-align: center; font: 600 12px/1 var(--sans); }
.app-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.app-left { padding: 18px 24px 24px; }
.app-number { font: 200 88px/1 var(--display); letter-spacing: -.05em; margin-left: -4px; }
.app-left strong { display: block; margin-top: 4px; font: 600 13px/1.3 var(--sans); }
.app-left small { display: block; margin-bottom: 14px; font-size: 12px; color: var(--fg-2); }
.dots { display: grid; grid-template-columns: repeat(15, 7px); gap: 5px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot-off); }
.dots i.on { background: var(--fg); }
.dots i.held { background: var(--held); }
.app-right { background: var(--app-side); border-left: 1px solid var(--app-line); padding: 18px 18px 8px; font-size: 12.5px; }
.app-right strong { display: block; margin-bottom: 10px; font: 600 12.5px/1 var(--sans); }
.app-add { border: 1px solid var(--app-line); background: var(--app); border-radius: 8px; padding: 8px 10px; color: var(--fg-3); margin-bottom: 4px; }
.app-row { display: flex; justify-content: space-between; gap: 8px; padding: 9px 2px; border-bottom: 1px solid var(--app-line); white-space: nowrap; }
.app-row:last-child { border-bottom: 0; }
.app-row span { color: var(--fg-3); font-size: 11px; }
.app-row b { font-weight: 600; }
.stage figcaption, .caption { font-size: 12px; color: var(--fg-3); }
figure { margin: 0; }
/* A phone app, in the app's own colours: tools/pictures.py sets --scr (the screen), --ink, --dim,
   --card and --hue on each .phone. The screens are the apps' dark looks in both themes. */
.phone { width: min(100%, 300px); padding: 9px; border-radius: 46px; background: #0B0B0D; box-shadow: 0 30px 60px -28px rgba(20, 22, 30, .6), inset 0 0 0 1px #2C2C30; text-align: left; margin-bottom: 44px; }
.scr { position: relative; min-height: 500px; padding: 52px 18px 22px; border-radius: 37px; overflow: hidden; background: var(--scr); color: var(--ink); display: grid; gap: 11px; align-content: start; font-size: 12.5px; line-height: 1.4; }
.scr::before { content: ""; position: absolute; top: 12px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 14px; background: #000; }
.p-eye { font-size: 11px; color: var(--dim); }
.p-dim { color: var(--dim); }
.p-hue { color: var(--hue); }
.p-big { font: 600 38px/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.p-serif { font: italic 500 20px/1.3 Georgia, "Times New Roman", serif; text-wrap: balance; }
.p-card { background: var(--card); border-radius: 16px; padding: 12px 14px; display: grid; gap: 4px; }
.p-card b { font: 600 14px/1.25 var(--display); }
.p-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.p-tiles .p-card { padding: 10px; }
.p-row { display: flex; justify-content: space-between; gap: 10px; }
.p-btn { justify-self: start; margin-top: 4px; padding: 7px 15px; border-radius: 999px; background: var(--hue); color: var(--scr); font-weight: 600; }
.p-art { display: block; width: 100%; height: auto; }
.p-art.map { margin-inline: -18px; width: calc(100% + 36px); max-width: none; }
.doors { text-align: center; font-size: 10.5px; color: var(--dim); padding-block: 4px; }
.doors svg { display: block; width: 100%; height: auto; margin-bottom: 5px; }
@media (max-width: 560px) {
  .stage { padding: 28px 12px 0; margin-inline: -8px; }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .app-right { display: none; }
}

/* Three benefits */
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding-block: 60px; }
.card { background: var(--soft); border-radius: 22px; padding: 26px; display: grid; gap: 8px; align-content: start; }
.card svg { margin-bottom: 6px; color: var(--orange-ink); }
.card h2 { margin: 0; font: 600 18px/1.25 var(--display); }
.card p { margin: 0; color: var(--fg-2); font-size: 15px; }

/* How it works */
.how { display: grid; gap: 30px; text-align: center; padding-block: 12px 76px; }
.how h2, .about h2 { margin: 0; font: 700 30px/1.1 var(--display); letter-spacing: -.02em; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; gap: 6px; justify-items: center; }
.steps i { font: 700 15px/38px var(--sans); font-style: normal; width: 38px; height: 38px; border-radius: 50%; background: var(--tint); color: var(--orange-ink); }
.steps b { font-weight: 600; font-size: 17px; }
.steps span { color: var(--fg-2); font-size: 15px; max-width: 26ch; }
@media (max-width: 720px) {
  .three, .steps { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 48px; }
}

/* Scrolling down: what starts below the screen eases up into place as it arrives (reveal.js adds
   and removes .below). Siblings follow one another by a beat. */
[data-reveal] { transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
[data-reveal].below { opacity: 0; transform: translateY(28px); }
.stage[data-reveal].below { transform: translateY(28px) scale(.97); }
[data-reveal]:nth-child(2) { transition-delay: .09s; }
[data-reveal]:nth-child(3) { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { transition: none; } }

.hero.home { padding-top: 84px; }

/* Home: the apps */
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-block: 56px 28px; }
.product { border-radius: 28px; overflow: hidden; background: var(--soft); display: grid; grid-template-rows: auto 1fr; }
.product .pic { height: 270px; display: grid; place-items: center; overflow: hidden; position: relative; }
.product .pic.barricade { background: #1D1D1F; }
.product .pic.barricade::after { content: ""; position: absolute; inset: auto 0 0; height: 10px; background: repeating-linear-gradient(-45deg, var(--stripe) 0 14px, #1D1D1F 14px 28px); }
/* A picture (Pulse's app icon) fades into the card's own background at its edges. */
.product .pic img { -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.product .text { padding: 26px 28px 30px; display: grid; gap: 6px; align-content: start; }
.product .for { font-size: 13px; font-weight: 600; color: var(--fg-3); }
.product h2 { margin: 0; font: 700 28px/1.15 var(--display); letter-spacing: -.02em; }
.product p { margin: 0; color: var(--fg-2); max-width: 40ch; }
.product .more { font-weight: 600; font-size: 15px; color: var(--orange-ink); margin-top: 10px; }
/* Home: what's in the works, as four smaller cards */
.works { padding-block: 36px 0; }
.works h2 { margin: 0; font: 700 28px/1.15 var(--display); letter-spacing: -.02em; }
.apps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding-block: 20px 28px; }
.apps.four .product { border-radius: 22px; }
.apps.four .pic { height: 150px; }
.apps.four .text { padding: 18px 20px 22px; }
.apps.four h2 { font-size: 21px; }
.apps.four p { font-size: 15px; }
.apps.four .more { font-size: 14px; }
.closing { display: grid; justify-items: center; gap: 10px; text-align: center; padding-block: 56px 88px; }
.closing p { margin: 0; max-width: 34ch; font: 600 clamp(20px, 3vw, 26px)/1.3 var(--display); letter-spacing: -.01em; text-wrap: balance; }
.closing a { font-weight: 600; font-size: 15px; color: var(--orange-ink); }
@media (max-width: 980px) { .apps.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .apps { grid-template-columns: minmax(0, 1fr); } .product .pic { height: 220px; } }
@media (max-width: 480px) { .apps.four { grid-template-columns: minmax(0, 1fr); } }

/* About */
.name { margin-top: 56px; padding-block: 48px; padding-inline: 48px; background: var(--soft); border-radius: 28px; max-width: 992px; }
.name h2, .ways h2, .list h2 { margin: 0 0 10px; font: 700 28px/1.15 var(--display); letter-spacing: -.02em; }
.name p { margin: 0 0 10px; color: var(--fg-2); font-size: 17px; max-width: 48ch; }
.name p:last-child { margin-bottom: 0; }
.ways { padding-block: 64px 0; }
.three.plain { padding-block: 14px 0; gap: 32px; }
.three.plain h3 { margin: 0 0 4px; font: 600 18px/1.3 var(--display); }
.three.plain p { margin: 0; color: var(--fg-2); }
.list { padding-block: 64px 88px; }
.line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding-block: 18px; border-top: 1px solid var(--line); }
.line:last-child { border-bottom: 1px solid var(--line); }
.line b { display: block; font: 600 18px/1.3 var(--display); }
.line span span { display: block; color: var(--fg-2); font-size: 15px; }
.line .go { color: var(--fg-3); font-size: 20px; }
.line:hover .go { color: var(--orange-ink); }
.icon.small { width: 48px; height: 48px; border-radius: 12px; box-shadow: none; }
@media (max-width: 720px) { .name { padding-inline: 24px; margin-inline: 16px; } }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-block: 26px 38px; font-size: 13px; color: var(--fg-3); }
.foot a:hover { color: var(--fg); }
