/* Home, About and Roadmap (with pages.css). Other pages use site.css. */
@font-face {
  font-family: Quicksand;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/quicksand.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/nunito-sans.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --display: Quicksand, ui-rounded, system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink: #2a2438;
  --gutter: clamp(1rem, 5vw, 4rem);
}
[data-palette="Lilac"] {
  --paper: #f1ecf9;
  --text: #2a2438;
  --muted: #645c78;
  --accent: #5e4a91;
  --subtle: #e3d9f4;
  --rule: #d8ceea;
  --marker: #c6b4e8;
}
[data-palette="Leaf"] {
  --paper: #f5f8f2;
  --text: #202e29;
  --muted: #586c62;
  --accent: #2d6655;
  --subtle: #e2efe5;
  --rule: #cedbd1;
  --marker: rgb(217 240 107 / 0.9);
}
[data-palette="Sky"] {
  --paper: #eaf2fa;
  --text: #1e2a36;
  --muted: #566878;
  --accent: #2f6491;
  --subtle: #d6e6f5;
  --rule: #c8d9ea;
  --marker: #91c4f3;
}
[data-palette="Blush"] {
  --paper: #faedf0;
  --text: #35242a;
  --muted: #77606a;
  --accent: #94405f;
  --subtle: #f4dde3;
  --rule: #e8cdd5;
  --marker: #eeacbe;
}
[data-palette="Apricot"] {
  --paper: #fcefe3;
  --text: #36281f;
  --muted: #7a6456;
  --accent: #97502a;
  --subtle: #f7e0cc;
  --rule: #ebd3bf;
  --marker: #f9ae7e;
}
[data-palette="Pebble"] {
  --paper: #f1efea;
  --text: #2a2926;
  --muted: #6b6862;
  --accent: #4d4a44;
  --subtle: #e4e1d9;
  --rule: #d6d3cb;
  --marker: #d3bc7a;
}
[data-palette] {
  background-color: var(--paper);
  color: var(--text);
}

