/* TICKLETOAST website. Butter, crust, and a 1997 LCD. */
:root {
  --page: #fbf3e3;
  --paper: #fffaf0;
  --butter: #ffe6a6;
  --butter-2: #ffd77f;
  --toast: #e0873a;
  --crust: #9c4d1c;
  --toasted: #7b3a14;
  --ink: #2a1c12;
  --muted: #76604b;
  --line: rgba(42, 28, 18, .14);
  --jam: #d4452f;
  --lcd-a: #cdd8b0;
  --lcd-b: #b5c396;
  --lcd-ink: #1e281c;
  --bezel: #3a2d24;
  --bread-a: #fff1cf;
  --bread-b: #f7d79a;
  --crust-a: #d98a3d;
  --crust-b: #a65a24;
  --night: #1b140e;
  --shadow: rgba(110, 52, 14, .22);
  --display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --note: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 1160px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #16100b; --paper: #211912; --butter: #2a1e12; --butter-2: #3a2914; --ink: #f7ead6; --muted: #b8a38b;
    --line: rgba(247, 234, 214, .13); --crust: #f0a868; --toasted: #3a1f0d; --night: #0d0906; --shadow: rgba(0, 0, 0, .45);
    --crust-a: #c27632; --crust-b: #7f4119; --bread-a: #f6dfad; --bread-b: #dcb46c;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --page: #16100b; --paper: #211912; --butter: #2a1e12; --butter-2: #3a2914; --ink: #f7ead6; --muted: #b8a38b;
  --line: rgba(247, 234, 214, .13); --crust: #f0a868; --toasted: #3a1f0d; --night: #0d0906; --shadow: rgba(0, 0, 0, .45);
  --crust-a: #c27632; --crust-b: #7f4119; --bread-a: #f6dfad; --bread-b: #dcb46c;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--toast) 70%, transparent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--crust); }
:focus-visible { outline: 3px solid var(--toast); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(var(--max), 100% - 32px); margin: 0 auto; }
main { overflow-x: clip; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
p { text-wrap: pretty; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: var(--page); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---- The wordmark: a little LCD nameplate ---- */
.wm {
  display: block; width: auto; height: 36px; padding: 5px 8px; border-radius: 10px; color: var(--lcd-ink);
  background: linear-gradient(170deg, var(--lcd-a), var(--lcd-b));
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .22), 0 0 0 3px var(--bezel), 0 2px 0 3px rgba(0, 0, 0, .12);
}
.home { display: inline-flex; border-radius: 10px; flex: none; }
.home:hover .wm { filter: brightness(1.04); }
.egg-ico { width: 15px; height: auto; flex: none; }

/* ---- Buttons that feel like the device's ---- */
.key {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 17px 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--toast) 88%, white), var(--toast));
  color: #fff; font: 800 18px/1 var(--display); letter-spacing: -.01em; text-decoration: none;
  box-shadow: 0 5px 0 #9c4d1c, 0 14px 26px rgba(156, 77, 28, .3), inset 0 1px 0 rgba(255, 255, 255, .35);
  transition: transform .08s ease, box-shadow .08s ease;
  -webkit-tap-highlight-color: transparent;
}
.key:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 6px 0 #9c4d1c, 0 18px 30px rgba(156, 77, 28, .32), inset 0 1px 0 rgba(255, 255, 255, .35); }
.key:active { transform: translateY(4px); box-shadow: 0 1px 0 #9c4d1c, 0 4px 10px rgba(156, 77, 28, .3); }
.key-sm { padding: 11px 18px; font-size: 15px; box-shadow: 0 4px 0 #9c4d1c, 0 8px 16px rgba(156, 77, 28, .25); }
.key-sm:active { transform: translateY(3px); }

/* ---- Header ---- */
.top {
  position: sticky; top: 0; z-index: 20; padding: 12px 0;
  background: color-mix(in srgb, var(--butter) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.top.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--page) 85%, transparent); }
.bar { display: flex; align-items: center; gap: 24px; }
.nav { display: flex; gap: 26px; margin-left: auto; font-weight: 600; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }

/* ---- Hero ---- */
.hero {
  position: relative; padding: 40px 0 96px;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 9%, transparent) 1.2px, transparent 1.6px) 0 0 / 16px 16px,
    linear-gradient(180deg, var(--butter), color-mix(in srgb, var(--butter) 55%, var(--page)) 75%, var(--page));
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--bezel); color: var(--lcd-a); font: 700 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
}
.chip i { width: 9px; height: 9px; border-radius: 2px; background: var(--lcd-a); animation: blink 1.2s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.hero h1 { font-size: clamp(46px, 6.6vw, 88px); line-height: .96; letter-spacing: -0.045em; margin: 0 0 28px; text-wrap: wrap; }
.hero h1 em {
  display: inline; font: italic 600 1em/1 var(--note); letter-spacing: -0.02em; color: var(--crust);
  background: linear-gradient(transparent 72%, color-mix(in srgb, var(--toast) 30%, transparent) 72%, color-mix(in srgb, var(--toast) 30%, transparent) 92%, transparent 92%);
}
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--muted); margin: 0 0 34px; max-width: 33ch; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; }
.arrow-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.arrow-link::after { content: "↓"; transition: transform .2s; }
.arrow-link:hover::after { transform: translateY(3px); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 34px 0 0; padding: 0; color: var(--muted); font-size: 14px; font-weight: 600; }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; background: var(--toast); border-radius: 1px; }

