/* pocklo.com. Page tokens here; the app mockups read the app's palettes from app-themes.css. */

:root {
  --bg: #f7f8fc;
  --bg-tint: #eff2f9;
  --surface: #ffffff;
  --surface-2: #f2f4fa;
  --ink: #1b2133;
  --ink-2: #2f3649;
  --muted: #566077;
  --line: #e2e6ef;
  --line-2: #d3d9e6;
  --accent: #3552cf;
  --btn: #3552cf;
  --btn-hover: #2c47bd;
  --btn-glow: rgb(53 82 207 / 0.5);
  --primary-soft: #e8edff;
  --focus: #3552cf;
  --brand: #4162ef;
  --violet: #7b5cf0;
  --spark: #efcb4c;
  --sticky: #ffe59a;
  --sticky-ink: #44391f;
  --marker: #ffe59a;
  --live: #17706a;
  --live-bg: #ddf3ef;
  --shadow-sm: 0 1px 2px rgb(31 42 81 / 0.05), 0 2px 8px rgb(31 42 81 / 0.04);
  --shadow-md: 0 1px 2px rgb(31 42 81 / 0.05), 0 12px 32px -10px rgb(31 42 81 / 0.16);
  --shadow-lg: 0 2px 6px rgb(31 42 81 / 0.05), 0 30px 70px -24px rgb(31 42 81 / 0.3);
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --gutter: clamp(16px, 4vw, 32px);
  --font-display:
    ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI Variable Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-text:
    system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  --font-app:
    -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0f1c;
    --bg-tint: #0e1426;
    --surface: #141b2e;
    --surface-2: #1a2238;
    --ink: #eef2fa;
    --ink-2: #d4dae8;
    --muted: #a3adc4;
    --line: #232c43;
    --line-2: #313c58;
    --accent: #a9b9ff;
    --btn: #4162ef;
    --btn-hover: #5370f2;
    --btn-glow: rgb(65 98 239 / 0.45);
    --primary-soft: #1c2650;
    --focus: #a9b9ff;
    --marker: rgb(239 203 76 / 0.34);
    --live: #6fd8c8;
    --live-bg: #133b3a;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.3);
    --shadow-md: 0 1px 2px rgb(0 0 0 / 0.3), 0 14px 34px -12px rgb(0 0 0 / 0.55);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 0.3), 0 34px 80px -24px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}

a {
  color: var(--accent);
}

img,
svg {
  display: block;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 8px;
}

::selection {
  background: color-mix(in srgb, var(--brand) 22%, transparent);
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.i {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow-md);
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 1200px);
  margin-inline: auto;
}

.wrap--narrow {
  width: min(100% - 2 * var(--gutter), 820px);
}

/* ---------- Type ---------- */

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.024em;
  text-wrap: balance;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.h3--lg {
  font-size: clamp(1.65rem, 1.2rem + 1.5vw, 2.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.h4 {
  font-weight: 650;
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent);
  font: 650 0.8125rem/1.2 var(--font-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow .i {
  width: 18px;
  height: 18px;
}

.lead {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-text);
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    background-color 0.2s,
    box-shadow 0.2s;
}

.btn .i {
  width: 18px;
  height: 18px;
}

.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 0.9375rem;
}

.btn--lg {
  height: 56px;
  padding: 0 28px;
  font-size: 1.0625rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--btn);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 10px 24px -10px var(--btn-glow);
}

.btn--primary:hover {
  background: var(--btn-hover);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.18),
    0 16px 30px -10px var(--btn-glow);
}

.btn--primary:hover .i {
  transform: translateX(2px);
}

.btn--primary .i {
  transition: transform 0.2s var(--ease);
}

.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px var(--line-2),
    var(--shadow-sm);
}

.btn--ghost:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--ink) 30%, transparent),
    var(--shadow-md);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(18px);
  backdrop-filter: saturate(1.8) blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
}

.brand__name {
  font: 700 1.3rem/1 var(--font-display);
  letter-spacing: -0.025em;
}

.nav__links {
  display: flex;
  gap: 2px;
  margin-left: 12px;
}

.nav__links a,
.nav__signin {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 550;
  text-decoration: none;
  transition:
    color 0.15s,
    background-color 0.15s;
}

.nav__links a:hover,
.nav__signin:hover {
  color: var(--ink);
  background: var(--surface-2);
}

.nav__signin {
  color: var(--ink);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav__toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav__burger,
.nav__burger::before,
.nav__burger::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition:
    transform 0.25s var(--ease),
    opacity 0.2s;
}

.nav__burger {
  position: relative;
}

.nav__burger::before,
.nav__burger::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav__burger::before {
  top: -6px;
}

.nav__burger::after {
  top: 6px;
}

.nav__toggle[aria-expanded='true'] .nav__burger {
  background: transparent;
}

.nav__toggle[aria-expanded='true'] .nav__burger::before {
  transform: translateY(6px) rotate(45deg);
}

.nav__toggle[aria-expanded='true'] .nav__burger::after {
  transform: translateY(-6px) rotate(-45deg);
}

