/* UniFiles web. Apple-style product page and Direct Share. */
:root {
  color-scheme: light dark;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.45, .64, 1);
  --bg: #fff;
  --bg-alt: #f5f5f7;
  --card: #fff;
  --inset: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --sep: rgba(0, 0, 0, .12);
  --hair: rgba(0, 0, 0, .08);
  --fill: rgba(118, 118, 128, .12);
  --fill-2: rgba(118, 118, 128, .2);
  --accent: #2563eb;
  --accent-fill: #2563eb;
  --accent-press: #1d4fd0;
  --danger: #d70015;
  --nav: rgba(255, 255, 255, .72);
  --device: #1d1d1f;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000;
    --bg-alt: #000;
    --card: #1c1c1e;
    --inset: #2c2c2e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --sep: rgba(255, 255, 255, .16);
    --hair: rgba(255, 255, 255, .1);
    --fill: rgba(118, 118, 128, .24);
    --fill-2: rgba(118, 118, 128, .36);
    --accent: #6ea8fe;
    --accent-fill: #2563eb;
    --accent-press: #3b74f0;
    --danger: #ff6961;
    --nav: rgba(22, 22, 23, .72);
    --device: #2c2c2e;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 56px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.47 var(--font);
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
  transition: border-color .35s;
}
.nav.at-top { border-bottom-color: transparent; }
.nav-inner {
  max-width: 1024px;
  height: 52px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 17px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { display: block; border-radius: 23%; }
.brand-sub { color: var(--text-2); font-weight: 400; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a:not(.nav-cta) { color: var(--text); opacity: .85; }
.nav-links a:not(.nav-cta):hover { opacity: 1; text-decoration: none; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 13px;
  border-radius: 980px;
  background: var(--accent-fill);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}
.nav-cta:hover { background: var(--accent-press); text-decoration: none; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 980px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -.022em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s, transform .1s, opacity .2s;
}
.button:hover { text-decoration: none; }
.button:active:not(:disabled) { transform: scale(.97); }
.button:disabled { cursor: default; opacity: .38; }
.primary { background: var(--accent-fill); color: #fff; }
.primary:hover:not(:disabled) { background: var(--accent-press); }
.quiet { background: var(--fill); color: var(--accent); }
.quiet:hover:not(:disabled) { background: var(--fill-2); }
.text-button { min-height: 32px; padding: 0 6px; background: none; color: var(--accent); font-weight: 400; }
.text-button:hover:not(:disabled) { opacity: .7; }
.danger { color: var(--danger); }
.small { min-height: 34px; padding: 0 16px; font-size: 15px; }
.more { font-size: 17px; }
.more::after { content: " ›"; }

/* Device frame */
.phone {
  --w: 280px;
  flex: none;
  width: var(--w);
  padding: calc(var(--w) * .03);
  border-radius: calc(var(--w) * .155);
  background: var(--device);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 0 0 1px var(--hair);
}
.phone img { display: block; width: 100%; height: auto; border-radius: calc(var(--w) * .127); }

.source-page { background: var(--bg-alt); }
.source-install {
  width: min(calc(100% - 3rem), 29rem);
  margin-inline: auto;
  padding-block: clamp(4rem, 15vh, 8rem) 2rem;
  text-align: center;
}
.source-panel { padding: 2.75rem 2.5rem 2.5rem; background: var(--card); border: 1px solid var(--hair); border-radius: 2rem; }
.source-brand { display: inline-block; vertical-align: top; }
.source-brand img { display: block; width: 5rem; height: 5rem; border-radius: 23%; outline: 1px solid var(--hair); outline-offset: -1px; }
.source-install h1 { margin-top: 1.5rem; font-size: clamp(1.875rem, 6vw, 2.25rem); line-height: 1.12; letter-spacing: -.035em; text-wrap: balance; }
.source-status { margin-top: .625rem; color: var(--text-2); text-wrap: balance; }
.source-manifest { margin-top: 1.75rem; background: var(--inset); border-radius: 1rem; text-align: start; }
.source-manifest summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: .75rem 1rem;
  list-style: none;
  color: var(--text-2);
  cursor: pointer;
  font-size: .8125rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.source-manifest summary::-webkit-details-marker { display: none; }
.source-manifest summary::after { content: ""; width: .45rem; height: .45rem; flex: none; margin-right: .25rem; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(-45deg); }
.source-manifest[open] summary::after { transform: rotate(45deg); }
.source-manifest summary strong { display: block; margin-top: .125rem; color: var(--text); font-size: 1rem; font-weight: 600; }
.source-manifest-body { margin-inline: 1rem; padding-block: .75rem 1rem; border-top: 1px solid var(--hair); font-size: .875rem; overflow-wrap: anywhere; }
.source-manifest-body .button { min-height: 44px; padding: 0; font-size: inherit; }
.source-manifest-body .button + p:empty { display: none; }
.source-hint, #source-feedback { margin-top: .375rem; color: var(--text-2); }
.source-open { display: flex; min-height: 50px; margin-top: .875rem; padding-block: .625rem; white-space: normal; }
.source-footer { margin-top: 1.25rem; color: var(--text-2); font-size: .9375rem; }
.source-footer a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 500; }
@media (max-width: 500px) {
  .source-page { background: var(--bg); }
  .source-panel { padding: 0; background: none; border: 0; }
}

/* Landing: hero */
.hero { padding: 76px 22px 0; text-align: center; overflow: hidden; }
.app-icon { display: block; margin: 0 auto 22px; border-radius: 22.5%; box-shadow: 0 0 0 1px var(--hair); }
.hero h1 { font-size: clamp(44px, 7.4vw, 80px); font-weight: 700; line-height: 1.04; letter-spacing: -.035em; }
.hero-sub { max-width: 620px; margin: 18px auto 0; color: var(--text-2); font-size: clamp(19px, 2.4vw, 25px); line-height: 1.32; letter-spacing: -.012em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 30px; margin-top: 32px; }
.devices {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: clamp(330px, 56vw, 600px);
  margin-top: 64px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.devices .phone { --w: clamp(150px, 26vw, 290px); position: relative; z-index: 2; }
.devices .side { --w: clamp(118px, 21vw, 240px); margin-top: clamp(36px, 6vw, 64px); z-index: 1; opacity: .96; }
.devices .side:first-child { margin-right: calc(clamp(12px, 3vw, 36px) * -1); }
.devices .side:last-child { margin-left: calc(clamp(12px, 3vw, 36px) * -1); }

/* Landing: sections */
.section { padding: clamp(80px, 12vw, 140px) 22px; }
.section.alt { background: var(--bg-alt); }
.wrap { max-width: 1024px; margin: 0 auto; }
.headline { max-width: 760px; margin: 0 auto; text-align: center; }
.headline h2, .split h2 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 700; line-height: 1.07; letter-spacing: -.03em; }
.headline p, .split p { margin-top: 16px; color: var(--text-2); font-size: clamp(19px, 2vw, 21px); line-height: 1.42; letter-spacing: -.01em; }

.split { display: grid; grid-template-columns: minmax(0, 1.15fr) auto; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split .phone { --w: clamp(220px, 26vw, 280px); }
.wall { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 36px 0 0; padding: 0; list-style: none; font-size: clamp(24px, 3.2vw, 34px); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.wall li:nth-child(odd) { color: var(--text); }
.wall li:nth-child(even) { color: var(--text-2); }
.wall li:not(:last-child)::after { content: "·"; margin: 0 .32em; color: var(--text-2); font-weight: 400; }

/* Landing: feature tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1024px; margin: 64px auto 0; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 620px;
  padding: 48px 32px 0;
  overflow: hidden;
  border-radius: 28px;
  background: var(--card);
  text-align: center;
}
.tile h3 { font-size: clamp(26px, 2.8vw, 32px); font-weight: 700; line-height: 1.12; letter-spacing: -.025em; }
.tile p { max-width: 360px; margin-top: 10px; color: var(--text-2); font-size: 17px; }
.tile .phone { --w: 268px; margin-top: 40px; }
.tile.wide { grid-column: span 2; flex-direction: row; align-items: stretch; justify-content: space-between; gap: 48px; height: 520px; padding: 0 64px; text-align: left; }
.tile.wide > div { align-self: center; max-width: 420px; padding-bottom: 8px; }
.tile.wide .phone { margin-top: 64px; }
.tile.dark { background: #000; color: #f5f5f7; }
.tile.dark p { color: #a1a1a6; }
@media (prefers-color-scheme: dark) { .tile.dark { box-shadow: inset 0 0 0 1px var(--hair); } }

/* Landing: Direct Share band and download */
.band { max-width: 1024px; margin: 0 auto; padding: clamp(48px, 7vw, 80px) 24px; border-radius: 28px; background: var(--bg-alt); text-align: center; }
@media (prefers-color-scheme: dark) { .band { background: var(--card); } }
.band-icon { display: block; width: 64px; height: 64px; margin: 0 auto 20px; color: var(--accent); }
.band h2 { font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
.band p { max-width: 520px; margin: 14px auto 22px; color: var(--text-2); font-size: clamp(19px, 2vw, 21px); line-height: 1.42; }
.download { text-align: center; }
.download .app-icon { margin-bottom: 26px; }

/* Footer */
.footer { background: var(--bg-alt); color: var(--text-2); font-size: 12px; line-height: 1.34; letter-spacing: -.01em; }
.footer-inner { max-width: 1024px; margin: 0 auto; padding: 20px 22px 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; border-top: 1px solid var(--hair); }
.footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer a { color: var(--text); opacity: .8; }
@media (prefers-color-scheme: dark) { .footer-inner { border-top-color: var(--hair); } }

/* Get page: get.js sets data-platform on <html> before first paint */
.for-ios, .for-android { display: none; flex-direction: column; gap: 16px; }
[data-platform="ios"] .for-ios, [data-platform="android"] .for-android { display: flex; }
[data-platform="ios"] .for-other, [data-platform="android"] .for-other { display: none; }
.button.large { min-height: 56px; padding: 0 34px; font-size: 19px; }
.get-note { max-height: 24px; margin-top: -4px; overflow: hidden; color: var(--text-2); font-size: 15px; transition: opacity .4s, max-height .6s var(--ease), margin .6s var(--ease); }
.settled .get-note { max-height: 0; margin: -8px 0; opacity: 0; }
.qr { display: inline-flex; align-items: center; gap: 20px; max-width: 460px; margin-top: 40px; padding: 14px 26px 14px 14px; border-radius: 24px; background: var(--bg-alt); text-align: left; }
@media (prefers-color-scheme: dark) { .qr { background: var(--card); } }
.qr img { flex: none; width: 116px; height: 116px; padding: 9px; border-radius: 14px; background: #fff; }
.qr h2 { font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.qr p { margin-top: 4px; color: var(--text-2); font-size: 15px; line-height: 1.35; }
@media (max-width: 600px) { .qr { display: none; } }

/* Direct Share */
body.sharing { background: var(--bg-alt); min-height: 100vh; display: flex; flex-direction: column; }
.sharing main { flex: 1; width: 100%; max-width: 600px; margin: 0 auto; padding: clamp(40px, 8vw, 72px) 16px 40px; }
.share-head { margin-bottom: 28px; text-align: center; }
.glyph { display: block; width: 64px; height: 64px; margin: 0 auto 16px; color: var(--accent); }
.share-head h1 { font-size: clamp(34px, 6vw, 48px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; }
.share-head p { max-width: 460px; margin: 10px auto 0; color: var(--text-2); font-size: 19px; line-height: 1.4; letter-spacing: -.012em; }
.card { padding: 20px; border-radius: 22px; background: var(--card); overflow: hidden; }

.drop {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 40px 16px 32px;
  border: 2px dashed var(--sep);
  border-radius: 16px;
  text-align: center;
  transition: border-color .25s, background-color .25s, padding .5s var(--ease), scale .4s var(--ease);
}
.drop.over { scale: 1.015; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.drop .glyph { width: 52px; height: 52px; margin-bottom: 10px; }
.drop strong { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.drop .actions { margin-top: 18px; }
#send-view:has(#selection:not([hidden])) .drop { padding: 20px 16px; }
#send-view:has(#selection:not([hidden])) .drop .glyph { display: none; }
#send-view:has(#selection:not([hidden])) .drop strong { font-size: 15px; font-weight: 500; color: var(--text-2); }
#send-view:has(#selection:not([hidden])) .drop .actions { margin-top: 10px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; }

.group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 4px 8px; }
.group-head strong { color: var(--text-2); font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; }

.items { max-height: 300px; margin: 0; padding: 0; overflow: auto; list-style: none; border-radius: 12px; background: var(--inset); }
.items:empty { display: none; }
.items li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 15px;
  line-height: 1.33;
}
.items li + li { background: linear-gradient(var(--sep), var(--sep)) right top / calc(100% - 48px) 1px no-repeat; }
.items li::before {
  content: "";
  width: 20px;
  height: 20px;
  background: var(--accent);
  -webkit-mask: url(icons/doc.svg) center / contain no-repeat;
  mask: url(icons/doc.svg) center / contain no-repeat;
}
.items li.folder::before { -webkit-mask-image: url(icons/folder.svg); mask-image: url(icons/folder.svg); }
.items li.person::before { background: var(--text-2); -webkit-mask-image: url(icons/person.svg); mask-image: url(icons/person.svg); }
.items li > span:first-of-type { overflow-wrap: anywhere; }
.items li > span:last-of-type { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.items .button { min-height: 30px; padding: 0 14px; font-size: 14px; }

.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.card-foot label, .card-foot > span { color: var(--text-2); font-size: 15px; }
select {
  -webkit-appearance: none;
  appearance: none;
  margin-left: 6px;
  padding: 6px 28px 6px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--fill) url(icons/chevrons.svg) right 10px center / 10px 14px no-repeat;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}

.result-head { text-align: center; }
.result-head .glyph { width: 56px; height: 56px; margin-bottom: 12px; }
.result-head h2 { font-size: 24px; font-weight: 700; line-height: 1.17; letter-spacing: -.025em; }
.result-head p { max-width: 420px; margin: 6px auto 0; color: var(--text-2); font-size: 15px; line-height: 1.4; }

#copy { min-width: 86px; }
.link-row { display: flex; align-items: center; gap: 8px; margin: 20px 0 16px; padding: 6px 6px 6px 16px; border-radius: 12px; background: var(--inset); }
.link-row:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.link-row input { flex: 1; min-width: 0; padding: 0; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 15px; text-overflow: ellipsis; }

#receive-actions { margin-top: 22px; }
#transfer { margin: 22px 0 16px; }
#progress-label { display: block; margin-bottom: 8px; color: var(--text-2); font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
progress { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 6px; border: 0; border-radius: 3px; background: var(--fill); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--fill); }
progress::-webkit-progress-value { background: var(--accent-fill); border-radius: 3px; transition: inline-size .3s linear; }
progress::-moz-progress-bar { background: var(--accent-fill); border-radius: 3px; }
#incoming { margin-top: 16px; }

.status { margin-top: 16px; color: var(--text-2); font-size: 15px; text-align: center; }
.status.error { padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 10%, transparent); color: var(--danger); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 13px; line-height: 1.3; text-align: center; }
.facts svg { display: block; width: 24px; height: 24px; margin: 0 auto 6px; color: var(--text-2); }

.sharing .footer-inner { justify-content: center; text-align: center; }

/* Responsive */
@media (max-width: 834px) {
  .split { grid-template-columns: 1fr; text-align: center; }
  .split .phone { margin: 0 auto; }
  .wall { justify-content: center; }
  .tiles { grid-template-columns: 1fr; }
  .tile.wide { grid-column: auto; flex-direction: column; align-items: center; height: 620px; padding: 48px 32px 0; gap: 0; text-align: center; }
  .tile.wide > div { align-self: auto; padding: 0; }
  .tile.wide .phone { margin-top: 40px; }
}
@media (max-width: 600px) {
  .nav-inner { padding: 0 16px; }
  .nav-links { gap: 18px; }
  .nav-links .nav-hide { display: none; }
  .hero { padding: 48px 16px 0; }
  .section { padding-left: 16px; padding-right: 16px; }
  .tile { height: 560px; padding: 40px 20px 0; border-radius: 24px; }
  .tile.wide { height: 560px; padding: 40px 20px 0; }
  .tile .phone, .tile.wide .phone { --w: 240px; margin-top: 32px; }
  .brand-sub { display: none; }
  .card { padding: 16px; }
  .card-foot .button { flex: 1; }
  .facts { gap: 8px; }
}

/* Motion. Everything below is skipped with Reduce Motion. */
.draw path { stroke-dasharray: 1 1; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Landing: intro */
  .hero > :not(.devices) { animation: rise 1s var(--ease) backwards; }
  .hero > .app-icon { animation: pop 1s var(--spring) backwards; }
  .hero > :nth-child(2) { animation-delay: .08s; }
  .hero > :nth-child(3) { animation-delay: .16s; }
  .hero > :nth-child(4) { animation-delay: .24s; }
  .hero > :nth-child(n+5):not(.devices) { animation-delay: .24s; }
  .get-note { animation: breathe-text 1.4s ease-in-out infinite; }
  .settled .get-note { animation: none; }
  .devices .phone { will-change: transform; animation: rise-far 1.5s var(--ease) .32s backwards; }
  .devices .side:first-child { animation-name: fan-left; animation-delay: .62s; }
  .devices .side:last-child { animation-name: fan-right; animation-delay: .62s; }

  /* Landing: hero parallax, driven by --p from landing.js */
  .devices .phone:not(.side) { transform: translateY(calc(var(--p, 0) * -24px)) scale(calc(1 + var(--p, 0) * .03)); }
  .devices .side:first-child { transform: translate(calc(var(--p, 0) * -34px), calc(var(--p, 0) * -64px)) rotate(calc(var(--p, 0) * -4deg)); }
  .devices .side:last-child { transform: translate(calc(var(--p, 0) * 34px), calc(var(--p, 0) * -64px)) rotate(calc(var(--p, 0) * 4deg)); }

  /* Landing: scroll reveals (html.motion is set by landing.js) */
  .motion .reveal { opacity: 0; translate: 0 48px; transition: opacity 1s var(--ease), translate 1.2s var(--ease); }
  .motion .reveal.in { opacity: 1; translate: 0 0; }
  .motion .tiles > :nth-child(3), .motion .tiles > :nth-child(5) { transition-delay: .12s; }
  .motion .tile .phone { translate: 0 110px; transition: translate 1.6s var(--ease) .1s; }
  .motion .tile.in .phone { translate: 0 0; }
  .motion .tiles > :nth-child(3) .phone, .motion .tiles > :nth-child(5) .phone { transition-delay: .24s; }
  .motion .split > .phone.reveal { transition-delay: .15s; }
  .motion .wall li { opacity: 0; translate: 0 14px; transition: opacity .7s var(--ease), translate .9s var(--ease); }
  .motion .in .wall li { opacity: 1; translate: 0 0; }
  .wall li:nth-child(2) { transition-delay: .2s; } .wall li:nth-child(3) { transition-delay: .24s; }
  .wall li:nth-child(4) { transition-delay: .28s; } .wall li:nth-child(5) { transition-delay: .32s; }
  .wall li:nth-child(6) { transition-delay: .36s; } .wall li:nth-child(7) { transition-delay: .4s; }
  .wall li:nth-child(8) { transition-delay: .44s; } .wall li:nth-child(9) { transition-delay: .48s; }
  .wall li:nth-child(10) { transition-delay: .52s; } .wall li:first-child { transition-delay: .16s; }
  .motion .band.in .band-icon { animation: fly 1.2s var(--ease) .2s backwards; }
  .motion .in > .app-icon { animation: pop 1s var(--spring) .1s backwards; }

  /* Direct Share: intro */
  .share-head > *, .sharing .card, .facts { animation: rise .9s var(--ease) backwards; }
  .share-head > :nth-child(2) { animation-delay: .06s; }
  .sharing .card { animation-delay: .12s; }
  .facts { animation-delay: .22s; }

  /* Direct Share: views, rows and messages ease in when they appear */
  #send-view, #link-view, #receive-view, #selection, #transfer, .status, #receive-actions > .button, #start-over {
    transition: opacity .5s var(--ease), translate .6s var(--ease);
  }
  .items li { transition: opacity .45s var(--ease), translate .55s var(--ease); }
  @starting-style {
    #send-view, #link-view, #receive-view, #selection, #transfer, .status, #receive-actions > .button, #start-over { opacity: 0; translate: 0 10px; }
    .items li { opacity: 0; translate: 0 6px; }
  }
  .items li:nth-child(2) { transition-delay: .03s; } .items li:nth-child(3) { transition-delay: .06s; }
  .items li:nth-child(4) { transition-delay: .09s; } .items li:nth-child(5) { transition-delay: .12s; }
  .items li:nth-child(6) { transition-delay: .15s; } .items li:nth-child(7) { transition-delay: .18s; }
  .items li:nth-child(n+8) { transition-delay: .21s; }

  /* Direct Share: glyphs draw themselves; the drop arrow nudges while dragging; receive pulses while connecting */
  .draw path { animation: draw .55s var(--ease) .5s backwards; }
  .draw path:first-child { animation-duration: .9s; animation-delay: .1s; }
  .draw path:nth-child(3) { animation-delay: .62s; }
  .drop.over .glyph { animation: nudge .9s ease-in-out infinite; }
  #receive-view:has(#join:disabled:not([hidden])) .glyph { animation: breathe 1.6s ease-in-out infinite; }
  #copy.done { animation: tap .45s var(--ease); }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes rise-far { from { opacity: 0; translate: 0 120px; } }
@keyframes fan-left { from { opacity: 0; translate: 55% 60px; } }
@keyframes fan-right { from { opacity: 0; translate: -55% 60px; } }
@keyframes pop { from { opacity: 0; scale: .7; } }
@keyframes fly { from { opacity: 0; translate: -36px 36px; scale: .7; } }
@keyframes draw { from { stroke-dashoffset: 1; } }
@keyframes nudge { 50% { translate: 0 -5px; } }
@keyframes tap { 40% { scale: 1.08; } }
@keyframes breathe-text { 50% { opacity: .4; } }
@keyframes breathe { 50% { opacity: .45; scale: .94; } }

/* Support and legal documents */
.document { max-width: 1024px; margin: 0 auto; padding: clamp(40px, 7vw, 84px) 22px; }
.document-heading { padding-bottom: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--sep); }
.document-heading h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -.05em; text-wrap: balance; }
.document-lead { max-width: 660px; margin-top: 16px; font-size: clamp(19px, 2.4vw, 24px); color: var(--text-2); line-height: 1.4; }
.document-date { margin-top: 16px; font-size: 14px; color: var(--text-2); }
.document-layout { display: grid; grid-template-columns: minmax(150px, 210px) minmax(0, 640px); gap: clamp(28px, 6vw, 80px); padding-top: 36px; }
.document-contents { position: sticky; top: 76px; align-self: start; display: grid; gap: 8px; font-size: 14px; }
.document-contents strong { margin-bottom: 4px; }
.document-contents a { color: var(--text-2); }
.document-body { line-height: 1.6; overflow-wrap: break-word; }
.document-body h2 { margin: 38px 0 10px; font-size: clamp(23px, 3vw, 28px); letter-spacing: -.035em; line-height: 1.2; scroll-margin-top: 16px; }
.document-body h2:first-child { margin-top: 0; }
.document-body p + p { margin-top: 12px; }
.document-body ol { padding-left: 1.5em; }
.document-body li + li { margin-top: 6px; }
.document-body a { text-decoration: underline; text-underline-offset: .15em; }
.document-body details { border-bottom: 1px solid var(--sep); }
.document-body summary { cursor: pointer; font-weight: 600; padding: 16px 0; }
.document-body details p { padding-bottom: 18px; }
.footer a[aria-current="page"] { font-weight: 600; }
@media (max-width: 720px) {
  .document-layout { display: block; padding-top: 28px; }
  .document-contents { display: none; }
}

#share-qr { margin-block: 1rem; }
#share-qr summary { cursor: pointer; width: fit-content; }
#share-qr canvas { display: block; width: min(100%, 240px); height: auto; margin: 1rem auto; image-rendering: pixelated; }