* {
  box-sizing: border-box;
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  overflow-x: clip;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
}
h1,
h2,
h3,
.brand,
.pencil {
  font-family: var(--display);
  font-weight: 600;
}
h2 {
  font-size: clamp(2.375rem, 1.6rem + 3.2vw, 3.5625rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
svg {
  display: block;
}
.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: #fff;
}
.skip:focus {
  top: 1rem;
}
.ic {
  width: 1em;
  height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.inner {
  position: relative;
  width: min(100% - 2 * var(--gutter), 72rem);
  margin-inline: auto;
}
main > section {
  overflow: hidden;
}
main > section > .inner {
  padding-block: clamp(3.5rem, 9vw, 4rem);
}
.bodycopy,
.desc {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.25rem);
  line-height: 1.6;
}
.platforms {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.7;
}
.button {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 17px 25px;
  border: 0;
  border-radius: 30px;
  background: var(--ink);
  color: #fff;
  font: 700 1.0625rem / 1.3 var(--body);
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: #3d3550;
}
.button .ic {
  width: 14px;
  height: 14px;
}
.button.secondary {
  gap: 10px;
  background: none;
  color: var(--ink);
  box-shadow: inset 0 0 0 1.6px var(--ink);
}
.button.secondary:hover {
  background: var(--subtle);
}
.secondary .ic {
  width: 16px;
  height: 16px;
}

/* Hand-drawn lines */
.arrow,
.wave {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arrow {
  display: none;
  position: absolute;
  z-index: 5;
  pointer-events: none;
}

/* Nav and footer */
.nav .inner,
.foot .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}
.nav {
  border-bottom: 1px solid #e7e3eb;
}
.nav .inner {
  min-height: 88px;
  padding-block: 0.75rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.625rem;
  letter-spacing: -1px;
  text-decoration: none;
}
.brand .leaf {
  width: 34px;
  height: 34px;
}
.nav nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  font-size: 0.9375rem;
}
.nav nav a:not(.button) {
  text-decoration: none;
}
.nav nav a:not(.button):hover {
  text-decoration: underline;
}
.nav .button {
  gap: 16px;
  padding: 12px 20px;
  font-size: 0.875rem;
}
.foot {
  padding-bottom: 28px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.foot .inner {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.foot .brand {
  gap: 8px;
  color: var(--muted);
  font-size: 1.3125rem;
}
.foot .brand .leaf {
  width: 24px;
  height: 24px;
}
.foot p {
  margin-right: auto;
}
.foot .legal {
  flex-basis: 100%;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.foot nav a {
  text-decoration: none;
}
.foot nav a:hover {
  text-decoration: underline;
}

/* The app's screen, drawn at any size from one unit */
.screen {
  --u: 1cqw;
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--paper);
  color: var(--text);
}
.app-bar {
  position: absolute;
  inset-inline: calc(var(--u) * 3.08);
  top: calc(var(--u) * 2.05);
  height: calc(var(--u) * 12.3);
  display: flex;
  align-items: center;
}
.app-brand {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 1.3);
  white-space: nowrap;
  font: 600 calc(var(--u) * 6.15)/calc(var(--u) * 8.2) var(--display);
}
.app-brand .leaf {
  width: calc(var(--u) * 7.2);
  height: calc(var(--u) * 7.2);
}
.app-brand b {
  text-transform: uppercase;
  padding: 0 calc(var(--u) * 1.4);
  border-radius: calc(var(--u) * 2);
  background: var(--subtle);
  color: var(--accent);
  font: 700 calc(var(--u) * 2.8)/calc(var(--u) * 4.5) var(--body);
  letter-spacing: calc(var(--u) * 0.2);
}
.app-dot {
  flex: none;
  width: calc(var(--u) * 1.55);
  height: calc(var(--u) * 1.55);
  margin: 0 calc(var(--u) * 4.4) 0 auto;
  border-radius: 50%;
  background: var(--accent);
}
.app-tool,
.app-palette {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(var(--u) * 12.3);
  height: calc(var(--u) * 12.3);
  border-radius: calc(var(--u) * 4.1);
  background: var(--subtle);
  color: var(--accent);
  font-size: calc(var(--u) * 6.15);
}
.app-tool .ic {
  fill: var(--subtle);
}
.app-palette {
  position: absolute;
  left: 50%;
  bottom: calc(var(--u) * 3.08);
  border-radius: 50%;
  transform: translateX(-50%);
}
.app-date,
.app-paper {
  font-size: calc(var(--u) * 4.62);
  line-height: calc(var(--u) * 7.44);
}
.app-date {
  position: absolute;
  left: calc(var(--u) * 4.1);
  top: calc(var(--u) * 21);
}
.app-paper {
  --lh: calc(var(--u) * 7.44);
  position: absolute;
  inset: calc(var(--u) * 33) 0 0;
  padding: 0 calc(var(--u) * 4.1);
  background: linear-gradient(
      transparent calc(var(--lh) * 0.79 - 1px),
      var(--rule) 0 calc(var(--lh) * 0.79),
      transparent 0
    )
    0 0/100% var(--lh);
}
.app-paper p {
  margin-bottom: var(--lh);
}
.drawn .app-paper {
  top: calc(var(--u) * 21);
}
.sketch {
  position: absolute;
  left: 0;
  top: calc(var(--u) * 52);
  width: 100%;
}
.cursor {
  display: inline-block;
  width: 2px;
  height: calc(var(--u) * 7.5);
  margin-top: 1px;
  background: var(--accent);
}
/* The bottom bar: Settings, Appearance and Search on the left, Note | Drawing on the right, one bar on the drawing */
.app-row,
.app-sides,
.app-tools {
  position: absolute;
  bottom: calc(var(--u) * 4.2);
  height: calc(var(--u) * 11.2);
  border-radius: calc(var(--u) * 5.6);
  background: var(--subtle);
  color: var(--muted);
}
.app-row {
  left: calc(var(--u) * 4.2);
  width: calc(var(--u) * 33.6);
}
.app-row.wide {
  width: calc(var(--u) * 70.3);
}
.app-sides {
  right: calc(var(--u) * 4.1);
  width: calc(var(--u) * 22.4);
}
.app-tools {
  left: calc(var(--u) * 2.9);
  width: calc(var(--u) * 94.2);
}
:is(.app-row, .app-sides, .app-tools) .ic {
  width: 100%;
  height: 100%;
}
/* One frame for every device: an ink bezel 2% of the device's short side (--w), rounded like the device (--r), one shadow, no status bar */
.handset,
.slate,
.mac,
.phone {
  border: max(3px, calc(var(--w, 100cqw) * 0.02)) solid var(--ink);
  border-radius: calc(var(--w, 100cqw) * var(--r, 0.145));
  box-shadow: 0 18px 36px -20px #2a243866;
}
.handset {
  aspect-ratio: 390/844;
}
.slate {
  --r: 0.065;
  aspect-ratio: 230/310;
}
.slate.wide {
  aspect-ratio: 310/230;
}

@keyframes blink {
  61%,
  100% {
    opacity: 0;
  }
}

/* 1. Hero: the note in one phone, and the drawing in the phone beside it */
.hero h1 {
  position: relative;
  z-index: 2;
  max-width: 610px;
  font-size: clamp(3.25rem, 1.5rem + 7.4vw, 6.25rem);
  line-height: 1.03;
  letter-spacing: -0.06em;
}
.hero h1 span {
  position: relative;
}
.hero h1 span::after {
  content: "";
  position: absolute;
  left: -5px;
  right: -7px;
  bottom: 0;
  z-index: -1;
  height: 0.23em;
  border-radius: 50% 30% 10% 20%;
  background: var(--marker);
  transform: rotate(-2deg);
}
.tagline {
  margin: 31px 0 9px;
  font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.625rem);
  font-weight: 700;
  line-height: 1.3;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero .platforms {
  margin-top: 14px;
}
.platforms b {
  color: var(--text);
}
.stores {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.stores img {
  display: block;
  width: 155px;
  height: 60px;
  margin-left: -10px;
}
.spread {
  container-type: inline-size;
  width: min(100%, 592px);
  margin: 48px auto 0;
}
.pages {
  position: relative;
  aspect-ratio: 592/600;
}
.pages > * {
  position: absolute;
}
.blob {
  left: 3cqw;
  top: 10cqw;
  width: 94cqw;
  height: 86cqw;
  border-radius: 46% 40% 44% 48%;
  background: var(--subtle);
  transform: rotate(12deg);
}
.pages .handset {
  --w: 43cqw;
  left: 50cqw;
  top: 5.5cqw;
  width: var(--w);
  transform: rotate(2deg);
}
.pages .handset + .handset {
  left: 4cqw;
  top: 2cqw;
  transform: rotate(-1.5deg);
}
.spread figcaption {
  display: flex;
  margin-top: 2cqw;
  text-align: center;
}
.spread figcaption span {
  width: 43cqw;
  margin-left: 4cqw;
  font-size: clamp(1.125rem, 4.2cqw, 1.5rem);
}
.spread figcaption span + span {
  margin-left: 3cqw;
}
.optional {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

/* 2. Nothing to decide */
.decisions .lead {
  margin-top: 28px;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.375rem);
  font-weight: 700;
}
.crossed {
  max-width: 484px;
  margin-top: 29px;
}
.crossed li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 1rem;
  padding: 14px 3px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: clamp(1.25rem, 1rem + 1.1vw, 1.5625rem);
}
.crossed s {
  text-decoration: none;
}
.crossed s::after {
  content: "";
  position: absolute;
  left: -4px;
  top: 32px;
  width: 74%;
  height: 2px;
  background: var(--accent);
  transform: rotate(-3deg);
}
.crossed b {
  font-size: 0.875rem;
  font-weight: 600;
}
.open-note {
  --w: min(240px, 62vw);
  width: var(--w);
  margin: 48px auto 0;
  transform: rotate(3deg);
}
.open-note .app-paper {
  top: calc(var(--u) * 30.4);
}
/* 3. A title can wait */
.research h2 {
  padding-bottom: 27px;
  border-bottom: 1px solid var(--rule);
  font-size: clamp(2rem, 1.3rem + 3vw, 3.0625rem);
  line-height: 1.13;
  letter-spacing: -0.04em;
}
.research-grid {
  display: grid;
  gap: 2rem 72px;
  padding-top: 27px;
}
.research-copy p {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.5vw, 1.25rem);
  line-height: 1.55;
}
.research-copy .close {
  color: var(--text);
  font-weight: 700;
}
/* The keyboard is up and the last line types itself; it comes up in the app only when you tap the note */
.thought {
  --w: min(240px, 62vw);
  width: var(--w);
  margin: 6px auto 0;
}
.thought .handset {
  transform: rotate(-2deg);
}
.thought .app-paper {
  top: calc(var(--u) * 18.1);
}
.thought :is(.app-row, .app-sides) {
  bottom: calc(var(--u) * 65.1);
}
.thought figcaption {
  margin: 18px -3rem 0;
  font-size: 1.125rem;
  text-align: center;
  text-wrap: balance;
}
.keys {
  position: absolute;
  inset: auto 0 0;
  height: calc(var(--u) * 62);
  padding: calc(var(--u) * 2.6) calc(var(--u) * 0.9);
  background: var(--rule);
  font: 600 calc(var(--u) * 4.4) / calc(var(--u) * 10.8) var(--body);
  text-align: center;
}
.keys p {
  display: flex;
  justify-content: center;
  gap: calc(var(--u) * 1.5);
  margin-bottom: calc(var(--u) * 3.1);
}
.keys i,
.keys b {
  flex: none;
  width: calc(var(--u) * 8.47);
  border-radius: calc(var(--u) * 1.3);
  background: #fff;
  box-shadow: 0 calc(var(--u) * 0.26) #2a243830;
  font-style: normal;
  font-weight: inherit;
}
.keys b {
  width: calc(var(--u) * 11.4);
  background: var(--subtle);
}
.keys b:first-child {
  margin-right: auto;
}
.keys b:last-child {
  margin-left: auto;
}
.keys p:last-child b {
  width: calc(var(--u) * 23);
  font-size: calc(var(--u) * 3.5);
}
.keys p:last-child i {
  flex: 1;
}
.typed {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.typed span {
  display: block;
}
.typed .cursor {
  position: absolute;
  left: 100%;
  top: 0;
  height: calc(var(--u) * 5.6);
  margin: calc(var(--u) * 0.9) 0 0 1px;
}
/* Shown for 8 s, gone, then typed in 31 even steps, as many as the line has characters */
@keyframes type {
  0%,
  50% {
    clip-path: inset(0);
    opacity: 1;
  }
  53% {
    clip-path: inset(0);
    opacity: 0;
  }
  53.01% {
    clip-path: inset(0 100% 0 0);
    opacity: 1;
  }
  60% {
    clip-path: inset(0 100% 0 0);
    opacity: 1;
    animation-timing-function: steps(31);
  }
  100% {
    clip-path: inset(0);
    opacity: 1;
  }
}
@keyframes caret {
  0%,
  53% {
    left: 100%;
  }
  53.01% {
    left: 0;
  }
  60% {
    left: 0;
    animation-timing-function: steps(31);
  }
  100% {
    left: 100%;
  }
}
.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.medical {
  margin-top: 31px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 23px;
}

/* 4. New: the drawing */
.drawing .desc,
.off .desc {
  max-width: 510px;
  margin-top: 20px;
}
.where {
  max-width: 465px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 24px;
}
.pad {
  container-type: inline-size;
  position: relative;
  width: min(100%, 560px);
  margin: 48px auto 0;
}
.pad .screen {
  --u: 0.42cqw;
  --w: 74.2cqw;
}
.pad .sketch {
  left: 24%;
  top: 17%;
  width: 52%;
}
.pad figcaption {
  margin-top: 4.6cqw;
  padding-right: 25cqw;
  text-align: right;
}
.pad .hint {
  right: 3cqw;
  top: 74.8cqw;
  width: 20cqw;
  height: 11cqw;
}

/* 5. New: turn the drawing off. The switch is a real checkbox, so the picture answers it. No script. */
.off[data-palette] {
  background: #fff;
}
.flip {
  width: min(100%, 560px);
  margin: 44px auto 0;
}
.sheet {
  padding: 8px 20px 18px;
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 18px 36px -24px #2a243866;
}
.sheet .wave {
  width: 62px;
  height: 18px;
  margin: 8px auto 10px;
  stroke: var(--muted);
  stroke-width: 5;
}
.set-group {
  color: var(--muted);
  font: 800 0.6875rem/1.4 var(--body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.set-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}
.set-row em {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8125rem;
  font-style: normal;
  font-weight: 400;
}
.set-row .ic {
  width: 13px;
  height: 13px;
  color: var(--muted);
}
.set-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78125rem;
  font-weight: 400;
  line-height: 1.45;
}
label.set-row {
  gap: 16px;
  cursor: pointer;
}
.sw {
  appearance: none;
  flex: none;
  position: relative;
  width: 50px;
  height: 30px;
  margin: 0;
  border-radius: 15px;
  background: var(--rule);
  box-shadow: inset 0 0 0 1.5px var(--muted);
  cursor: pointer;
  transition: background 0.2s;
}
.sw::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #2a243840;
  transition: transform 0.2s;
}
.sw:checked {
  background: var(--accent);
  box-shadow: none;
}
.sw:checked::after {
  transform: translateX(20px);
}
.result {
  container-type: inline-size;
  position: relative;
  width: min(216px, 62%);
  margin: 28px auto 0;
}
.result .handset {
  transform: rotate(2deg);
}
.result .pencil {
  margin: 18px 0 0 -48px;
  padding-right: 35cqw;
  font-size: 1.0625rem;
  line-height: 1.3;
  text-align: right;
}
.result .hint {
  right: 2cqw;
  top: calc(100cqw * 844 / 390 + 6px);
  width: 30cqw;
  height: 17cqw;
}
.when-on,
.flip .app-sides {
  display: none;
}
.flip:has(.sw:checked) :is(.when-on, .app-sides) {
  display: block;
}
.flip:has(.sw:checked) .when-off {
  display: none;
}