.nav__menu {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.nav__menu nav {
  display: grid;
  padding: 4px 0 16px;
}

.nav__menu a {
  padding: 14px 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 550;
  text-decoration: none;
}

@media (max-width: 980px) {
  .nav__links,
  .nav__signin {
    display: none;
  }

  .nav__toggle {
    display: inline-grid;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(84px, 10vw, 136px);
}

.line {
  display: block;
}

.section--tint {
  background: var(--bg-tint);
}

section[id] {
  scroll-margin-top: 64px;
}

.section__head {
  max-width: 800px;
  margin: 0 auto clamp(44px, 6vw, 76px);
  text-align: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(40px, 6.5vw, 84px) 0 clamp(72px, 9vw, 120px);
}

.hero__bg {
  position: absolute;
  inset: -30% -20% -10%;
  z-index: -1;
  background:
    radial-gradient(34% 40% at 76% 34%, rgb(141 167 255 / 0.55), transparent 70%),
    radial-gradient(26% 32% at 92% 70%, rgb(196 181 255 / 0.5), transparent 70%),
    radial-gradient(26% 28% at 62% 84%, rgb(255 229 154 / 0.6), transparent 70%),
    radial-gradient(40% 44% at 14% 18%, rgb(221 229 255 / 0.9), transparent 70%);
  pointer-events: none;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(53 82 207 / 0.13) 1px, transparent 1.3px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(42% 46% at 70% 42%, #000, transparent 78%);
  mask-image: radial-gradient(42% 46% at 70% 42%, #000, transparent 78%);
}

@media (prefers-color-scheme: dark) {
  .hero__bg {
    background:
      radial-gradient(34% 40% at 76% 34%, rgb(65 98 239 / 0.38), transparent 70%),
      radial-gradient(26% 32% at 92% 70%, rgb(123 92 240 / 0.3), transparent 70%),
      radial-gradient(26% 28% at 62% 84%, rgb(239 203 76 / 0.12), transparent 70%),
      radial-gradient(40% 44% at 14% 18%, rgb(65 98 239 / 0.14), transparent 70%);
  }

  .hero__bg::after {
    background-image: radial-gradient(rgb(169 185 255 / 0.12) 1px, transparent 1.3px);
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--shadow-sm);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 600;
  isolation: isolate;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.pill__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1fa37a;
}

/* The ring breathes with transform and opacity only. Animating a shadow repainted the blurred badge
   on every frame, which held Safari to about 25 frames a second at the top of the page. */
.pill__dot::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -4px;
  border-radius: 50%;
  background: rgb(31 163 122 / 0.18);
  animation: pulse 2.6s ease-in-out infinite;
}

.hero__title {
  margin-top: 24px;
  font-family: var(--font-display);
  font-weight: 750;
  font-size: clamp(3.3rem, 1.6rem + 6vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero__title-2 {
  display: block;
  margin-top: 0.2em;
  color: var(--ink-2);
  font-size: 0.56em;
  line-height: 1.1;
  letter-spacing: -0.022em;
}

.hl {
  position: relative;
  z-index: 0;
  white-space: nowrap;
}

.hl::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -0.06em;
  right: -0.08em;
  bottom: 0.05em;
  height: 0.38em;
  border-radius: 0.18em 0.32em 0.22em 0.4em;
  background: var(--marker);
  transform: skewX(-8deg) rotate(-1.2deg);
  transform-origin: left center;
  animation: marker 0.9s 0.45s var(--ease) both;
}

.hero__lead {
  max-width: 560px;
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.35rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__meta .i {
  width: 16px;
  height: 16px;
  color: var(--live);
  stroke-width: 2.6;
}

.hero__stage {
  display: grid;
  justify-items: center;
}

.hero__device {
  position: relative;
}

.demo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  font: 600 0.8125rem/1 var(--font-text);
  cursor: pointer;
}

.demo-toggle:hover {
  color: var(--ink);
}

.demo-toggle .i {
  width: 14px;
  height: 14px;
}

@media (max-width: 1000px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__copy {
    max-width: 700px;
    margin-inline: auto;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__ctas,
  .hero__meta {
    justify-content: center;
  }

  .hero__stage {
    margin-top: 12px;
  }
}

@media (max-width: 520px) {
  .hero__ctas .btn {
    width: 100%;
  }
}

/* Floating cards around the hero phone */

.float {
  position: absolute;
  z-index: 3;
  animation: bob 7s ease-in-out infinite;
}

.float--notif {
  top: 58px;
  left: -214px;
  width: 300px;
}

.float--siri {
  top: 382px;
  right: -140px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 250px;
  padding: 10px 16px 10px 10px;
  border-radius: 22px;
  background: rgb(18 22 38 / 0.88);
  color: #fff;
  font: 500 0.875rem/1.35 var(--font-app);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  animation-delay: -2.5s;
}

.float--widget {
  bottom: 70px;
  left: -142px;
  animation-delay: -4.5s;
}

@media (max-width: 1180px) and (min-width: 1001px) {
  .float--notif {
    left: -150px;
  }

  .float--widget {
    left: -96px;
  }

  .float--siri {
    right: -100px;
  }
}

@media (max-width: 720px) {
  .float {
    display: none;
  }
}

/* ---------- Phone ---------- */

.phone {
  --ps: 0.74;
  --bz: 11px;
  position: relative;
  width: calc(390px * var(--ps) + 2 * var(--bz));
}

.phone::before,
.phone::after {
  content: '';
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8a90a0, #5a606e);
}

.phone::before {
  left: -3px;
  top: 21%;
  height: 58px;
}

.phone::after {
  right: -3px;
  top: 27%;
  height: 86px;
}

.phone__frame {
  position: relative;
  padding: var(--bz);
  border-radius: calc(56px * var(--ps) + var(--bz));
  background: #0a0c11;
  box-shadow:
    inset 0 0 0 1.5px #3b4150,
    0 0 0 1.5px #a9b0be,
    0 0 0 3px #464c59,
    0 44px 90px -30px rgb(22 32 72 / 0.5),
    0 20px 40px -22px rgb(22 32 72 / 0.4);
}

@media (prefers-color-scheme: dark) {
  .phone__frame {
    box-shadow:
      inset 0 0 0 1.5px #3b4150,
      0 0 0 1.5px #6e7686,
      0 0 0 3px #2b303b,
      0 44px 90px -30px rgb(0 0 0 / 0.8);
  }
}

.phone__island {
  position: absolute;
  z-index: 6;
  top: calc(var(--bz) + 11px * var(--ps));
  left: 50%;
  width: calc(122px * var(--ps));
  height: calc(35px * var(--ps));
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.phone__screen {
  position: relative;
  width: calc(390px * var(--ps));
  height: calc(844px * var(--ps));
  overflow: hidden;
  border-radius: calc(46px * var(--ps));
  background: var(--a-bg);
  isolation: isolate;
}

.phone__screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
  background: linear-gradient(118deg, rgb(255 255 255 / 0.1), transparent 32%);
  pointer-events: none;
}

@media (max-width: 520px) {
  .phone {
    --ps: 0.68;
    --bz: 10px;
  }
}

@media (max-width: 360px) {
  .phone {
    --ps: 0.62;
  }
}

/* ---------- App mockup (drawn at the app's own 390-point size) ---------- */

.app {
  position: absolute;
  top: 0;
  left: 0;
  width: 390px;
  height: 844px;
  overflow: hidden;
  background: var(--a-bg);
  color: var(--a-ink);
  font: 400 17px/22px var(--font-app);
  letter-spacing: -0.01em;
  transform: scale(var(--ps));
  transform-origin: 0 0;
  text-align: left;
}

.app .i,
.duet .i,
.duo .i,
.ls .i,
.widget .i,
.browser .i {
  stroke-width: 2;
}

.a-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 8px 30px 0 46px;
  font-size: 17px;
  font-weight: 600;
}

.a-status__icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.a-status__icons svg {
  width: 18px;
  height: 12px;
}

.a-status__icons svg:nth-child(2) {
  width: 16px;
}

.a-status__icons .a-status__battery {
  width: 27px;
  height: 13px;
}

.a-body {
  padding: 2px 16px 0;
}

.a-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
}

.a-mark {
  width: 32px;
  height: 32px;
  --m-pocket: var(--a-primary);
  --m-ink: var(--a-ink);
  --m-paper: var(--a-paper);
  --m-line: var(--a-deep);
  --m-spark: var(--a-amber);
}

.a-date {
  color: var(--a-muted);
  font-size: 15px;
  font-weight: 600;
}

.a-chips {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.a-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 13px;
  border-radius: 12px;
  background: var(--a-paper);
  box-shadow: inset 0 0 0 1px var(--a-line);
  font-size: 15px;
  font-weight: 600;
}

.a-chip .i {
  width: 17px;
  height: 17px;
  color: var(--a-muted);
}

.a-chip.is-on {
  background: var(--a-green);
  box-shadow: inset 0 0 0 1.5px var(--a-selected-border);
  color: var(--a-deep);
}

.a-chip.is-on .i {
  color: var(--a-deep);
}

.a-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 38px;
  margin-top: 12px;
  padding: 3px;
  border-radius: 12px;
  background: var(--a-soft);
}

.a-seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 9px;
  color: var(--a-muted);
  font-size: 15px;
  font-weight: 600;
}

.a-seg .i {
  width: 17px;
  height: 17px;
}

.a-seg .is-on {
  background: var(--a-raised);
  color: var(--a-ink);
  box-shadow: 0 1px 3px rgb(0 0 0 / 0.1);
}

.a-card {
  position: relative;
  border-radius: 18px;
  background: var(--a-paper);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--a-line) 55%, transparent),
    0 1px 2px color-mix(in srgb, var(--a-shadow) 8%, transparent),
    0 6px 18px -6px color-mix(in srgb, var(--a-shadow) 14%, transparent);
  color: var(--a-ink);
  font-family: var(--font-app);
  text-align: left;
}

.a-myday {
  margin-top: 14px;
  padding: 14px 16px 4px;
}

.a-myday__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.a-myday__head .i {
  color: var(--a-deep);
}

.a-myday__head strong {
  font-size: 17px;
  font-weight: 650;
}

.a-myday__head span {
  margin-left: auto;
  color: var(--a-muted);
  font-size: 15px;
}

.a-myday__row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  border-top: 1px solid var(--a-line);
  font-size: 16px;
}

.a-myday__row.is-done {
  color: var(--a-muted);
  text-decoration: line-through;
}

.a-circle {
  display: grid;
  flex: none;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.75px var(--a-control-border);
}

.a-circle.is-done {
  background: var(--a-primary);
  box-shadow: none;
  color: var(--a-on-primary);
}

.a-circle .i {
  width: 14px;
  height: 14px;
  stroke-width: 3.2;
}

.a-box {
  display: grid;
  flex: none;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1.75px var(--a-control-border);
}

.is-done > .a-box {
  background: var(--a-shopping);
  box-shadow: none;
  color: #fff;
}

.a-box .i {
  width: 14px;
  height: 14px;
  stroke-width: 3.2;
}

.a-group {
  margin: 18px 4px 8px;
  color: var(--a-muted);
  font-size: 15px;
  font-weight: 650;
}

.a-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 16px;
}

.a-row + .a-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 68px;
  right: 0;
  height: 1px;
  background: var(--a-line);
}

.a-row > .a-circle {
  margin-inline: 8px;
}

.a-row > .a-ring {
  margin-inline: 6px;
}

.a-row > .a-sticky {
  margin-inline: 8px;
}

.a-row > .a-glyph {
  margin-inline: 4px;
}

.a-row.is-new {
  animation: row-in 0.9s var(--ease) both;
}

.a-row.is-flash {
  animation: row-flash 1.2s var(--ease);
}

.a-row.is-done .a-title {
  color: var(--a-muted);
  text-decoration: line-through;
}

.a-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.a-title {
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
  line-height: 22px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.a-meta {
  overflow: hidden;
  color: var(--a-muted);
  font-size: 15px;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.a-tile {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 42px;
  border-radius: 10px;
  background: var(--a-appointment-bg);
}

.a-tile b {
  color: var(--a-appointment);
  font-size: 11px;
  font-weight: 700;
  line-height: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.a-tile span {
  font-size: 19px;
  font-weight: 700;
  line-height: 21px;
}

.a-ring {
  flex: none;
  width: 28px;
  height: 28px;
  transform: rotate(-90deg);
}

.a-ring__track,
.a-ring__fill {
  fill: none;
  stroke-width: 4.5;
}

.a-ring__track {
  stroke: var(--a-shopping-bg);
}

.a-ring__fill {
  stroke: var(--a-shopping);
  stroke-linecap: round;
  stroke-dasharray: var(--p) 100;
  transition: stroke-dasharray 0.8s var(--ease);
}

.a-sticky {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 4px 4px 9px 4px;
  background: var(--a-sticky);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--a-sticky-shadow) 40%, transparent);
  transform: rotate(-4deg);
}

.a-sticky::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 9px;
  height: 9px;
  border-radius: 7px 0 7px 0;
  background: var(--a-sticky-fold);
}

.a-glyph {
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--a-soft);
  color: var(--a-deep);
}

.a-glyph .i {
  width: 18px;
  height: 18px;
}

.a-avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--a-todo-bg);
  color: var(--a-todo);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.a-avatar--2 {
  background: var(--a-appointment-bg);
  color: var(--a-appointment);
}

.a-avatar--pending {
  box-shadow:
    0 0 0 2px var(--a-paper),
    0 0 0 3.5px color-mix(in srgb, var(--a-appointment) 70%, transparent);
}

/* Tab bar and the sticky-note New button */

.a-tabbar {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: 90px;
  padding: 8px 8px 26px;
  border-top: 1px solid var(--a-line);
  background: color-mix(in srgb, var(--a-paper) 94%, transparent);
}

.a-tabbar > span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--a-muted);
  font-size: 11px;
  font-weight: 600;
}

.a-tabbar > span > .i {
  width: 44px;
  height: 30px;
  padding: 3px 10px;
  border-radius: 12px;
}

.a-tabbar > .is-on {
  color: var(--a-deep);
}

.a-tabbar > .is-on > .i {
  background: var(--a-green);
}

