/* SketchPal: one desk, things lying on it. Colours and shapes are the app's own (Neu.swift).
   Raised means "press me", so only buttons are raised. Stickers carry the rest. */
/* The app's headings are SF Rounded. Apple devices use the real thing (ui-rounded); everyone
   else gets Nunito, the closest open face, served from here. */
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
}

/* So the road's coloured line can run smoothly from one place to the next. */
@property --to { syntax: "<number>"; inherits: true; initial-value: 0; }

:root {
  --desk: #e5e3de;
  --shadow-dark: rgba(189, 185, 179, 0.85);
  --shadow-light: #fffefb;
  --field: #f1f0ec;
  --ink: #38363d;
  --ink-soft: rgba(56, 54, 61, 0.64);
  --hairline: rgba(56, 54, 61, 0.14);
  --panel: rgba(56, 54, 61, 0.045);
  --accent: #007f9e;
  --sticker-shadow: rgba(60, 52, 40, 0.38);
  --light: rgba(255, 255, 255, 0.9);
  /* Paper and stickers are things: the same in light and dark. */
  --paper: #fbf9f4;
  --paper-ink: #38363d;
  --paper-ink-soft: rgba(56, 54, 61, 0.66);
  --paper-link: #007b99;
  --star: #e3a31a;
  --flame: #e8663d;
  --heart: #de4f78;
  --cover: #4a93b6;
  --rounded: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --desk: #252529;
    --shadow-dark: rgba(0, 0, 0, 0.65);
    --shadow-light: rgba(255, 255, 255, 0.07);
    --field: #1b1b1e;
    --ink: #edebe6;
    --ink-soft: rgba(237, 235, 230, 0.64);
    --hairline: rgba(237, 235, 230, 0.14);
    --panel: rgba(237, 235, 230, 0.05);
    --accent: #33bde0;
    --sticker-shadow: rgba(0, 0, 0, 0.6);
    --light: rgba(255, 255, 255, 0.13);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: clip;
  /* A light from the top left corner, behind the name: what the pad's shadow falls away from. */
  background: radial-gradient(ellipse 1100px 760px at 0 0, var(--light), transparent 72%) no-repeat, var(--desk);
  color: var(--ink);
  font: 17px/1.6 var(--text);
}

img { max-width: 100%; height: auto; display: block; }
br.narrow { display: none; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3, .wordmark, .button, .step-number { font-family: var(--rounded); }
h1, h2, h3 { text-wrap: balance; line-height: 1.1; margin: 0; }
p { margin: 0; }

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

/* Top */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 22px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 11px; }
.wordmark { font-weight: 900; font-size: 22px; letter-spacing: -0.01em; }
.top nav { display: flex; gap: 22px; font-family: var(--rounded); font-weight: 700; font-size: 16px; }
.top nav a { color: var(--ink-soft); text-decoration: none; }
.top nav a:hover { color: var(--ink); }

/* The one raised thing: a button. Under the pointer it is pressed in, on a lighter floor. */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  font-weight: 800; font-size: 18px; text-decoration: none; cursor: pointer;
  color: var(--accent); background: var(--desk);
  box-shadow: 7px 7px 15px var(--shadow-dark), -7px -7px 15px var(--shadow-light);
  transition: box-shadow 0.18s ease, background-color 0.18s ease;
}
.button:hover, .button:active {
  background: var(--field);
  box-shadow: inset 5px 5px 10px var(--shadow-dark), inset -5px -5px 10px var(--shadow-light);
}