/* 6. Sync */
.wave {
  width: 180px;
  height: 42px;
  margin-top: 21px;
}
.sync-facts {
  margin-top: 32px;
}
.sync-facts p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 27px;
}
.sync-facts .speed {
  margin: 0 0 16px;
  color: var(--text);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
}
.scene {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 16px;
  max-width: 560px;
  margin: 48px auto 0;
}
.device {
  container-type: inline-size;
  min-width: 0;
}
.device figcaption {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}
.device-phone {
  flex: 143 1 0;
}
.device-tablet {
  flex: 230 1 0;
}
.device-tablet .screen {
  --u: 0.68cqw;
}
.device-mac {
  order: -1;
  flex: 1 1 100%;
}
.mac {
  --w: 55.2cqw;
  --r: 0.05;
  --d: 731.6;
  --k: calc(100cqw/var(--d));
  container-type: inline-size;
  position: relative;
  overflow: hidden;
  aspect-ratio: 540/298;
  border-bottom: 0;
  border-radius: calc(var(--w) * var(--r)) calc(var(--w) * var(--r)) 0 0;
  background: linear-gradient(135deg, var(--subtle), var(--paper) 65%, #f1efea);
  box-shadow: none;
}
.base {
  display: block;
  height: 2.2cqw;
  margin-inline: -2.4%;
  border-radius: 0.4cqw 0.4cqw 1.8cqw 1.8cqw;
  background: linear-gradient(#fff4, #fff4) 50% 0/15% 34% no-repeat var(--ink);
  box-shadow: 0 18px 36px -20px #2a243866;
}
.menubar {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--k));
  height: calc(30 * var(--k));
  padding: 0 calc(14 * var(--k));
  background: #ffffffbd;
  color: var(--ink);
  font-size: calc(13 * var(--k));
  font-weight: 600;
  white-space: nowrap;
}
.menubar b {
  font-weight: 800;
}
.menu-leaf {
  display: grid;
  place-items: center;
  width: calc(26 * var(--k));
  height: calc(22 * var(--k));
  margin-left: auto;
  border-radius: calc(5 * var(--k));
  background: #2a243822;
}
.menu-leaf .leaf {
  width: calc(16 * var(--k));
  height: calc(16 * var(--k));
}
.menubar .ic {
  width: calc(37 * var(--k));
  height: calc(14 * var(--k));
  stroke-width: 1.4;
}
.popover {
  position: absolute;
  right: calc(175 * var(--k));
  top: calc(40 * var(--k));
  width: calc(300 * var(--k));
  height: calc(334 * var(--k));
  padding: calc(6 * var(--k));
  border: 1px solid var(--rule);
  border-radius: calc(14 * var(--k));
  background: #fff;
  box-shadow: 0 24px 48px -30px #2a243866;
}
.popover::before {
  content: "";
  position: absolute;
  right: calc(40 * var(--k));
  top: calc(-9 * var(--k));
  width: calc(16 * var(--k));
  height: calc(16 * var(--k));
  border: solid var(--rule);
  border-width: 1px 0 0 1px;
  background: #fff;
  transform: rotate(45deg);
}
.popover .screen {
  height: 100%;
  border-radius: calc(10 * var(--k));
}
.private {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 26px;
}
.private b {
  color: var(--text);
}
.footnote {
  margin-top: 34px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* 7. Widget */
.widget .desc {
  max-width: 510px;
  margin-top: 20px;
}
.pair {
  --s: 0.36;
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}
.pair figcaption {
  margin-bottom: 16px;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 23px;
}
.pair figcaption span {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 21px;
}
.phone-box {
  width: calc(432px * var(--s));
  height: calc(935px * var(--s));
}
.phone {
  --w: 432px;
  position: relative;
  width: 432px;
  height: 935px;
  overflow: hidden;
  background: var(--subtle);
  box-shadow: 0 calc(18px / var(--s)) calc(36px / var(--s))
    calc(-20px / var(--s)) #2a243866;
  transform: scale(var(--s));
  transform-origin: top left;
}
.phone > * {
  position: absolute;
}
.wallpaper {
  left: 100px;
  top: 280px;
  width: 560px;
  height: 720px;
  border-radius: 50% 44% 30% 50%;
  background: var(--rule);
  transform: rotate(23deg);
}
.android .wallpaper {
  left: -220px;
  top: 420px;
  transform: rotate(-30deg);
}
.today {
  left: 27px;
  top: 56px;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
}
.widget-note {
  left: 25px;
  top: 110px;
  width: 364px;
  height: 382px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 8px 20px -15px #2a243877;
}
.android .widget-note {
  left: 19px;
  width: 376px;
  height: 396px;
  border-radius: 28px;
}
.widget-body {
  position: absolute;
  inset: 0;
  padding: 16px 20px;
  font-size: 18px;
  line-height: 29px;
  background: repeating-linear-gradient(transparent 0 28px, var(--rule) 0 29px)
    0 13px;
  mask-image: linear-gradient(
    #000 calc(100% - 56px),
    transparent calc(100% - 6px)
  );
}
.end .widget-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-position: 0 12px;
  mask-image: linear-gradient(transparent 0, #000 46px);
}
.apps {
  inset-inline: 27px;
  top: 580px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 19px;
  font-size: 11px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
}
.apps i,
.dock i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 5px;
  border: 1px solid #ffffff88;
  border-radius: 15px;
  background: #f8f7fa;
  color: #586c62;
  font-size: 31px;
}
.android .apps i,
.android .dock i {
  border-radius: 50%;
  background: #eff3ed;
}
.pages-dots {
  inset-inline: 0;
  top: 730px;
  display: flex;
  justify-content: center;
  gap: 7px;
}
.pages-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2a243840;
}
.pages-dots i:first-child {
  background: var(--ink);
}
.dock {
  inset-inline: 20px;
  bottom: 24px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  border-radius: 28px;
  background: #ffffff80;
}
.android .dock {
  background: transparent;
}
.dock i {
  width: 58px;
  height: 58px;
  margin: 0;
  border: 0;
}