.a-badge {
  position: absolute;
  top: -3px;
  left: calc(50% + 6px);
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--a-amber);
  color: var(--a-on-amber);
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 0 0 2px var(--a-paper);
}

.a-new__note {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 64px;
  height: 60px;
  margin-top: -20px;
  border-radius: 6px 6px 16px 6px;
  background: var(--a-sticky);
  color: var(--a-on-sticky);
  font-size: 15px;
  font-weight: 700;
  box-shadow: 0 8px 16px -4px color-mix(in srgb, var(--a-sticky-shadow) 40%, transparent);
  transform: rotate(-4deg);
}

.a-new__note::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  border-radius: 10px 0 12px 0;
  background: var(--a-sticky-fold);
}

.a-new__note .i {
  width: 22px;
  height: 22px;
}

/* Composer sheet and receipt toast (the hero demo) */

.a-scrim {
  position: absolute;
  z-index: 3;
  inset: 0;
  background: color-mix(in srgb, var(--a-scrim) 30%, transparent);
  opacity: 0;
  transition: opacity 0.35s;
}

.a-sheet {
  position: absolute;
  z-index: 4;
  left: 8px;
  right: 8px;
  bottom: 8px;
  padding: 10px 18px 20px;
  border-radius: 34px;
  background: var(--a-paper);
  box-shadow: 0 -8px 40px rgb(0 0 0 / 0.2);
  transform: translateY(112%);
  transition: transform 0.5s var(--ease);
}

.is-sheet .a-scrim {
  opacity: 1;
}

.is-sheet .a-sheet {
  transform: none;
}

.a-sheet__grabber {
  display: block;
  width: 38px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: 3px;
  background: var(--a-line);
}

.a-sheet__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.a-sheet__head span:first-child {
  color: var(--a-deep);
}

.a-sheet__head strong {
  font-weight: 650;
}

.a-sheet__field {
  min-height: 96px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--a-input);
  box-shadow: inset 0 0 0 2px var(--a-primary);
  font-size: 19px;
  line-height: 26px;
}

.a-caret {
  display: inline-block;
  width: 2px;
  height: 22px;
  margin-left: 1px;
  background: var(--a-primary);
  vertical-align: -4px;
  animation: blink 1s steps(1) infinite;
}

.a-sheet__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

/* From All spaces, Pocklo asks where a capture goes before filing it, as the app does. */
.a-pick {
  display: none;
  margin-top: 14px;
}

.is-pick .a-pick {
  display: block;
}

.is-pick .a-sheet__field,
.is-pick .a-sheet__foot {
  display: none;
}

.a-pick__title {
  font-size: 19px;
  font-weight: 650;
  line-height: 25px;
}

.a-pick .a-sub {
  margin-top: 2px;
}

.a-pick .a-choices {
  margin-top: 12px;
}

.a-sheet__tools {
  display: flex;
  gap: 18px;
  color: var(--a-muted);
}

.a-sheet__tools .i {
  width: 24px;
  height: 24px;
}

.a-sheet__mode {
  display: flex;
  padding: 3px;
  border-radius: 11px;
  background: var(--a-soft);
  font-size: 14px;
  font-weight: 600;
}

.a-sheet__mode span {
  padding: 6px 14px;
  border-radius: 8px;
  color: var(--a-muted);
}

.a-sheet__mode .is-on {
  background: var(--a-raised);
  color: var(--a-ink);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.1);
}

.a-send {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--a-primary);
  color: var(--a-on-primary);
  transition: transform 0.15s var(--ease);
}

.a-send.is-press {
  transform: scale(0.84);
}

.a-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--a-toast-bg);
  color: var(--a-on-toast);
  font-family: var(--font-app);
  text-align: left;
  box-shadow: 0 12px 30px -8px rgb(0 0 0 / 0.35);
}

.a-toast > .i {
  width: 20px;
  height: 20px;
  stroke-width: 2.6;
}

.a-toast__text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}

.a-toast__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
}

.a-toast__sub {
  font-size: 14px;
  line-height: 19px;
  opacity: 0.72;
}

.a-toast__sub:empty {
  display: none;
}

.a-toast__action {
  flex: none;
  color: var(--a-toast-action);
  font-size: 16px;
  font-weight: 650;
}

.a-toast--float {
  position: absolute;
  z-index: 5;
  left: 12px;
  right: 12px;
  bottom: 102px;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition:
    transform 0.5s var(--ease-spring),
    opacity 0.3s;
}

.is-toast .a-toast--float {
  opacity: 1;
  transform: none;
}

/* Shared app pieces used outside phones */

.a-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--a-deep);
  font-size: 12px;
  font-weight: 650;
  line-height: 16px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.a-eyebrow .i {
  width: 15px;
  height: 15px;
}

.a-headline {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 25px;
  letter-spacing: -0.02em;
}

.a-display {
  font-size: 25px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: -0.025em;
}

.a-sub {
  color: var(--a-muted);
  font-size: 14px;
  line-height: 19px;
}

.a-label {
  margin-top: 18px;
  margin-bottom: 2px;
  color: var(--a-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 18px;
}

.a-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--a-line);
  font-size: 16px;
  line-height: 21px;
}

.a-line .i {
  width: 16px;
  height: 16px;
  color: var(--a-muted);
}

.a-line--two {
  display: grid;
  grid-template-columns: 1fr auto;
  column-gap: 10px;
}

.a-line--two span {
  grid-row: 2;
  color: var(--a-muted);
  font-size: 14px;
  line-height: 19px;
}

.a-line--two .i {
  grid-row: 1 / 3;
  grid-column: 2;
  align-self: center;
}

.a-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--a-green);
  color: var(--a-deep);
  font-size: 14px;
  font-weight: 650;
}

.a-pill .i {
  width: 16px;
  height: 16px;
}

.a-choices {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.a-choices__pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.a-choice {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 50px;
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--a-soft);
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
}

.a-choice.is-rec {
  background: var(--a-primary);
  color: var(--a-on-primary);
}

.a-choice__rec {
  font-size: 13px;
  line-height: 17px;
  opacity: 0.85;
}

.a-choice__label {
  font-size: 17px;
  font-weight: 650;
}

.a-choice__sub {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 400;
  line-height: 19px;
  opacity: 0.88;
}

.a-answer {
  padding: 18px;
}

.a-source {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--a-soft);
}

.a-source .a-title {
  font-size: 15px;
  line-height: 20px;
}

.a-source .a-meta {
  font-size: 13px;
  line-height: 18px;
  white-space: normal;
}

.a-filters {
  display: flex;
  gap: 8px;
  padding: 0 16px 6px;
}

.a-filters span {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--a-soft);
  color: var(--a-muted);
  font-size: 14px;
  font-weight: 600;
}

.a-filters .is-on {
  background: var(--a-primary);
  color: var(--a-on-primary);
}

.a-feed {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--a-line);
  font-size: 15px;
  line-height: 20px;
}

.a-feed small {
  margin-left: auto;
  padding-left: 8px;
  color: var(--a-muted);
  font-size: 13px;
  white-space: nowrap;
}

.a-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--a-line);
  color: var(--a-muted);
  font-size: 14px;
}

.a-foot .i {
  width: 16px;
  height: 16px;
}

/* Day view inside the themes phone */

.day__ev {
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 650;
  line-height: 17px;
}

.day__ev small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
}

.day__ev--cal {
  border-left: 3px solid var(--a-control-border);
  background: var(--a-soft);
  color: var(--a-muted);
}

.day__ev--appt {
  border-left: 3px solid var(--a-appointment);
  background: var(--a-appointment-bg);
  color: var(--a-appointment);
}

.day__ev--todo {
  border-left: 3px solid var(--a-todo);
  background: var(--a-todo-bg);
  color: var(--a-todo);
}

.day__now {
  position: absolute;
  z-index: 1;
  right: 0;
  height: 2px;
  background: var(--a-error);
}

.day__now::before {
  content: '';
  position: absolute;
  left: -4px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--a-error);
}

/* ---------- Notifications, widgets, bubbles ---------- */

.notif {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 22px;
  font-family: var(--font-app);
  text-align: left;
}

.notif__icon {
  flex: none;
  box-sizing: border-box;
  width: 38px;
  height: 38px;
  padding: 5px;
  border-radius: 10px;
  background: #f6f8ff;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.07);
}

.notif__body {
  flex: 1;
  min-width: 0;
}

.notif__app {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  opacity: 0.62;
}

.notif__title {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 650;
  line-height: 20px;
}

.notif__text {
  font-size: 15px;
  line-height: 20px;
  opacity: 0.86;
}

.float .notif {
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--shadow-lg);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
}

.notif--glass {
  background: rgb(255 255 255 / 0.62);
  color: #10131c;
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  backdrop-filter: blur(24px) saturate(1.7);
}

.notif-actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.notif-actions span {
  flex: 1 1 auto;
  padding: 9px 10px;
  white-space: nowrap;
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--accent);
  font: 600 13px/1.2 var(--font-app);
  text-align: center;
}

.float .notif-actions span {
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--shadow-md);
}

.siri-orb {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: conic-gradient(from 20deg, #ff5fa2, #7a5cff, #3dd5ff, #7cffb2, #ffd15c, #ff5fa2);
  box-shadow: 0 0 18px rgb(122 92 255 / 0.55);
  animation: spin 7s linear infinite;
}

.widget {
  width: 168px;
  height: 168px;
  padding: 14px 14px 12px;
  border-radius: 24px;
  background: var(--a-paper);
  color: var(--a-ink);
  font-family: var(--font-app);
  text-align: left;
  box-shadow: var(--shadow-lg);
}

.widget__head {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--a-deep);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
}

.widget__head .i {
  width: 15px;
  height: 15px;
}

