/* Tints change per tab, the way the app retints with each cover. */
@property --t1 { syntax: "<color>"; inherits: true; initial-value: #6a4e3e; }
@property --t2 { syntax: "<color>"; inherits: true; initial-value: #2d4278; }
@property --t3 { syntax: "<color>"; inherits: true; initial-value: #5a3f6e; }
@property --acc { syntax: "<color>"; inherits: true; initial-value: #a9c2ff; }
@property --bg { syntax: "<color>"; inherits: true; initial-value: #2b2c31; }
@property --fog { syntax: "<color>"; inherits: true; initial-value: #eff0f4; }
@property --dim { syntax: "<color>"; inherits: true; initial-value: #b0b2bc; }
@property --ink { syntax: "<color>"; inherits: true; initial-value: #171925; }

:root {
  color-scheme: dark;
  --bg: #2b2c31;
  --raise: color-mix(in srgb, var(--fog) 8%, transparent);
  --fog: #eff0f4;
  --dim: #b0b2bc;
  --ink: #171925;
  --line: color-mix(in srgb, var(--fog) 13%, transparent);
  --gutter: clamp(16px, 5vw, 64px);
  --spring: cubic-bezier(.3, 1.45, .5, 1);
}

* { box-sizing: border-box; }
body {
  --t1: #6a4e3e; --t2: #2d4278; --t3: #5a3f6e; --acc: #a9c2ff;
  margin: 0;
  min-height: 100vh;
  /* Solid, no gradients: each tab tints it a little. No fade: that repainted the whole page every frame. */
  background-color: color-mix(in srgb, var(--bg) 88%, var(--t1));
  color: var(--fog);
  font: 400 1.0625rem/1.6 "Google Sans Flex", system-ui, sans-serif;
  font-variation-settings: "ROND" 30;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body[data-tab="features"]  { --t1: #1d6f88; --t2: #233f7c; --t3: #2b7f7a; --acc: #9fe3ff; }
body[data-tab="install"]   { --t1: #6a52b0; --t2: #343a8e; --t3: #9a5ab8; --acc: #d6c4ff; }
body[data-tab="docs"]      { --t1: #8a6428; --t2: #5e3d28; --t3: #6f6226; --acc: #f6d48b; }
body[data-tab="questions"] { --t1: #92384f; --t2: #7a4a22; --t3: #5c2b66; --acc: #ffb8cb; }
body[data-tab="changelog"] { --t1: #2f7a4c; --t2: #23566e; --t3: #6c7f22; --acc: #b9f2a6; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--acc); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; border-radius: 8px; }
b { font-weight: 650; color: var(--fog); }
code { font: inherit; color: var(--fog); background: var(--raise); padding: .05em .4em; border-radius: 8px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1 { font-size: clamp(2.6rem, 6.2vw, 5.75rem); line-height: .95; letter-spacing: -.035em; margin: 0 0 28px; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.05; letter-spacing: -.02em; margin: 0; font-weight: 750; font-variation-settings: "wdth" 110, "ROND" 100; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.375rem); line-height: 1.5; max-width: 32em; margin: 0 0 32px; }

/* Expressive type: Google Sans Flex, wide and round.
   site.js freezes the words on each line, so a letter that grows pushes its
   neighbours along the line but never re-wraps it or moves the page. */
.flex {
  font-weight: 800;
  font-variation-settings: "wght" 820, "wdth" 116, "ROND" 100;
  text-wrap: balance;
}
.flex .line { display: block; white-space: nowrap; }
.flex .w { display: inline-block; white-space: nowrap; }
.flex .ch {
  display: inline-block;
  transition: font-variation-settings .7s cubic-bezier(.22, 1.2, .36, 1), color .5s ease;
}
/* .on is the letter under a finger (site.js); hover does the same with a mouse. */
.flex .ch.on { font-variation-settings: "wght" 1000, "wdth" 151, "ROND" 100; color: var(--acc); transition-duration: .5s, .3s; }
/* The letters either side swell a little too, so the push ripples outward. */
.flex .ch.on + .ch,
.flex .ch:has(+ .ch.on) { font-variation-settings: "wght" 920, "wdth" 132, "ROND" 100; transition-duration: .55s, .3s; }
@media (hover: hover) {
  .flex .ch:hover { font-variation-settings: "wght" 1000, "wdth" 151, "ROND" 100; color: var(--acc); transition-duration: .5s, .3s; }
  .flex .ch:hover + .ch,
  .flex .ch:has(+ .ch:hover) { font-variation-settings: "wght" 920, "wdth" 132, "ROND" 100; transition-duration: .55s, .3s; }
}
/* Whole lines sweep in, a beat apart: one layer per line instead of one per letter. */
.play .line { animation: sweep .95s cubic-bezier(.2, 1.25, .4, 1) calc(var(--l) * 110ms) backwards; transform-origin: 0 70%; }
@keyframes sweep {
  from { opacity: 0; transform: translateY(.45em) scaleX(.5); }
  40% { opacity: 1; }
}
/* Measure lines at the heading's resting shape. */
.measure, .measure .ch, .measure .line { animation: none !important; transition: none !important; }
.wait .flex .ch, .flex.waiting .line { opacity: 0; }

.aura { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.mote {
  position: absolute; border-radius: 50%;
  background: color-mix(in srgb, var(--acc) 70%, white);
  animation: float-a 20s linear infinite;
  opacity: 0;
}
/* Literal values only: keyframes that read CSS variables can't be handed to the compositor. */
@keyframes float-a { 0% { transform: translate(0, 0); opacity: 0; } 15%, 70% { opacity: .55; } 100% { transform: translate(30px, -34vh); opacity: 0; } }
@keyframes float-b { 0% { transform: translate(0, 0); opacity: 0; } 15%, 70% { opacity: .4; } 100% { transform: translate(-26px, -30vh); opacity: 0; } }
@keyframes float-c { 0% { transform: translate(0, 0); opacity: 0; } 15%, 70% { opacity: .65; } 100% { transform: translate(8px, -38vh); opacity: 0; } }

/* Reading progress drawn as the player's seek wave, straight while you scroll.
   Progress runs on a scroll timeline (no script per frame); transforms and opacity only.
   The clip slides in from the left while the wave inside slides back by the same amount,
   so the wave stays still and only more of it shows. */
.seek { position: fixed; left: 0; top: 0; width: 100%; height: 12px; z-index: 30; pointer-events: none; overflow: hidden; }
.seek-clip { position: absolute; inset: 0; overflow: hidden; transform: translateX(-100%); }
.seek-wave, .seek-flat { position: absolute; inset: 0; transform: translateX(100%); transition: opacity .3s ease; }
.seek-wave {
  background: var(--acc);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M0 6 Q6 1 12 6 T24 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Cpath d='M0 6 Q6 1 12 6 T24 6' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") repeat-x left center;
}
.seek-flat { top: 4.8px; bottom: auto; height: 2.4px; border-radius: 2px; background: var(--acc); opacity: 0; }
.seek.seeking .seek-wave { opacity: 0; }
.seek.seeking .seek-flat { opacity: 1; }
.seek-dot { position: absolute; left: -5px; top: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--acc); }
@supports (animation-timeline: scroll()) {
  .seek-clip { animation: seek-clip linear both; animation-timeline: scroll(root); }
  .seek-wave, .seek-flat { animation: seek-in linear both; animation-timeline: scroll(root); }
  .seek-dot { animation: seek-dot linear both; animation-timeline: scroll(root); }
}
@keyframes seek-clip { from { transform: translateX(-100%); } to { transform: translateX(0); } }
@keyframes seek-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes seek-dot { from { transform: translateX(0); } to { transform: translateX(100vw); } }

.top {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
  padding: 16px var(--gutter);
  /* Solid rather than a live blur: blurring what scrolls underneath costs a full redraw every frame. */
  background-color: color-mix(in srgb, color-mix(in srgb, var(--bg) 88%, var(--t1)) 94%, transparent);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--fog); text-decoration: none;
  font-size: 1.375rem; font-weight: 800; font-variation-settings: "wdth" 120, "ROND" 100;
}
.brand img { border-radius: 10px; transition: transform .6s var(--spring); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.gh { justify-self: end; color: var(--fog); text-decoration: none; font-weight: 550; }
.gh:hover { color: var(--acc); }

.tabs {
  position: relative; display: flex; gap: 2px;
  touch-action: pan-y; /* horizontal drags switch tabs */
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
  padding: 5px; border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  outline: 1px solid var(--line); outline-offset: -1px;
}
.tabs a {
  position: relative; z-index: 1;
  padding: 9px 18px; border-radius: 999px;
  color: var(--fog); text-decoration: none; font-weight: 600;
  font-variation-settings: "wdth" 104, "ROND" 100;
  transition: color .3s ease;
}
.tabs a[aria-current="page"] { color: var(--ink); }
.ti { display: none; width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* The pill behind the open tab; site.js sets --x and --w from the tab it sits under. */
.tab-ind {
  position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0;
  width: var(--w, 0); transform: translateX(var(--x, 0));
  border-radius: 999px; background: var(--acc);
  scale: 1;
  transition: transform .55s var(--spring), width .55s var(--spring), background-color .8s ease, scale .35s var(--spring);
}
.no-anim .tab-ind, .tabs.dragging .tab-ind { transition: none; }
.tabs.dragging .tab-ind { scale: 1.06 1.12; }

main { padding: 0 var(--gutter); overflow-x: clip; }
.panel { max-width: 74rem; margin: 0 auto; }
/* Only the top of a new tab rises in: animating the whole tab made the browser prepare one huge layer. */
.panel > :first-child { animation: rise .7s cubic-bezier(.2, 1, .3, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
/* Sections far off screen skip layout and painting until they come close. */
.row, .wide, .day, .panel > .split, .steps, .faq { content-visibility: auto; contain-intrinsic-size: auto 640px; }
.day { contain-intrinsic-size: auto 360px; }
.page-head { padding: clamp(40px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); }
.page-head h1 { max-width: 11em; }

/* Heading on the left, content on the right. */
.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 24px clamp(32px, 6vw, 96px);
  padding: 48px 0 clamp(64px, 8vw, 104px);
  border-top: 1px solid var(--line);
}
.prose p { margin: 0 0 16px; max-width: 36em; color: var(--dim); }
.prose p:first-child { color: var(--fog); font-size: 1.25rem; line-height: 1.5; }
.prose h3 { margin: 28px 0 10px; font-size: 1.1875rem; font-weight: 700; font-variation-settings: "wdth" 108, "ROND" 100; color: var(--fog); }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.35em; max-width: 36em; color: var(--dim); display: grid; gap: 10px; }
.prose pre { margin: 14px 0 16px; padding: 14px 16px; border-radius: 16px; background: var(--raise); border: 1px solid var(--line); overflow-x: auto; max-width: 100%; }
.prose pre code { background: none; padding: 0; border-radius: 0; font: 400 .9rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; }
.doc { scroll-margin-top: 84px; }
.docs-toc { padding-bottom: 36px; }
a.area { text-decoration: none; }
a.area:hover { color: var(--acc); }
.table-wrap { overflow-x: auto; margin: 14px 0 18px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: .9375rem; text-align: left; }
.doc-table th, .doc-table td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table th { color: var(--fog); font-weight: 650; }
.doc-table td { color: var(--dim); }
.doc-table td:first-child { white-space: nowrap; }

.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; gap: clamp(32px, 6vw, 96px);
  padding: clamp(40px, 8vw, 112px) 0 clamp(72px, 10vw, 140px);
}
.hero h1 { max-width: 10em; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.button {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--acc); color: var(--ink);
  font-weight: 700; font-size: 1.125rem; text-decoration: none;
  font-variation-settings: "wdth" 110, "ROND" 100;
  padding: 15px 26px 15px 18px; border-radius: 999px;
  transition: transform .4s var(--spring), background-color .8s ease;
}
.button:hover { transform: scale(1.04); }
.button:active { transform: scale(.97); }
.button .spin { fill: currentColor; transition: transform .9s var(--spring); }
.button:hover .spin { transform: rotate(160deg) scale(1.1); }
.quiet { color: var(--fog); font-weight: 600; }
.fine { color: var(--dim); font-size: .9375rem; margin: 22px 0 0; }
.build { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: .9375rem; margin: 10px 0 0; }
.live { flex: none; position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
/* A ring that grows and fades: transform and opacity, so no repaint each frame. */
.live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--acc); animation: live 2.4s ease-out infinite; }
@keyframes live { from { transform: scale(1); opacity: .6; } to { transform: scale(3.4); opacity: 0; } }

.hero-shot { margin: 0; justify-self: center; width: min(100%, 370px); position: relative; animation: bob 7s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-12px); } }
.hero-shot img { position: relative; border-radius: 36px; outline: 1px solid var(--line); outline-offset: -1px; box-shadow: 0 28px 44px -24px rgba(8, 10, 20, .75); }
.halo {
  position: absolute; left: 50%; top: 50%;
  width: 150%; aspect-ratio: 1; height: auto;
  translate: -50% -50%;
  fill: color-mix(in srgb, var(--acc) 16%, transparent);
  stroke: color-mix(in srgb, var(--acc) 45%, transparent); stroke-width: .4;
}

/* Heart: tap it like liking a song. */
.heart {
  position: absolute; z-index: 2; left: -30px; top: 56%;
  width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--acc); color: var(--ink);
  box-shadow: 0 16px 34px -12px rgba(8, 10, 20, .7);
  transition: transform .45s var(--spring), background-color .8s ease;
}
.heart svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; transition: fill .2s ease; }
.heart[aria-pressed="true"] svg { fill: currentColor; }
.heart:hover { transform: scale(1.08); }
.heart.pop { animation: pop .6s var(--spring); }
@keyframes pop { 30% { transform: scale(.78); } 65% { transform: scale(1.22); } }
/* The burst pieces: h is a heart, c a cookie, d a plain dot. */
.bit { position: fixed; z-index: 40; pointer-events: none; width: 14px; height: 14px; background: var(--acc); }
.bit.h { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.3s-7.8-4.7-7.8-10.3A4.4 4.4 0 0 1 12 7.4a4.4 4.4 0 0 1 7.8 2.6c0 5.6-7.8 10.3-7.8 10.3z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.3s-7.8-4.7-7.8-10.3A4.4 4.4 0 0 1 12 7.4a4.4 4.4 0 0 1 7.8 2.6c0 5.6-7.8 10.3-7.8 10.3z'/%3E%3C/svg%3E") center / contain no-repeat; }
.bit.c { -webkit-mask: url(cookie.svg) center / contain no-repeat; mask: url(cookie.svg) center / contain no-repeat; }
.bit.d { border-radius: 50%; width: 8px; height: 8px; background: color-mix(in srgb, var(--acc) 60%, white); }

/* Screens sit on a wave. */
.screens { padding: 0 0 clamp(72px, 10vw, 128px); }
.screens h2 { margin-bottom: 48px; }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 36px); align-items: start; }
.shots figure { margin: 0; position: relative; transition: transform .5s var(--spring); }
.shots figure:nth-child(1) { margin-top: 56px; }
.shots figure:nth-child(3) { margin-top: 36px; }
.shots figure:nth-child(4) { margin-top: 84px; }
.shots img, .row-shots img { border-radius: 30px; outline: 1px solid var(--line); outline-offset: -1px; box-shadow: 0 16px 28px -18px rgba(8, 10, 20, .6); }
.shots figure:hover { transform: translateY(-10px) rotate(-1.2deg); }
.shots figcaption { color: var(--dim); margin-top: 18px; font-size: 1rem; }

/* Stickers on the screenshots; tap one to spin it. */
.sticker {
  position: absolute; z-index: 1; width: 52px; height: 52px; cursor: pointer;
  background: var(--acc);
  -webkit-mask: url(cookie.svg) center / contain no-repeat; mask: url(cookie.svg) center / contain no-repeat;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .35));
  rotate: var(--tilt);
  transition: scale .4s var(--spring);
}
/* Plain url() per shape: a url() inside a CSS variable resolves differently from browser to browser. */
.sticker.flower { -webkit-mask-image: url(flower.svg); mask-image: url(flower.svg); }
.sticker:hover { scale: 1.12; }
.sticker::after { content: ""; position: absolute; inset: 30%; border-radius: 50%; background: color-mix(in srgb, white 55%, transparent); }

.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; }
.facts dt { font-weight: 700; font-size: 1.1875rem; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; font-variation-settings: "wdth" 108, "ROND" 100; }
.facts dt::before {
  content: ""; flex: none; width: 18px; height: 18px; background: var(--acc);
  -webkit-mask: url(cookie.svg) center / contain no-repeat; mask: url(cookie.svg) center / contain no-repeat;
  transition: rotate .6s var(--spring), scale .6s var(--spring);
}
.facts div:hover dt::before { rotate: 60deg; scale: 1.2; -webkit-mask-image: url(flower.svg); mask-image: url(flower.svg); }
.facts dd { margin: 0 0 0 28px; color: var(--dim); max-width: 30em; }

.row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: 32px clamp(32px, 7vw, 112px);
  padding: clamp(48px, 7vw, 96px) 0;
  border-top: 1px solid var(--line);
}
.row-text p { color: var(--dim); max-width: 30em; margin: 20px 0 0; }
.row-text p:first-of-type { color: var(--fog); font-size: 1.1875rem; line-height: 1.55; }
.row-shots { display: flex; gap: clamp(12px, 2vw, 24px); justify-content: center; }
.row-shots img { width: min(100%, 300px); }
.row-shots.two img { width: min(48%, 260px); transition: rotate .5s var(--spring); }
.row-shots.two img:first-child { rotate: -2deg; }
.row-shots.two img:last-child { margin-top: 56px; rotate: 2deg; }
.row-shots.two:hover img { rotate: 0deg; }
.flip .row-text { order: 2; }

.wide { padding: clamp(48px, 7vw, 96px) 0; border-top: 1px solid var(--line); }
.wide-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(32px, 7vw, 112px); align-items: start; margin-bottom: 40px; }
.wide-text h2 { grid-row: span 2; }
.wide-text p { margin: 0; color: var(--dim); max-width: 32em; }
.wide-text p:first-of-type { color: var(--fog); font-size: 1.1875rem; line-height: 1.55; }
.land-hero, .land-row img { border-radius: 26px; outline: 1px solid var(--line); outline-offset: -1px; box-shadow: 0 16px 28px -18px rgba(8, 10, 20, .6); }
.land-hero { width: 100%; }
.land-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin-top: clamp(14px, 2vw, 28px); }
.land-row figure { margin: 0; }
.land-row img { border-radius: 16px; }
.land-row figcaption { color: var(--dim); margin-top: 14px; font-size: 1rem; }

.palettes { margin-top: 28px; }
.pal-head { margin: 0 0 14px; color: var(--fog); font-weight: 600; }
.pal-name { color: var(--acc); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; max-width: 30rem; }
/* A swatch is the palette's background with its accent as a dot in the middle (site.js sets both). */
.swatch {
  width: 38px; height: 38px; padding: 0; border: 0; cursor: pointer; border-radius: 50%;
  background: var(--sw-bg); position: relative;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, white 18%, transparent);
  transition: transform .45s var(--spring), border-radius .45s var(--spring);
}
.swatch::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--sw-acc); transition: inset .45s var(--spring); }
.swatch.dynamic { background: conic-gradient(#d0bcff, #9fe3ff, #b9f2a6, #ffb8cb, #d0bcff); }
.swatch.dynamic::after { background: var(--bg); inset: 11px; }
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { border-radius: 12px; transform: scale(1.08); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--acc); }
.swatch[aria-pressed="true"]::after { inset: 7px; }

.steps { margin: 0; padding: 0 0 clamp(56px, 7vw, 96px); list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li {
  counter-increment: step; position: relative;
  padding: 28px 26px 30px; border-radius: 32px;
  background: rgba(255, 255, 255, .05); outline: 1px solid var(--line); outline-offset: -1px;
}
.steps li:nth-child(2) { margin-top: 40px; }
.steps li:nth-child(3) { margin-top: 80px; }
.badge { width: 64px; height: 64px; fill: var(--acc); display: block; transition: rotate .8s var(--spring); }
.steps li:hover .badge { rotate: 80deg; }
/* The step number sits on top of the cookie badge, so the badge can spin while the number stays upright. */
.steps li::before {
  content: counter(step);
  position: absolute; left: 26px; top: 28px; width: 64px; height: 64px;
  display: grid; place-items: center;
  color: var(--ink); font-size: 1.625rem; font-weight: 900; font-variation-settings: "wdth" 125, "ROND" 100;
  z-index: 1;
}
.steps h2 { font-size: 1.5rem; margin: 22px 0 8px; }
.steps p { margin: 0; color: var(--dim); }

.faq { max-width: 46rem; padding-bottom: clamp(64px, 8vw, 112px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-weight: 650; font-size: 1.25rem;
  font-variation-settings: "wdth" 106, "ROND" 100;
  transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; background: var(--acc);
  -webkit-mask: url(cookie.svg) center / contain no-repeat; mask: url(cookie.svg) center / contain no-repeat;
  transition: rotate .6s var(--spring), scale .6s var(--spring);
}
.faq details[open] summary::after { rotate: 120deg; scale: 1.25; -webkit-mask-image: url(flower.svg); mask-image: url(flower.svg); }
.faq summary:hover::after { rotate: 40deg; }
.faq summary:hover { color: var(--acc); }
.faq details p { margin: 0 0 24px; color: var(--dim); max-width: 38em; animation: rise .45s cubic-bezier(.2, 1, .3, 1); }

.next-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.next-list li {
  padding: 26px 26px 28px; border-radius: 30px;
  background: color-mix(in srgb, var(--acc) 9%, transparent);
  outline: 1px solid color-mix(in srgb, var(--acc) 25%, transparent); outline-offset: -1px;
}
.next-list h3 { margin: 0 0 8px; font-size: 1.375rem; font-weight: 750; font-variation-settings: "wdth" 112, "ROND" 100; display: flex; align-items: center; gap: 10px; }
.next-list h3::before {
  content: ""; flex: none; width: 22px; height: 22px; background: var(--acc);
  -webkit-mask: url(cookie.svg) center / contain no-repeat; mask: url(cookie.svg) center / contain no-repeat;
}
.next-list p { margin: 0; color: var(--dim); }
.history { padding-bottom: 24px; }
.history-note { margin: 0; color: var(--dim); align-self: center; }

.areas { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 24px; }
.area {
  font: inherit; font-weight: 600; font-size: .9375rem; font-variation-settings: "wdth" 104, "ROND" 100;
  color: var(--fog); background: var(--raise); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 16px; cursor: pointer;
  transition: background-color .3s ease, color .3s ease, transform .4s var(--spring);
}
.area:hover { transform: scale(1.04); }
.area[aria-pressed="true"] { background: var(--acc); color: var(--ink); border-color: transparent; }
.tag {
  display: inline-block; margin-right: 8px; padding: 1px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--acc) 18%, transparent); color: var(--acc);
  font-size: .8125rem; font-weight: 650; vertical-align: 1px;
}

.log { padding-bottom: 16px; }
.day {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 16px clamp(32px, 6vw, 96px);
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
/* The date stays in view beside its changes while they scroll past, clear of the sticky header. */
.day-head { position: sticky; top: 96px; align-self: start; }
.day-head h2 { font-size: 1.5rem; }
.day-head p { margin: 4px 0 0; color: var(--dim); font-size: .9375rem; }
.day ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.day li { position: relative; padding-left: 28px; max-width: 40em; }
.day li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; background: var(--acc);
  -webkit-mask: url(cookie.svg) center / contain no-repeat; mask: url(cookie.svg) center / contain no-repeat;
}
.day li a { color: var(--dim); font-size: .875rem; text-decoration: none; margin-left: 4px; white-space: nowrap; }
.day li a:hover { color: var(--acc); text-decoration: underline; }
.log-status { display: flex; align-items: center; gap: 14px; color: var(--dim); padding: 32px 0; margin: 0; border-top: 1px solid var(--line); }
.loader { flex: none; width: 30px; height: 30px; fill: var(--acc); animation: turn 1.4s linear infinite, breathe 1.4s ease-in-out infinite; }
@keyframes turn { to { rotate: 360deg; } }
@keyframes breathe { 50% { scale: .75; } }
.log-more { margin: 0; padding: 8px 0 clamp(64px, 8vw, 112px); }
.more {
  font: inherit; font-weight: 650; font-size: 1.0625rem; font-variation-settings: "wdth" 108, "ROND" 100;
  color: var(--fog); background: rgba(255, 255, 255, .08);
  border: 1px solid var(--line); border-radius: 999px; padding: 13px 24px; cursor: pointer;
  transition: transform .4s var(--spring), background-color .3s ease;
}
.more:hover { background: rgba(255, 255, 255, .14); transform: scale(1.03); }
.more:disabled { opacity: .6; cursor: progress; }

/* Screenshot viewer: the picture flies out of the page and back. */
.zoomable { cursor: zoom-in; }
.zoomable:focus-visible { outline: 3px solid var(--acc); outline-offset: 4px; }
.viewer {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; padding: 24px;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  cursor: zoom-out;
}
/* transform-origin 0 0 lets site.js fly the picture with one translate-and-scale from corner to corner. */
.big { max-width: min(94vw, 1400px); max-height: 88vh; width: auto; height: auto; border-radius: 28px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); transform-origin: 0 0; }
.viewer-close {
  position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--raise); color: var(--fog); cursor: pointer;
  display: grid; place-items: center;
}
.viewer-close svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px;
  padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--line);
  color: var(--dim); font-size: .9375rem;
}
.foot p { margin: 0; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-shot { width: min(80%, 320px); margin-top: 24px; }
  .heart { left: -18px; top: 56%; width: 56px; height: 56px; }
  .split, .row { grid-template-columns: 1fr; }
  .flip .row-text { order: 0; }
  .facts { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(n) { margin-top: 0; }
  .day { grid-template-columns: 1fr; }
  .day-head { position: static; }
  .next-list { grid-template-columns: 1fr; }
  .wide-text { grid-template-columns: 1fr; }
  .wide-text h2 { grid-row: auto; }
  .land-row { grid-template-columns: 1fr; }
  .land-hero { border-radius: 18px; }
  /* The four screens become a row you swipe sideways, each snapping into place. */
  .shots { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(70%, 280px); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 12px; scroll-padding: 0 var(--gutter); }
  .shots figure { scroll-snap-align: start; }
  .shots figure:nth-child(n) { margin-top: 0; }
}

/* Phones: the tabs become a bottom navigator, like the app's. */
@media (max-width: 720px) {
  .top { grid-template-columns: 1fr auto; }
  .tabs {
    position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom));
    padding: 6px; gap: 0;
    background: color-mix(in srgb, color-mix(in srgb, var(--bg) 82%, var(--fog)) 94%, transparent);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6);
  }
  .tab-ind { top: 6px; bottom: 6px; }
  /* Icons on phones; only the open tab shows its name, and it widens to fit. */
  .tabs a {
    flex: 1 1 0; min-width: 0;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 4px; font-size: .9375rem;
    transition: color .3s ease, flex-grow .55s var(--spring);
  }
  .tabs a[aria-current="page"] { flex-grow: 2.6; }
  /* Hidden visually, not removed, so screen readers still hear each tab's name. */
  .tabs a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tabs a[aria-current="page"] span { position: static; width: auto; height: auto; overflow: visible; clip: auto; animation: label-in .45s ease both; }
  .ti { display: block; }
  /* Room at the bottom so the floating tab bar never covers the last of the page. */
  body { padding-bottom: 96px; }
}
@keyframes label-in { from { opacity: 0; transform: translateX(-6px); font-variation-settings: "wdth" 40, "wght" 400; } 60% { font-variation-settings: "wdth" 125, "wght" 700; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .mote { display: none; }
}