/* 8. Colours */
.colours[data-palette] {
  background: #fff;
}
.colours h2 {
  max-width: 540px;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 3.1875rem);
}
.colours .desc {
  max-width: 520px;
  margin-top: 20px;
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.125rem);
}
.pro {
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 24px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 176px));
  justify-content: center;
  gap: 18px;
  margin-top: 48px;
}
.cards li {
  min-height: 164px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 12px;
}
.cards h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1rem;
  line-height: 22px;
}
.cards mark {
  padding: 0 2px;
  background: linear-gradient(
    transparent 52%,
    var(--marker) 0 94%,
    transparent 0
  );
  color: inherit;
}
.cards p {
  min-height: 105px;
  font-size: 0.8125rem;
  line-height: 21px;
  background: repeating-linear-gradient(
    transparent 0 16px,
    var(--rule) 0 17px,
    transparent 0 21px
  );
}
/* 9. Closing */
.ending .inner {
  display: grid;
  gap: 2rem 4rem;
}
.ending h2 {
  font-size: clamp(2.375rem, 1.6rem + 3vw, 3.375rem);
  letter-spacing: -2px;
}
.ending .bodycopy {
  margin-top: 9px;
}
.ending .platforms {
  margin-top: 24px;
  font-size: 0.875rem;
}