.widget__head--list {
  color: var(--a-shopping);
}

.widget__count {
  margin: 1px 0 6px;
  color: var(--a-muted);
  font-size: 12px;
  line-height: 16px;
}

.widget__row {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 29px;
  font-size: 13px;
  font-weight: 550;
}

.widget__row .a-circle,
.widget__row .a-box {
  width: 18px;
  height: 18px;
}

.widget__row .a-circle .i {
  width: 11px;
  height: 11px;
}

.widget__row.is-done {
  color: var(--a-muted);
  text-decoration: line-through;
}

.widget__head .widget__plus {
  width: 17px;
  height: 17px;
  margin-left: auto;
  color: var(--a-deep);
}

/* ---------- Tick lists ---------- */

.ticks {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 34px;
  color: var(--ink-2);
}

.ticks li::before,
.ticks li::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0.16em;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.ticks li::before {
  background: var(--primary-soft);
}

.ticks li::after {
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9'/%3E%3C/svg%3E")
    center / 18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}

.ticks strong {
  color: var(--ink);
  font-weight: 650;
}

/* Morning Brief */

.a-brief {
  width: min(100%, 410px);
  padding: 20px 20px 18px;
}

.a-brief__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.a-brief__x {
  width: 18px;
  height: 18px;
  color: var(--a-muted);
}

.a-brief__hello {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.a-brief__h {
  margin-top: 18px;
  font-size: 17px;
  line-height: 22px;
}

.a-brief .a-sub {
  margin-bottom: 4px;
}

/* ---------- A day with Pocklo ---------- */

/* Registered so the sky's gradient can ease from one hour to the next. */
@property --sky-a {
  syntax: '<color>';
  inherits: false;
  initial-value: #fce3c9;
}

@property --sky-b {
  syntax: '<color>';
  inherits: false;
  initial-value: #f7d3dd;
}

@property --sky-c {
  syntax: '<color>';
  inherits: false;
  initial-value: #e4e3fb;
}

.story {
  --story-ink: var(--ink);
  /* Darker than the page's muted gray so it holds 4.5:1 on every sky. */
  --story-muted: #3d4557;
  --story-accent: #b4532a;
  position: relative;
  padding-top: clamp(84px, 10vw, 136px);
}

.story[data-step='2'] {
  --story-accent: #2f55d4;
}

.story[data-step='3'] {
  --story-accent: #9a5200;
}

.story[data-step='4'] {
  --story-accent: #6e44c4;
}

.story[data-step='5'] {
  --story-accent: #c7d2ff;
  --story-ink: #f3f5ff;
  --story-muted: #c3cae4;
}

@media (prefers-color-scheme: dark) {
  .story[data-step] {
    --story-ink: var(--ink);
    --story-muted: var(--muted);
  }

  .story[data-step='1'] {
    --story-accent: #ffb38a;
  }

  .story[data-step='2'] {
    --story-accent: #a9c0ff;
  }

  .story[data-step='3'] {
    --story-accent: #ffcc80;
  }

  .story[data-step='4'] {
    --story-accent: #cdb8ff;
  }

  .story[data-step='5'] {
    --story-accent: #c7d2ff;
  }
}

.story__head {
  margin-bottom: 0;
}

.story__track {
  position: relative;
  isolation: isolate;
}

/* The sky fades in from the page and back out into the next section. */
.story__track::before,
.story__track::after {
  content: '';
  position: absolute;
  z-index: 1;
  left: 0;
  right: 0;
  height: 22vh;
  pointer-events: none;
}

.story__track::before {
  top: 0;
  background: linear-gradient(var(--bg), transparent);
}

.story__track::after {
  bottom: 0;
  background: linear-gradient(transparent, var(--bg));
}

/* The sky pins inside a layer exactly as tall as the story, so it never spills past it. */
.story__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.story__sky {
  position: sticky;
  top: 0;
  display: block;
  height: 100vh;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sky-a) 0%, var(--sky-b) 55%, var(--sky-c) 100%);
  transition:
    --sky-a 1.4s var(--ease),
    --sky-b 1.4s var(--ease),
    --sky-c 1.4s var(--ease);
}

.story[data-step='1'] .story__sky {
  --sky-a: #fce3c9;
  --sky-b: #f7d3dd;
  --sky-c: #e4e3fb;
}

.story[data-step='2'] .story__sky {
  --sky-a: #d6e6ff;
  --sky-b: #e6effe;
  --sky-c: #f4f6fc;
}

.story[data-step='3'] .story__sky {
  --sky-a: #ffe4b0;
  --sky-b: #ffd3bf;
  --sky-c: #f1e1f3;
}

.story[data-step='4'] .story__sky {
  --sky-a: #c8c0f4;
  --sky-b: #ecc3dd;
  --sky-c: #fadfd3;
}

.story[data-step='5'] .story__sky {
  --sky-a: #0b1030;
  --sky-b: #161b45;
  --sky-c: #2a2460;
}

@media (prefers-color-scheme: dark) {
  .story[data-step='1'] .story__sky {
    --sky-a: #2a2133;
    --sky-b: #231d33;
    --sky-c: #121829;
  }

  .story[data-step='2'] .story__sky {
    --sky-a: #12233f;
    --sky-b: #101b34;
    --sky-c: #0c1324;
  }

  .story[data-step='3'] .story__sky {
    --sky-a: #33281a;
    --sky-b: #2b2030;
    --sky-c: #141729;
  }

  .story[data-step='4'] .story__sky {
    --sky-a: #241d4a;
    --sky-b: #2c1c40;
    --sky-c: #191629;
  }

  .story[data-step='5'] .story__sky {
    --sky-a: #05081a;
    --sky-b: #0a0e26;
    --sky-c: #120f2e;
  }
}

/* A soft sun crosses the sky through the day; the moon and stars take the night. */
.story__sun,
.story__moon {
  position: absolute;
  left: 0;
  top: 0;
  width: 46vmin;
  height: 46vmin;
  margin: -23vmin 0 0 -23vmin;
  border-radius: 50%;
  pointer-events: none;
  transition:
    transform 1.8s var(--ease),
    opacity 1.4s var(--ease);
}

.story__sun {
  background: radial-gradient(
    circle,
    rgb(255 244 214 / 0.95) 0 15%,
    rgb(255 205 150 / 0.5) 38%,
    rgb(255 190 150 / 0) 68%
  );
  transform: translate(12vw, 76vh);
}

.story__moon {
  background: radial-gradient(
    circle,
    rgb(238 242 255 / 0.95) 0 9%,
    rgb(180 196 255 / 0.28) 26%,
    rgb(160 180 255 / 0) 60%
  );
  opacity: 0;
  transform: translate(64vw, 62vh);
}

.story[data-step='2'] .story__sun {
  transform: translate(20vw, 50vh);
}

.story[data-step='3'] .story__sun {
  transform: translate(74vw, 30vh);
}

.story[data-step='4'] .story__sun {
  opacity: 0.75;
  transform: translate(90vw, 80vh);
}

.story[data-step='5'] .story__sun {
  opacity: 0;
  transform: translate(100vw, 116vh);
}

.story[data-step='5'] .story__moon {
  opacity: 1;
  transform: translate(26vw, 20vh);
}

@media (prefers-color-scheme: dark) {
  .story__sun {
    opacity: 0.28;
  }

  .story[data-step='4'] .story__sun {
    opacity: 0.22;
  }
}

