@font-face {
  font-family: Nunito;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

  /* Forms */
  .talk { --panel-radius: 32px; background: var(--card); padding: 28px; max-width: 760px; margin: 0 auto; }
  @media (max-width: 560px) { .talk { padding: 20px 16px; --panel-radius: 26px; } }
  .tabs { display: flex; gap: 6px; padding: 6px; background: var(--tray); border-radius: 999px; margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
  .tabs button { flex: 1; white-space: nowrap; font: inherit; font-weight: 700; font-size: 15px; border: 0; background: transparent; color: var(--ink-soft); padding: 10px 14px; border-radius: 999px; cursor: pointer; }
  .tabs button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 2px 0 var(--tray-edge); }
  @media (max-width: 640px) { .tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 22px; } .tabs button { border-radius: 16px; white-space: normal; } }
  .intro { margin: 0 0 20px; color: var(--ink-soft); }
  form { display: grid; gap: 16px; }
  .row { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 16px; }
  @media (max-width: 560px) { .row { grid-template-columns: 1fr; } }
  label, legend { font-weight: 700; font-size: 15px; }
  label .opt, legend .opt { font-weight: 500; color: var(--ink-soft); }
  input[type="text"], input[type="email"], select, textarea {
    display: block; width: 100%; margin-top: 6px; font: 500 16px/1.5 var(--rounded); color: var(--ink);
    background: var(--blank); border: 2px solid var(--card-edge); border-radius: 14px; padding: 12px 14px;
  }
  select { cursor: pointer; }
  /* Touch devices use the system picker. On desktop the browser's own option
     list can share the form's colors and scroll within the available space. */
  @media (hover: hover) and (pointer: fine) and (forced-colors: none) {
    @supports (appearance: base-select) and selector(::picker(select)) {
      select, select::picker(select) { appearance: base-select; }
      select { display: flex; align-items: center; justify-content: space-between; }
      select::picker-icon { color: var(--ink-soft); }
      select::picker(select) {
        max-block-size: min(16rem, 45dvh); overflow-y: auto; overscroll-behavior: contain;
        margin-block: 4px; padding: 4px; border: 1px solid var(--card-edge); border-radius: 14px;
        background: var(--card); color: var(--ink); box-shadow: var(--shadow);
      }
      select option { padding: 7px 10px; border-radius: 8px; font: inherit; }
      select option:checked { background: var(--tray); }
      select option:hover, select option:focus-visible { background: var(--secondary-face); color: var(--secondary-ink); }
      select option:focus-visible { outline-offset: -2px; }
    }
  }
  textarea { min-height: 130px; resize: vertical; }
  fieldset { min-width: 0; border: 0; padding: 0; margin: 0; }
  .chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .chips label {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
    border-radius: 999px; background: var(--tray); font-weight: 600; cursor: pointer;
  }
  .chips label:has(:checked) { background: var(--secondary-face); color: var(--secondary-ink); }
  form :is(input[type="checkbox"], input[type="radio"]) {
    width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--selection); cursor: pointer;
  }
  .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
  .check input[type="checkbox"] { margin-top: 2px; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  [hidden] { display: none !important; }
  .form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .form-foot small { color: var(--ink-soft); flex: 1; min-width: 200px; }
  .status { border-radius: 16px; padding: 14px 16px; font-weight: 600; }
  .status.ok { background: color-mix(in srgb, var(--mint) 70%, var(--card)); color: var(--tile-text); }
  .status.err { background: color-mix(in srgb, var(--pink) 70%, var(--card)); color: var(--tile-text); }
  .done { text-align: center; padding: 20px 0 8px; }
  .done img { width: 120px; margin: 0 auto 8px; animation: bob 3.2s ease-in-out infinite; }
  .done h3 { font-size: 24px; margin: 0 0 6px; }
  .done p { color: var(--ink-soft); margin: 0 0 18px; }


:root {
  --rounded: Nunito, ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --ink: #3a3330; --ink-soft: #6b605a; --card-edge: #d7cabb;
  --accent-ink: #382514; --accent-ledge: #ac641d; --headline-accent: #a45212;
  --purple: #704b8e; --wash: #f0e9ef; --tray: #f5eee6; --selection: var(--purple);
  --panel-line: rgb(76 49 39 / 15%); --secondary-face: #e6dcf0; --secondary-ink: #473551; --secondary-ledge: #b6a4c4;
}
:root[data-theme="dark"] {
  --bg-top: #201b27; --card: #2c2534; --ink: #fff7f1; --ink-soft: #cec3d4;
  --card-edge: #54475d; --accent: #7041bd; --purple: #c9a4ff; --wash: #30283b;
  --accent-ink: white; --accent-ledge: #48277b; --headline-accent: var(--purple);
  --panel-line: rgb(248 232 255 / 15%); --secondary-face: #54475f; --secondary-ink: #fff5ff; --secondary-ledge: #342a40;
  --tray: #403649; --blank: #28222e;
}
:root,:root[data-theme] {--tray-edge:color-mix(in srgb,var(--card) 78%,black)}
body {font-family:var(--rounded)}
.wrap {max-width:1280px;padding-inline:clamp(22px,5vw,76px)}
header {padding:17px 0}
.brand,h1,h2,.palette strong {font-family:var(--rounded)}
.brand {font-size:32px;letter-spacing:-.055em;font-weight:850;gap:12px}
.brand img {
  width:56px;height:56px;border-radius:14px;flex:none;
  transform:rotate(-7deg);
  box-shadow:0 2px 2px #34213520,0 5px 8px -3px #34213566;
}
[data-theme="dark"] .brand img {box-shadow:0 2px 2px #100b194d,0 5px 10px -2px #100b1980}

header nav {--control-height:44px;align-items:center;gap:14px}
header nav a:not(.nav-cta) {font-size:16px;font-weight:650;color:var(--ink)}
.btn,nav .nav-cta,.btn.soft {
  background:var(--button-face,var(--accent));color:var(--button-ink,var(--accent-ink));
  box-shadow:inset 0 1px 0 #ffffff38,0 4px 0 var(--button-ledge,var(--accent-ledge));
  border:0;border-radius:999px;cursor:pointer;text-decoration:none;
  transition:transform .12s ease,box-shadow .12s ease;
}
.btn.secondary-control,.btn.soft {
  --button-face:var(--secondary-face);--button-ink:var(--secondary-ink);--button-ledge:var(--secondary-ledge);
}
.btn:active,.btn.soft:active,nav .nav-cta:active {
  transform:translateY(3px);box-shadow:inset 0 1px 0 #ffffff38,0 1px 0 var(--button-ledge,var(--accent-ledge));
}
#mode {width:var(--control-height);height:var(--control-height);padding:0;font-size:22px}
.btn {font-size:16px;font-weight:700;padding:14px 23px}
nav .nav-cta {height:var(--control-height);padding-block:0;font-weight:700}
.hero {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);
  align-items:center;
  gap:clamp(28px,4.5vw,74px);
  padding-block:clamp(40px,4.4vw,68px) clamp(48px,5.2vw,76px);
}
.kicker,.palette small {
  font:780 15px/1.4 var(--rounded);
  letter-spacing:normal;
}
.kicker {display:flex;align-items:center;gap:9px;color:var(--purple);margin:0 0 16px}
h1,h2 {margin:0;font-weight:850;letter-spacing:-.048em;line-height:1.02}
h1 {font-size:clamp(48px,5.2vw,74px);line-height:1.015;text-wrap:balance}
h1 em,h1 .pop {color:var(--headline-accent);font-style:normal}
.lede {font-size:clamp(17px,1.45vw,20px);color:var(--ink-soft);line-height:1.55;max-width:29em;margin:24px 0 0}
.promises {display:flex;flex-wrap:wrap;gap:10px;margin:26px 0 0;padding:0;list-style:none}
.promises li {
  display:flex;align-items:center;gap:7px;padding:7px 14px;border-radius:999px;
  background:var(--card);box-shadow:var(--shadow);font-size:16px;font-weight:750;
}
.promises li::before {
  content:"";width:11px;height:6px;flex:none;border:solid #278563;border-width:0 0 2.5px 2.5px;
  transform:translateY(-1px) rotate(-45deg);
}
[data-theme="dark"] .promises li::before {border-color:#79d5af}
.actions {display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:29px}
/* The three screenshots share a grid cell so the front phone sets the height. */
.fan-wrap {justify-self:center;min-width:0;width:min(100%,414px)}
.fan {position:relative;isolation:isolate;display:grid;place-items:center;touch-action:pan-y pinch-zoom}
.phone {
  grid-area:1/1;width:65%;padding:0;border:0;border-radius:16% / 7.7%;
  background:transparent;cursor:pointer;user-select:none;-webkit-user-select:none;
  transition:transform .48s cubic-bezier(.2,.72,.24,1),filter .35s ease;
}
/* The button has the phone's shape itself, so its box is the whole phone. */
.phone {aspect-ratio:286 / 576}
.phone .shot {width:100%;height:100%;transform:none;cursor:inherit;pointer-events:none}
.phone[data-slot="front"] {z-index:3;transform:translateX(var(--drag,0px)) rotate(2deg)}
.phone[data-slot="left"] {z-index:1;transform:translateX(-29%) rotate(-9deg) scale(.87)}
.phone[data-slot="right"] {z-index:2;transform:translateX(29%) rotate(9deg) scale(.87)}
/* The side phones are dimmed in the frame's own filter, with its shadow: a filter on the
   button around a filter on the frame left Safari drawing only part of the phone. */
.phone .shot {transition:filter .35s ease}
.phone:not([data-slot="front"]) .shot {filter:brightness(.88) drop-shadow(0 12px 9px #241c2c55)}
.phone[data-slot="back"] {z-index:0;opacity:0;pointer-events:none;transform:scale(.8)}
.phone {transition:transform .48s cubic-bezier(.2,.72,.24,1),filter .35s ease,opacity .3s ease}
.sticker-float {position:absolute;z-index:4;width:16%;pointer-events:none;filter:drop-shadow(0 4px 3px #37233433)}
.sticker-float.a {top:12%;left:1%;transform:rotate(-12deg)}
.sticker-float.b {bottom:16%;left:0;transform:rotate(-7deg)}
.sticker-float.c {bottom:9%;right:0;transform:rotate(10deg)}
.fan-caption {min-height:2.8em;max-width:38ch;margin:20px auto 0;text-align:center;font-size:15px;line-height:1.4;color:var(--ink-soft)}
.fan-dots {justify-content:center}
.theme-section {
  display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-areas:"preview story" "choices choices";
  row-gap:24px;column-gap:clamp(28px,6vw,88px);align-items:center;padding-block:clamp(48px,6vw,84px);
}
.theme-section .sampler {grid-area:preview;align-self:stretch}
.theme-story {grid-area:story}
.theme-story dl {display:grid;gap:5px;margin:24px 0 0}
.theme-story dt {font-weight:800;font-size:19px}
.theme-story dd {margin:0;color:var(--ink-soft);max-width:42ch}
.theme-story dd + dt {margin-top:14px}
/* Paint the rim over the artwork as well as the card surface. */
.sampler,.feature-card,.slide,.talk {
  position:relative;isolation:isolate;border-radius:var(--panel-radius);box-shadow:var(--shadow);
}
.sampler::after,.feature-card::after,.slide::after,.talk::after {
  content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  border:1px solid var(--panel-line);border-radius:inherit;
}
/* Backgrounds and tile colors from DesignKit/Theme.swift. */
.sampler {
  --scene-top:#ffe1e6; --scene-bottom:#e2f2ea; --scene-tile:#ffc9ae; --scene-result:#c2ead6;
  display:flex;flex-direction:column;
  --panel-radius:28px;overflow:hidden;background:var(--card);
}
.sampler[data-world="sums"] {--scene-top:#fff0cc;--scene-bottom:#dde3fc;--scene-tile:#bfe0f5;--scene-result:#bfebd8}
.sampler[data-world="cat"] {--scene-top:#fff0d2;--scene-bottom:#ffd8b8;--scene-tile:#ffc9a3;--scene-result:#c3ead8}
.sampler[data-world="forest"] {--scene-top:#e4f0d4;--scene-bottom:#f8e7cc;--scene-tile:#e6d4ab;--scene-result:#c9e4b4}
.sampler[data-world="sky"] {--scene-top:#dcddf7;--scene-bottom:#ebddf2;--scene-tile:#fff0b8;--scene-result:#bcd7ff}
[data-theme="dark"] .sampler {--scene-top:#3a251d;--scene-bottom:#4f2734;--scene-tile:#f9b08b;--scene-result:#aad9c2}
[data-theme="dark"] .sampler[data-world="sums"] {--scene-top:#20244b;--scene-bottom:#482b4a;--scene-tile:#a1ceea;--scene-result:#a6dbc4}
[data-theme="dark"] .sampler[data-world="cat"] {--scene-top:#271a11;--scene-bottom:#3c2915;--scene-tile:#f8b281;--scene-result:#abd9c4}
[data-theme="dark"] .sampler[data-world="forest"] {--scene-top:#112723;--scene-bottom:#1a2815;--scene-tile:#d5c193;--scene-result:#b4d29d}
[data-theme="dark"] .sampler[data-world="sky"] {--scene-top:#121634;--scene-bottom:#1d1a3c;--scene-tile:#f9e495;--scene-result:#99bff9}
.sampler[data-world="summer"] {--scene-top:#d5ecf8;--scene-bottom:#fbefd6;--scene-tile:#b6dcf5;--scene-result:#cdebae}
.sampler[data-world="halloween"] {--scene-top:#ffe9d4;--scene-bottom:#f1e4f4;--scene-tile:#ffc08f;--scene-result:#d9c6f0}
.sampler[data-world="harvest"] {--scene-top:#fbefd2;--scene-bottom:#f8ddcc;--scene-tile:#ffe29a;--scene-result:#cbe3b4}
.sampler[data-world="christmas"] {--scene-top:#ddf1ea;--scene-bottom:#ffe3de;--scene-tile:#f7b9b4;--scene-result:#bfe5d4}
[data-theme="dark"] .sampler[data-world="summer"] {--scene-top:#1d2a4e;--scene-bottom:#643a4a;--scene-tile:#98caea;--scene-result:#b9dc94}
[data-theme="dark"] .sampler[data-world="halloween"] {--scene-top:#291b3c;--scene-bottom:#4f2b1c;--scene-tile:#f7aa6e;--scene-result:#c4abe2}
[data-theme="dark"] .sampler[data-world="harvest"] {--scene-top:#482c19;--scene-bottom:#362136;--scene-tile:#f8d378;--scene-result:#b7d19d}
[data-theme="dark"] .sampler[data-world="christmas"] {--scene-top:#183529;--scene-bottom:#471f24;--scene-tile:#ed9c95;--scene-result:#a9d3c0}
.scene {
  position:relative;isolation:isolate;overflow:hidden;flex:1 1 auto;aspect-ratio:1.35;min-height:295px;
  background:radial-gradient(ellipse at 47% 52%,#fff7e94d,transparent 60%),
    linear-gradient(160deg,var(--scene-top) 10%,var(--scene-bottom) 97%);
}
[data-theme="dark"] .scene {
  background:radial-gradient(ellipse at 52% 54%,color-mix(in srgb,var(--scene-tile) 20%,transparent),transparent 65%),
    linear-gradient(160deg,var(--scene-top),var(--scene-bottom));
}
.buddy,.motif,.sum {position:absolute}
.buddy {width:68%;height:61%;object-fit:contain;left:16%;top:34%;transform:rotate(-7deg);filter:drop-shadow(0 12px 7px #52386535)}
.motif {object-fit:contain;opacity:.45}
.m2 {width:16%;bottom:13%;left:5%;transform:rotate(-18deg)}
.m3 {width:13%;top:12%;right:6%;transform:rotate(13deg)}
.m6 {width:14%;right:8%;bottom:14%;transform:rotate(14deg)}
.sum {top:23%;left:22%;display:flex;align-items:center;gap:clamp(3px,.6vw,9px);transform:rotate(-9deg);color:#44364d;z-index:1}
.sum b:last-child {transform:rotate(8deg)}
.sum small {font:bold 22px var(--rounded);color:#5e4977}
[data-theme="dark"] .sum small {color:#fff}
.palette {
  flex:none;
  padding:15px clamp(12px,1.6vw,20px);box-shadow:inset 0 1px 0 var(--panel-line);
}
.palette small {display:block;font-size:14px;color:var(--ink-soft)}
.palette strong {overflow-wrap:anywhere;display:block;font-size:24px;letter-spacing:-.04em;line-height:1.25}
#sky-note {font-size:14px;color:var(--ink-soft)}
/* The card is the frame; the strip inside scrolls, fading at whichever end has more. */
.swatch-frame {
  grid-area:choices;position:relative;min-width:0;
  border:1px solid var(--panel-line);border-radius:20px;background:var(--card);box-shadow:var(--shadow);
}
.swatches {
  display:grid;grid-auto-flow:column;grid-auto-columns:minmax(7rem,1fr);
  gap:6px;padding:10px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;border-radius:inherit;
  mask-image:linear-gradient(to right,transparent,black var(--fade-start,0px),black calc(100% - var(--fade-end,0px)),transparent);
}
.swatches::-webkit-scrollbar {display:none}
.swatches[data-more-start] {--fade-start:44px}
.swatches[data-more-end] {--fade-end:44px}
.swatches button {
  display:grid;grid-template-rows:auto 1fr auto;justify-items:center;align-items:start;gap:6px;
  padding:8px 5px;border:2px solid transparent;border-radius:14px;background:transparent;color:var(--ink);
  font:750 15px/1.25 var(--rounded);cursor:pointer;overflow-wrap:anywhere;
}
.swatches img {width:clamp(76px,10vw,96px);height:clamp(76px,10vw,96px);object-fit:contain}
.theme-badge {
  padding:3px 8px;border-radius:999px;background:var(--tray);color:var(--ink-soft);
  font-size:12px;font-weight:700;line-height:1.3;
}
.scene-label {position:absolute;top:16px;left:16px;z-index:2;padding:6px 14px;font-size:16px}
[data-kind="dynamic"] .theme-badge {background:var(--secondary-face);color:var(--secondary-ink)}
[data-kind="seasonal"] .theme-badge {background:color-mix(in srgb,#e59d55 22%,var(--card));color:var(--ink)}
.swatches button:hover {background:var(--tray)}
.swatches button[aria-pressed="true"] {border-color:var(--purple);background:var(--tray)}
#play {background:var(--wash);border-block:1px solid var(--card-edge)}

h2 {font-size:clamp(40px,4.7vw,64px);text-wrap:balance}


#talk {padding-block:72px 28px}
.section-head {max-width:650px;margin:0 auto 30px;text-align:center}
.section-head p {color:var(--ink-soft)}
:focus-visible {outline:3px solid var(--purple);outline-offset:3px}
@media(max-width:800px) {
.hero {grid-template-columns:1fr}
.fan-wrap {width:min(100%,365px)}
.theme-section {grid-template-columns:1fr;grid-template-areas:"story" "preview" "choices"}
.theme-section .sampler {width:min(100%,560px);justify-self:center}
.hero {gap:32px}.scene {min-height:0;aspect-ratio:1.5}

}
@media(max-width:760px) {
header {padding:12px 0}.brand {font-size:26px}
header .wrap {position:relative;flex-wrap:wrap;gap:8px}
.brand img {width:48px;height:48px;border-radius:12px}
header nav {width:100%;align-items:center;gap:10px}
header nav a:not(.nav-cta) {display:block;font-size:16px;padding:8px 3px}
header nav #mode {position:absolute;right:clamp(22px,5vw,76px);top:2px}
header nav .nav-cta {margin-inline-start:auto}
nav .nav-cta {font-size:16px;padding-inline:14px;text-align:center;line-height:1.2}
}
@media(max-width:640px) {
.hero {padding-block:40px}
h1 {font-size:clamp(41px,10vw,60px)}.kicker {margin-bottom:12px}
.scene-label {left:12px;top:12px}.scene {aspect-ratio:1.23;min-height:270px}.palette {padding:12px}
.palette strong {font-size:22px}
}
@media(max-width:380px) {
  header .wrap {padding-inline:12px}
  header nav {gap:6px}
  header nav a:not(.nav-cta) {padding-inline:0}
  header nav #mode {right:12px}
  nav .nav-cta {padding-inline:8px;font-size:15px}
}

.showcase {padding-block:clamp(42px,6vw,84px);border-bottom:1px solid var(--card-edge)}
.tour-head {display:flex;align-items:center;justify-content:space-between;gap:12px}
.gallery-frame {position:relative;display:flow-root}
.gallery {display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;gap:32px;margin:14px -14px 0;padding:14px 14px 20px;scroll-padding-inline:14px;scrollbar-width:none}
.slide {
  --stage:#d39367;--light:#ffdfa0;--page:#f2debf;
  flex:0 0 100%;scroll-snap-align:start;display:grid;grid-template-columns:1fr 1fr;
  align-items:center;overflow:hidden;--panel-radius:32px;
  background:radial-gradient(ellipse at 17% 29%,var(--light),transparent 50%),
    linear-gradient(118deg,var(--stage),var(--page) 66%,color-mix(in srgb,var(--page) 78%,var(--card)));
}
.slide:nth-child(2) {--stage:#9a8eb9;--light:#e2c5f0;--page:#e2d5e5}
.slide.welcome-slide {--stage:#7bab9d;--light:#c5e6ca;--page:#d3e6d7}
[data-theme="dark"] .slide {--stage:#573742;--light:#926641;--page:#382934}
[data-theme="dark"] .slide:nth-child(2) {--stage:#413965;--light:#76628c;--page:#332c45}
[data-theme="dark"] .slide.welcome-slide {--stage:#304841;--light:#5b7761;--page:#253b39}
/* The scrap is a size container, so a device can be as tall as the scrap allows whatever
   its shape (--fit is its share of the height). A wide one may then be wider than the
   scrap: it's held to the scrap's inner edge and runs off the card's outer one, clipped. */
.scrap {position:relative;isolation:isolate;display:grid;place-items:center;align-self:stretch;grid-template:minmax(0,1fr) / minmax(0,1fr);container-type:size;min-height:clamp(440px,46vw,620px)}
/* A screenshot in its device. The frame is an SVG laid over the picture (its screen is a
   hole), and the picture sits under that hole: --frame-w/h are the SVG's viewBox, --screen
   the rect to fill (the hole, one unit larger all round so no edge shows) and its radius. */
.shot {
  --frame:url(/img/devices/frames/iphone.svg);--frame-w:286;--frame-h:576;
  --screen-x:16;--screen-y:16;--screen-w:254;--screen-h:544;--screen-r:41;
  --fit:.86;position:relative;display:block;width:min(calc(var(--fit) * 100cqh * var(--frame-w) / var(--frame-h)),124cqw);
  aspect-ratio:var(--frame-w) / var(--frame-h);
  filter:drop-shadow(0 12px 9px #241c2c55);
  transform:rotate(-3deg);cursor:zoom-in;
}
.shot::after {
  content:"";position:absolute;inset:0;pointer-events:none;
  background:var(--frame) center / 100% 100% no-repeat;
}
.slide:nth-child(odd) .shot {transform:rotate(3deg)}
.shot img {
  position:absolute;display:block;object-fit:cover;
  left:calc(var(--screen-x) / var(--frame-w) * 100%);top:calc(var(--screen-y) / var(--frame-h) * 100%);
  width:calc(var(--screen-w) / var(--frame-w) * 100%);height:calc(var(--screen-h) / var(--frame-h) * 100%);
  border-radius:calc(var(--screen-r) / var(--screen-w) * 100%) / calc(var(--screen-r) / var(--screen-h) * 100%);
}
.decal {position:absolute;width:19%;max-width:92px;pointer-events:none;filter:drop-shadow(0 4px 3px #3d30492a)}
.decal-0 {top:11%;left:6%;transform:rotate(-15deg)}
.decal-1 {bottom:9%;right:6%;transform:rotate(14deg)}
.decal-2 {bottom:19%;left:5%;transform:rotate(-9deg);width:15%}
/* Each slide scatters its stickers differently: fixed spots that look thrown down, kept to
   the edges so they frame the device, wide or tall. inset is top right bottom left. */
.slide:nth-child(2) .decal-0 {inset:7% 7% auto auto;transform:rotate(12deg)}
.slide:nth-child(2) .decal-1 {inset:auto auto 6% 8%;transform:rotate(-11deg)}
.slide:nth-child(2) .decal-2 {inset:auto 4% 27% auto;transform:rotate(7deg)}
.slide:nth-child(3) .decal-0 {inset:5% auto auto 12%;transform:rotate(8deg);width:16%}
.slide:nth-child(3) .decal-1 {inset:auto 9% 5% auto;transform:rotate(-13deg)}
.slide:nth-child(3) .decal-2 {inset:15% 5% auto auto;transform:rotate(18deg)}
.slide:nth-child(4) .decal-0 {inset:auto auto 8% 4%;transform:rotate(16deg)}
.slide:nth-child(4) .decal-1 {inset:9% 4% auto auto;transform:rotate(-7deg);width:17%}
.slide:nth-child(4) .decal-2 {inset:6% auto auto 9%;transform:rotate(-19deg)}
.slide:nth-child(5) .decal-0 {inset:13% auto auto 3%;transform:rotate(10deg);width:17%}
.slide:nth-child(5) .decal-1 {inset:auto 12% 4% auto;transform:rotate(5deg)}
.slide:nth-child(5) .decal-2 {inset:auto auto 5% 10%;transform:rotate(-16deg);width:16%}
.caption {padding:clamp(20px,4vw,58px)}
.caption h3 {font:850 clamp(32px,3.7vw,57px)/1.04 var(--rounded);letter-spacing:-.04em;margin:0;text-wrap:balance}
.caption p {color:var(--ink);font-size:clamp(17px,1.6vw,21px);line-height:1.55;max-width:31em}
.widget-section {
  overflow:clip;
  --widget-start:#d6bbdb;--widget-mid:#e3cada;--widget-end:#b9bbdf;--widget-light:#f3e1b8;
  background:radial-gradient(ellipse at 83% 58%,var(--widget-light),transparent 42%),
    linear-gradient(125deg,var(--widget-start),var(--widget-mid) 53%,var(--widget-end));
  border-block:1px solid color-mix(in srgb,var(--card-edge) 78%,transparent);
}
[data-theme="dark"] .widget-section {
  --widget-start:#342d4a;--widget-mid:#423149;--widget-end:#303453;--widget-light:#625047;
}
.widget-story {display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:7%;padding-block:60px}
.widget-story > * {min-width:0}
.widget-story figure {margin:0}
.widget-art {position:relative;isolation:isolate;display:grid;justify-items:center;padding:20px 16px}
.widget-art img {height:auto;filter:drop-shadow(0 4px 0 #3d304923) drop-shadow(0 14px 14px #2d172a55)}
.widget-small {justify-self:start;margin-left:8%;width:41%;transform:rotate(-6deg)}
.widget-medium {justify-self:end;width:87%;margin-top:-1%;transform:rotate(4deg)}
.widget-art [data-mode="dark"],[data-theme="dark"] .widget-art [data-mode="light"] {display:none}
[data-theme="dark"] .widget-art [data-mode="dark"] {display:block}
@media(max-width:740px) {
 .tour-head {flex-wrap:wrap}.tour-head h2 {font-size:clamp(36px,8vw,50px)}
 .slide,.widget-story {grid-template-columns:minmax(0,1fr)}
 .slide {grid-template-rows:1fr auto auto}.scrap {min-height:min(112vw,470px)}
 .caption p {margin-bottom:0}.widget-story {gap:20px}.widget-story figure {width:min(100%,400px);justify-self:center}
}

.symbol-library {position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}
.ui-icon {width:1.12em;height:1.12em;display:inline-block;vertical-align:-.17em;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
#mode .icon-sun,[data-theme="dark"] #mode .icon-moon {display:none}
[data-theme="dark"] #mode .icon-sun {display:block}
[data-theme="dark"] body {background-image:linear-gradient(155deg,color-mix(in srgb,var(--bg-top) 88%,#ebbbab),var(--bg-top) 55%,color-mix(in srgb,var(--bg-top) 86%,#aa8bb8))}
#play {background:linear-gradient(145deg,var(--wash),color-mix(in srgb,var(--wash) 68%,var(--bg-top)))}


.pager {width:fit-content;margin:-10px auto 0;position:relative}
.page-dots {display:flex;align-items:center}
.page-dots button {
  display:grid;place-items:center;height:44px;padding:0 3.5px;
  background:none;border:0;border-radius:9px;cursor:pointer;
}
.page-dots button::after {
  content:"";width:8px;height:8px;border-radius:999px;
  background:color-mix(in srgb,var(--ink-soft) 55%,transparent);
  transition:width .3s ease-in-out,background .3s ease-in-out;
}
.page-dots button[aria-current]::after {width:22px;background:var(--purple)}
@media (pointer:coarse) {.page-dots button {min-width:24px}}
.page-announcement {position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%)}

.gallery-intro {max-width:52ch;margin:16px 0 0;font-size:clamp(17px,1.55vw,20px);color:var(--ink-soft)}
.feature-notes {grid-column:1 / -1;align-self:end;padding:0 clamp(20px,4vw,58px) 8px}
.gallery[data-enhanced] .slide:not(.is-current) .feature-notes .disclosure-body {display:none}
.disclosure-body {overflow:hidden}
.disclosure-body > div {display:flow-root;padding-bottom:12px}
.feature-notes details {border-top:1px solid color-mix(in srgb,var(--ink) 22%,transparent)}
.feature-notes summary {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;font-weight:800;cursor:pointer;list-style:none}
.feature-notes summary::-webkit-details-marker {display:none}
.feature-notes summary::after {content:"";width:8px;height:8px;margin-right:4px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg)}
.feature-notes [open] summary:not([aria-expanded="false"])::after {transform:rotate(225deg)}
.feature-notes p {margin:0 0 12px;max-width:68ch}
.buddy-roster {display:grid;grid-template-columns:repeat(auto-fit,minmax(86px,1fr));gap:10px 6px;padding:0;list-style:none}
.buddy-roster li {text-align:center;font-size:13px}
.buddy-roster img {width:48px;height:48px;object-fit:contain;margin:0 auto 3px}

/* The app's background motifs drift by a fraction of their own size. */
@media (prefers-reduced-motion:no-preference) {
  .feature-notes summary::after {transition:transform .3s ease}
  .motif {animation:motif-drift 19s ease-in-out -4s infinite alternate}
  .m3 {animation-duration:15s;animation-delay:-11s}
  .m6 {animation-duration:12s;animation-delay:-2s}
  @keyframes motif-drift {
    from {translate:-8% 5%;rotate:-4deg;scale:.98}
    55% {translate:3% -10%;rotate:1deg;scale:1.025}
    to {translate:8% 6%;rotate:4deg;scale:1}
  }

  .is-current :is(.shot,.example-art,.decal,.caption h3,.caption > p,.feature-notes) {
    animation:slide-arrive .52s cubic-bezier(.22,.68,.18,1) var(--arrival,0s) backwards;
  }
  .is-current .caption h3 {--arrival:.06s}
  .is-current .decal-0 {--arrival:.10s}
  .is-current .caption > p {--arrival:.13s}
  .is-current .decal-1 {--arrival:.17s}
  .is-current .feature-notes {--arrival:.19s}
  .is-current .decal-2 {--arrival:.23s}
  @keyframes slide-arrive {
    from {opacity:.55;translate:var(--slide-offset,22px) 0}
    to {opacity:1;translate:0 0}
  }
}

.rail-section {padding-block:clamp(36px,5vw,65px)}
#rail-title {font-size:clamp(32px,4.4vw,58px)}
.rail-frame {position:relative;margin-top:18px}
.rail-chevron {
  position:absolute;top:calc(50% - 7px);translate:0 -50%;
  display:grid;place-items:center;width:44px;height:44px;padding:0;opacity:0;pointer-events:none;
}
.rail-chevron.previous {left:max(-28px,-4vw)}
.rail-chevron.next {right:max(-28px,-4vw)}
.rail-chevron::before {
  content:"";width:9px;height:9px;box-sizing:content-box;
  border:solid currentColor;border-width:0 2.5px 2.5px 0;
}
.rail-chevron.previous::before {transform:translateX(2px) rotate(135deg)}
.rail-chevron.next::before {transform:translateX(-2px) rotate(-45deg)}
:is(.gallery-frame,.swatch-frame) > .rail-chevron {top:50%}
.rail-chevron:focus-visible,
:is(.rail-frame,.gallery-frame,.swatch-frame):has(:focus-visible) > .rail-chevron {opacity:1;pointer-events:auto}
@media (hover:hover) {
  :is(.rail-frame,.gallery-frame,.swatch-frame):hover > .rail-chevron {opacity:1;pointer-events:auto}
}
@media (prefers-reduced-motion:no-preference) {
  .rail-chevron {transition:opacity .18s ease,transform .12s ease,box-shadow .12s ease}
}

.feature-rail {
  --gutter:clamp(16px,3.5vw,46px);
  display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 36px) / 3);gap:18px;
  overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;
  margin:0 calc(-1 * var(--gutter));padding:4px var(--gutter) 18px;
  scroll-padding-inline:var(--gutter);scrollbar-width:none;
  mask-image:linear-gradient(to right,transparent,black var(--gutter),black calc(100% - var(--gutter)),transparent);
}
.feature-rail::-webkit-scrollbar {display:none}
@media(max-width:900px) {.feature-rail {grid-auto-columns:calc((100% - 18px) / 2)}}
@media(max-width:600px) {.feature-rail {grid-auto-columns:100%}}
@media(pointer:fine) {.feature-rail {cursor:grab;user-select:none}}
.feature-rail.dragging {scroll-snap-type:none;cursor:grabbing}
.feature-card img {pointer-events:none}
.feature-card {
  scroll-snap-align:start;padding:22px;--panel-radius:22px;
  background:linear-gradient(145deg,color-mix(in srgb,var(--tint) 18%,var(--card)),var(--card) 76%);
  --tint:#e9ab40;
}
.feature-card:nth-child(2n) {--tint:#9985be}
.feature-card:nth-child(3n) {--tint:#68b49c}
.feature-card img {width:58px;height:58px;object-fit:contain;transform:rotate(-6deg)}
.feature-card h3 {margin:12px 0 6px;font-size:23px;line-height:1.15;letter-spacing:-.025em}
.feature-card p {margin:0;color:var(--ink-soft);line-height:1.5}

.slide.work-example {--stage:#80b3bd;--light:#c7e5dd;--page:#d6e6e4}
.slide.climb-example {--stage:#c3a0bb;--light:#f7cfaf;--page:#eddbdc}
[data-theme="dark"] .slide.work-example {--stage:#345a66;--light:#537d7e;--page:#273d47}
[data-theme="dark"] .slide.climb-example {--stage:#634052;--light:#946753;--page:#412e40}
.example-art {position:relative;width:min(82%,360px);--tile-size:clamp(25px,3vw,38px);--tile-fill:#eac9a5}
.work-paper {
  display:grid;justify-items:center;gap:22px;padding:30px 12px;transform:rotate(-3deg);
  color:#483c49;background-color:#fff2d8;border-radius:18px;border:1px solid #bcab8b;box-shadow:0 8px 18px #28202d35;
  background-image:linear-gradient(#9785aa1f 1px,transparent 1px),linear-gradient(90deg,#9785aa1f 1px,transparent 1px);
  background-size:16px 16px;
}
.example-sum {display:flex;gap:4px;align-items:center;font-weight:800}
.example-sum:last-child .number-tile:last-child {--tile-fill:#afdabf}
.dot-array {display:grid;grid-template-columns:repeat(4,1fr);gap:9px}
.dot-array i {width:clamp(18px,2.2vw,29px);aspect-ratio:1;border-radius:50%;background:#9879c2;box-shadow:inset 0 -3px #6d578d}
.dot-array i:nth-child(n+5) {background:#edac74;box-shadow:inset 0 -3px #c08859}
.dot-array i:nth-child(n+9) {background:#8abca8;box-shadow:inset 0 -3px #629281}
.stage-steps {display:grid;gap:14px}
.stage-step {display:grid;gap:6px;width:80%;padding:14px 18px;border-radius:18px;background:var(--card);border:1px solid var(--card-edge);box-shadow:var(--shadow)}
.stage-step small {display:flex;align-items:center;gap:8px;font-weight:800;color:var(--ink-soft)}
.stage-step strong {font-size:clamp(19px,2.2vw,30px);letter-spacing:-.03em}
.stage-step:nth-child(2) {justify-self:center;--tile-fill:#c4d9eb}
.stage-step:last-child {justify-self:end;--tile-fill:#d7c0e6}

/* The other devices' frames: iPad and the iPhone Duo open (wide), the Duo folded (a shorter
   phone). The iPhone is the default above. */
.scrap > .shot:is([data-device="ipad"],[data-device="duo"]) {--fit:.8;justify-self:end;margin-right:5%}
.shot[data-device="ipad"] {
  --frame:url(/img/devices/frames/ipad.svg);--frame-w:776;--frame-h:598;
  --screen-x:29;--screen-y:29;--screen-w:718;--screen-h:540;--screen-r:17;
}
.shot[data-device="duo"] {
  --frame:url(/img/devices/frames/duo.svg);--frame-w:572;--frame-h:420;
  --screen-x:16;--screen-y:16;--screen-w:540;--screen-h:388;--screen-r:26;
}
.shot[data-device="duo-folded"] {
  --frame:url(/img/devices/frames/duo-folded.svg);--frame-w:294;--frame-h:412;
  --screen-x:16;--screen-y:16;--screen-w:262;--screen-h:380;--screen-r:26;
}
/* Three devices on one slide, filling the scrap: the iPad behind, the iPhone and the open
   Duo standing in front of its lower corners. */
.device-trio {position:relative;width:min(100cqw,calc(94cqh * 100 / 78));aspect-ratio:100 / 78}
.device-trio .shot {position:absolute;transform:none}
.device-trio .shot[data-device="ipad"] {width:84%;left:3%;top:0;rotate:-2deg}
.device-trio .shot[data-device="iphone"] {width:24%;left:5%;bottom:0;rotate:-6deg}
.device-trio .shot[data-device="duo"] {width:52%;right:0;bottom:2%;rotate:4deg}
/* The sticker book's two are bigger than the scrap, held to its inner edge: the iPad runs
   off the card's outer edge, clipped. */
.device-duet {justify-self:end;margin-right:2%;width:min(128cqw,calc(100cqh * 100 / 70));aspect-ratio:100 / 70}
/* Two of them: the iPad behind, the iPhone in front at its inner corner. */
.device-duet .shot[data-device="ipad"] {width:84%;left:11%;top:2%;rotate:-6deg}
.device-duet .shot[data-device="iphone"] {width:24%;left:auto;right:1%;rotate:5deg}
@media(max-width:740px) {
 /* A narrow card is tall: the iPad across the top, the other two below it. */
 .device-trio {width:min(100cqw,calc(98cqh * 100 / 104));aspect-ratio:100 / 104}
 .device-trio .shot[data-device="ipad"] {width:96%;left:2%}
 .device-trio .shot[data-device="iphone"] {width:31%;left:6%}
 .device-trio .shot[data-device="duo"] {width:58%;right:1%;bottom:3%}
 .device-duet {justify-self:center;margin-right:0;width:min(126cqw,calc(98cqh * 100 / 104))}
 .device-duet .shot[data-device="iphone"] {width:36%;left:auto;right:14%}
}
/* Two screens of one feature, one behind the other: side by side when tall, stacked when wide. */
.device-pair {display:grid;place-items:center;justify-self:stretch}
/* Their places are a transform: the slide's arrival animates `translate`, which would
   otherwise hold both in the middle until it ended. */
.device-pair .shot {grid-area:1 / 1;--fit:.76}
.device-pair .shot:first-child {transform:translate(-34%,-5%) rotate(-6deg)}
.device-pair .shot:last-child {transform:translate(34%,5%) rotate(5deg)}
.device-pair .shot:is([data-device="ipad"],[data-device="duo"]) {--fit:.56}
.device-pair .shot:is([data-device="ipad"],[data-device="duo"]):first-child {transform:translate(-9%,-30%) rotate(-4deg)}
.device-pair .shot:is([data-device="ipad"],[data-device="duo"]):last-child {transform:translate(9%,30%) rotate(3deg)}

.devices {padding-block:24px 72px}
.device-cards {list-style:none;margin:30px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,2vw,26px)}
/* The device fills the top of its card and runs on behind the text, under a scrim that
   fades it into the card. Percentage padding on a grid item is a share of the card's own
   width, so the text starts at the same point on the art (its box is 74% of the width
   tall) whatever the card's size. */
.device-card {
  position:relative;display:grid;align-content:start;gap:8px;padding:60% 24px 26px;border-radius:30px;
  background:var(--card);border:1px solid var(--card-edge);box-shadow:0 4px 0 #3d304914,0 18px 30px -22px #2d172a66;
}
.device-card.is-yours {box-shadow:0 0 0 3px var(--purple),0 18px 30px -22px #2d172a66}
.device-art {
  position:absolute;inset:0 0 auto;aspect-ratio:100 / 74;overflow:hidden;border-radius:inherit;
  display:flex;align-items:flex-start;justify-content:center;gap:2%;padding:7% 3% 0;
}
.device-art::after {
  content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to bottom,transparent 50%,color-mix(in srgb,var(--card) 82%,transparent) 72%,var(--card) 84%);
}
.device-card > :not(.device-art) {position:relative}
.device-art .shot {flex:none;width:40%;transform:none;cursor:default}
.device-art .shot[data-device="ipad"] {width:80%}
.device-art .shot[data-device="duo-folded"] {width:32%}
.device-art .shot[data-device="duo"] {width:61%}
.device-card h3 {font:850 clamp(24px,2.2vw,30px)/1.1 var(--rounded);letter-spacing:-.02em;margin:0}
.device-card p {margin:0;color:var(--ink);line-height:1.5}
.device-req {color:var(--ink-soft);font-weight:700;font-size:14px}
.device-card > .device-yours {position:absolute;top:14px;right:14px;padding:4px 10px;border-radius:999px;background:var(--purple);color:#fff;font-size:13px}
.device-yours[hidden] {display:none}
@media(max-width:900px) {
 .device-cards {grid-template-columns:minmax(0,1fr)}
}