/* Shared copy and annotations. */
.pencil {
  color: var(--accent);
  font-size: 1.1875rem;
  line-height: 1.4;
}
.hint {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: absolute;
  z-index: 5;
  pointer-events: none;
}
.hint path {
  vector-effect: non-scaling-stroke;
}
.selected-tool {
  stroke: var(--accent);
}
.sketch {
  fill: none;
  stroke: #2a2630;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tap {
  max-width: 450px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 27px;
}
.choices {
  display: grid;
  gap: 12px;
  max-width: 465px;
  margin-top: 26px;
  padding-top: 17px;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  line-height: 22px;
}
.choices div {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 12px;
}
.choices dt {
  font-weight: 800;
}
.choices dd {
  color: var(--muted);
}

@media (max-width: 37.5rem) {
  .nav .secondary {
    display: none;
  }
}

@media (max-width: 30rem) {
  .scene {
    gap: 24px 12px;
  }

  .nav .inner {
    min-height: 0;
    padding-block: 1rem;
  }
  .nav .button {
    padding: 10px 16px;
  }
}

@media (min-width: 37.5rem) {
  .pair {
    --s: 0.5;
    gap: 28px;
  }

  .cards {
    grid-template-columns: repeat(3, minmax(0, 176px));
  }
}

/* Two widget phones side by side fit from 360 px; narrower screens get them smaller. */
@media (max-width: 22.5rem) {
  .pair {
    --s: 0.32;
    gap: 10px;
  }
}