.story__stars {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image:
    radial-gradient(1.6px 1.6px at 6% 12%, #fff 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 14% 36%, #fff 50%, transparent 55%),
    radial-gradient(1.8px 1.8px at 22% 8%, #fff 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 31% 26%, #fff 50%, transparent 55%),
    radial-gradient(1.4px 1.4px at 38% 58%, #fff 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 45% 16%, #fff 50%, transparent 55%),
    radial-gradient(1.6px 1.6px at 52% 40%, #fff 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 58% 9%, #fff 50%, transparent 55%),
    radial-gradient(1.4px 1.4px at 66% 30%, #fff 50%, transparent 55%),
    radial-gradient(1.8px 1.8px at 73% 14%, #fff 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 81% 44%, #fff 50%, transparent 55%),
    radial-gradient(1.4px 1.4px at 88% 22%, #fff 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 94% 6%, #fff 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 9% 68%, #fff 50%, transparent 55%),
    radial-gradient(1.4px 1.4px at 61% 72%, #fff 50%, transparent 55%),
    radial-gradient(1.2px 1.2px at 92% 66%, #fff 50%, transparent 55%);
  transition: opacity 1.6s var(--ease);
}

.story[data-step='5'] .story__stars {
  opacity: 0.9;
}

/* Steps on one side, the phone pinned on the other. */
.story__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: clamp(24px, 5vw, 80px);
}

.story__steps {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
  padding: 10vh 0 16vh;
  list-style: none;
}

.story__step {
  display: flex;
  align-items: center;
  min-height: 86vh;
}

.story__card {
  max-width: 470px;
}

.story__time {
  margin-bottom: 14px;
  color: var(--story-muted);
  font: 700 clamp(2.8rem, 1.8rem + 3vw, 4.6rem) / 1 var(--font-display);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  transition: color 0.8s var(--ease);
}

.story__step.is-active .story__time {
  color: var(--story-accent);
}

.story__time span {
  margin-left: 0.16em;
  font-size: 0.36em;
  letter-spacing: 0.04em;
}

.story__card .h3 {
  color: var(--story-ink);
  transition: color 0.8s var(--ease);
}

.story__card > p:not(.story__time) {
  margin-top: 14px;
  color: var(--story-muted);
  font-size: 1.0625rem;
  transition: color 0.8s var(--ease);
}

.story__card > p.story__note {
  margin-top: 10px;
  font-size: 0.95rem;
}

/* First in the markup, so it can pin above the cards on small screens. */
.story__stage {
  grid-column: 2;
  grid-row: 1;
  position: sticky;
  top: 64px;
  z-index: 1;
  display: grid;
  place-items: center;
  align-self: start;
  height: calc(100vh - 64px);
}

.phone--story {
  --ps: 0.72;
}

/* Each hour is a scene; the active step shows its scene and plays it. */
.story__app {
  background: #000;
}

.scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.03);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease),
    visibility 0s linear 0.6s;
}

.story[data-step='1'] .scene--1,
.story[data-step='2'] .scene--2,
.story[data-step='3'] .scene--3,
.story[data-step='4'] .scene--4,
.story[data-step='5'] .scene--5 {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease),
    visibility 0s;
}

.scene--app {
  background: var(--a-bg);
  color: var(--a-ink);
}

.a-screen-title {
  margin: 12px 4px 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 36px;
  letter-spacing: -0.02em;
}

.a-screen-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 4px 14px;
  color: var(--a-muted);
  font-size: 15px;
  line-height: 20px;
}

.a-screen-sub .i {
  width: 16px;
  height: 16px;
}

.a-brief--phone {
  width: auto;
  padding: 16px 18px;
}

.a-brief--phone .a-display {
  font-size: 21px;
  line-height: 26px;
}

.story__toast {
  position: absolute;
  z-index: 5;
  left: 12px;
  right: 12px;
  bottom: 102px;
}

.story__feed {
  padding: 4px 16px;
}

.story__feed .a-feed {
  gap: 12px;
  padding: 14px 0;
  font-size: 16px;
  line-height: 21px;
}

.story__feed .a-feed:first-child {
  border-top: 0;
}

.story__feed .a-avatar {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.story__feed b {
  font-weight: 650;
}

/* Lock Screens */

.ls {
  color: #fff;
  font-family: var(--font-app);
  text-align: center;
}

.ls::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 40% at 30% 10%, rgb(255 255 255 / 0.22), transparent 70%);
  pointer-events: none;
}

.ls > * {
  position: relative;
}

.ls--dawn {
  background: linear-gradient(172deg, #f3b58f 0%, #e99cb2 44%, #9c9ee8 100%);
}

.ls--afternoon {
  background: linear-gradient(168deg, #ffcf80 0%, #f79e74 48%, #b57fca 100%);
}

.ls--night {
  background:
    radial-gradient(120% 60% at 50% 0%, #2c3170, transparent 62%),
    linear-gradient(172deg, #0c1131 0%, #191c47 55%, #2c2461 100%);
}

.ls--night::before {
  display: none;
}

.ls__bar {
  display: flex;
  justify-content: flex-end;
  height: 54px;
  padding: 20px 30px 0;
}

.ls__date {
  margin-top: 34px;
  font-size: 21px;
  font-weight: 600;
  opacity: 0.94;
}

.ls__time {
  margin-top: 2px;
  font: 700 104px/1 var(--font-display);
  letter-spacing: -0.02em;
  text-shadow: 0 2px 24px rgb(40 30 110 / 0.18);
}

.ls__widget {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 7px 15px 7px 9px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.2);
  font-size: 15px;
  font-weight: 600;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.ls__mark {
  width: 22px;
  height: 22px;
  --m-pocket: #fff;
  --m-paper: rgb(30 30 60 / 0.35);
  --m-ink: rgb(255 255 255 / 0.7);
  --m-line: #fff;
  --m-spark: #fff;
}

.ls__notifs {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 336px;
  text-align: left;
}

.ls__notif {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: rgb(255 255 255 / 0.62);
  color: #11141d;
  box-shadow: 0 10px 30px rgb(40 30 110 / 0.18);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
}

.ls__icon {
  flex: none;
  box-sizing: border-box;
  width: 42px;
  height: 42px;
  padding: 6px;
  border-radius: 11px;
  background: #f6f8ff;
}

.ls__body {
  flex: 1;
  min-width: 0;
}

.ls__app {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  line-height: 18px;
  opacity: 0.6;
}

.ls__title {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 650;
  line-height: 21px;
}

.ls__text {
  font-size: 16px;
  line-height: 21px;
  opacity: 0.86;
}

.ls__menu {
  position: relative;
  width: 252px;
  margin: 10px 0 0 auto;
  overflow: hidden;
  border-radius: 16px;
  background: rgb(250 250 253 / 0.86);
  color: #11141d;
  box-shadow: 0 12px 30px rgb(40 30 110 / 0.2);
  transform-origin: 85% 0;
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

.ls__menu > span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: 12px 16px;
  border-top: 1px solid rgb(0 0 0 / 0.08);
  font-size: 17px;
}

.ls__menu > span:first-child {
  border-top: 0;
}

.ls__menu .i {
  width: 19px;
  height: 19px;
}

.ls__dock {
  position: absolute;
  left: 46px;
  right: 46px;
  bottom: 54px;
  display: flex;
  justify-content: space-between;
}

.ls__round {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.2);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.ls__round .i {
  width: 24px;
  height: 24px;
}

.ls__home {
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 138px;
  height: 5px;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.9);
  transform: translateX(-50%);
}

.ls__stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 28% 9%, #fff 50%, transparent 55%),
    radial-gradient(2px 2px at 44% 22%, #fff 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 63% 12%, #fff 50%, transparent 55%),
    radial-gradient(2px 2px at 80% 26%, #fff 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 91% 8%, #fff 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 18% 44%, #fff 50%, transparent 55%),
    radial-gradient(2px 2px at 86% 52%, #fff 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 8% 62%, #fff 50%, transparent 55%),
    radial-gradient(1.5px 1.5px at 72% 70%, #fff 50%, transparent 55%);
  opacity: 0.85;
}

/* Where each scene ends up. A scene that is playing starts from its first frame. */
.scene--3 .ls__notifs {
  opacity: 0;
}

.scene--3 .swap > span:first-child {
  opacity: 0;
}

.scene--3 .swap > span + span {
  opacity: 1;
}

.story[data-step='1'] .scene--1 .ls__drop {
  animation: ls-drop 0.75s 0.45s var(--ease-spring) both;
}

.story[data-step='2'] .scene--2 .story__pick {
  animation: press 0.45s 1.45s;
}

.story[data-step='2'] .scene--2 .tap {
  animation: tap 0.75s 1.4s both;
}

.story[data-step='2'] .scene--2 .story__toast {
  animation: toast-up 0.6s 1.9s var(--ease-spring) both;
}

.story[data-step='3'] .scene--3 .ls__drop {
  animation:
    ls-drop 0.75s 0.45s var(--ease-spring) both,
    ls-press 0.4s 1.55s var(--ease);
}

.story[data-step='3'] .scene--3 .ls__menu {
  animation: ls-menu 0.5s 1.8s var(--ease-spring) both;
}

.story[data-step='3'] .scene--3 .ls__done {
  animation: ls-pick 0.45s 2.95s both;
}

.story[data-step='3'] .scene--3 .ls__done .tap {
  animation: tap 0.7s 2.9s both;
}

.story[data-step='3'] .scene--3 .ls__notifs {
  animation: ls-away 0.55s 3.5s var(--ease) both;
}

.story[data-step='3'] .scene--3 .swap > span:first-child {
  animation: fade-out 0.3s 3.9s both;
}

.story[data-step='3'] .scene--3 .swap > span + span {
  animation: fade-in 0.4s 4s both;
}

.story[data-step='4'] .scene--4 .story__row {
  animation: row-drop 0.55s 0.3s var(--ease) both;
}

.story[data-step='4'] .scene--4 .story__row:nth-child(2) {
  animation-delay: 0.5s;
}

.story[data-step='4'] .scene--4 .story__row:nth-child(3) {
  animation-delay: 0.7s;
}

.story[data-step='4'] .scene--4 .story__row:nth-child(4) {
  animation-delay: 0.9s;
}

.story[data-step='5'] .scene--5 .ls__stars {
  animation: fade-in 1.6s 0.3s both;
}

.story[data-step='5'] .scene--5 .ls__widget {
  animation: rise 0.7s 1s var(--ease) both;
}

/* On small screens the phone stays near the top and each hour's card slides up over it. */
@media (max-width: 899px) {
  .story__grid {
    display: block;
  }

  .story__stage {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    height: calc(100vh - 64px);
    height: calc(100svh - 64px);
    padding-top: 14px;
  }

  .story__steps {
    position: relative;
    z-index: 2;
    margin-top: calc(-100vh + 64px);
    margin-top: calc(-100svh + 64px);
    padding: 0 0 26vh;
  }

  .story__step {
    align-items: flex-end;
    min-height: calc(100vh - 64px);
    min-height: calc(100svh - 64px);
    padding-bottom: 18px;
  }

  .story__card {
    width: 100%;
    max-width: 520px;
    margin-inline: auto;
    padding: 18px 20px 20px;
    border-radius: 24px;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    box-shadow: var(--shadow-md);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
  }

  .story[data-step='5'] .story__card {
    background: rgb(16 20 52 / 0.66);
  }

  .story__time {
    margin-bottom: 8px;
    font-size: 2.3rem;
  }

  .story__card > p:not(.story__time) {
    margin-top: 10px;
    font-size: 1rem;
  }
}

/* ---------- Capture from anywhere ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.tile {
  position: relative;
  display: flex;
  grid-column: span 2;
  flex-direction: column;
  gap: 26px;
  padding: 28px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--shadow-sm);
}

.tile--siri,
.tile--widgets {
  grid-column: span 3;
}

.tile--web {
  grid-column: span 4;
}

.tile__tag {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.new {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tile__copy .h3 {
  margin-top: 10px;
}

.tile__copy p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.tile--siri {
  background: #141935 radial-gradient(120% 90% at 100% 100%, #2c3274 0%, #161b38 48%, #0e1122 100%);
  color: #eef1ff;
  box-shadow: var(--shadow-md);
}

.tile--siri .tile__copy p,
.tile--siri .tile__tag {
  color: rgb(238 241 255 / 0.74);
}

.tile--siri .new {
  background: rgb(255 255 255 / 0.14);
  color: #fff;
}

.siri {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  font-family: var(--font-app);
}

.siri__you {
  align-self: flex-end;
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 20px 20px 6px 20px;
  background: rgb(255 255 255 / 0.13);
  font-size: 15px;
  font-weight: 500;
  line-height: 20px;
}

.siri__reply {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 92%;
  padding: 12px 16px 12px 12px;
  border-radius: 20px 20px 20px 6px;
  background: rgb(255 255 255 / 0.94);
  color: #121629;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.homescreen {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: auto;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(135deg, #c9d4ff, #e8d8ff 52%, #ffe6c2);
}

.homescreen .widget {
  box-shadow: 0 10px 30px -10px rgb(31 42 81 / 0.35);
}

@media (prefers-color-scheme: dark) {
  .homescreen {
    background: linear-gradient(135deg, #1f2b5e, #3a2b62 52%, #5b4032);
  }
}

.photos {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.photo {
  position: relative;
  flex: 1;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.06);
}

.photo--1 {
  background: linear-gradient(170deg, #ffe0a8, #ff9f7a);
}

.photo--1::before {
  content: '';
  position: absolute;
  top: 16%;
  left: 50%;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff4c9;
  transform: translateX(-50%);
  box-shadow: 0 0 0 8px rgb(255 244 201 / 0.35);
}

.photo--1::after,
.photo--2::after {
  content: '';
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 14%;
  height: 26%;
  background:
    linear-gradient(#fff 0 0) 0 0 / 80% 18% no-repeat,
    linear-gradient(#fff 0 0) 0 50% / 100% 14% no-repeat,
    linear-gradient(#fff 0 0) 0 100% / 60% 14% no-repeat;
  opacity: 0.85;
}

.photo--2 {
  background: linear-gradient(170deg, #c8ecd6, #5fb58c);
}

.photo--2::before {
  content: '';
  position: absolute;
  top: 14%;
  left: 18%;
  right: 18%;
  height: 40%;
  border-radius: 999px 999px 12px 12px;
  background: rgb(255 255 255 / 0.5);
}

.photo--3 {
  display: grid;
  place-items: center;
  background: linear-gradient(170deg, #b9ccff, #6c7ff5);
  color: #fff;
}

.photo--3 small {
  font: 700 1.25rem/1 var(--font-display);
}

.browser {
  margin-top: auto;
  overflow: hidden;
  border-radius: 16px;
  background: var(--a-bg);
  color: var(--a-ink);
  font-family: var(--font-app);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--shadow-md);
}

.browser__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}

.browser__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.browser__bar i:nth-child(2) {
  background: #febc2e;
}

.browser__bar i:nth-child(3) {
  background: #28c840;
}

.browser__bar span {
  position: absolute;
  left: 50%;
  padding: 4px 36px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  transform: translateX(-50%);
}

.browser__body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 200px;
}

.browser__side {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  border-right: 1px solid var(--a-line);
  background: var(--a-sidebar);
  color: var(--a-muted);
  font-size: 14px;
  font-weight: 600;
}

.browser__side .a-mark {
  width: 28px;
  height: 28px;
  margin: 0 0 10px 6px;
}

.browser__side span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
}

.browser__side .i {
  width: 17px;
  height: 17px;
}

.browser__side .is-on {
  background: var(--a-green);
  color: var(--a-deep);
}

.browser__main {
  padding: 6px 4px;
}

@media (max-width: 1000px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile,
  .tile--widgets {
    grid-column: span 1;
  }

  .tile--siri,
  .tile--web {
    grid-column: span 2;
  }
}

@media (max-width: 640px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }

  .tile,
  .tile--siri,
  .tile--widgets,
  .tile--web {
    grid-column: auto;
  }

  .tile {
    padding: 24px;
  }

  .homescreen {
    gap: 10px;
    padding: 16px 10px;
  }

  .homescreen .widget {
    width: 146px;
    height: 150px;
    padding: 12px;
  }

  .browser__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .browser__side {
    display: none;
  }
}

/* ---------- Household ---------- */

/* Two phones in one home: what Alex does shows up on Sam's phone, and back. */
.duet {
  display: grid;
  justify-items: center;
  max-width: 960px;
  margin: 0 auto;
}

.duet__stage {
  display: grid;
  grid-template-columns: auto minmax(56px, 150px) auto;
  align-items: center;
  justify-content: center;
}

.duet__side {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin: 0;
}

.phone--duet {
  --ps: 0.72;
  -webkit-mask-image: linear-gradient(#000 84%, transparent);
  mask-image: linear-gradient(#000 84%, transparent);
}

.phone--duet .phone__frame {
  padding-bottom: 0;
}

.phone--duet .phone__screen {
  height: calc(540px * var(--ps));
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.duet__who {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.duet__who .a-avatar {
  width: 24px;
  height: 24px;
  font-size: 11px;
}

.duet__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px 14px;
}

.duet__avatars {
  display: flex;
  margin-left: auto;
}

.duet__avatars .a-avatar + .a-avatar {
  margin-left: -6px;
  box-shadow: 0 0 0 2px var(--a-bg);
}

.duet .a-filters {
  padding: 0 0 12px;
}

.duet .a-list {
  transition: opacity 0.4s var(--ease);
}

.duet.is-resetting .a-list {
  opacity: 0.25;
}

.duet .a-row .tap {
  --tx: 46%;
}

/* Who's on it: nobody yet, asked (a ring), then taken. */
.duet__badge {
  opacity: 0;
  transform: scale(0.5);
  transition:
    opacity 0.35s var(--ease),
    transform 0.5s var(--ease-spring),
    box-shadow 0.3s;
}

[data-state='asked'] .duet__badge,
[data-state='taken'] .duet__badge {
  opacity: 1;
  transform: none;
}

[data-state='asked'] .duet__badge {
  box-shadow:
    0 0 0 2px var(--a-paper),
    0 0 0 3.5px color-mix(in srgb, var(--a-appointment) 70%, transparent);
}

.duet__toast {
  position: absolute;
  z-index: 5;
  left: 12px;
  right: 12px;
  top: 362px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.3s,
    transform 0.5s var(--ease-spring);
}

.duet__toast.is-shown {
  opacity: 1;
  transform: none;
}

.duet__banner {
  position: absolute;
  z-index: 6;
  left: 10px;
  right: 10px;
  top: 58px;
  opacity: 0;
  transform: translateY(-120%);
  transition:
    transform 0.55s var(--ease-spring),
    opacity 0.3s;
}

.duet__banner.is-shown {
  opacity: 1;
  transform: none;
}

.duet__banner .notif {
  background: rgb(255 255 255 / 0.94);
  box-shadow: 0 14px 34px rgb(0 0 0 / 0.22);
}

.duet__banner .notif-actions span {
  background: #fff;
  color: #3552cf;
  box-shadow: 0 6px 16px rgb(0 0 0 / 0.14);
}

/* The sync between phones: a dot along a dotted line. */
.duet__link {
  position: relative;
  height: 2px;
  margin: 0 8px;
}

.duet__line {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px);
}

.duet__dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--btn);
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--btn) 22%, transparent),
    0 0 18px var(--btn-glow);
  opacity: 0;
}

.duet__link.is-ab .duet__dot {
  animation: link-ab 0.9s var(--ease) both;
}

.duet__link.is-ba .duet__dot {
  animation: link-ba 0.9s var(--ease) both;
}

.duet .demo-toggle {
  margin-top: 26px;
}

@media (max-width: 640px) {
  .phone--duet {
    --ps: 0.39;
    --bz: 7px;
  }

  .duet__stage {
    grid-template-columns: auto 14px auto;
  }

  .duet__link {
    margin: 0 1px;
  }

  .duet__who {
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  .phone--duet {
    --ps: 0.35;
  }
}

.points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 48px) clamp(24px, 3vw, 44px);
  margin-top: clamp(56px, 7vw, 88px);
  padding: 0;
  list-style: none;
}

.point__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--accent);
}

.point p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 1rem;
}

@media (max-width: 900px) {
  .points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .points {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Calendar and Ask ---------- */

.duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.duo__card {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--shadow-sm);
}

.duo__copy p {
  margin-top: 10px;
  color: var(--muted);
}

.day {
  --hour: 60px;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  margin-top: auto;
  padding: 20px 18px 16px 12px;
  border-radius: 22px;
  background: var(--a-bg);
  color: var(--a-ink);
  font-family: var(--font-app);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--a-line) 80%, transparent);
}

.day__hours {
  display: grid;
  grid-auto-rows: var(--hour);
  color: var(--a-muted);
  font-size: 12px;
  font-weight: 500;
}

.day__hours span {
  line-height: 1;
  transform: translateY(-6px);
}

.day__grid {
  position: relative;
  height: calc(var(--hour) * 4);
  background: repeating-linear-gradient(
    to bottom,
    var(--a-line) 0 1px,
    transparent 1px var(--hour)
  );
}

.day__ev {
  left: 4px;
  right: 4px;
  top: calc(var(--top) * var(--hour) + 2px);
  height: calc(var(--h) * var(--hour) - 4px);
}

.day__ev--left {
  right: calc(50% + 2px);
}

.day__ev--right {
  left: calc(50% + 2px);
}

.day__ev--clash {
  box-shadow: inset 0 0 0 1.5px var(--a-amber);
}

.day__ev--todo {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

.day__now {
  left: -4px;
  top: calc(var(--top) * var(--hour));
}

.day__warn {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--a-amber-bg);
  color: var(--a-amber);
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
}

.day__warn .i {
  width: 16px;
  height: 16px;
}

.ask {
  display: grid;
  gap: 12px;
  margin-top: auto;
  font-family: var(--font-app);
}

.ask__q {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  max-width: 94%;
  padding: 12px 16px;
  border-radius: 20px 20px 6px 20px;
  background: var(--btn);
  color: #fff;
  font-size: 15px;
  font-weight: 550;
  line-height: 20px;
}

.ask__q .i {
  width: 18px;
  height: 18px;
}

.ask .a-answer .a-headline {
  margin-top: 0;
  font-size: 18px;
  line-height: 24px;
}

.ask__soon {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.ask__soon span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .duo {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Trust ---------- */

.trust {
  --tr-muted: #a8b2ca;
  --tr-line: rgb(255 255 255 / 0.09);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #0c1122;
  color: #eaeef8;
}

.trust::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 12% 0%, rgb(65 98 239 / 0.38), transparent 70%),
    radial-gradient(40% 50% at 92% 100%, rgb(123 92 240 / 0.3), transparent 70%);
}

.trust .eyebrow {
  color: #a9b9ff;
}

.trust .lead {
  color: var(--tr-muted);
}

.trust :focus-visible {
  outline-color: #a9b9ff;
}

.trust__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.trust__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--tr-line);
  color: #fff;
  font: 700 0.875rem/1 var(--font-text);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.trust__label .i {
  color: var(--spark);
}