/* Stickers: a white edge, a glossy face, and one corner lifting off the page. */
.sticker { display: block; overflow: visible; filter: drop-shadow(0 2px 2.5px var(--sticker-shadow)); }
.sticker.s { width: 54px; height: 54px; }
.sticker.m { width: 92px; height: 92px; }
.sticker.l { width: 132px; height: 132px; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 24px; padding-block: 20px 36px; }
.hero h1 { font-weight: 900; font-size: clamp(46px, 7.4vw, 86px); letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { font-family: var(--rounded); font-weight: 800; font-size: clamp(22px, 2.8vw, 30px); margin-top: 18px; }
.hero .lede { font-size: clamp(19px, 2.2vw, 23px); color: var(--ink-soft); max-width: 24em; margin: 20px 0 32px; }
.hero .note { font-family: var(--rounded); font-weight: 700; font-size: 15px; color: var(--ink-soft); margin-top: 18px; }
.hero .pad { width: 78%; max-width: 420px; justify-self: center; transform: rotate(-8deg); margin-block: 40px; }

/* A part of the page: words on one side, a picture from the app on the other. */
.part { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(28px, 6vw, 84px); padding-block: clamp(44px, 7vw, 84px); }
.part.flip .words { order: 2; }
.part h2 { font-weight: 900; font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -0.02em; }
.part .words > p { color: var(--ink-soft); font-size: 19px; margin-top: 16px; max-width: 30em; }
.points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; }
.points .sticker { width: 30px; height: 30px; margin-top: 1px; }
.points li > span { color: var(--ink-soft); font-size: 15.5px; line-height: 1.5; }
.points strong { display: block; font-family: var(--rounded); font-weight: 800; font-size: 17px; color: var(--ink); }

.steps { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step); font-family: var(--rounded); font-weight: 900; font-size: 19px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: var(--accent); border: 2.5px solid var(--accent);
}
.steps strong { font-family: var(--rounded); font-weight: 800; display: block; }
.steps span { color: var(--ink-soft); }

/* Where a picture from the app goes, with stickers stuck round it. */
.shot { position: relative; margin: 0; justify-self: center; width: 100%; max-width: 440px; }
.shot .frame {
  aspect-ratio: 3 / 4; border-radius: 22px;
  border: 2.5px dashed var(--hairline); background: var(--panel);
  display: grid; place-items: center; text-align: center; padding: 24px;
  font-family: var(--rounded); font-weight: 700; font-size: 15px; color: var(--ink-soft);
}
.shot img.frame { padding: 0; border: 0; object-fit: cover; width: 100%; height: auto; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 8px 12px 28px var(--sticker-shadow); }
.shot .sticker { position: absolute; }
.shot .a { top: -30px; left: -20px; transform: rotate(-14deg); }
.shot .b { top: 22%; right: -20px; transform: rotate(11deg); }
.shot .c { bottom: -30px; left: 14%; transform: rotate(-8deg); }
.shot .d { bottom: 12%; right: -20px; transform: rotate(16deg); }
.shot .e { top: -38px; right: 12%; transform: rotate(7deg); }

/* Parts that break the left-right run: centred, with something wide behind or below. */
.habit, .mood, .swap { text-align: center; padding-block: clamp(44px, 7vw, 84px); }
.habit h2, .mood h2, .swap h2 { font-weight: 900; font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -0.02em; }
.habit > p, .swap > p { color: var(--ink-soft); font-size: 19px; margin: 16px auto 0; max-width: 32em; }

/* A band of the accent colour right across the page, edged above and below: the tint the
   app gives to something to do. */
.band { background: color-mix(in srgb, var(--accent) 13%, var(--desk)); border-block: 1.5px solid color-mix(in srgb, var(--accent) 36%, transparent); }
.band + .wrap, .band + section { margin-top: 0; }