@media (forced-colors: active) {
  .sw {
    border: 2px solid CanvasText;
    background: Canvas;
  }
  .sw::after {
    left: 1px;
    top: 1px;
    background: CanvasText;
  }
  .sw:checked {
    background: Highlight;
  }
  .sw:checked::after {
    background: HighlightText;
  }
}

@media (min-width: 75rem) {
  .hero .inner {
    min-height: 800px;
    padding-block: 100px 64px;
  }
  .hero .platforms {
    font-size: 0.875rem;
  }
  .spread {
    position: absolute;
    left: 560px;
    top: 46px;
    margin: 0;
  }

  .decisions .inner {
    min-height: 700px;
    padding-top: 90px;
  }
  .decisions .inner > :is(h2, .lead) {
    max-width: 500px;
  }
  .crossed {
    position: absolute;
    left: 0;
    top: 300px;
    width: 484px;
    margin: 0;
  }
  .open-note {
    --w: 280px;
    position: absolute;
    left: 836px;
    top: 46px;
    margin: 0;
  }
  .arrow-decisions {
    left: 486px;
    top: 265px;
    width: 350px;
    height: 230px;
  }
  .research .inner {
    padding-block: 76px 32px;
  }
  .research h2 {
    max-width: 700px;
  }
  .research-copy {
    max-width: 560px;
  }
  .research-grid {
    min-height: 366px;
  }
  .thought {
    --w: 240px;
    position: absolute;
    right: 128px;
    top: 34px;
    margin: 0;
  }
  .thought figcaption {
    margin-inline: -5rem;
  }
  .arrow-research {
    left: 372px;
    top: 270px;
    width: 400px;
    height: 170px;
  }

  .drawing .inner {
    min-height: 664px;
    padding-top: 87px;
  }
  .drawing h2 {
    width: 560px;
  }
  .pad {
    position: absolute;
    right: 0;
    top: 96px;
    margin: 0;
  }

  .off .inner {
    min-height: 670px;
    padding-top: 87px;
  }
  .off h2 {
    width: 600px;
  }
  .flip {
    position: absolute;
    right: 0;
    top: 64px;
    height: 570px;
    margin: 0;
  }
  .sheet {
    position: absolute;
    left: 0;
    top: 146px;
    width: 318px;
  }
  .result {
    position: absolute;
    right: 14px;
    top: 0;
    width: 216px;
    margin: 0;
  }

  .sync .inner {
    min-height: 820px;
    padding-block: 78px 29px;
  }
  .sync h2 {
    max-width: 550px;
  }
  .sync-facts {
    position: absolute;
    left: 646px;
    right: 0;
    top: 65px;
    margin: 0;
  }
  .scene {
    display: block;
    max-width: none;
    height: 354px;
    margin-top: 34px;
  }
  .device {
    position: absolute;
    top: 0;
  }
  .device-phone {
    left: 44px;
    width: 143px;
  }
  .device-mac {
    left: 275px;
    width: 540px;
  }
  .device-tablet {
    left: 869px;
    width: 230px;
  }
  .arrow-to-mac {
    left: 186px;
    top: 182px;
    width: 90px;
    height: 60px;
  }
  .arrow-to-ipad {
    left: 814px;
    top: 162px;
    width: 56px;
    height: 40px;
  }
  .private {
    margin-top: 13px;
  }

  .widget .inner {
    min-height: 620px;
    padding-top: 87px;
  }
  .widget h2 {
    width: 560px;
  }
  .pair {
    position: absolute;
    right: 0;
    top: 43px;
    margin: 0;
  }
  .arrow-widget {
    left: 513px;
    top: 250px;
    width: 184px;
    height: 120px;
  }

  .colours .inner {
    min-height: 520px;
    padding-top: 84px;
  }
  .cards {
    position: absolute;
    right: 0;
    top: 80px;
    margin: 0;
  }
  .arrow-colours {
    left: 336px;
    top: 95px;
    width: 250px;
    height: 120px;
  }
  .ending .inner {
    grid-template-columns: 1fr auto;
    align-items: start;
    padding-block: 44px 56px;
  }

  .inner {
    width: 1152px;
  }
  .arrow {
    display: block;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cursor {
    animation: blink 1.2s step-end infinite;
  }
  .typed span {
    animation: type 16s infinite;
  }
  .typed .cursor {
    animation:
      blink 1.2s step-end infinite,
      caret 16s infinite;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sw,
  .sw::after {
    transition: none;
  }
}

@media print {
  .nav nav,
  .skip,
  .arrow {
    display: none;
  }
}

/* Counts a page view when a browser draws the page. */
[data-page="home"]::after {
  content: "";
  background-image: url("/api/visit/home");
}