.promises {
  display: grid;
  gap: 14px;
  padding: 0;
  list-style: none;
}

.promise {
  padding: 22px 24px;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.04);
  box-shadow: inset 0 0 0 1px var(--tr-line);
}

.promise .h4 {
  color: #fff;
}

.promise p {
  margin-top: 6px;
  color: var(--tr-muted);
  font-size: 1rem;
}

@media (prefers-color-scheme: dark) {
  .trust {
    background: #0e1428;
    box-shadow:
      inset 0 1px 0 var(--line),
      inset 0 -1px 0 var(--line);
  }
}

@media (max-width: 900px) {
  .trust__cols {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 960px;
  margin: 0 auto;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(26px, 3.6vw, 40px);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--shadow-sm);
}

.plan--featured {
  box-shadow:
    inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent),
    var(--shadow-lg);
}

.plan--featured::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--brand), var(--violet), var(--spark));
}

.plan__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  font: 650 1.05rem/1.3 var(--font-text);
}

.plan__badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.plan__price {
  margin-top: 14px;
  font: 750 clamp(2.4rem, 1.9rem + 1.8vw, 3.2rem)/1 var(--font-display);
  letter-spacing: -0.03em;
}

.plan__price small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font: 500 1rem/1.35 var(--font-text);
  letter-spacing: 0;
}