/* The device itself: a slice of toast with an LCD. */
.stage { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 70px; }
.device {
  position: relative; width: min(390px, 100%); padding: 13% 6% 9%;
  border-radius: 46% 46% 16% 16% / 30% 30% 12% 12%;
  background: radial-gradient(120% 80% at 30% 18%, rgba(255, 255, 255, .55), transparent 45%), linear-gradient(160deg, var(--bread-a), var(--bread-b));
  border: 14px solid var(--crust-a);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--crust-b) 35%, transparent), inset 0 -18px 30px rgba(160, 90, 30, .18),
    0 2px 0 6px var(--crust-b), 0 50px 80px -10px rgba(90, 45, 10, .35);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  transform: rotate(-4deg); transition: transform .6s cubic-bezier(.2, .9, .3, 1.3);
}
.stage:hover .device { transform: rotate(-1deg) translateY(-4px); }
/* The hero's hangs from its keyring and swings (rotate, so it adds to the tilt). */
.hero .device { transform-origin: 50% -40px; rotate: var(--swing, 0deg); }
.brandmark { font: 800 10px/1 var(--display); letter-spacing: .32em; margin-right: -.32em; color: color-mix(in srgb, var(--crust-b) 70%, transparent); text-shadow: 0 1px 0 rgba(255, 255, 255, .5); }
.bezel { width: 100%; padding: 8px; border-radius: 16px; background: linear-gradient(180deg, #4a3a2e, var(--bezel)); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5), 0 1px 0 rgba(255, 255, 255, .6); }
.lcd { position: relative; border-radius: 9px; padding: 7px; background: linear-gradient(170deg, var(--lcd-a), var(--lcd-b)); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .28); overflow: hidden; }
.lcd::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, .28), transparent 38%); }
.lcd canvas { display: block; width: 100%; aspect-ratio: 2 / 1; }
#demo { cursor: pointer; touch-action: manipulation; }
.buttons { display: flex; gap: 22px; }
.buttons span {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff, #fff7ea 45%, #f1d3a6); box-shadow: 0 4px 0 #b9824f, 0 8px 14px rgba(80, 40, 10, .22);
  font: 800 12px/1 var(--display); color: #8d5d33;
}
.buttons span:nth-child(2) { margin-top: 12px; }
.buttons button {
  position: relative; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 34% 30%, #fff, #fff7ea 45%, #f1d3a6); box-shadow: 0 4px 0 #b9824f, 0 8px 14px rgba(80, 40, 10, .22);
  transition: transform .08s, box-shadow .08s; -webkit-tap-highlight-color: transparent;
}
.buttons button:nth-child(2) { margin-top: 12px; }
.buttons button:hover { background: radial-gradient(circle at 34% 30%, #fff, #fffaf0 50%, #f6dcb2); }
.buttons button:active { transform: translateY(3px); box-shadow: 0 1px 0 #b9824f, 0 3px 6px rgba(80, 40, 10, .2); }
.keyring { position: absolute; top: -66px; left: 50%; width: 96px; height: 80px; margin-left: -48px; overflow: visible; }
.keyring .coil { fill: none; stroke: url(#metal); stroke-width: 2.9; stroke-linecap: round; }
.keyring .eyelet { fill: none; stroke: url(#metal); stroke-width: 2.4; stroke-linecap: round; }
.keyring .coil-edge { fill: none; stroke: rgba(40, 42, 46, .55); stroke-width: 3.6; stroke-linecap: round; }
.keyring .shine { fill: none; stroke: rgba(255, 255, 255, .85); stroke-width: 1; stroke-linecap: round; }
.keyring .rivet { fill: url(#metal); stroke: rgba(40, 42, 46, .5); stroke-width: .8; }
.keyring .seat { fill: color-mix(in srgb, var(--crust-b) 70%, black); opacity: .55; }

.sticker {
  position: absolute; right: -9%; top: 6%; width: 116px; height: 116px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; background: var(--jam); color: #fff;
  font: 800 13px/1.15 var(--display); letter-spacing: .06em; text-transform: uppercase;
  transform: rotate(14deg); box-shadow: 0 12px 22px rgba(120, 30, 10, .28);
}
.sticker::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px dashed rgba(255, 255, 255, .55); }
.note {
  position: relative; align-self: flex-start; margin: 26px 0 0 4%; display: flex; flex-direction: column-reverse; align-items: flex-end;
  font: italic 500 21px/1 var(--note); color: var(--crust); transform: rotate(-8deg); white-space: nowrap;
}
.note svg { width: 60px; height: 40px; margin: 0 -40px 2px 0; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- The ticker: one very long LCD ---- */
.ticker { background: var(--bezel); padding: 10px 0; transform: rotate(-1.2deg); margin: -18px -20px 0; position: relative; z-index: 2; box-shadow: 0 16px 30px -12px rgba(40, 20, 5, .4); }
.ticker-lcd { background: linear-gradient(175deg, var(--lcd-a), var(--lcd-b)); box-shadow: inset 0 3px 8px rgba(0, 0, 0, .25); padding: 6px 0; }
.ticker canvas { display: block; width: 100%; height: 50px; }

/* ---- Section heads ---- */
section { padding: 112px 0; }
.head { max-width: 760px; margin-bottom: 56px; }
.fig { margin: 0 0 14px; font: 700 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--crust); }
h2 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1; letter-spacing: -0.04em; margin-bottom: 18px; }
.intro { color: var(--muted); font-size: 19px; line-height: 1.6; max-width: 56ch; margin: 0; }

/* ---- Fig. 1: the diagram and the six steps ---- */
.diagram {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: center;
  padding: 56px; border-radius: 32px; margin-bottom: 40px;
  background:
    linear-gradient(color-mix(in srgb, var(--crust) 8%, transparent) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, color-mix(in srgb, var(--crust) 8%, transparent) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--paper);
  border: 1px solid var(--line);
}
.plan { display: flex; justify-content: center; padding-top: 40px; }
.device.flat { transform: none; width: min(340px, 100%); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--crust-b) 35%, transparent), inset 0 -18px 30px rgba(160, 90, 30, .18), 0 2px 0 6px var(--crust-b), 0 24px 40px -14px rgba(90, 45, 10, .3); }
.device.flat::before { /* the ring, flattened for the diagram */
  content: ""; position: absolute; top: -46px; left: 50%; width: 40px; height: 40px; margin-left: -20px; border-radius: 50%;
  border: 4px solid #b9bec5; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15), 0 0 0 1px rgba(0, 0, 0, .15);
}
.icons { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; height: 24px; color: var(--lcd-ink); }
.icons svg { width: 16px; height: 16px; fill: currentColor; opacity: .85; }
.icons svg.off { opacity: .14; }
.plan-screen { position: relative; margin: 4px 0; }
.pin {
  position: absolute; z-index: 3; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--jam); color: #fff; font: 800 13px/1 var(--display); font-style: normal;
  box-shadow: 0 0 0 3px var(--paper), 0 4px 10px rgba(120, 30, 10, .3);
}
.device.flat .bezel { position: relative; }
.pin-icons { left: -40px; top: 12px; }
.pin-screen { right: -40px; top: 46%; }
.buttons.labelled span .pin { top: auto; bottom: -32px; left: 50%; margin-left: -13px; }
.pin-ring { top: -58px; left: calc(50% + 28px); }
.legend { list-style: none; counter-reset: pin; margin: 0; padding: 0; display: grid; gap: 4px; }
.legend li { counter-increment: pin; position: relative; padding: 12px 0 12px 46px; border-bottom: 1px dashed var(--line); font-size: 17px; }
.legend li:last-child { border-bottom: 0; }
.legend li::before {
  content: counter(pin); position: absolute; left: 0; top: 11px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--jam); color: #fff; font: 800 13px/1 var(--display);
}
.legend b { font-family: var(--display); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.step {
  position: relative; padding: 18px 18px 26px; border-radius: 26px; background: var(--paper);
  border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.step:nth-child(3n + 2) { background: color-mix(in srgb, var(--butter) 70%, var(--paper)); }
.screen { padding: 8px; border-radius: 16px; background: linear-gradient(180deg, #4a3a2e, var(--bezel)); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5); }
.step .screen { margin-bottom: 20px; }
.step .num { margin: 0 6px 6px; font: 700 13px/1 var(--mono); color: var(--crust); letter-spacing: .1em; }
.step h3 { margin: 0 6px 8px; font-size: 24px; }
.step p:last-child { margin: 0 6px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.step b { color: var(--ink); }

/* ---- Fig. 2: growing up, on a toasted band ---- */
.grow {
  color: #fbeedd;
  background:
    radial-gradient(circle at 1px 1px, rgba(255, 230, 190, .09) 1.2px, transparent 1.6px) 0 0 / 16px 16px,
    radial-gradient(120% 80% at 80% 0%, #a24f1c, transparent 60%), var(--toasted);
}
.grow .fig { color: #ffc98c; }
.grow .intro { color: rgba(251, 238, 221, .78); }
.tile { border-radius: 14px; padding: 6px; box-shadow: inset 0 3px 8px rgba(0, 0, 0, .28), 0 0 0 6px var(--bezel), 0 16px 26px rgba(0, 0, 0, .3); }
.tile canvas { aspect-ratio: 17 / 15; }
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px; }
.path li, .forms li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.path li:not(:last-child)::after {
  content: ""; position: absolute; top: 34%; right: -40px; width: 36px; height: 20px;
  background: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 5' fill='%23ffc98c'><rect x='6' y='0' width='.8' height='.8'/><rect x='7' y='1' width='.8' height='.8'/><rect x='0' y='2' width='.8' height='.8'/><rect x='2' y='2' width='.8' height='.8'/><rect x='4' y='2' width='.8' height='.8'/><rect x='6' y='2' width='.8' height='.8'/><rect x='8' y='2' width='.8' height='.8'/><rect x='7' y='3' width='.8' height='.8'/><rect x='6' y='4' width='.8' height='.8'/></svg>") center / contain no-repeat;
}
.path .tile, .forms .tile { width: 100%; max-width: 168px; margin-bottom: 20px; }
.path b, .forms b { font: 700 14px/1.2 var(--mono); letter-spacing: .16em; }
.path span, .forms span { font-size: 14px; color: rgba(251, 238, 221, .7); margin-top: 4px; }
.then { margin: 64px 0 28px; font: italic 500 24px/1.3 var(--note); color: #ffc98c; }
.forms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px; }
.elder { margin: 56px 0 0; max-width: 52ch; color: rgba(251, 238, 221, .78); }

/* ---- Fig. 3: in your pocket ---- */
.pocket-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: center; }
.keep-steps { list-style: none; counter-reset: k; margin: 36px 0 40px; padding: 0; display: grid; gap: 18px; }
.keep-steps li { counter-increment: k; position: relative; padding-left: 58px; min-height: 40px; color: var(--muted); }
.keep-steps li b { color: var(--ink); font-family: var(--display); font-size: 18px; }
.keep-steps li i { font-style: normal; font-weight: 650; color: var(--ink); }
.keep-steps li::before {
  content: counter(k); position: absolute; left: 0; top: -2px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--lcd-a); color: var(--lcd-ink); font: 700 17px/1 var(--mono); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .2), 0 0 0 3px var(--bezel);
}
.phone { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.phone-body {
  width: min(330px, 100%); padding: 12px; border-radius: 52px; background: #17120e;
  box-shadow: inset 0 0 0 2px #3b3129, 0 0 0 1px #000, 0 40px 70px -20px rgba(40, 20, 5, .5), 0 0 0 9px color-mix(in srgb, var(--toast) 18%, transparent);
}
.phone-screen { position: relative; aspect-ratio: 390 / 844; border-radius: 40px; overflow: hidden; background: #0f0b08; }
.phone-screen iframe { position: absolute; top: 0; left: 0; width: 390px; height: 844px; border: 0; transform-origin: 0 0; transform: scale(var(--s, .78)); background: var(--page); }
.power {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  border: 0; cursor: pointer; color: #f6ead8; font: 800 20px/1.2 var(--display);
  background: radial-gradient(70% 50% at 50% 45%, rgba(224, 135, 58, .25), transparent 70%), #0f0b08;
}
.power small { font: 500 13px/1 var(--body); color: rgba(246, 234, 216, .55); }
.power-ico { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 8px; background: var(--toast); box-shadow: 0 5px 0 #9c4d1c, 0 0 40px rgba(224, 135, 58, .5); position: relative; transition: transform .1s; }
.power-ico::before { content: ""; position: absolute; left: 50%; top: 14px; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: #fff; }
.power-ico::after { content: ""; position: absolute; inset: 19px; border-radius: 50%; border: 4px solid #fff; border-top-color: transparent; }
.power:active .power-ico { transform: translateY(4px); box-shadow: 0 1px 0 #9c4d1c; }
.phone figcaption { font: italic 500 17px/1.4 var(--note); color: var(--muted); text-align: center; max-width: 30ch; }

/* ---- Fig. 4: friends ---- */
.friends { background: linear-gradient(180deg, var(--page), color-mix(in srgb, var(--butter) 60%, var(--page))); }
.friends-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 72px; align-items: start; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 40px 0 22px; max-width: 560px; }
.mini { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mini .screen { width: 100%; }
.mini span { font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.small { font-size: 15px; color: var(--muted); max-width: 52ch; }
.label { border: 3px solid var(--ink); border-radius: 6px; background: var(--paper); padding: 0 22px 18px; box-shadow: 8px 8px 0 color-mix(in srgb, var(--ink) 18%, transparent); transform: rotate(1.2deg); }
.label h3 { margin: 0 -22px 6px; padding: 12px 22px; background: var(--ink); color: var(--paper); font: 800 15px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.label ul { list-style: none; margin: 0; padding: 0; }
.label li { padding: 11px 0; border-bottom: 1.5px solid var(--ink); font-size: 16px; }
.label li b { text-decoration: line-through; text-decoration-color: var(--jam); text-decoration-thickness: 3px; }
.label p { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* ---- Fig. 5: questions ---- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
.faq .head { position: sticky; top: 110px; margin: 0; }
.qs details { border-top: 2px solid var(--ink); padding: 4px 0; }
.qs details:last-child { border-bottom: 2px solid var(--ink); }
.qs summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font: 800 22px/1.25 var(--display); letter-spacing: -.02em; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--butter-2); color: var(--ink); font: 700 20px/1 var(--mono); transition: transform .2s; }
.qs details[open] summary::after { transform: rotate(45deg); }
.qs details p { margin: 0 0 22px; color: var(--muted); max-width: 60ch; }

/* ---- Lights out ---- */
.night {
  color: #f6ead8; overflow: hidden;
  background: radial-gradient(60% 80% at 20% 30%, rgba(224, 135, 58, .18), transparent 70%), var(--night);
}
.night-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: center; }
.night-screen { transform: rotate(-2deg); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5), 0 30px 60px rgba(0, 0, 0, .5), 0 0 80px rgba(205, 216, 176, .12); }
.night-screen canvas { aspect-ratio: 32 / 14; }
.night h2 { font-size: clamp(44px, 6vw, 76px); }
.night p { color: rgba(246, 234, 216, .72); font-size: 19px; max-width: 34ch; margin: 0 0 34px; }
.soon { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 0; padding: 0; }
.soon li { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; border: 1.5px solid rgba(246, 234, 216, .25); font: 700 15px/1.15 var(--display); }
.soon small { display: block; font: 600 10px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(246, 234, 216, .55); }
.soon svg { width: 22px; height: 22px; fill: currentColor; }

/* ---- Footer ---- */
.foot { padding: 72px 0 36px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 56px; }
.hello p { margin: 0 0 10px; color: var(--muted); }
.hello .maker { margin: 14px 0 0; }
.hello .maker a { color: var(--ink); font-weight: 700; }
.email {
  display: inline-flex; align-items: center; gap: 14px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink);
  font: 800 clamp(24px, 3.4vw, 40px)/1.1 var(--display); letter-spacing: -.03em; text-align: left; overflow-wrap: anywhere;
}
.email .copy { flex: none; padding: 6px 11px; border-radius: 999px; background: var(--butter-2); font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.email:hover .copy { background: var(--toast); color: #fff; }
.foot-nav { display: flex; gap: 24px; font-weight: 700; }
.foot-nav a { text-decoration: none; }
.foot-mark { color: var(--ink); }
.wm-big { display: block; width: 100%; height: auto; }
.fine { margin: 22px 0 0; font-size: 14px; color: var(--muted); }

/* ---- Legal pages ---- */
.legal {
  padding: 56px 0 96px;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 8%, transparent) 1.2px, transparent 1.6px) 0 0 / 16px 16px,
    linear-gradient(180deg, color-mix(in srgb, var(--butter) 70%, var(--page)), var(--page) 420px);
}
.legal-head { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 8px; }
.legal-lcd { flex: none; width: 216px; transform: rotate(3deg); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .5), 0 18px 30px -10px rgba(90, 45, 10, .35); }
.legal-terms .legal-lcd { transform: rotate(-3deg); }
.legal h2 { display: flex; align-items: center; gap: 14px; }
.trinket {
  flex: none; display: grid; place-items: center; width: 36px; height: 32px; border-radius: 9px; color: var(--lcd-ink);
  background: linear-gradient(170deg, var(--lcd-a), var(--lcd-b));
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .2), 0 0 0 2.5px var(--bezel);
  transform: rotate(-4deg); transition: transform .3s cubic-bezier(.2, .9, .3, 1.6);
}
.legal h2:nth-of-type(even) .trinket { transform: rotate(4deg); }
.legal h2:hover .trinket { transform: rotate(0) scale(1.15); }
.trinket svg { width: 18px; height: 18px; fill: currentColor; }
.legal .tldr { position: relative; }
.peek-hole { position: absolute; right: 40px; bottom: calc(100% - 4px); width: 63px; height: 40px; overflow: hidden; pointer-events: none; }
.peeker { position: absolute; left: 0; bottom: 0; width: 63px; height: auto; fill: var(--ink); animation: peek 5s ease-in-out infinite; }
.peeker .in { fill: var(--butter); }
@keyframes peek { 0%, 40%, 100% { transform: translateY(0); } 46% { transform: translateY(-3px); } 52% { transform: translateY(0); } 66%, 74% { transform: translateY(40px); } 84% { transform: translateY(0); } }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(48px, 8vw, 88px); line-height: .95; letter-spacing: -0.05em; margin: 0 0 14px; }
.legal .updated { font: 600 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--crust); margin: 0 0 36px; }
.legal .tldr { background: var(--butter); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); border-radius: 22px; padding: 22px 26px; margin: 52px 0 48px; font-size: 19px; }
.legal .tldr p { margin: 0; }
.legal h2 { font-size: 26px; letter-spacing: -.02em; margin: 44px 0 10px; }
.legal p, .legal li { color: color-mix(in srgb, var(--ink) 80%, var(--muted)); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.lost {
  min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 48px 0 80px;
  background:
    radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 8%, transparent) 1.2px, transparent 1.6px) 0 0 / 16px 16px,
    radial-gradient(60% 50% at 50% 30%, color-mix(in srgb, var(--butter) 80%, transparent), transparent 70%), var(--page);
}
.lost-stage { display: flex; justify-content: center; padding-top: 70px; margin-bottom: 40px; }
.lost-device { width: min(340px, 86%); transform: rotate(3deg); }
.lost-device:hover { transform: rotate(0deg) translateY(-4px); }
.lost-device canvas { cursor: pointer; touch-action: manipulation; }
.lost h1 { font-size: clamp(42px, 7vw, 72px); line-height: 1; letter-spacing: -.045em; margin: 0 0 14px; }
.lost p { color: var(--muted); margin: 0 0 30px; }

/* ---- Crumbs, from tickling ---- */
.crumb { position: fixed; z-index: 60; width: 7px; height: 6px; border-radius: 2px; pointer-events: none; }

/* ---- Smaller screens ---- */
/* Fig. 3: keepsakes. Two little screens, a postcard on the table and a card from the book. */
.keeps-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, .82fr); gap: 26px 22px;
  grid-template-areas: "voice moment book" "card card book"; align-items: start;
}
.keep-voice { grid-area: voice; }
.keep-voice canvas { cursor: pointer; touch-action: manipulation; }
.keep-voice canvas:focus-visible { outline: 3px solid var(--jam); outline-offset: 6px; border-radius: 6px; }
.tap-hint::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; background: var(--jam); vertical-align: 1px; animation: blink 1.4s steps(1) infinite; } .keep-moment { grid-area: moment; }
.keep-postcard { grid-area: card; margin: 10px 0 0; }
.keep-book { grid-area: book; margin: 0; }
.keeps-grid img { display: block; width: 100%; height: auto; }
.keep-postcard img { border-radius: 14px; rotate: -1.4deg; box-shadow: 0 2px 0 rgba(0, 0, 0, .05), 0 26px 50px -18px rgba(70, 35, 10, .45); transition: rotate .3s ease; }
.keep-postcard:hover img { rotate: -.4deg; }
.keep-book img { rotate: 2deg; filter: drop-shadow(0 22px 26px rgba(70, 35, 10, .28)); transition: rotate .3s ease; }
.keep-book:hover img { rotate: 1deg; }
.keeps-grid figcaption { margin: 22px 6px 0; color: var(--muted); font-size: 16px; line-height: 1.55; max-width: 46ch; }
.keeps-grid figcaption b { color: var(--ink); font-family: var(--display); }

@media (max-width: 1020px) {
  .nav { display: none; }
  .bar { justify-content: space-between; }
  .forms { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 22px; }
  .diagram { padding: 40px 28px; gap: 40px; }
}
@media (max-width: 860px) {
  section { padding: 84px 0; }
  .hero { padding: 24px 0 56px; }
  .hero-grid, .pocket-grid, .friends-grid, .faq-grid, .night-grid, .diagram { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .stage { padding-top: 76px; }
  .device { width: min(340px, 86%); }
  .sticker { width: 92px; height: 92px; font-size: 11px; right: -4%; top: 2%; }
  .note { font-size: 18px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .keeps-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "voice moment" "card card" "book book"; }
  .keep-book img { width: min(320px, 78%); margin: 0 auto; }
  .keep-book figcaption { text-align: center; margin-inline: auto; }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 30px; }
  .path li:nth-child(2)::after { display: none; }
  .phone { display: none; }
  .faq .head { position: static; }
  .label { transform: none; }
  .diagram { padding: 36px 16px 28px; }
  .plan { padding-top: 56px; }
}
@media (max-width: 520px) {
  .wm { height: 30px; padding: 4px 6px; }
  .key-sm { padding: 10px 14px; font-size: 14px; }
  .hero h1 { font-size: clamp(40px, 12.4vw, 56px); }
  .lede { font-size: 18px; }
  .ctas .key { width: 100%; }
  .ctas { gap: 18px; }
  .ctas .arrow-link { width: 100%; justify-content: center; }
  .forms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legend li { font-size: 16px; }
  .step:hover { transform: none; box-shadow: 6px 6px 0 var(--ink); }
  .keeps-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "voice" "moment" "card" "book"; }
  .qs summary { font-size: 19px; }
  .diagram { border-radius: 24px; }
  .device.flat { width: 82%; }
  .legal-lcd { width: 132px; }
  .legal-head { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .device, .step, .key { transition: none; }
  .chip i, .peeker, .tap-hint::before { animation: none; }
}

/* ---- Things settle into place as they scroll in (only with JS, and motion) ---- */
.rise { opacity: 0; translate: 0 22px; transition: opacity .6s ease var(--d, 0ms), translate .7s cubic-bezier(.2, .8, .25, 1.15) var(--d, 0ms); }
.rise.shown { opacity: 1; translate: none; }
.rise.shown .lcd { animation: power-on .9s steps(6, end) var(--d, 0ms) both; }
@keyframes power-on { 0% { filter: brightness(.55) saturate(.6); } 35% { filter: brightness(1.18); } 55% { filter: brightness(.85); } 100% { filter: none; } }
.path .tile, .forms .tile { cursor: pointer; transition: translate .25s cubic-bezier(.2, .9, .3, 1.4); }
.path li:hover .tile, .forms li:hover .tile { translate: 0 -4px; }

/* ---- More flair ---- */
/* The header browns as you read down the page. */
.top::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: calc(var(--toasted-p, 0) * 100%);
  background: linear-gradient(90deg, var(--bread-b), var(--toast) 55%, var(--crust-b)) 0 0 / 100vw 100%;
  border-radius: 0 3px 3px 0; pointer-events: none;
}
/* A warm sunburst turning slowly behind the hero's toast. */
.stage::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 150%; aspect-ratio: 1; translate: -50% -46%; z-index: 0; pointer-events: none;
  background: repeating-conic-gradient(color-mix(in srgb, var(--butter-2) 75%, transparent) 0 7deg, transparent 7deg 18deg);
  -webkit-mask: radial-gradient(closest-side, #000 20%, transparent 100%); mask: radial-gradient(closest-side, #000 20%, transparent 100%);
  animation: sunburst 120s linear infinite;
}
@keyframes sunburst { to { rotate: 360deg; } }
.stage > .device, .stage > .note { z-index: 1; }
/* Little pixel things drifting about the hero, leaning away from your pointer. */
.drift { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero > .wrap { position: relative; }
.drift svg {
  position: absolute; width: auto; fill: var(--crust); opacity: .3; shape-rendering: crispEdges;
  transform: translate(calc(var(--mx, 0) * var(--z) * 1px), calc((var(--my, 0) * var(--z) - var(--sy, 0) * var(--z) * .04) * 1px)) rotate(var(--r));
  animation: bob var(--t, 6s) ease-in-out var(--dl, 0s) infinite alternate;
}
@keyframes bob { from { translate: 0 -7px; } to { translate: 0 7px; } }
/* A bite out of the toasted band. */
.grow {
  -webkit-mask:
    radial-gradient(circle at 84% -18px, transparent 64px, #000 65px),
    radial-gradient(circle at calc(84% - 70px) -30px, transparent 58px, #000 59px),
    radial-gradient(circle at calc(84% + 64px) -34px, transparent 54px, #000 55px);
  -webkit-mask-composite: source-in;
  mask:
    radial-gradient(circle at 84% -18px, transparent 64px, #000 65px),
    radial-gradient(circle at calc(84% - 70px) -30px, transparent 58px, #000 59px),
    radial-gradient(circle at calc(84% + 64px) -34px, transparent 54px, #000 55px);
  mask-composite: intersect;
}
/* Stars over the lights-out section, and now and then one shoots. */
.night { position: relative; }
.night > .wrap { position: relative; z-index: 1; }
.stars { position: absolute; inset: 0; pointer-events: none; }
.stars i { position: absolute; width: 3px; height: 3px; background: #f6ead8; opacity: .5; animation: twinkle var(--t, 3s) steps(2, jump-none) var(--dl, 0s) infinite alternate; }
.stars i.big { width: 12px; height: 12px; background: none; opacity: .7; }
.stars i.big::before, .stars i.big::after { content: ""; position: absolute; background: #ffe6a6; }
.stars i.big::before { left: 4px; top: 0; width: 4px; height: 12px; }
.stars i.big::after { left: 0; top: 4px; width: 12px; height: 4px; }
@keyframes twinkle { from { opacity: .12; } to { opacity: .8; } }
.shoot {
  position: absolute; top: 14%; left: 62%; width: 110px; height: 2px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, #ffe6a6); rotate: 18deg; border-radius: 2px;
  animation: shoot 9s ease-in 3s infinite;
}
.shoot.two { top: 32%; left: 20%; width: 80px; animation-delay: 7.5s; animation-duration: 13s; }
@keyframes shoot { 0%, 88% { opacity: 0; translate: 0 0; } 90% { opacity: 1; } 100% { opacity: 0; translate: 240px 78px; } }
/* The six steps lean towards you, and their screens catch the light. */
.step.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translate(-2px, -2px); transition: transform .08s linear, box-shadow .2s ease; }
.step.tilt .lcd::after { background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .45), transparent 55%), linear-gradient(125deg, rgba(255, 255, 255, .2), transparent 38%); }
/* The egg on the hatch buttons can't sit still. */
.key:hover .egg-ico { animation: eggwob .5s ease-in-out infinite alternate; }
@keyframes eggwob { from { rotate: -14deg; } to { rotate: 14deg; } }
/* The sticker gets a spin when you poke it. */
.sticker { cursor: pointer; transition: transform .3s cubic-bezier(.2, .9, .3, 1.6); }
.sticker:hover { transform: rotate(4deg) scale(1.06); }
.sticker.spin { animation: stickspin .9s cubic-bezier(.2, .8, .25, 1.1); }
@keyframes stickspin { from { transform: rotate(14deg) scale(1); } 40% { transform: rotate(200deg) scale(1.18); } to { transform: rotate(374deg) scale(1); } }
@media (max-width: 860px) {
  .drift svg.mid { display: none; }
  .grow {
    -webkit-mask:
      radial-gradient(circle at 80% -14px, transparent 40px, #000 41px),
      radial-gradient(circle at calc(80% - 44px) -22px, transparent 36px, #000 37px),
      radial-gradient(circle at calc(80% + 40px) -24px, transparent 34px, #000 35px);
    -webkit-mask-composite: source-in;
    mask:
      radial-gradient(circle at 80% -14px, transparent 40px, #000 41px),
      radial-gradient(circle at calc(80% - 44px) -22px, transparent 36px, #000 37px),
      radial-gradient(circle at calc(80% + 40px) -24px, transparent 34px, #000 35px);
    mask-composite: intersect;
  }
}
@media (prefers-reduced-motion: reduce) {
  .stage::before, .drift svg, .stars i, .key:hover .egg-ico, .sticker.spin { animation: none; }
  .shoot { display: none; }
}