/* The swap, in three goes. One plays at a time; the others stand back. */
.swap-steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 3vw, 40px); counter-reset: step; }
.swap-steps li { counter-increment: step; display: grid; gap: 22px; justify-items: center; align-content: start; opacity: 0.45; transform: scale(0.93); transition: opacity 0.45s ease, transform 0.45s ease; }
.swap-steps li.on, .swap-steps.at-rest li { opacity: 1; transform: none; }
.swap-steps .step { all: unset; display: block; width: 100%; max-width: 300px; cursor: pointer; border-radius: 18px; }
.swap-steps .step:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.swap-steps .shot { display: block; max-width: none; }
.film, .mock { display: block; width: 100%; height: auto; aspect-ratio: 720 / 1096; border-radius: 18px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12), 8px 12px 28px var(--sticker-shadow); }
.film { background: #e5e3de; object-fit: cover; }
.swap-steps li > div { display: grid; grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; text-align: left; max-width: 300px; }
.swap-steps li > div::before {
  content: counter(step); grid-row: span 2; font-family: var(--rounded); font-weight: 900; font-size: 19px;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: var(--accent); border: 2.5px solid var(--accent);
}
.swap-steps strong { font-family: var(--rounded); font-weight: 800; }
.swap-steps li > div span { color: var(--ink-soft); font-size: 15px; line-height: 1.4; }

/* Step 1 is not a picture of the whole of home: only the two things that matter there,
   drawn as the app draws them. It is the app in its light colours, whatever the page's. */
.mock { container-type: inline-size; background: #e5e3de; color: #38363d; font-family: var(--rounded); overflow: hidden; position: relative; text-align: left; }
.mock span { display: block; }
.mock-alert {
  position: absolute; left: 6%; right: 6%; top: 6.500%; padding: 5cqw 6cqw 6cqw; border-radius: 4.500cqw;
  background: #bfd9dc; border: 1px solid rgba(0, 153, 189, 0.35);
  opacity: 0; transform: translateY(-14%) scale(0.86); transform-origin: 50% 0;
}
.mock-small { font-weight: 700; font-size: 4.600cqw; color: rgba(56, 54, 61, 0.6); }
.mock-small i { display: inline-grid; place-items: center; width: 6.400cqw; height: 6.400cqw; margin-left: 1cqw; border-radius: 50%; background: #0099bd; color: #fff; font-style: normal; font-weight: 800; font-size: 4cqw; vertical-align: 0.200cqw; }
.mock-title { font-weight: 900; font-size: 6.800cqw; line-height: 1.12; margin: 1.200cqw 0 0; letter-spacing: -0.01em; }
.mock-pill { display: inline-block !important; padding: 3.600cqw 6.500cqw; border-radius: 99px; background: #e5e3de; color: #0099bd; font-weight: 800; font-size: 5.200cqw; box-shadow: 1.600cqw 1.600cqw 3.600cqw rgba(140, 150, 150, 0.6), -1.400cqw -1.400cqw 3.200cqw rgba(255, 255, 255, 0.75); }
.mock-tile { position: absolute; left: 24%; right: 24%; bottom: 6%; opacity: 0; transform: translateY(8%); }
.mock-sheet {
  aspect-ratio: 3 / 4; border-radius: 1.200cqw; position: relative;
  background:
    radial-gradient(42% 30% at 34% 30%, rgba(56, 54, 61, 0.13), transparent 70%),
    radial-gradient(38% 30% at 66% 68%, rgba(232, 102, 61, 0.16), transparent 70%),
    radial-gradient(60% 50% at 50% 55%, rgba(74, 147, 182, 0.12), transparent 75%),
    #f6f4ef;
  box-shadow: 0 0.300cqw 0.600cqw rgba(0, 0, 0, 0.08), 1.600cqw 2.200cqw 5cqw rgba(120, 112, 100, 0.34);
}
.mock-sheet::before { content: ""; position: absolute; left: 6%; right: 6%; top: 3.200%; height: 1.600cqw; background: repeating-linear-gradient(90deg, rgba(40, 38, 44, 0.75) 0 0.900cqw, transparent 0.900cqw 3.100cqw); border-radius: 1px; }
.mock-lock { position: absolute; left: 50%; top: 50%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #e5e3de; color: #0099bd; display: grid !important; place-items: center; box-shadow: 1.400cqw 1.600cqw 3.400cqw rgba(0, 0, 0, 0.26), -1.200cqw -1.200cqw 2.800cqw rgba(255, 255, 255, 0.9); }
.mock-lock svg { width: 46%; height: 46%; }
.mock-caption { display: flex !important; align-items: center; gap: 2.400cqw; margin-top: 3.400cqw; font-size: 4.200cqw; font-weight: 700; color: rgba(56, 54, 61, 0.6); line-height: 1.25; }
.mock-caption b { display: block; color: #38363d; font-weight: 800; font-size: 4.800cqw; }
.mock-face { width: 10.500cqw; height: 10.500cqw; flex: none; filter: drop-shadow(0 0.300cqw 0.500cqw rgba(0, 0, 0, 0.25)); }

.mock.go .mock-tile { animation: mock-rise 0.5s 0.15s ease-out forwards; }
.mock.go .mock-alert { animation: mock-pop 0.6s 0.9s cubic-bezier(0.3, 1.5, 0.5, 1) forwards; }
.mock.go .mock-small i { animation: mock-beat 0.5s 1.7s ease-out; }
.swap-steps.at-rest .mock-tile, .swap-steps.at-rest .mock-alert { opacity: 1; transform: none; }
@keyframes mock-rise { to { opacity: 1; transform: none; } }
@keyframes mock-pop { to { opacity: 1; transform: none; } }
@keyframes mock-beat { 40% { transform: scale(1.45); } }

/* Get hooked: the app's own milestone road in its panel, and under it the tray the
   stickers land in. Neither is a picture of the app: they are drawn here, the same way. */
.miles { margin: 40px auto 0; max-width: 900px; display: grid; justify-items: center; }
.mile-card { width: 100%; background: var(--panel); border: 1px solid var(--hairline); border-radius: 30px; padding: 26px 30px 34px; text-align: left; }
.mile-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-family: var(--rounded); }
.mile-icon { width: 34px; height: 34px; }
.mile-head b { font-weight: 900; font-size: 26px; }
.mile-head i { font-style: normal; font-weight: 800; font-size: 16px; padding: 3px 12px; border-radius: 99px; color: var(--ink); background: color-mix(in srgb, var(--star) 26%, transparent); border: 1px solid color-mix(in srgb, var(--star) 45%, transparent); }
.mile-head span { margin-left: auto; font-weight: 700; font-size: 16px; color: var(--ink-soft); }
.road { position: relative; height: 220px; margin-top: 18px; }
.road > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.road path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.road .rim { stroke: var(--hairline); stroke-width: 22; }
.road .track { stroke: var(--desk); stroke-width: 17; }
.road .walked { stroke: var(--star); stroke-width: 22; opacity: 0.42; }
/* Shown from the left as far as --to (a share of the road's width, 0 to 100): the place of
   the dot it has reached. It fades out over its last little way, since a hard end would be
   cut straight up and down. Its layer is 40px larger than the road all round, so the line's
   round beginning, which lies a little off the left, is not cut off either. */
.road { container-type: inline-size; }
.road .walked-layer {
  --to: 68;
  position: absolute; inset: -40px;
  --fade: linear-gradient(90deg, #000 calc(40px + (var(--to) - 3.5) * 1cqw), transparent calc(40px + (var(--to) + 1.5) * 1cqw));
  -webkit-mask-image: var(--fade);
  mask-image: var(--fade);
  transition: --to 0.42s ease-out;
}
.road .walked-layer svg { position: absolute; inset: 40px; width: calc(100% - 80px); height: calc(100% - 80px); overflow: visible; }
.road .dot { position: absolute; width: 9px; height: 9px; margin: -4.500px 0 0 -4.500px; border-radius: 50%; background: var(--ink-soft); opacity: 0.45; }
.road .dot { transition: width 0.2s ease, height 0.2s ease, margin 0.2s ease, background-color 0.2s ease; }
.road .dot.taken { width: 18px; height: 18px; margin: -9px 0 0 -9px; background: var(--star); opacity: 1; }
.road .dot.pulse { animation: dot-pulse 0.5s ease-out; }
@keyframes dot-pulse { 40% { transform: scale(1.7); } }
/* A milestone not reached yet is an empty dashed star with its number. Its sticker pops
   up over that when the road gets there, and its name comes in under it. */
.road .spot { position: relative; display: block; }
.road .ghost { filter: none; color: var(--ink-soft); transition: opacity 0.25s ease; }
.road .real { position: absolute; inset: 0; opacity: 0; transform: scale(0.2) rotate(-30deg); transition: opacity 0.2s ease, transform 0.5s cubic-bezier(0.3, 1.7, 0.5, 1); }
.road li[data-n] > span:last-child { opacity: 0; transition: opacity 0.3s ease; }
.road li.got .ghost { opacity: 0; }
.road li.got .real { opacity: 1; transform: rotate(-9deg); }
.road li.got:nth-child(even) .real { transform: rotate(7deg); }
.road li.got > span:last-child { opacity: 1; }
.mile-count { display: inline-block; min-width: 2.6em; text-align: center; font-variant-numeric: tabular-nums; }
.road ol { list-style: none; margin: 0; padding: 0; }
.road li { position: absolute; width: 120px; margin-left: -60px; margin-top: -46px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.road li span { font-family: var(--rounded); font-weight: 800; font-size: 14px; line-height: 1.2; text-align: center; color: var(--ink-soft); }
.road li.next { color: var(--ink-soft); }
.road li.next .sticker { filter: none; }
.drawer { background: var(--field); border: 1px solid var(--hairline); border-radius: 30px; padding: 18px 26px 14px; box-shadow: 0 14px 34px var(--sticker-shadow); max-width: calc(100% - 28px); }
.drawer-row { display: flex; gap: clamp(4px, 1.6vw, 14px); justify-content: center; }
.drawer-row .sticker { width: clamp(42px, 9vw, 78px); height: clamp(42px, 9vw, 78px); }
.drawer-row .sticker:nth-child(odd) { transform: rotate(-6deg); }
.drawer-row .sticker:nth-child(even) { transform: rotate(5deg); }
.drawer p { margin: 8px 0 0; font-family: var(--rounded); font-weight: 700; font-size: 14px; color: var(--ink-soft); text-align: center; }

/* The pad leafing through itself: a film of the real pad with nothing behind it and no
   shadow of its own, so the shadow is the page's, and is right on either desk. */
.bare { margin: 0; justify-self: center; width: 100%; max-width: 430px; }
.padfilm { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; filter: drop-shadow(12px 20px 22px var(--sticker-shadow)); }

/* Make it your own: a pad of its own, a sticker on its way to it, and the tray below. */
.collage { position: relative; margin: 0; justify-self: center; width: 100%; max-width: 440px; padding-bottom: 96px; }
.collage-pad { width: 84%; margin-inline: auto; transform: rotate(-4deg); filter: drop-shadow(10px 16px 18px var(--sticker-shadow)); }
.collage .in-hand { position: absolute; right: 2%; top: 44%; width: 30%; height: auto; transform: rotate(13deg); translate: 0 calc(var(--p, 0) * -34px); filter: drop-shadow(8px 16px 12px var(--sticker-shadow)); }
.collage .drawer { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; max-width: none; transform: rotate(2deg); translate: 0 calc(var(--p, 0) * 14px); }
.collage .drawer { padding: 14px 14px 12px; }
.collage .drawer-row { gap: 2%; }
.collage .drawer-row .sticker { width: 15%; height: auto; aspect-ratio: 1; flex: none; }

/* A row of pads to push along. Each leans away from the middle; the one in the middle
   has its words underneath. */
.carousel-frame { position: relative; }
.arrow { position: absolute; top: 44%; z-index: 3; width: 56px; height: 56px; border: 0; border-radius: 50%; padding: 0; cursor: pointer; display: grid; place-items: center; color: var(--accent); background: var(--desk); box-shadow: 6px 6px 13px var(--shadow-dark), -6px -6px 13px var(--shadow-light); transition: box-shadow 0.18s ease, background-color 0.18s ease; }
.arrow:hover, .arrow:active { background: var(--field); box-shadow: inset 4px 4px 9px var(--shadow-dark), inset -4px -4px 9px var(--shadow-light); }
.arrow:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.arrow svg { width: 26px; height: 26px; }
.arrow.prev { left: max(12px, calc(50vw - 440px)); }
.arrow.next { right: max(12px, calc(50vw - 440px)); }
.carousel { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; margin-block: 10px 0; outline-offset: -4px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel ul { list-style: none; margin: 0; display: flex; gap: clamp(8px, 3vw, 40px); width: max-content; padding: 44px calc(50vw - clamp(105px, 14vw, 150px)) 30px; }
.carousel li { width: clamp(210px, 28vw, 300px); scroll-snap-align: center; transform-origin: 50% 90%; will-change: transform; opacity: 0.6; transition: opacity 0.3s ease; }
.carousel li.mid { opacity: 1; }
.carousel button { all: unset; display: block; position: relative; cursor: pointer; }
.carousel button:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; border-radius: 10px; }
.carousel img { width: 100%; }
.over { position: absolute; }
.over.timer { right: 4%; top: 11%; transform: rotate(5deg); padding: 8px 20px; border-radius: 99px; background: #e5e3de; color: #e8663d; font-family: var(--rounded); font-weight: 900; font-size: clamp(22px, 3vw, 30px); font-variant-numeric: tabular-nums; box-shadow: 4px 5px 12px rgba(0, 0, 0, 0.28), -2px -2px 6px rgba(255, 255, 255, 0.5); }
.over.pair { right: 2%; bottom: 12%; display: flex; }
.over.pair .sticker { width: clamp(64px, 9vw, 92px); height: clamp(64px, 9vw, 92px); }
.over.pair .sticker:first-child { transform: rotate(-12deg); }
.over.pair .sticker:last-child { margin-left: -34%; margin-top: 22%; transform: rotate(9deg); }
.over.lock { left: 50%; top: 27%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: #e5e3de; color: #0099bd; display: grid; place-items: center; box-shadow: 5px 6px 14px rgba(0, 0, 0, 0.32), -3px -3px 8px rgba(255, 255, 255, 0.55); }
.over.lock svg { width: 46%; height: 46%; }
.blurbs { display: grid; justify-items: center; }
.blurb { grid-area: 1 / 1; max-width: 30em; opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s ease; pointer-events: none; }
.blurb.on { opacity: 1; transform: none; pointer-events: auto; }
.blurb h3 { font-family: var(--rounded); font-weight: 900; font-size: clamp(24px, 3vw, 30px); }
.blurb p { color: var(--ink-soft); font-size: 19px; margin-top: 8px; }

/* Stickers round a picture drift a little as it passes up the screen. The picture itself
   stays flat: bending a flat picture looked like what it was. */
[data-tilt] { --p: 0; }
.shot[data-tilt] .sticker { translate: 0 calc(var(--p) * -26px); }
/* The pad at the top hangs from its rings and swings from there (see the script). */


/* Quiet facts: flat panels. Information, not something to press. */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; padding-block: clamp(30px, 5vw, 60px); }
.fact { position: relative; background: var(--panel); border: 1px solid var(--hairline); border-radius: 26px; padding: 34px 30px 32px; min-width: 0; }
.fact h2 { font-weight: 900; font-size: clamp(26px, 3vw, 32px); letter-spacing: -0.015em; }
.fact > p { color: var(--ink-soft); margin-top: 10px; }
.fact ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.fact li { padding-left: 24px; position: relative; }
.fact li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.fact > .sticker { position: absolute; top: -34px; right: -8px; transform: rotate(10deg); }
.fact h2 { padding-right: 64px; }

.closing { text-align: center; padding-block: 46px 70px; display: grid; justify-items: center; gap: 14px; }
.closing .row { display: flex; gap: 6px; align-items: flex-end; margin-bottom: 6px; }
.closing .row .sticker:nth-child(1) { transform: rotate(-12deg) translateY(8px); }
.closing .row .sticker:nth-child(3) { transform: rotate(9deg) translateY(4px); }
.closing h2 { font-weight: 900; font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.02em; }
.closing p { color: var(--ink-soft); max-width: 30em; margin-bottom: 14px; }

footer { border-top: 1px solid var(--hairline); padding-block: 26px 40px; font-size: 15px; color: var(--ink-soft); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer a { color: var(--ink-soft); }

/* Documents: privacy, terms, support. One sheet of paper on the desk; paper stays white. */
.doc {
  background: var(--paper); color: var(--paper-ink); color-scheme: light;
  border-radius: 12px; max-width: 780px; margin: 14px auto 60px;
  padding: clamp(26px, 5vw, 56px);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06), 8px 12px 26px var(--sticker-shadow);
}
.doc a { color: var(--paper-link); }
.doc h1 { font-weight: 900; font-size: clamp(32px, 5vw, 46px); margin: 0 0 6px; }
.doc .dated { color: var(--paper-ink-soft); font-size: 15px; margin: 0 0 26px; }
.doc h2 { font-weight: 800; font-size: 23px; margin: 36px 0 10px; }
.doc h3 { font-weight: 800; font-size: 18px; margin: 22px 0 6px; }
.doc p { margin: 0 0 14px; }
.doc p, .doc li { max-width: 66ch; }
.doc ul { padding-left: 22px; margin: 0 0 14px; }
.doc li { margin-bottom: 6px; }
.doc .summary { border-radius: 16px; padding: 18px 20px; margin: 0 0 8px; background: rgba(56, 54, 61, 0.045); border: 1px solid rgba(56, 54, 61, 0.12); }
.doc .summary p { margin: 0; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
.doc .table-scroll { overflow-x: auto; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(56, 54, 61, 0.12); }
.doc th { font-family: var(--rounded); font-weight: 800; }
.email { font-family: var(--rounded); font-weight: 800; user-select: all; }

@media (max-width: 780px) {
  .hero, .part { grid-template-columns: 1fr; }
  /* The three steps are a row to push along, one in the middle at a time. */
  .swap-steps { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * max(22px, env(safe-area-inset-left, 0px))); padding: 10px calc(50% - 105px) 6px; margin-top: 26px; }
  .swap-steps::-webkit-scrollbar { display: none; }
  .swap-steps li { flex: 0 0 250px; scroll-snap-align: center; }
  br.narrow { display: inline; }
  /* Everything in the middle on a narrow screen. */
  .hero { text-align: center; justify-items: center; }
  .hero .lede { margin-inline: auto; }
  .part { text-align: center; gap: 10px; }
  .part .words > p { margin-inline: auto; }
  .points { justify-items: center; }
  .points li { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; }
  .points li > span { max-width: 22em; }
  .points strong { display: block; }
  .part .bare { margin-bottom: -6px; }
  .collage { margin-bottom: 14px; }
  .hero { padding-top: 4px; }
  .hero .pad { order: -1; max-width: 250px; margin-block: 26px 18px; }
  /* The picture first, then the words about it. */
  .part .words, .part.flip .words { order: 2; }
  .shot { max-width: 320px; margin-top: 20px; }
  .shot .a { left: -14px; }
  .shot .b, .shot .d { right: -14px; }
  .sticker.l { width: 104px; height: 104px; }
  .sticker.m { width: 76px; height: 76px; }
  .road .sticker.m { width: 46px; height: 46px; }
  .road li { width: 64px; margin-left: -32px; margin-top: -23px; }
  .road li span { font-size: 11px; }
  .road .dot.taken { width: 14px; height: 14px; margin: -7px 0 0 -7px; }
  .road { height: 170px; }
  .mile-card { padding: 20px 16px 26px; border-radius: 24px; }
  .collage { max-width: 330px; }
  .mile-head span { margin-left: 0; flex-basis: 100%; }
  .bare { max-width: 300px; }
  .arrow { width: 46px; height: 46px; top: 40%; }
  .top nav { gap: 16px; font-size: 15px; }
}

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