.plan .ticks {
  margin-top: 26px;
}

.price__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 40px;
  text-align: center;
}

.price__cta p {
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .plans {
    grid-template-columns: minmax(0, 1fr);
    max-width: 520px;
  }
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border-radius: 18px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.2s;
}

.faq details[open] {
  box-shadow:
    inset 0 0 0 1px var(--line-2),
    var(--shadow-md);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 20px 24px;
  border-radius: 18px;
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '';
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink-2), var(--ink-2)) center / 12px 2px no-repeat,
    linear-gradient(var(--ink-2), var(--ink-2)) center / 2px 12px no-repeat,
    var(--surface-2);
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details p {
  padding: 0 24px 22px;
  color: var(--muted);
}

/* ---------- Final call to action ---------- */

.final {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(96px, 12vw, 170px) 0;
  text-align: center;
}

.final__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(36% 50% at 50% 28%, rgb(141 167 255 / 0.5), transparent 70%),
    radial-gradient(30% 40% at 26% 82%, rgb(255 229 154 / 0.55), transparent 70%),
    radial-gradient(30% 40% at 76% 80%, rgb(196 181 255 / 0.45), transparent 70%);
}

@media (prefers-color-scheme: dark) {
  .final__bg {
    background:
      radial-gradient(36% 50% at 50% 28%, rgb(65 98 239 / 0.35), transparent 70%),
      radial-gradient(30% 40% at 26% 82%, rgb(239 203 76 / 0.1), transparent 70%),
      radial-gradient(30% 40% at 76% 80%, rgb(123 92 240 / 0.25), transparent 70%);
  }
}

.final__art {
  position: relative;
  width: 172px;
  height: 172px;
  margin: 0 auto 30px;
}

.final__mark {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 26px 40px rgb(31 50 135 / 0.35));
  animation: bob 6s ease-in-out infinite;
}

.final__mark .spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: twinkle 3.2s ease-in-out infinite;
}

.final__note {
  position: absolute;
  z-index: 1;
  padding: 8px 13px 9px;
  border-radius: 4px 4px 12px 4px;
  background: var(--sticky);
  color: var(--sticky-ink);
  font: 650 0.95rem/1 var(--font-display);
  white-space: nowrap;
  box-shadow: 0 10px 18px -8px rgb(89 70 35 / 0.5);
  animation: bob 6.5s ease-in-out infinite;
}

.final__note--1 {
  top: 22%;
  right: 112%;
  rotate: -8deg;
  animation-delay: -1.2s;
}

.final__note--2 {
  top: -4%;
  left: 104%;
  rotate: 6deg;
  animation-delay: -3.4s;
}

.final__note--3 {
  bottom: 8%;
  left: 108%;
  rotate: -4deg;
  animation-delay: -2.2s;
}

.final__title {
  font: 750 clamp(2.9rem, 1.6rem + 5.2vw, 5.4rem)/1 var(--font-display);
  letter-spacing: -0.03em;
}

.final__lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem);
}

.final__ctas {
  justify-content: center;
}

.final__fine {
  max-width: 460px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 0.875rem;
}

@media (max-width: 560px) {
  .final__art {
    width: 136px;
    height: 136px;
  }

  .final__note {
    padding: 6px 10px 7px;
    font-size: 0.8rem;
  }

  .final__note--1 {
    top: 30%;
    right: 92%;
  }

  .final__note--2 {
    top: -14%;
    left: 70%;
  }

  .final__note--3 {
    bottom: 2%;
    left: 88%;
  }
}

/* ---------- Footer ---------- */

.foot {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
}

.foot__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.foot__brand p {
  max-width: 280px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.foot__h {
  margin-bottom: 14px;
  color: var(--ink);
  font: 700 0.8125rem/1.2 var(--font-text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.foot__col a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.foot__col a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot__fine {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8125rem;
}

@media (max-width: 800px) {
  .foot__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot__brand {
    grid-column: 1 / -1;
  }
}

/* ---------- 404 ---------- */

.lost {
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px var(--gutter);
  text-align: center;
}

.lost__mark {
  width: 120px;
  height: 120px;
  margin: 0 auto 28px;
  rotate: -8deg;
}

.lost .lead {
  margin: 16px auto 32px;
  max-width: 460px;
}

/* ---------- Scroll-in moments ---------- */

/* Each [data-play] block plays once, the first time it is well on screen (main.js adds
   .is-playing). Without JavaScript nothing is hidden, so every block simply shows its last frame. */

/* Sections fade up once as they arrive (main.js adds .is-in). They're never tied to the scroll
   position, which made them run backwards on the way up and jump as Safari's toolbar moved. */
.reveal-io .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

.reveal-io .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* A tap: a soft ring where a finger would be. */
.tap {
  --tap: color-mix(in srgb, var(--a-primary) 32%, transparent);
  position: absolute;
  left: var(--tx, 50%);
  top: var(--ty, 50%);
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: var(--tap);
  opacity: 0;
  transform: scale(0.3);
  pointer-events: none;
}

.a-choice.is-rec .tap {
  --tap: rgb(255 255 255 / 0.5);
}

.a-choice,
.notif-actions span {
  position: relative;
  overflow: hidden;
}

.widget__row {
  position: relative;
}

.widget__row .tap {
  --tx: 9px;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
}

.is-tap > .tap {
  animation: tap 0.7s both;
}

/* Capture from anywhere */
.js .tile--siri .siri > * {
  opacity: 0;
}

.tile--siri.is-playing .siri__you {
  animation: rise 0.5s 0.25s var(--ease) both;
}

.tile--siri.is-playing .siri__reply {
  animation: rise 0.55s 1.15s var(--ease) both;
}

.tile--siri.is-playing .siri__you--then {
  animation-delay: 2.05s;
}

.tile--siri.is-playing .siri__reply--then {
  animation-delay: 2.95s;
}

.w-check .i {
  opacity: 0;
  transform: scale(0.3);
}

.w-text {
  position: relative;
}

.w-text::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 54%;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
}

.swap {
  display: inline-grid;
}

.swap > span {
  grid-area: 1 / 1;
}

.swap > span + span {
  opacity: 0;
}

.tile--widgets.is-playing .w-check .tap {
  animation: tap 0.7s 1s both;
}

.tile--widgets.is-playing .w-check .a-circle {
  animation: fill-todo 0.3s 1.15s both;
}

.tile--widgets.is-playing .w-check .i {
  animation: pop 0.4s 1.2s var(--ease-spring) both;
}

.tile--widgets.is-playing .w-check .w-text {
  animation: muted 0.3s 1.3s both;
}

.tile--widgets.is-playing .w-check .w-text::after {
  animation: strike 0.35s 1.3s var(--ease) both;
}

.tile--widgets.is-playing .widget:first-child .swap > span:first-child {
  animation: fade-out 0.25s 1.4s both;
}

.tile--widgets.is-playing .widget:first-child .swap > span + span {
  animation: fade-in 0.3s 1.5s both;
}

.tile--widgets.is-playing .w-check--list .tap {
  animation-delay: 1.7s;
}

.tile--widgets.is-playing .w-check--list .a-box {
  animation: fill-list 0.3s 1.85s both;
}

.tile--widgets.is-playing .w-check--list .i {
  animation-delay: 1.9s;
}

.tile--widgets.is-playing .w-check--list .w-text,
.tile--widgets.is-playing .w-check--list .w-text::after {
  animation-delay: 2s;
}

.tile--widgets.is-playing .widget:last-child .swap > span:first-child {
  animation: fade-out 0.25s 2.1s both;
}

.tile--widgets.is-playing .widget:last-child .swap > span + span {
  animation: fade-in 0.3s 2.2s both;
}

.js .tile .photo,
.js .tile .browser__main .a-row {
  opacity: 0;
}

.tile.is-playing .photo {
  animation: fan 0.65s 0.15s var(--ease-spring) both;
}

.tile.is-playing .photo--2 {
  animation-delay: 0.27s;
}

.tile.is-playing .photo--3 {
  animation-delay: 0.39s;
}

.tile.is-playing .browser__main .a-row {
  animation: rise 0.45s 0.2s var(--ease) both;
}

.tile.is-playing .browser__main .a-row:nth-child(2) {
  animation-delay: 0.32s;
}

.tile.is-playing .browser__main .a-row:nth-child(3) {
  animation-delay: 0.44s;
}

/* Calendar: the day fills in, a new appointment lands on another, and Pocklo asks. */
.js .day .day__ev,
.js .day .day__warn {
  opacity: 0;
}

.js .day .day__now {
  transform: scaleX(0);
  transform-origin: left center;
}

.day.is-playing .day__ev {
  animation: ev-in 0.5s var(--d, 0s) var(--ease) both;
}

.day.is-playing .day__ev--new {
  animation: ev-slide 0.65s var(--d, 1.2s) var(--ease-spring) both;
}

.day.is-playing .day__ev--clash {
  animation:
    ev-in 0.5s var(--d, 0s) var(--ease) both,
    clash 1.1s 2s 2;
}

.day.is-playing .day__now {
  animation: grow 0.9s 0.3s var(--ease) both;
}

.day.is-playing .day__warn {
  animation: rise 0.55s 2.3s var(--ease) both;
}

/* Ask: the question is typed, Pocklo thinks, the answer arrives with its source. The whole question
   holds its place while it's typed, and the dots sit where the answer will be, so the card never
   changes height and nothing below it moves. */
.ask__text {
  display: grid;
}

.ask__text > span {
  grid-area: 1 / 1;
}

.ask__ghost {
  visibility: hidden;
}

.ask__dots,
.ask .a-answer {
  grid-row: 2;
  grid-column: 1;
}

.ask__soon {
  grid-row: 3;
}

.ask__dots {
  display: inline-flex;
  visibility: hidden;
  align-items: center;
  align-self: start;
  justify-self: start;
  gap: 5px;
  padding: 14px 16px;
  border-radius: 20px 20px 20px 6px;
  background: var(--a-paper);
  box-shadow: inset 0 0 0 1px var(--a-line);
}

.ask__dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--a-muted);
  animation: dots 1s ease-in-out infinite paused;
}

.ask__dots i:nth-child(2) {
  animation-delay: 0.15s;
}

.ask__dots i:nth-child(3) {
  animation-delay: 0.3s;
}

.ask.is-thinking .ask__dots {
  visibility: visible;
}

.ask.is-thinking .ask__dots i {
  animation-play-state: running;
}

.js .ask .a-answer,
.js .ask .ask__soon {
  opacity: 0;
}

.ask.is-answered .a-answer {
  animation: rise 0.55s var(--ease) both;
}

.ask.is-answered .ask__soon {
  animation: rise 0.5s 0.35s var(--ease) both;
}

/* The final notes drift in toward the pocket. */
.js .final__note {
  opacity: 0;
}

.final__art.is-playing .final__note {
  animation:
    note-in 0.9s 0.15s var(--ease-spring) both,
    bob 6.5s -1.2s ease-in-out infinite;
}

.final__art.is-playing .final__note--1 {
  --fx: -70px;
  --fy: 26px;
}

.final__art.is-playing .final__note--2 {
  --fx: 60px;
  --fy: -46px;
  animation-delay:
    0.35s,
    -3.4s;
}

.final__art.is-playing .final__note--3 {
  --fx: 80px;
  --fy: 40px;
  animation-delay:
    0.55s,
    -2.2s;
}

/* ---------- Motion ---------- */

@keyframes marker {
  from {
    transform: skewX(-8deg) rotate(-1.2deg) scaleX(0);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.28;
    transform: scale(1.375);
  }
}

@keyframes bob {
  50% {
    translate: 0 -10px;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@keyframes twinkle {
  50% {
    opacity: 0.55;
    scale: 0.82;
  }
}

@keyframes row-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
    background: var(--a-green);
  }

  45% {
    opacity: 1;
    transform: none;
    background: var(--a-green);
  }
}

@keyframes row-flash {
  30% {
    background: var(--a-green);
  }
}

@keyframes tap {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }

  25% {
    opacity: 1;
    transform: scale(0.75);
  }

  100% {
    opacity: 0;
    transform: scale(1.6);
  }
}

@keyframes press {
  40% {
    transform: scale(0.97);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes toast-up {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.3);
  }

  60% {
    opacity: 1;
    transform: scale(1.15);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes strike {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes muted {
  to {
    color: var(--a-muted);
  }
}

@keyframes fill-todo {
  to {
    background: var(--a-primary);
    box-shadow: none;
    color: var(--a-on-primary);
  }
}

@keyframes fill-list {
  to {
    background: var(--a-shopping);
    box-shadow: none;
    color: #fff;
  }
}

@keyframes fan {
  from {
    opacity: 0;
    transform: translateY(26px) rotate(-8deg) scale(0.92);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ev-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ev-slide {
  from {
    opacity: 0;
    transform: translateX(40px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes clash {
  50% {
    box-shadow:
      inset 0 0 0 1.5px var(--a-amber),
      0 0 0 5px color-mix(in srgb, var(--a-amber) 24%, transparent);
  }
}

@keyframes grow {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@keyframes note-in {
  from {
    opacity: 0;
    transform: translate(var(--fx, 0), var(--fy, 0)) scale(0.6);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes dots {
  0%,
  60%,
  100% {
    opacity: 0.45;
    transform: none;
  }

  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@keyframes ls-drop {
  from {
    opacity: 0;
    transform: translateY(-46px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ls-press {
  50% {
    transform: scale(0.965);
  }
}

@keyframes ls-menu {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.85);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ls-pick {
  30%,
  100% {
    background: rgb(0 0 0 / 0.1);
  }
}

@keyframes ls-away {
  from {
    opacity: 1;
    transform: none;
  }

  to {
    opacity: 0;
    transform: translateY(-30px) scale(0.97);
  }
}

@keyframes row-drop {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes link-ab {
  0% {
    left: 0;
    opacity: 0;
  }

  15%,
  85% {
    opacity: 1;
  }

  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes link-ba {
  0% {
    left: 100%;
    opacity: 0;
  }

  15%,
  85% {
    opacity: 1;
  }

  100% {
    left: 0;
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Document pages (0.13: /ai, and the legal and support pages) ---------- */

.doc__head {
  border-bottom: 1px solid var(--line);
}

.doc__bar {
  display: flex;
  align-items: center;
  min-height: 64px;
}

.doc {
  padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px);
}

.doc h2 {
  margin-top: 48px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
  scroll-margin-top: 24px;
}

.doc h3 {
  margin-top: 28px;
  margin-bottom: 8px;
  font-weight: 650;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.doc p,
.doc li {
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.doc p + p {
  margin-top: 14px;
}

.doc ul,
.doc ol {
  margin-block: 14px;
  padding-left: 1.4em;
}

.doc li + li {
  margin-top: 8px;
}

.doc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc table {
  width: 100%;
  margin-block: 16px;
  border-collapse: collapse;
  font-size: 0.975rem;
}

.doc th,
.doc td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  text-align: left;
  vertical-align: top;
}

.doc th {
  color: var(--ink);
  font-weight: 650;
}

.doc blockquote {
  margin: 12px 0 4px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-tint);
}

.doc blockquote p + p {
  margin-top: 10px;
}

.doc__label {
  margin-top: 24px;
  color: var(--muted);
  font: 650 0.8125rem/1.2 var(--font-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc .doc__meta {
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc__foot {
  padding-block: 32px 48px;
  border-top: 1px solid var(--line);
}

.doc__foot p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.doc__links a {
  color: var(--muted);
  font-weight: 550;
}

.doc__links a:hover {
  color: var(--ink);
}

.doc code {
  overflow-wrap: anywhere;
}

/* On a phone, each table row becomes a short block: the first cell as its title. */
@media (max-width: 600px) {
  .doc table,
  .doc tbody,
  .doc tr,
  .doc td {
    display: block;
  }

  .doc thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .doc tr {
    padding-block: 12px;
    border-bottom: 1px solid var(--line);
  }

  .doc td {
    padding: 2px 0;
    border: 0;
  }

  .doc td:first-child {
    color: var(--ink);
    font-weight: 650;
  }
}
