/* Sorta home page. Navigation, hero and feature sections share the same .wrap
   so their left and right edges stay aligned. */

/* Chinese punctuation (，。、？「」) always from PingFang: the system Latin font has
   narrow versions of some of them, which look wrong in Chinese and break the hanging. */
@font-face { font-family: "Sorta Punct SC"; font-weight: 400; src: local("PingFang SC Regular"), local("PingFangSC-Regular"); unicode-range: U+3000-303F, U+FF01-FF60; }
@font-face { font-family: "Sorta Punct SC"; font-weight: 500; src: local("PingFang SC Medium"), local("PingFangSC-Medium"); unicode-range: U+3000-303F, U+FF01-FF60; }
@font-face { font-family: "Sorta Punct SC"; font-weight: 600; src: local("PingFang SC Semibold"), local("PingFangSC-Semibold"); unicode-range: U+3000-303F, U+FF01-FF60; }
@font-face { font-family: "Sorta Punct SC"; font-weight: 700; src: local("PingFang SC Semibold"), local("PingFangSC-Semibold"); unicode-range: U+3000-303F, U+FF01-FF60; }
@font-face { font-family: "Sorta Punct TC"; font-weight: 400; src: local("PingFang TC Regular"), local("PingFangTC-Regular"); unicode-range: U+3000-303F, U+FF01-FF60; }
@font-face { font-family: "Sorta Punct TC"; font-weight: 500; src: local("PingFang TC Medium"), local("PingFangTC-Medium"); unicode-range: U+3000-303F, U+FF01-FF60; }
@font-face { font-family: "Sorta Punct TC"; font-weight: 600; src: local("PingFang TC Semibold"), local("PingFangTC-Semibold"); unicode-range: U+3000-303F, U+FF01-FF60; }
@font-face { font-family: "Sorta Punct TC"; font-weight: 700; src: local("PingFang TC Semibold"), local("PingFangTC-Semibold"); unicode-range: U+3000-303F, U+FF01-FF60; }

:root {
  color-scheme: dark;
  --bg: #000;
  --tile: #161617;
  --card: #1c1c1e;
  --card-2: #2c2c2e;
  --text: #f5f5f7;
  --gray: #86868b;
  --gray-2: #a1a1a6;
  --line: #424245;
  /* Sorta's blue-violet on dark pages, #8F80FF as on the icon's landing bar and in the app's
     dark mode: the site's main colour. Filled buttons with white text take #6B54F5, the app's
     dark-mode Pro button, which white reads on (5:1). */
  --accent: #8f80ff;
  --accent-strong: #6b54f5;
  --accent-text: var(--accent);
  --blue: #0a84ff;
  --green: #30d158;
  --red: #ff453a;
  --orange: #ff9f0a;
  --purple: #bf5af2;
  --cyan: #64d2ff;
  --yellow: #ffd60a;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --pw: 300px;
  --ph: 620px;
  --spread: 264px;
  --nav-h: 61px;
}

:root:lang(zh-Hans) {
  --font: "Sorta Punct SC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

:root:lang(zh-Hant) {
  --font: "Sorta Punct TC", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang TC", "PingFang HK", "Microsoft JhengHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

/* Things that slide in from the side must never widen the page. clip, unlike hidden,
   leaves the pinned sections' sticky content working. */
main { overflow-x: clip; }

a { color: inherit; }
svg { width: 1em; height: 1em; flex: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.wrap {
  width: min(980px, calc(100% - 48px));
  margin-inline: auto;
}

h2 {
  font-size: 56px;
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.eyebrow {
  font-size: 21px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 14px;
}

.lead {
  font-size: 21px;
  line-height: 1.38;
  font-weight: 600;
  color: var(--gray);
  margin-top: 24px;
  max-width: 560px;
}

.gradient {
  background: linear-gradient(90deg, #c9c0ff 0%, #8f80ff 55%, #7a68f7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Chinese punctuation at the end of a centred line hangs, so the characters centre. */
/* A closing mark hangs past the line, so the words are what gets centred. The pull is on
   the box that holds the mark, not on the mark inside it: Safari 27 leaves that box its
   full width and then centres the words in it, which opened a gap before the box. */
.hang { margin-right: -1em; }
.keep-tail { display: inline-block; white-space: nowrap; padding-right: 0.5em; }
.keep-tail:has(> .hang) { margin-right: -1em; }
.keep-tail > .hang { margin-right: 0; }
.line { display: block; }
/* The opening's line stays one line where there is room, and breaks in two on a phone. */
.hero-sub .line { display: inline; }
/* The gradient's box reaches over a hung mark, so the mark carries on the same gradient
   instead of a colour of its own. Net width is unchanged, so centring is too. */
.gradient { padding-right: 1em; margin-right: -1em; }

.section { padding: 112px 0; }

/* Navigation */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(44, 43, 53, 0.44);
  -webkit-backdrop-filter: saturate(150%) blur(28px);
  backdrop-filter: saturate(150%) blur(28px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045), 0 8px 32px rgba(0, 0, 0, 0.12);
  transition: opacity 0.8s;
}

.nav-inner {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* Sorta's wordmark, all white (docs/品牌 in the app's repo: Outfit SemiBold, the t's bar tilted
   like the icon's), as tall as the text it replaces: its S is the height of a capital at that size. */
.wordmark { display: block; flex: none; height: 0.78em; width: auto; aspect-ratio: 2534 / 804; }

/* The same double edge as the icons on the page, at nav size. */
.brand img { border-radius: 22.5%; box-shadow: 0 0 0 1px #232326, 0 0 0 2px #424245; }

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 13px;
}

.nav-links a, .lang summary { color: rgba(245, 245, 247, 0.8); text-decoration: none; }
.nav-links a:hover, .lang summary:hover { color: var(--text); }
.nav-links a { position: relative; padding-block: 10px; transition: color 0.2s; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: center; transition: transform 0.25s var(--ease); }
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }
.nav-links a[aria-current] { color: var(--text); }
.nav-links a[aria-current]::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 980px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: filter 0.2s;
}
.nav-cta:hover { filter: brightness(1.15); }

details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

.lang { position: relative; font-size: 13px; }
.lang summary { display: grid; place-items: center; width: 32px; height: 32px; transition: color 0.2s; }
.lang summary:hover, .lang[open] summary { color: var(--text); }
.lang summary svg { font-size: 18px; opacity: 0.9; }

.popover {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  min-width: 160px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  background: rgba(36, 36, 38, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.popover a { padding: 9px 12px; border-radius: 9px; text-decoration: none; font-size: 14px; }
.popover a:hover { background: rgba(255, 255, 255, 0.08); }
.popover a[aria-current] { color: var(--accent-text); }

.menu { display: none; position: relative; }
.menu > summary { width: 36px; height: 36px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 10px; }
.menu > summary:hover { background: rgba(255, 255, 255, 0.05); }
.menu > summary span { display: block; width: 20px; height: 1.5px; background: var(--text); border-radius: 1px; transition: transform 0.25s; }
.menu[open] > summary span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu[open] > summary span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.menu .popover { min-width: 230px; }
.menu .popover a { font-size: 17px; }
.menu-popover { overflow: hidden; }
.menu-panels { display: grid; grid-template-columns: 100% 100%; align-items: start; width: 100%; transition: transform 0.32s var(--ease); }
.menu-language-view .menu-panels { transform: translateX(-100%); }
.menu-panel { display: flex; flex-direction: column; min-width: 0; }
.menu-panel[aria-hidden="true"] { pointer-events: none; }
.menu-language-entry, .menu-language-back { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: none; color: var(--gray-2); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.menu-language-entry { justify-content: space-between; border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 6px; padding-top: 14px; }
.menu-language-entry svg, .menu-language-back svg { flex: none; font-size: 14px; }
.menu-language-entry .menu-language-globe { font-size: 18px; opacity: 0.9; }
.menu-language-entry > span { flex: 1; }
.menu-language-back svg { transform: rotate(180deg); }
.menu-language-entry:hover, .menu-language-back:hover { color: var(--text); }
html:not(.js) .menu-language-entry { display: none; }
.menu-langs { display: flex; flex-direction: column; padding-top: 6px; }
.menu-langs a { font-size: 15px !important; }

/* The product has its own scene slot; the copy moves beside it on compact desktops.
   The opening still pulls back into the same live phone. */

@property --pp { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --fan { syntax: "<number>"; inherits: true; initial-value: 0; }

.hero {
  --phone-rise: 240px;
  --spread: 340px;
  position: relative;
  display: grid;
  align-content: center;
  min-height: calc(100svh - var(--nav-h));
  padding: clamp(20px, 3svh, 32px) 0;
  overflow: clip;
}

.hero-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 64px; }
.hero .hero-visual { grid-column: 1; grid-row: 2; display: grid; place-items: center; height: var(--scene-height, clamp(440px, 62svh, 640px)); min-width: 0; transform: translateY(calc(var(--p, 0) * -18px)); transition: opacity 1.2s, translate 1.4s var(--ease); }
.hero .demo-stage { width: 1200px; height: 1030px; zoom: 0.36; }

/* Copy and action sit together above the product scene on wide screens. */
.hero-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  grid-column: 1;
  grid-row: 1;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

.hero-text, .hero-side { min-width: 0; }
.hero-side { display: flex; justify-content: flex-start; }

.hero-title {
  font-size: clamp(48px, 4.3vw, 64px);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.hero-title > span, .closing h2 > span { display: block; }
.hero-title > span { white-space: nowrap; }
/* Localized heading sizes are refined below. */
.hero-title:lang(en) { font-size: clamp(32px, 3.4vw, 48px); }
.hero-title .gradient { background-image: linear-gradient(100deg, #c9c0ff, #8f80ff); }

.hero-sub {
  max-width: 440px;
  margin-top: 14px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 400;
  color: var(--gray-2);
}

/* Apple's own badge, as it comes and never restyled, even on hover (48 px high, its clear
   space kept). */
.hero-cta { display: flex; flex: none; flex-direction: column; align-items: flex-start; gap: 14px; }
.store-badge { display: block; flex: none; }
.store-badge img { display: block; height: 48px; width: auto; }

/* A close-up of the Inbox pulls back into the actual centre phone. */
.js .hero:not(.camera-done) .phone-main { visibility: hidden; }
.hero-bottom { transition: opacity 0.8s, transform 0.9s var(--ease); }
.js .hero:not(.copy-visible) .hero-bottom { opacity: 0; transform: translateY(20px); }
.hero.entrance-skipped .side, .hero.entrance-skipped .hero-bottom, .hero.entrance-skipped .suggestion { transition: none; }
.hero-camera { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; overflow: hidden; pointer-events: none; }
.camera-backdrop { position: absolute; inset: 0; background: radial-gradient(ellipse at 45% 50%, rgba(94, 58, 173, 0.28), transparent 62%), radial-gradient(ellipse at 72% 44%, rgba(28, 108, 149, 0.12), transparent 52%), #000; }
.phone.camera-frame { position: absolute; top: 0; left: 0; margin: 0; background: none; box-shadow: none; mask-image: linear-gradient(transparent, #000 var(--camera-fade-top, 18%), #000 var(--camera-fade-start, 62%), transparent var(--camera-fade-end, 88%)); }
.camera-frame::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(145deg, #85858c 0%, #34343a 16%, #111113 45%, #44444b 78%, #66666e 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 30px 70px -24px rgba(0, 0, 0, 0.9); opacity: 0; transition: opacity 0.6s; }
.camera-frame .screen { background: none; }
.camera-frame.pulling-back::before { opacity: 1; }
.camera-frame.docking::before { box-shadow: var(--camera-shadow); }
.camera-frame.pulling-back .screen { background: linear-gradient(175deg, #09090b, #000 60%); }
.camera-frame .app-head, .camera-frame .status, .camera-frame .island { opacity: 0; transition: opacity 0.6s, transform 0.7s var(--ease); }
.camera-frame .app-head { transform: translateY(10px); }
.camera-frame.pulling-back .app-head, .camera-frame.pulling-back .status, .camera-frame.pulling-back .island { opacity: 1; transform: none; }
.hero .phone-main .input, .hero-camera .camera-frame .input { text-wrap: wrap; word-break: normal; overflow-wrap: anywhere; }
:lang(zh) :is(.hero .phone-main .input, .hero-camera .camera-frame .input) { word-break: keep-all; }
.camera-frame .input { position: relative; overflow: hidden; }
.camera-frame .input::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(135deg, #292635, #18181e 65%); animation: input-charge 1.2s ease-in-out infinite alternate; opacity: 1; transition: opacity 0.45s var(--ease); }
.camera-frame .typed, .camera-frame .caret { position: relative; z-index: 2; }
.camera-frame .caret { position: absolute; margin-left: 0; }
.typing-line { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.camera-frame .input::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 35%, rgba(203, 187, 255, 0.28) 50%, transparent 65%); transform: translateX(-110%); transition: opacity 0.45s var(--ease); }
.camera-frame.docking .input::before, .camera-frame.docking .input::after { opacity: 0; }
.camera-frame.is-sorted .caret { display: none; }
.ink-glyph { visibility: hidden; }
.ink-glyph.revealed { visibility: visible; animation: glyph-ink 0.2s ease-out both; }
.camera-frame.is-sorted .input::after { animation: input-scan 0.9s var(--ease) both; }
.camera-frame .suggestion { opacity: 0; transform: translateY(14px); }
.camera-frame.is-sorted .suggestion { opacity: 1; transform: none; }
.camera-frame .chip { opacity: 0; transform: translateY(6px) scale(0.85); transition: opacity 0.35s, transform 0.45s var(--ease); }
.camera-frame.is-sorted .chip { opacity: 1; transform: none; }
.camera-frame .chip:nth-child(2) { transition-delay: 0.12s; }
.camera-frame .chip:nth-child(3) { transition-delay: 0.24s; }
.camera-thoughts { position: absolute; top: 0; left: 0; z-index: 5; pointer-events: none; }
.camera-thought { position: absolute; display: block; width: max-content; max-width: 260px; padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(180, 162, 255, 0.35); background: rgba(40, 35, 62, 0.78); color: #e0d8ff; box-shadow: 0 0 26px rgba(151, 114, 255, 0.2); backdrop-filter: blur(12px); font-size: 15px; animation: thought-capture 1.3s var(--ease) both; animation-delay: calc(var(--i) * 0.1s); }
@keyframes input-charge { from { box-shadow: inset 0 0 0 1px rgba(181, 162, 255, 0.15), 0 0 26px -12px rgba(142, 115, 255, 0.1); } to { box-shadow: inset 0 0 0 1px rgba(181, 162, 255, 0.28); } }
@keyframes glyph-ink { from { opacity: 0.2; color: #c5adff; } to { opacity: 1; color: inherit; } }
@keyframes input-scan { to { transform: translateX(110%); } }
@keyframes thought-capture { 0% { opacity: 0; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(0.8); } 20% { opacity: 1; } 60% { opacity: 0.9; } 100% { opacity: 0; transform: translate(-50%, -50%) rotate(0) scale(0.25); } }
.camera-frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 20%, rgba(219, 211, 255, 0.15) 45%, transparent 70%); background-size: 250% 100%; animation: camera-light 2.1s ease-out both; }
.camera-frame.docking::after { z-index: 4; background: var(--camera-glass); background-size: auto; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); animation: camera-glass-dock 0.45s ease both; }
@keyframes camera-glass-dock { from { opacity: 0; } to { opacity: 1; } }
@keyframes camera-light { from { background-position: 100% 0; opacity: 0.8; } to { background-position: 0% 0; opacity: 0; } }
.demo-glow { transition: opacity 1s; }
.js .hero:not(.ready) .phone-main .suggestion { opacity: 0; transform: translateY(18px) scale(0.96); }

/* The three phones. */

.hero-visual { position: relative; z-index: 2; }
/* Tall enough for the side phones too, which sit lower than the Inbox. */
.demo-stage { position: relative; height: calc(var(--ph) + var(--phone-rise)); --fan: 0; perspective: 1200px; isolation: isolate; transition: --fan 0.7s var(--ease); }


@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .demo-stage:hover { --fan: 0.35; }
}

.demo-glow {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 760px;
  height: 560px;
  margin: -280px 0 0 -380px;
  background:
    radial-gradient(closest-side, rgba(111, 92, 225, 0.26), transparent 80%),
    radial-gradient(closest-side at 70% 60%, rgba(70, 130, 220, 0.1), transparent 75%);
  filter: blur(30px);
  pointer-events: none;
}

.phone-main { position: relative; top: var(--phone-rise); z-index: 2; margin: 0 auto; transition: opacity 1s, transform 1.5s var(--ease), filter 1.2s; }
.main-float { position: relative; z-index: 2; width: var(--pw); margin-inline: auto; transform-origin: 50% 75%; }
.side-in { transform-origin: 50% calc(var(--ph) * 1.02); }

.stage-floor { position: absolute; z-index: 0; top: 930px; left: 50%; width: 920px; height: 74px; margin-left: -460px; pointer-events: none; transition: opacity 1.2s ease-out 0.25s; }
.stage-floor::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse, rgba(159, 138, 246, 0.34), rgba(82, 71, 165, 0.13) 42%, transparent 72%); filter: blur(12px); opacity: 0.4; }
.js .hero:not(.settled) .stage-floor { opacity: 0; }

.side {
  position: absolute;
  z-index: 1;
  top: calc(var(--phone-rise) + 64px);
  left: 50%;
  width: var(--pw);
  margin-left: calc(var(--pw) / -2);
  --dir: -1;
  /* Tucked in behind the Inbox, tilted and dim; in the opening they slide out,
     straighten and light up. */
  --pp: 0;
  transition: --pp 1.4s var(--ease);
  transform: translateX(calc(var(--dir) * (var(--spread) * (0.76 + var(--pp) * 0.24) + var(--p, 0) * 32px + var(--fan) * 20px))) rotate(calc(var(--dir) * ((1 - var(--pp)) * -2deg + var(--fan) * 0.6deg + var(--p, 0) * 0.6deg))) scale(calc(0.98 + var(--pp) * 0.02));
}

.side-right { --dir: 1; }
.hero.sides .side { --pp: 1; }
.side .phone { transform: scale(0.82); transform-origin: center top; }
.side .screen { filter: brightness(calc(0.7 + var(--pp) * 0.16)); }

/* Phone mock */

/* A static reflection separates the frame from its black screen. */
.hero .phone::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: inherit;
  background: radial-gradient(circle at calc(var(--mx, 0.3) * 100%) calc(var(--my, 0.15) * 100%), rgba(255, 255, 255, 0.035), transparent 42%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.phone {
  position: relative;
  width: var(--pw);
  height: var(--ph);
  padding: 5px;
  border-radius: 54px;
  background: linear-gradient(145deg, #85858c 0%, #34343a 16%, #111113 45%, #44444b 78%, #66666e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 30px 70px -24px rgba(0, 0, 0, 0.9);
  text-align: left;
}

/* The Dynamic Island as on the iPhone 18 Pro, sized from the screen's width (281 × 107 on a
   1320-wide screen), as in the App Store screenshots; centred on the status bar's time. */
.island {
  --isw: calc(var(--pw) - 10px);
  position: absolute;
  z-index: 3;
  top: calc(31.6px - var(--isw) * 0.04055);
  left: 50%;
  width: calc(var(--isw) * 0.2129);
  height: calc(var(--isw) * 0.0811);
  margin-left: calc(var(--isw) * -0.10645);
  border-radius: 999px;
  background: #000;
}

.screen {
  position: relative;
  height: 100%;
  padding: 58px 16px 16px;
  border-radius: 49px;
  background: linear-gradient(175deg, #09090b, #000 60%);
  overflow: hidden;
}

.status {
  position: absolute;
  top: 18px;
  left: 34px;
  right: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
}

.status svg { width: 58px; height: 11px; }

.app-title { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 14px; }
.app-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.app-head .app-title { margin-bottom: 0; }
/* Buttons beside a page title, as in the app: a round one, or a capsule holding two. */
.head-btn, .head-btns { flex: none; display: flex; align-items: center; justify-content: center; height: 34px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); font-size: 17px; }
.head-btn { width: 34px; }
.head-btns { gap: 14px; padding: 0 12px; }

.input {
  min-height: 74px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--card);
  font-size: 15px;
  line-height: 1.4;
  text-wrap: pretty;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -3px;
  background: var(--accent);
  animation: blink 1s steps(1) infinite;
}

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

.suggestion {
  margin-top: 12px;
  padding: 16px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid rgba(143, 128, 255, 0.17);
  transition: opacity 0.6s, transform 0.7s var(--ease);
}


.suggestion-title { font-size: 17px; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 980px;
  background: var(--card-2);
  color: #c7c7cc;
  font-size: 13px;
}

.chip-cat { background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); font-weight: 600; }

.save {
  display: grid;
  margin-top: 16px;
  padding: 11px;
  border-radius: 13px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.save-label, .saved-label { grid-area: 1 / 1; transition: opacity 0.25s ease; }
.saved-label { display: flex; align-items: center; justify-content: center; gap: 6px; opacity: 0; }
.hero.filed .save, html:not(.js) .hero .save { background: rgba(48, 209, 88, 0.12); color: #7cdea0; }
.hero.filed .save-label, html:not(.js) .hero .save-label { opacity: 0; }
.hero.filed .saved-label, html:not(.js) .hero .saved-label { opacity: 1; }
.hero.ready .caret, html:not(.js) .caret { display: none; }

.rows { display: flex; flex-direction: column; gap: 10px; }

.row {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 14px;
  background: var(--card);
}

.row i { grid-row: span 2; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--c); }
.row b { font-size: 15px; font-weight: 600; }
.row em { margin-top: 2px; font-size: 13px; font-style: normal; color: #8e8e93; }
.row em.soon { color: var(--orange); }
.row em.streak { color: var(--green); }
.row-cal i { width: 4px; height: 34px; margin-left: 8px; border: 0; border-radius: 2px; background: var(--red); }

/* Sort: two columns of categories, each with its count */


.sort-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.sort-grid div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 84px;
  padding: 12px 11px 10px 12px;
  border-radius: 16px;
  background: var(--card);
  transition: opacity 0.5s, transform 0.6s var(--ease);
  transition-delay: calc(0.5s + var(--i) * 0.06s);
}

.sort-grid div > svg { font-size: 20px; color: var(--c); }
.sort-grid b { margin-top: auto; font-size: 15px; font-weight: 700; }
.sort-grid em { display: flex; justify-content: space-between; align-items: center; width: 100%; font-size: 12px; font-style: normal; color: #8e8e93; }
.sort-grid em svg { font-size: 10px; color: #636366; }
.sort-grid .sort-custom { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 8px; height: 48px; border: 1px dashed rgba(143, 128, 255, 0.35); background: rgba(143, 128, 255, 0.07); }
.sort-custom b { flex: 1; min-width: 0; margin-top: 0; }
.sort-custom i { color: var(--accent); font-size: 18px; font-style: normal; }
.js .hero:not(.sides) .sort-grid div { opacity: 0; transform: scale(0.98); }

/* Pinned sections: the section is tall, its content sticks, and scrolling drives --p. */

.pin { position: relative; }
.ai.pin { height: calc(175svh - var(--nav-h)); }

.sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.ai .sticky { top: var(--nav-h); height: calc(100svh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); padding: 24px 0; }
.ai.natural-scene { height: auto; }
.ai.natural-scene .sticky { position: relative; top: 0; height: auto; overflow: visible; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Without Apple Intelligence: the Inbox card as it shows on such an iPhone, with the
   capsule on the Suggestion heading. Still, like the app's own card. */
/* Room between the lines. */
.no-ai .split-text h2 { margin-bottom: 4px; }
.no-ai .split-text .lead { margin-top: 28px; line-height: 1.6; }
/* Chinese lines fill to the edge, as in AI Sorting; breaking only at punctuation ended every line on a comma. */
:lang(zh) .no-ai .lead { word-break: normal; overflow-wrap: normal; }
.noai-visual { position: relative; display: flex; justify-content: center; }
.noai-visual::before { content: ""; position: absolute; inset: -12% -6%; z-index: 0; background: radial-gradient(closest-side, rgba(111, 92, 225, 0.2), transparent 75%); pointer-events: none; }
.noai-panel { position: relative; z-index: 1; width: min(100%, 380px); padding: 18px; border-radius: 28px; background: linear-gradient(175deg, #111114, #09090b); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 90px -40px rgba(143, 128, 255, 0.45); }
.noai-panel .input { min-height: 0; }
.noai-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--gray); }
.noai-capsule { display: inline-flex; align-items: center; gap: 3px; min-height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(152, 152, 159, 0.12); font-size: 12px; white-space: nowrap; }
.noai-capsule svg { width: 12px; height: 12px; }
@media (min-width: 1069px) { .noai-panel { zoom: 1.2; } }

/* AI Sorting: six jotted notes in an Inbox; each is tagged, and its category in Sort
   pulses once and counts one more. Calm, like the app: neutral
   surfaces, colour only on the tags and icons. Scroll drives it all through --p. */
.ai-layout { display: flex; flex-direction: column; align-items: center; gap: 56px; }
.ai-head { max-width: 760px; text-align: center; }
.ai-head .lead { margin-inline: auto; }
.ai-stage { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 64px; align-items: start; width: 100%; max-width: 960px; }
.stage-label { grid-column: 1 / -1; margin: 0 0 12px 4px; font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--gray); }


.notes { position: relative; z-index: 2; display: flex; flex-direction: column; }

.note {
  --t: calc(var(--p, 1) * 9.5 - var(--i) * 1.25 - 0.3);
  --k: clamp(0, var(--t), 1);
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 62px;
  padding: 10px 18px 10px 22px;
  background: var(--card);
}
.note + .note::before { content: ""; position: absolute; top: 0; left: 22px; right: 0; height: 1px; background: rgba(255, 255, 255, 0.07); }
.notes > .note:nth-child(2) { border-radius: 22px 22px 0 0; }
.notes > .note:last-child { border-radius: 0 0 22px 22px; }

.note p { position: relative; min-width: 0; font-size: 18px; line-height: 1.3; font-weight: 500; color: var(--text); }

.note span {
  position: relative;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 980px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: var(--c);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  opacity: var(--k);
  transform: scale(calc(0.92 + var(--k) * 0.08));
  transform-origin: right center;
}

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

.bin {
  --t: calc(var(--p, 1) * 9.5 - var(--i) * 1.25 - 0.3);
  /* Lit just after the note's tag appears; the edge pulses once, then rests. */
  --lit: clamp(0, calc((var(--t) - 1.05) * 4), 1);
  --pulse: min(var(--lit), calc(1 - clamp(0, calc((var(--t) - 1.4) * 2.5), 1)));
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 112px;
  padding: 15px 14px 12px 16px;
  border-radius: 20px;
  background: var(--card);
}
.bin::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent);
  opacity: var(--pulse);
}
.bin > svg { position: relative; font-size: 22px; color: var(--c); transform: scale(calc(1 + var(--pulse) * 0.14)); }
.bin b { position: relative; margin-top: auto; font-size: 17px; line-height: 1.3; font-weight: 700; }
.bin em { position: relative; display: flex; justify-content: space-between; align-items: center; width: 100%; margin-top: 1px; font-size: 13px; font-style: normal; color: #8e8e93; }
.bin em svg { font-size: 10px; color: #636366; }
.bin .n { display: inline-grid; }
.bin .n > span { grid-area: 1 / 1; }
.bin .was { opacity: calc(1 - var(--lit)); }
.bin .now { opacity: var(--lit); }

/* Today */

.today-device { display: flex; justify-content: center; }
.today-device .device { --dw: 310px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 40px 90px -30px rgba(143, 128, 255, 0.45); }

/* A real Sorta screen (App Store screenshot mode) in a phone frame. Island and corner
   sizes follow the screen's width, as on the iPhone. */
.device {
  --sw: calc(var(--dw, 300px) - 10px);
  position: relative;
  width: var(--dw, 300px);
  padding: 5px;
  border-radius: calc(var(--sw) * 0.137 + 5px);
  background: linear-gradient(145deg, #85858c 0%, #34343a 16%, #111113 45%, #44444b 78%, #66666e 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.32), 0 30px 70px -24px rgba(0, 0, 0, 0.9);
}
.device img { display: block; width: 100%; height: auto; border-radius: calc(var(--sw) * 0.137); background: #000; }
/* The screens stop above the app's tab bar, so the phone fades out instead of ending. */
.device.cut { padding-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; -webkit-mask-image: linear-gradient(#000 74%, transparent); mask-image: linear-gradient(#000 74%, transparent); }
.device.cut img { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.device .island { top: calc(5px + var(--sw) * 0.0333); width: calc(var(--sw) * 0.2129); height: calc(var(--sw) * 0.0811); margin-left: calc(var(--sw) * -0.10645); border-radius: 999px; }

/* Flash */

.section-head { max-width: 760px; }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.carousel-controls { display: none; }

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 28px;
  border-radius: 28px;
  background: var(--tile);
  text-align: center;
}

.flash-demo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 26px;
  width: 100%;
  height: 264px;
  margin-bottom: 28px;
}

/* Neutral surfaces with a small identifying color on each input icon. */
.flash .eyebrow { color: var(--gray-2); }

.tile-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: #262628;
  box-shadow: none;
  font-size: 42px;
  color: #fff;
}

.tile-icon svg { position: relative; z-index: 1; }
.flash .tile-voice .tile-icon { color: #ff7b80; }
.flash .tile-photo .tile-icon { color: #f3c35b; }
.flash .tile-shot .tile-icon { color: #73b5ff; }

.tile h3 { font-size: 28px; line-height: 1.18; font-weight: 600; }
.tile p { margin-top: 14px; font-size: 17px; line-height: 1.5; font-weight: 600; color: var(--gray); }

/* Concrete notes replace status pills; the original 26px input/result gap stays. */
.flash-result { position: relative; display: flex; flex: none; flex-direction: column; justify-content: center; gap: 8px; width: min(100%, 240px); height: 104px; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 14px; background: var(--card); text-align: left; }
.flash-note-title { font-size: 14px; line-height: 1.4; font-weight: 600; text-wrap: pretty; }
.flash-saved { display: inline-flex; align-items: center; gap: 4px; color: #a1a1a6; font-size: 10px; line-height: 14px; }
.flash-saved svg { font-size: 10px; }
.flash-waveform { width: 112px; height: 20px; fill: none; stroke: #bababe; stroke-width: 2; stroke-linecap: round; }
.flash-photo-input { flex-direction: row; align-items: center; gap: 14px; }
.flash-storefront { flex: none; width: 52px; height: 52px; fill: none; stroke: #a1a1a6; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.flash-restaurant-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.flash-screen-input { flex-direction: row; align-items: center; gap: 14px; }
.flash-voice-input { align-items: center; text-align: center; }
/* A screenshot in miniature: a product photo, two lines and a price. */
.flash-shot { flex: none; display: flex; flex-direction: column; gap: 4px; width: 38px; height: 58px; padding: 4px; border: 1.5px solid #7f9fc4; border-radius: 8px; }
.flash-shot i { display: block; height: 3px; border-radius: 2px; background: #4a4a4f; }
.flash-shot i:nth-of-type(3) { width: 65%; }
.flash-shot .flash-shot-image { height: 22px; border-radius: 4px; background: rgba(115, 181, 255, 0.28); }
.flash-shot b { width: 45%; height: 4px; margin-top: auto; border-radius: 2px; background: #7f9fc4; }
.flash-waveform { stroke: #bd858c; }
.flash-storefront { stroke: #b5a078; }
.flash .carousel-dots button[aria-current]::before { background: #d2d2d7; }
.flash :is(.carousel-controls button, .carousel-track):focus-visible { outline-color: #d2d2d7; }
/* Where a Flash starts: wherever the iPhone already is. */
.flash-entry { margin-top: 56px; text-align: center; }
.flash-entry p { font-size: 17px; line-height: 1.4; font-weight: 600; color: var(--gray-2); }
.flash-entry ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1040px; margin: 20px auto 0; padding: 0; list-style: none; }
.flash-entry li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 980px; background: var(--tile); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); font-size: 15px; line-height: 1.3; font-weight: 600; color: #d2d2d7; white-space: nowrap; }
.flash-entry svg { flex: none; font-size: 17px; color: var(--gray-2); }
@media (prefers-reduced-motion: no-preference) {
  .tile.in:not(.motion-static) .flash-result { animation: flash-note-in 0.5s var(--ease) 0.18s both; }
}
@keyframes flash-note-in { from { opacity: 0.4; translate: 0 4px; } to { opacity: 1; translate: 0 0; } }

/* Categories: varied bento compartments with small, stable product examples. */

.categories { background: #080809; }

.bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 64px;
}

.cell {
  --card: #303036;
  --card-2: #3c3c44;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 32px;
  border-radius: 28px;
  background: linear-gradient(180deg, #232329, #1b1b20);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 16px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.cell-wide { grid-column: span 2; }

/* Same height in every tile, so the words below line up across a row. */
.visual {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 240px;
  padding: 36px 0;
  margin-bottom: 32px;
}

/* Inside that frame each picture runs the full 168px, top edge to bottom edge, so the
   pictures in a row start and end on the same lines. */
.v-todo, .v-alerts { justify-content: space-between; }
.v-shops { align-items: stretch; }

.cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c);
}

.cat svg { font-size: 17px; }

.cell h3 { margin-top: 12px; font-size: 28px; line-height: 1.18; font-weight: 600; }
.cell-body { max-width: 380px; margin-top: 18px; font-size: 17px; line-height: 1.5; font-weight: 400; color: #b1b1bb; }

/* A category made by the user receives the matching note just like the built-ins. */
.cell-custom { grid-column: 1 / -1; justify-content: center; gap: 24px; text-align: center; }
.custom-copy { min-width: 0; width: min(100%, 680px); }
.custom-copy .cell-body { max-width: 440px; margin-inline: auto; }
.custom-plus { font-size: 22px; line-height: 1; font-weight: 400; }
.v-custom { height: 240px; padding: 0; margin: 0; text-align: left; }
.custom-folder { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; column-gap: 14px; row-gap: 4px; width: min(100%, 320px); padding: 24px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.09); background: var(--card); }
.custom-folder > svg { grid-row: span 2; width: 48px; height: 48px; padding: 10px; border-radius: 14px; color: var(--accent); background: transparent; }
.custom-folder b { font-size: 20px; }
.custom-folder > span { font-size: 13px; line-height: 1.5; color: var(--gray-2); }
.custom-note { position: absolute; top: 6px; left: 50%; width: max-content; max-width: 100%; padding: 10px 16px; border-radius: 13px; background: var(--card); font-size: 15px; font-weight: 500; transform: translateX(-50%); }
.custom-filed { position: absolute; bottom: 6px; left: 50%; display: flex; align-items: center; gap: 6px; width: max-content; max-width: 100%; color: var(--gray-2); font-size: 14px; transform: translateX(-50%); }
/* Purchased items remain in their bags and receive separate, staggered checks. */

.v-shops { flex-direction: row; gap: 22px; }
.bag { --item-size: 44px; --item-overlap: 16px; position: relative; width: 150px; }

/* Twisted paper handle, behind what is in the bag. */
.bag-handle {
  position: absolute;
  left: 50%;
  top: 0;
  width: 62px;
  height: 60px;
  margin-left: -31px;
  border: 4px solid #8a6238;
  border-bottom: 0;
  border-radius: 31px 31px 0 0;
}

.bag-items {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(52px - var(--item-size) + var(--item-overlap));
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 2px;
}

.bag-items i {
  position: relative;
  font-size: calc(var(--item-size) * 0.82);
  font-style: normal;
  line-height: 1;
  transform: rotate(calc((var(--i) - 1) * 2deg));
  transition: transform 0.7s var(--ease), opacity 0.4s;
  transition-delay: calc(0.3s + var(--b) * 0.2s + var(--i) * 0.12s);
}

.bag-items i:nth-child(2) { margin-top: -6px; }
.bag-items .bag-emoji { opacity: 0.5; }

/* Ticked off where it is, as on a paper list. */
.bag-items .bought::after {
  content: "✓";
  position: absolute;
  right: -4px;
  top: 4px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1c1c1e;
  border: 1px solid currentColor;
  color: var(--c);
  font-size: 12px;
  font-weight: 800;
  transition: transform 0.4s var(--ease) 1.5s;
}

.bag-front {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 52px;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 4px 4px 10px 10px;
  background: linear-gradient(90deg, #b88a55, #d8b07c 18%, #dcb582 82%, #b88a55);
  box-shadow: inset 0 -10px 18px -10px rgba(80, 50, 20, 0.45), 0 18px 30px -18px rgba(0, 0, 0, 0.8);
  color: #5a3b1a;
}

/* The folded rim along the mouth. */
.bag-front::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 12px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, #a87b47, #c99e68 18%, #cca26c 82%, #a87b47);
}

.bag-front b { font-size: 17px; font-weight: 700; letter-spacing: 0.01em; }
.bag-front svg { font-size: 15px; }

.js .cell:not(.in) .bag-items i { opacity: 0; transform: translateY(-10px); }
.js .cell:not(.in) .bag-items .bought::after { transform: scale(0); }

/* Daily: slim green progress lines on neutral tracks. */
.v-daily { gap: 14px; }
.habit-list { display: grid; gap: 20px; width: min(100%, 280px); text-align: left; }
.habit-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px 12px; font-size: 14px; }
.habit-row b { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--gray-2); font-variant-numeric: tabular-nums; font-weight: 500; }
.habit-row b svg { color: var(--green); font-size: 12px; }
.habit-row > i { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: #37373b; overflow: hidden; }
.habit-row > i::before { content: ""; display: block; width: var(--progress); height: 100%; background: var(--green); border-radius: inherit; }

/* To-do: grouped by when, each with the time it has left */

.todo-group { display: flex; flex-direction: column; gap: 6px; width: 100%; max-width: 280px; text-align: left; }
.todo-group em { padding-left: 4px; font-size: 12px; line-height: 1.2; font-style: normal; font-weight: 600; color: var(--gray); }

.todo-row {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  background: var(--card);
  font-size: 13px;
  transition: transform 0.6s var(--ease), opacity 0.5s;
}

.todo-row i { flex: none; width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--c); }
.todo-row b { flex: 1; min-width: 0; overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.todo-row span { flex: none; font-size: 12px; font-weight: 600; color: var(--c); }
.todo-row .due { color: var(--orange); }
.todo-group + .todo-group .todo-row { transition-delay: 0.15s; }
.todo-group + .todo-group .todo-row + .todo-row { transition-delay: 0.3s; }
.js .cell:not(.in) .todo-row { opacity: 0; transform: translateX(-16px); }

/* Alerts: critical ones take turns at the top of Today; below, Today's rows */

.banner {
  position: absolute;
  left: 0;
  right: 0;
  top: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 260px;
  max-width: 100%;
  margin: 0 auto;
  padding: 14px 16px;
  border-radius: 18px;
  background: #2a1414;
  box-shadow: inset 0 0 0 1px rgba(255, 69, 58, 0.4);
  text-align: left;
  z-index: 2;
}

.banner + .banner { z-index: 1; transform: translateY(7px) scale(0.97); opacity: 0.24; }
.banner svg { font-size: 26px; color: var(--c); }
.banner p { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.banner b { font-size: 16px; }
.banner span { font-size: 13px; color: #ff9f97; }
.banner small { align-self: flex-start; font-size: 11px; font-weight: 600; color: #ff9f97; }

.ghost { display: flex; align-items: center; gap: 10px; width: 260px; max-width: 100%; height: 32px; padding: 0 12px; border-radius: 10px; background: var(--card); }
.ghost + .ghost { margin-top: 8px; }
.ghost i { width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #48484a; }
.ghost b { width: 55%; height: 7px; border-radius: 4px; background: #2c2c2e; }
.v-alerts .ghost:first-of-type { margin-top: auto; }

/* The stable sushi example connects to its matching group, without a looping flight. */

.cell-food { --food-node: 58px; }
.v-food { justify-content: space-between; }
.food-notes { position: relative; width: 100%; height: 38px; }
.food-link { position: absolute; top: 74px; left: calc(50% - var(--food-step, 84px)); width: var(--food-step, 84px); height: calc(100% - 110px - var(--food-node)); overflow: visible; fill: none; stroke: color-mix(in srgb, var(--c) 45%, #68666b); pointer-events: none; }
.food-link path { stroke-width: 1.25px; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.cell-food .stack:first-child i:last-child { outline: 1px solid color-mix(in srgb, var(--c) 40%, transparent); outline-offset: -1px; }

.food-note {
  position: absolute;
  left: 50%;
  top: 0;
  overflow: hidden;
  padding: 9px 14px;
  border-radius: 12px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  transform: translateX(-50%);
  opacity: 0;
}

.food-note:first-child { opacity: 1; }

.stacks { display: flex; justify-content: center; gap: 26px; }
.stack { position: relative; width: 58px; height: 58px; }

.stack i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 31px;
  font-style: normal;
  line-height: 1;
}

.stack i:not(:last-child) { display: none; }

/* Places: pins on a map */

.map-box { position: relative; width: min(100%, 280px); height: 100%; border-radius: 18px; overflow: hidden; }
.map-box svg { display: block; width: 100%; height: 100%; }

.map-pin {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
  transition: transform 0.7s var(--ease), opacity 0.4s;
  transition-delay: calc(0.5s + var(--i) * 0.2s);
}

.map-pin::after {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 6px;
  border-radius: 50% 50% 50% 0;
  background: var(--c);
  box-shadow: 0 0 0 3px #000;
  transform: rotate(-45deg);
}

.map-pin b { padding: 4px 9px; border-radius: 8px; background: rgba(28, 28, 30, 0.9); font-size: 12px; white-space: nowrap; }
.js .cell:not(.in) .map-pin { opacity: 0; transform: translate(-50%, calc(-100% - 8px)); }

/* Ideas keep passing thoughts; Unsorted files them one by one. */
.v-idea-notes { gap: 12px; }
.idea-slip { display: flex; align-items: center; gap: 8px; width: min(100%, 250px); padding: 13px 16px; border-radius: 13px; border: 1px solid rgba(255, 255, 255, 0.06); background: var(--card); font-size: 14px; font-weight: 500; text-align: left; transform: none; }
.idea-slip > svg { flex: none; color: var(--yellow); font-size: 14px; }
.v-unsorted { padding: 20px 0; gap: 14px; }
.unsorted-notes { width: min(100%, 360px); display: grid; gap: 9px; }
.unsorted-notes p { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 9px 11px; border-radius: 12px; background: var(--card); text-align: left; }
.unsorted-notes b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; }
.unsorted-notes span { flex: none; padding: 3px 6px; border-radius: 6px; background: color-mix(in srgb, var(--note-color) 12%, transparent); color: var(--note-color); font-size: 10px; }
.sort-preview-trigger { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 8px 16px; border: 1px solid rgba(143, 128, 255, 0.3); border-radius: 980px; background: #383044; color: #d4ccff; font: 600 13px var(--font); cursor: pointer; transition: background 0.2s, transform 0.25s var(--ease); }
.sort-preview-trigger svg { font-size: 15px; }
.sort-preview-trigger:hover { background: #494057; }
.sort-preview-trigger:active { transform: scale(0.98); }
.sort-preview-trigger:disabled, .when-option:disabled { cursor: default; }

/* Small demonstrations of everyday actions. */
.handy.section { padding: 96px 0; }
.handy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.handy-card { position: relative; min-width: 0; padding: 32px 28px; }
.handy-card h3 { margin-top: 0; font-size: 24px; line-height: 1.3; }
.handy-card .cell-body { margin-top: 12px; }
.handy-access { text-align: center; }
.handy-access { grid-column: 1 / -1; }
.handy-access .feature-demo { align-items: center; }
.access-copy { width: min(100%, 600px); }
.access-copy .cell-body { margin-inline: auto; }
.access-mark { display: grid; place-items: center; flex: none; width: 84px; height: 84px; border-radius: 24px; background: rgba(143, 128, 255, 0.13); color: var(--accent); font-size: 50px; }
.sort-preview-trigger:focus-visible, .when-option:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.feature-demo { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 14px; width: min(100%, 360px); height: 144px; margin: 12px auto 26px; text-align: left; }
.when-picker { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; background: #15151a; }
.when-highlight { position: relative; grid-area: 1 / 1; align-self: stretch; border-radius: 10px; background: linear-gradient(140deg, #6d5af5, #5140c9); box-shadow: 0 3px 12px rgba(143, 128, 255, 0.24); pointer-events: none; transform: translateX(calc(var(--when-index, 0) * (100% + 4px))); transition: transform 0.35s var(--ease); }
.when-option { position: relative; z-index: 1; grid-row: 1; min-width: 0; min-height: 38px; padding: 5px 0; border: 1px solid rgba(255, 255, 255, 0.04); border-radius: 10px; background: rgba(255, 255, 255, 0.035); color: #aaa8b3; font: 500 13px var(--font); white-space: nowrap; cursor: pointer; transition: color 0.25s; }
.when-option:nth-of-type(1) { grid-column: 1; }
.when-option:nth-of-type(2) { grid-column: 2; }
.when-option:nth-of-type(3) { grid-column: 3; }
.when-option:nth-of-type(4) { grid-column: 4; }
.when-option[aria-pressed="true"] { color: #fff; }
.when-note { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 11px 13px; border-radius: 12px; background: var(--card); }
.when-note i { flex: none; width: 14px; height: 14px; border: 1.5px solid var(--blue); border-radius: 50%; }
.when-note b { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; }
.when-note span { flex: none; color: #ada0ff; font-size: 12px; }
.resume-demo { align-items: flex-start; gap: 12px; padding: 0 4px; }
.resume-note { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; }
.resume-note b { font-size: 15px; font-weight: 600; }
.resume-note span { font-size: 12px; color: #a5a3ad; white-space: nowrap; }
.resume-track { display: flex; gap: 5px; width: 100%; }
.resume-track i { flex: 1; max-width: 64px; height: 6px; border-radius: 980px; background: rgba(255, 255, 255, 0.14); }
.resume-track .is-done { background: var(--accent); }
.resume-track .is-now { background: none; border: 1.5px solid var(--accent); }
.resume-button { align-self: stretch; padding: 9px 12px; border-radius: 13px; background: #f5f5f7; color: #15151a; font-size: 13px; font-weight: 600; text-align: center; }
.undo-demo { align-items: center; gap: 10px; }
.undo-note { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 13px; background: var(--card); }
.undo-note > i { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border: 1.5px solid var(--blue); border-radius: 50%; color: #15151a; font-size: 12px; }
.undo-note svg { opacity: 0; }
.undo-note b { position: relative; font-size: 14px; font-weight: 500; }
.undo-note b::after { content: ""; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: #aba9b3; transform: scaleX(0); transform-origin: left; }
.undo-toast { display: flex; align-items: center; gap: 20px; padding: 7px 12px; border-radius: 980px; background: #15151a; border: 1px solid rgba(255, 255, 255, 0.1); font-size: 12px; color: #a5a2b3; }
.undo-toast b { display: flex; align-items: center; gap: 5px; color: var(--accent-text); }
.deleted-pill { display: flex; align-items: center; gap: 6px; color: #a5a2b3; font-size: 11px; }
.deleted-pill svg { font-size: 13px; }
.search-demo { gap: 10px; }
.search-field { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 10px 13px; border-radius: 12px; background: #15151a; border: 1px solid rgba(143, 128, 255, 0.22); font-size: 13px; }
.search-field > svg { color: var(--accent); font-size: 17px; }
.search-caret { display: none; width: 1px; height: 14px; background: var(--accent); }
.search-thinking { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 5px; opacity: 0; }
.search-thinking i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.search-results { position: relative; display: grid; gap: 6px; }
.search-results p { display: flex; align-items: center; gap: 8px; min-height: 29px; padding: 7px 12px; border-radius: 9px; background: var(--card); font-size: 12px; }
.search-results svg { color: var(--purple); font-size: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .js [data-motion]:not(.motion-static) .search-glyph, .js [data-motion]:not(.motion-static) .search-results p { opacity: 0; }
  .js [data-motion].playing .search-glyph { animation: query-glyph 0.18s ease-out calc(var(--i) * 0.075s) both; }
  .js [data-motion].playing .search-results p { animation: search-result 0.65s var(--ease) calc(var(--type-time) + var(--i) * 0.15s) both; }
  .js [data-motion].playing .search-thinking { animation: search-thinking var(--type-time) linear both; }
  .js [data-motion].playing .search-thinking i { animation: think 0.7s ease-in-out calc(var(--i, 0) * 0.1s) 3 both; }
  .search-thinking i:nth-child(2) { --i: 1; }
  .search-thinking i:nth-child(3) { --i: 2; }
}
@keyframes query-glyph { from { opacity: 0; } to { opacity: 1; } }
@keyframes search-result { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes search-thinking { 0%, 24%, 100% { opacity: 0; } 38%, 84% { opacity: 1; } }
@keyframes think { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-1px); opacity: 1; } }
/* Privacy */

.privacy { text-align: center; }

.privacy-mark {
  display: grid;
  place-items: center;
  width: 140px;
  height: 140px;
  margin: 0 auto 48px;
  border-radius: 36px;
  background: linear-gradient(145deg, #9d8fff, #5945f2 55%, #3f2fc4);
  box-shadow: 0 30px 80px -20px rgba(143, 128, 255, 0.8);
  font-size: 72px;
  color: #fff;
  transform: scale(calc(0.96 + var(--p, 1) * 0.04));
  opacity: calc(0.65 + var(--p, 1) * 0.35);
}

.privacy h2 { font-size: 64px; max-width: 820px; margin: 0 auto; }

.points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 72px;
}

.point {
  display: grid;
  grid-template-rows: 36px 45px 33px;
  align-content: center;
  justify-items: center;
  align-items: start;
  min-height: 220px;
  padding: 40px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.points svg { font-size: 36px; color: var(--accent); }
.points h3 { margin-top: 18px; font-size: 19px; line-height: 1.4; font-weight: 600; }
.points p { margin-top: 10px; font-size: 15px; line-height: 1.5; font-weight: 600; color: var(--gray); }

/* Sync */

.sync { text-align: center; }
.sync .lead { margin-inline: auto; max-width: 680px; }
.sync h2 { font-size: 64px; }
/* Chinese here breaks only after a mark, so no clause is cut in two (连 / Apple). On wide
   screens the first line ends at 同步，. */
:lang(zh) :is(.sync .lead, .flash .section-head .lead, .flash .tile p, .categories .cell-body) { word-break: keep-all; overflow-wrap: anywhere; }
:lang(zh) .sync .lead { max-width: 24.5em; }
/* The Flash cards' lines, one clause each, the three alike. */
:lang(zh) .flash .tile p { max-width: 12em; margin-inline: auto; }

.sync-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-bottom: 72px;
}

.mini {
  width: 160px;
  height: 330px;
  padding: 6px;
  border-radius: 34px;
  background: linear-gradient(150deg, #57575c 0%, #1d1d1f 22%, #2a2a2d 60%, #4a4a4f 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.mini-left { transform: translateX(calc((1 - var(--p, 1)) * -24px)); }
.mini-right { transform: translateX(calc((1 - var(--p, 1)) * 24px)); }

.mini-screen {
  height: 100%;
  padding: 52px 12px 12px;
  border-radius: 28px;
  background: #000;
  text-align: left;
}

.mini-card { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 12px; background: var(--card); }
.mini-card b { font-size: 13px; }
.mini-card span { font-size: 12px; color: #8e8e93; }
.mini-card .mini-when-short { display: none; }
.mini-right .mini-card { opacity: clamp(0, calc(var(--p, 1) * 3 - 1.9), 1); }

.sync-cloud {
  flex: none;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2f7cf6, #64d2ff);
  box-shadow: 0 16px 40px -10px rgba(10, 132, 255, 0.8);
  font-size: 42px;
  color: #fff;
  transform: scale(calc(0.96 + var(--p, 1) * 0.04));
}


/* Categories open on two real screens: Sort, and Shopping behind it. */
.cat-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 80px; }
.cat-devices { position: relative; height: calc(var(--dw) * 1.8 + 70px); --dw: clamp(150px, 18vw, 240px); }
.cat-devices .device { position: absolute; top: 0; }
.cat-devices .device-front { left: 0; z-index: 2; transform: translateY(calc((1 - var(--p, 1)) * 36px)); }
.cat-devices .device-back { right: 0; top: 64px; transform: translateY(calc((1 - var(--p, 1)) * 90px)); }

/* Flash opens beside a phone's top edge: the Action button is pressed and the Dynamic
   Island says it's heard, filed and done. A warm light sets the section apart. */
.flash { position: relative; overflow: clip; }
.flash::before {
  content: "";
  position: absolute;
  top: 0;
  right: -12%;
  width: 72%;
  height: 820px;
  background: radial-gradient(closest-side, rgba(255, 105, 97, 0.13), rgba(255, 159, 10, 0.05) 55%, transparent);
  pointer-events: none;
}
.flash > .wrap { position: relative; }
.flash-intro { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.press { display: flex; justify-content: center; }
.press-phone {
  --island-w: min(340px, calc(100% - 44px));
  /* cqw below is the screen's width, so the resting island is the iPhone 18 Pro's. */
  container-type: inline-size;
  position: relative;
  width: min(440px, 100%);
  height: 300px;
  padding: 7px 7px 0;
  border-radius: 66px 66px 0 0;
  background: linear-gradient(160deg, #85858c 0%, #3a3a40 18%, #141416 50%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  -webkit-mask-image: linear-gradient(#000 58%, transparent);
  mask-image: linear-gradient(#000 58%, transparent);
}
.press-screen { position: relative; height: 100%; border-radius: 59px 59px 0 0; background: radial-gradient(120% 90% at 50% 0%, #241a33, #08080a 70%); overflow: hidden; }
.press-button { position: absolute; z-index: 1; top: 96px; left: -3px; width: 4px; height: 44px; border-radius: 3px 0 0 3px; background: #ff6961; box-shadow: 0 0 14px rgba(255, 69, 58, 0.7); }
.press-island {
  position: absolute;
  top: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  width: var(--island-w);
  height: 46px;
  padding: 0 8px;
  border-radius: 999px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 12px 30px -10px rgba(0, 0, 0, 0.8);
  transform: translateX(-50%);
  overflow: hidden;
}
.press-mic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 69, 58, 0.22); color: #ff6961; font-size: 16px; }
.press-text { position: relative; flex: 1; min-width: 0; height: 20px; }
.press-text > span { position: absolute; inset: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; opacity: 0; }
.press-text .press-done { opacity: 1; color: #7cdea0; }
.press-done svg { font-size: 13px; }
.press-wave { width: 42px; height: 16px; flex: none; fill: none; stroke: #ff7b80; stroke-width: 2.4; stroke-linecap: round; }
.press-sorting { color: #d2d2d7; }
.press-time { position: absolute; top: 104px; left: 0; right: 0; font-size: clamp(72px, 7vw, 96px); line-height: 1; font-weight: 600; letter-spacing: -0.02em; text-align: center; color: rgba(235, 235, 245, 0.82); }

@media (prefers-reduced-motion: no-preference) {
  .js .press.live .press-island { animation: press-island 7s var(--ease) infinite; }
  .js .press.live .press-button { animation: press-button 7s infinite; }
  .js .press.live .press-mic { animation: press-mic 7s infinite; }
  .js .press.live .press-listen { animation: press-listen 7s infinite; }
  .js .press.live .press-sorting { animation: press-sorting 7s infinite; }
  .js .press.live .press-done { animation: press-done 7s infinite; }
  .js .press.live .press-wave { animation: press-wave 0.9s ease-in-out infinite alternate; }
}
@keyframes press-island { 0%, 9% { width: 21.29cqw; height: 8.11cqw; } 14%, 90% { width: var(--island-w); height: 46px; } 96%, 100% { width: 21.29cqw; height: 8.11cqw; } }
@keyframes press-button { 0%, 6% { opacity: 0; transform: none; } 8%, 12% { opacity: 1; transform: translateX(2px); } 16%, 100% { opacity: 0; transform: none; } }
@keyframes press-mic { 0%, 11% { opacity: 0; } 15%, 88% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes press-listen { 0%, 14% { opacity: 0; } 18%, 38% { opacity: 1; } 42%, 100% { opacity: 0; } }
@keyframes press-sorting { 0%, 40% { opacity: 0; } 44%, 62% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes press-done { 0%, 64% { opacity: 0; } 68%, 88% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes press-wave { from { transform: scaleY(0.55); } to { transform: scaleY(1); } }

/* Sync carries a cool light from the iCloud mark. */
.sync { position: relative; overflow: clip; }
.sync::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 50%;
  width: 900px;
  height: 640px;
  margin-left: -450px;
  background: radial-gradient(closest-side, rgba(47, 124, 246, 0.16), rgba(100, 210, 255, 0.05) 55%, transparent);
  pointer-events: none;
}
.sync .wrap { position: relative; }

/* Closing */

.closing { text-align: center; }
.closing.section { padding: 112px 0; }
.closing-logo { display: block; width: 96px; height: 96px; margin: 0 auto; transform: scale(calc(0.96 + var(--p, 1) * 0.04)); border-radius: 22.5%; box-shadow: 0 0 0 3px #232326, 0 0 0 4px #424245; }
.closing h2 { margin: 36px 0 44px; font-size: 80px; line-height: 1.05; letter-spacing: -0.015em; }
.closing-line { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .js .closing .in .closing-line { animation: closing-line-in 1s var(--ease) calc(0.15s + var(--i) * 0.25s) both; }
  .js .closing .in .closing-get { animation: closing-line-in 0.8s var(--ease) 0.8s both; }
}
/* The opening names the app: its icon and "Sorta" above the headline. */
/* The opening names the app the way every section names itself: an eyebrow (icon and
   "Sorta", eyebrow size, in white) above the headline, with a little more room than a
   section eyebrow since it carries an icon. */
.hero-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; font-size: 21px; line-height: 1.2; font-weight: 600; color: var(--text); }
/* The same double edge and accent glow as the icon at the end of the page, at this size. */
.hero-logo { flex: none; width: 28px; height: 28px; border-radius: 22.5%; box-shadow: 0 0 0 1.5px #232326, 0 0 0 2.5px #424245, 0 6px 18px -6px rgba(143, 128, 255, 0.5); }
/* Once the bar has landed, the glow breathes and the icon floats a little. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero.copy-visible .hero-logo { animation: logo-breathe 4.8s ease-in-out 1.6s infinite; }
}
@keyframes logo-breathe {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 1.5px #232326, 0 0 0 2.5px #424245, 0 6px 18px -6px rgba(143, 128, 255, 0.5); }
  50% { transform: translateY(-1.5px); box-shadow: 0 0 0 1.5px #232326, 0 0 0 2.5px #424245, 0 9px 24px -5px rgba(143, 128, 255, 0.75); }
}

/* 落位: the accent bar drops in from above the tile and settles on the stack, as the
   opening's words appear. */
.logo-drop { transform-box: view-box; transform-origin: 528px 354px; }
@media (prefers-reduced-motion: no-preference) {
  .js .hero.copy-visible .hero-logo .logo-drop { animation: logo-drop 1.15s var(--ease) 0.2s both; }
  /* A visit's later pages open on the finished scene, bar already in place. */
  .js .hero.entrance-skipped .hero-logo .logo-drop { animation: none; }
}
@keyframes logo-drop {
  0% { transform: translate(60px, -420px) rotate(-22deg); }
  58% { transform: translate(0, 18px) rotate(2deg); }
  78% { transform: translate(0, -6px) rotate(-0.6deg); }
  100% { transform: none; }
}
@keyframes closing-line-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
a.nav-cta { text-decoration: none; }
/* The closing call: a button where the App Store is a tap away, a QR code for the iPhone
   when the page is read at a desk (a mouse or trackpad). */
.closing-get { display: flex; justify-content: center; }
.store-button { display: inline-flex; align-items: center; padding: 12px 24px; border-radius: 980px; background: var(--accent-strong); color: #fff; font-size: 17px; font-weight: 500; line-height: 1.4; text-decoration: none; transition: filter 0.2s; }
.store-button:hover { filter: brightness(1.15); }
.store-qr { display: none; flex-direction: column; align-items: center; gap: 14px; color: #d2d2d7; font-size: 15px; text-decoration: none; }
.store-qr img { display: block; width: 120px; height: 120px; border-radius: 14px; }
@media (hover: hover) and (pointer: fine) {
  .store-button { display: none; }
  .store-qr { display: flex; }
}

/* Footer */

.footer {
  padding: 28px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--tile);
  font-size: 12px;
  line-height: 1.5;
  color: var(--gray);
}

.footer .wrap { display: flex; flex-direction: column; gap: 12px; }
.footer a { color: #d2d2d7; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-link-pair { display: inline-flex; flex: none; align-items: center; gap: 24px; }
.footer-links a { white-space: nowrap; }
.footer-end { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* Reveal on scroll */

[data-reveal] { transition: opacity 0.6s, transform 0.7s var(--ease); }
.js [data-reveal]:not(.in) { opacity: 0; transform: translateY(10px); }
h2[data-reveal] { transition: opacity 0.6s, transform 0.7s var(--ease); }
.tiles > :nth-child(2), .points > :nth-child(2) { transition-delay: 0.1s; }
.tiles > :nth-child(3), .points > :nth-child(3) { transition-delay: 0.2s; }
.points > :nth-child(4) { transition-delay: 0.3s; }
.bento > :nth-child(2), .bento > :nth-child(4), .bento > :nth-child(7) { transition-delay: 0.1s; }
.bento > :nth-child(5) { transition-delay: 0.2s; }

/* Chinese headlines don't need negative tracking. */

:lang(zh) h1, :lang(zh) h2 { letter-spacing: 0; }

/* Chinese fills its square where Latin letters leave room above and below, so the same
   line height reads tighter: give it more. */

:lang(zh) .cell h3, :lang(zh) .tile h3 { line-height: 1.3; }
:lang(zh) .cell-body, :lang(zh) .tile p, :lang(zh) .points p, :lang(zh) .lead, :lang(zh) .hero-sub { line-height: 1.5; }
:lang(zh) h2 { line-height: 1.2; }

/* Chinese headlines break at punctuation, not between any two characters. */

/* Centred Chinese body text hangs the mark that opens or closes a line, as the headlines
   do, so the characters of every line sit on the centre line (site.js finds the line
   ends, which move with the width). */

/* Full width, so trimming a mark never squeezes a shrink-wrapped line into two. */
.cell h3, .cell-body, .tile h3, .tile p, .point h3, .point p { width: 100%; }
.ln { display: block; white-space: nowrap; }
.pm-end { margin-right: -1em; }
.pm-start { margin-left: -1em; }

:lang(zh) h1, :lang(zh) h2, :lang(zh) h3, :lang(zh) .hero-sub, :lang(zh) .lead, :lang(zh) .points p, :lang(zh) .input { word-break: keep-all; overflow-wrap: anywhere; }

/* Support and policy bodies keep reading styles scoped away from the shared shell. */
.document-main { width: min(760px, calc(100% - 48px)); margin-inline: auto; padding: 64px 0 88px; }
.document-main h1 { margin: 0 0 12px; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; letter-spacing: -0.02em; }
.document-main h2 { margin: 36px 0 12px; font-size: 24px; line-height: 1.3; }
.document-main h3 { margin: 24px 0 8px; font-size: 18px; line-height: 1.4; }
.document-main p, .document-main li { color: #c7c9d1; font-size: 16px; line-height: 1.7; }
.document-main p { margin-top: 12px; }
.document-main .lede { margin-top: 12px; font-size: 18px; }
.document-main .date { margin: 0; font-size: 15px; color: var(--gray-2); }
.document-main strong { color: var(--text); }
.document-main a { color: var(--cyan); overflow-wrap: anywhere; }
.document-main a:hover, .document-main a:focus-visible { text-decoration: underline; }
.document-main ul, .document-main ol { margin: 12px 0; padding-left: 22px; }
.document-main li + li { margin-top: 6px; }
.document-main .card, .document-main .summary { margin-top: 24px; padding: 26px 28px; border-radius: 22px; background: var(--card); }
.document-main .card h2:first-child, .document-main .summary h2:first-child { margin-top: 0; }
.document-main .summary ul { margin: 0; }
.document-main .toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.document-main .toc a { padding: 8px 12px; border-radius: 999px; background: var(--card); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.document-main .toc a:hover { background: var(--card-2); }
.document-main table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 12px 0; }
.document-main th, .document-main td { text-align: left; vertical-align: top; padding: 10px 8px 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; color: #c7c9d1; }
.document-main th { color: var(--text); font-weight: 600; }
.document-main th:first-child { width: 50%; }
@media (max-width: 734px) {
  .document-main { width: calc(100% - 40px); padding: 40px 0 56px; }
  .document-main .card, .document-main .summary { padding: 20px 18px; border-radius: 18px; }
  .document-main th, .document-main td { font-size: 13px; padding-right: 6px; }
}

/* Medium screens */

@media (max-width: 1068px) {
  .wrap { width: min(692px, calc(100% - 48px)); }
  h2 { font-size: 48px; }
  .hero-title { font-size: 42px; }
  .hero-sub { font-size: 17px; }
  .hero-bottom { gap: 24px; }
  .closing h2 { font-size: 64px; }
  .privacy h2, .sync h2 { font-size: 56px; }
  .split { gap: 48px; }
  .ai-stage { gap: 48px; }
  .note p { font-size: 17px; }
  .tile { padding: 40px 16px 32px; }
  .tile h3 { font-size: 24px; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cell-ideas { grid-column: auto; }
  .cell-unsorted { grid-column: 1 / -1; }
  .bag { --item-size: 38px; width: 140px; }
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Wide-screen device proportions. */
@media (min-width: 735px) {
  .hero .phone-main { top: calc(var(--phone-rise) - 40px); transform: scale(1.32); transform-origin: center top; }
  .hero .side { top: calc(var(--phone-rise) + 44px); }
  .hero .side .phone { transform: scale(1.1); }
}

/* Height adjusts scale and spacing without changing the desktop composition. */
@media (min-width: 735px) and (max-height: 740px) {
  .hero-bottom { gap: 24px; }
  .hero-title { font-size: clamp(34px, 4.6vw, 50px); }
  .hero-title:lang(en) { font-size: clamp(30px, 3.2vw, 42px); }
  .hero-sub { font-size: 17px; }
}

/* Small screens */

@media (max-width: 734px) {
  :root { --pw: 264px; --ph: 546px; --nav-h: 57px; }
  .wrap { width: calc(100% - 40px); }
  .section { padding: 80px 0; }
  h2 { font-size: 40px; line-height: 1.1; }
  .eyebrow { font-size: 19px; }
  .lead { font-size: 19px; margin-top: 18px; }

  .nav-links, .lang { display: none; }
  .nav-cta { margin-left: auto; }
  .menu { display: block; }

  .nav-inner { width: calc(100% - 40px); height: 56px; gap: 16px; }
  .nav-cta { padding: 6px 12px; font-size: 12px; }
  /* As on wide screens, the name, headline and badge come first; the Inbox phone follows,
     larger, running off the first screen, and fades out just below its saved card. */
  .hero { --phone-rise: 8px; padding: 28px 0 88px; }
  .hero-layout { grid-template-columns: 1fr; gap: 28px; }
  /* Its own layer, so the small drift while scrolling moves the scene instead of repainting its glow and fade. */
  .hero .hero-visual { grid-column: 1; grid-row: 2; display: block; place-items: normal; height: 440px; will-change: transform; }
  .hero-bottom { grid-column: 1; grid-row: 1; gap: 28px; justify-items: center; text-align: center; }
  .hero-text { width: 100%; }
  .hero-side { display: flex; justify-content: center; width: 100%; padding: 0; }
  html:lang(zh) .hero-title .keep-tail { padding-right: 0; }
  .hero-title { font-size: clamp(34px, 10.7vw, 46px); line-height: 1.08; }
  .hero-title:lang(en) { font-size: clamp(32px, 9.5vw, 42px); }
  .hero-sub { margin-inline: auto; margin-top: 16px; font-size: 17px; line-height: 1.4; max-width: 330px; }
  .hero-cta { align-items: center; gap: 12px; }
  .hero-sub .line { display: block; }
  /* One size on every phone: nothing here depends on the window's height, so Safari's toolbars
     hiding during a scroll never move it. */
  .hero .demo-stage { width: auto; zoom: 0.92; height: calc(440px / 0.92); overflow: hidden; mask-image: linear-gradient(#000 78%, transparent); }
  .camera-thought { font-size: 12px; padding: 7px 10px; max-width: 180px; }
  .demo-glow { width: 560px; height: 460px; margin: -230px 0 0 -280px; }
  .stage-floor { top: 470px; width: 360px; height: 60px; margin-left: -180px; }
  .hero .side { display: none; }
  .screen { padding: 54px 14px 14px; }
  .status { left: 28px; right: 20px; font-size: 14px; }
  .app-title { font-size: 28px; }

  .ai.pin { height: auto; }
  .ai .sticky { position: relative; top: 0; height: auto; padding: 24px 0; overflow: visible; }
  .ai h2 { font-size: 34px; }
  :is(.ai, .no-ai) .lead { font-size: 17px; font-weight: 400; line-height: 1.6; color: #b1b1bb; word-break: normal; overflow-wrap: normal; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .ai-layout { gap: 32px; }
  .ai-head { text-align: left; }
  .ai-stage { grid-template-columns: 1fr; gap: 28px; }
  .stage-label { margin-bottom: 8px; font-size: 13px; }
  .note { min-height: 48px; padding: 8px 12px 8px 16px; }
  .note + .note::before { left: 16px; }
  .notes > .note:nth-child(2) { border-radius: 18px 18px 0 0; }
  .notes > .note:last-child { border-radius: 0 0 18px 18px; }
  .note p { font-size: 15px; }
  .note span { gap: 4px; padding: 4px 8px; font-size: 12px; }
  .bins { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .bin { height: 84px; padding: 10px 10px 9px 12px; border-radius: 16px; }
  .bin > svg { font-size: 18px; }
  .bin b { font-size: 14px; }
  .bin em { font-size: 11px; }
  .bin em svg { display: none; }

  .card-carousel .carousel-track { position: relative; display: flex; gap: 16px; margin-top: 44px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .carousel-track::-webkit-scrollbar { display: none; }
  .carousel-track::after { content: ""; flex: 0 0 8px; }
  .carousel-track > :is(.tile, .cell) { flex: 0 0 calc(100% - 24px); min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
  .card-carousel.is-mobile [data-reveal] { transition-delay: 0s; }
  .js .card-carousel.is-mobile .carousel-controls { display: flex; align-items: center; justify-content: center; gap: 8px; max-width: 440px; margin: 18px auto 0; }
  .carousel-controls button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--tile); color: #c7c7cc; cursor: pointer; }
  .carousel-controls button:hover { background: var(--card-2); color: var(--text); }
  .carousel-controls button:focus-visible, .carousel-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
  .carousel-controls svg { font-size: 17px; }
  .carousel-prev svg { transform: rotate(180deg); }
  .carousel-dots { display: flex; min-width: 0; }
  .carousel-dots button { flex: 1 1 28px; min-width: 0; width: 28px; border-radius: 8px; background: none; }
  .carousel-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 980px; background: #636366; transition: width 0.25s var(--ease), background 0.25s; }
  .carousel-dots button[aria-current]::before { width: 14px; background: var(--accent); }
  .tile { padding: 36px 20px 32px; }
  .flash-demo { height: 244px; margin-bottom: 20px; }

  .today-device .device { --dw: min(280px, 76vw); }

  .sort-grid { gap: 7px; }
  .sort-grid div { height: 70px; padding: 9px 9px 8px 10px; }
  .sort-grid div > svg { font-size: 17px; }
  .sort-grid b { font-size: 13px; }
  .sort-grid em { font-size: 11px; }

  .bento { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 44px; }
  .cell-wide { grid-column: auto; }
  .cell { padding: 40px 20px 32px; }
  .cell-custom { display: flex; gap: 24px; text-align: center; }
  .custom-copy { width: 100%; }
  .cell h3 { font-size: 24px; }
  .visual { height: 240px; margin-bottom: 24px; }
  .cell-custom .v-custom { margin-bottom: 0; }
  .cell-unsorted { grid-column: auto; }
  .handy.section { padding: 80px 0; }
  .handy-grid { grid-template-columns: 1fr; gap: 16px; margin-top: 36px; }
  .handy-card { padding: 28px 20px; }
  .handy-card .feature-demo { margin-bottom: 24px; }
  .when-option { font-size: 12px; }
  .when-note { gap: 8px; padding-inline: 10px; }
  .when-note b { font-size: 12px; }
  .v-shops { gap: 10px; }
  .bag { --item-size: 30px; --item-overlap: 10px; width: auto; flex: 1; min-width: 0; }
  .bag-handle { width: 46px; margin-left: -23px; }
  .bag-items { gap: 0; }
  .bag-items i:nth-child(2) { margin-top: 0; }
  .bag-front b { font-size: 14px; }
  .bag-front svg { font-size: 13px; }

  .privacy-mark { width: 104px; height: 104px; border-radius: 27px; font-size: 54px; margin-bottom: 36px; }
  .privacy h2, .sync h2 { font-size: 40px; }
  :lang(zh) .privacy h2 { font-size: 34px; }
  .points { gap: 12px; margin-top: 48px; }
  .point { grid-template-rows: 30px 56px 52px; min-height: 200px; padding: 28px 12px; border-radius: 20px; }
  .points svg { font-size: 30px; }
  .points h3 { margin-top: 14px; font-size: 16px; line-height: 1.3; }
  .points p { font-size: 14px; }

  .sync-visual { gap: 12px; margin-bottom: 48px; }
  .mini { flex: none; width: min(118px, calc((100% - 80px) / 2)); height: auto; aspect-ratio: 118 / 244; padding: 4px; border-radius: 28px; }
  .mini-screen { padding: 32px 6px 6px; border-radius: 24px; }
  .mini-card { padding: 10px 7px; }
  .mini-card b { font-size: 12px; line-height: 1.25; text-wrap: balance; }
  .mini-card span { font-size: 11px; line-height: 1.3; text-wrap: balance; }
  .mini-card .mini-when-full { display: none; }
  .mini-card .mini-when-short { display: block; }
  .sync-cloud { width: 56px; height: 56px; font-size: 28px; }

  .flash-entry { margin-top: 40px; }
  .flash-entry p { font-size: 15px; }
  .flash-entry ul { gap: 8px; margin-top: 16px; }
  .flash-entry li { padding: 8px 12px; font-size: 13px; }
  .flash-entry svg { font-size: 15px; }

  .cat-intro { grid-template-columns: 1fr; gap: 32px; margin-bottom: 44px; }
  .cat-devices { --dw: calc((100vw - 48px) * 0.48); }
  .cat-devices .device-back { top: 36px; }
  .flash::before { top: 280px; right: -40%; width: 140%; height: 520px; }
  .flash-intro { grid-template-columns: 1fr; gap: 36px; }
  .press-phone { width: min(100%, 340px); height: 228px; border-radius: 54px 54px 0 0; }
  .press-screen { border-radius: 48px 48px 0 0; }
  .press-button { top: 74px; height: 36px; }
  .press-island { top: 12px; height: 40px; }
  .press-mic { width: 26px; height: 26px; font-size: 14px; }
  .press-text > span { font-size: 13px; }
  .press-wave { width: 34px; }
  .press-time { top: 82px; font-size: 72px; }
  .sync::before { width: 600px; margin-left: -300px; height: 480px; }

  .closing.section { padding: 64px 0; }
  .closing-logo { width: 76px; height: 76px; }
  .hero-brand { gap: 8px; margin-bottom: 18px; font-size: 19px; }
  .hero-logo { width: 24px; height: 24px; }
  .closing h2 { font-size: clamp(30px, 8.6vw, 40px); line-height: 1.2; margin: 28px 0; }
  :lang(zh) .closing-line { white-space: nowrap; }
  .store-button { font-size: 16px; }
  .footer { text-align: center; padding: 28px 0; }
  .footer .wrap { gap: 20px; align-items: center; }
  .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 24px; }
  .footer-link-pair { gap: 24px; }
  .footer-links a { font-size: 13px; padding: 8px 0; }
  .footer-end { flex-direction: column; align-items: center; gap: 16px; }
}

@media (max-width: 360px) {
  .when-option:lang(en) { font-size: 11px; }
  .bag-front { flex-direction: column; gap: 6px; }
  .bag-front b { line-height: 1.1; white-space: nowrap; }
}

/* English marketing type: display headings and a consistent reading rhythm.
   These selectors leave document bodies and the phone demonstrations alone. */
html:lang(en) body:not(.document-page) > main {
  --display-font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}
html:lang(en) body:not(.document-page) > main :is(h1, h2, h3) {
  font-family: var(--display-font);
  font-optical-sizing: auto;
  font-kerning: normal;
}
html:lang(en) .hero-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 64px;
}
html:lang(en) .hero-title {
  font-size: clamp(42px, 4.3vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.015em;
}
html:lang(en) .hero-sub {
  max-width: 420px;
  margin-top: 16px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.005em;
}
html:lang(en) :where(body:not(.document-page) > main) h2 {
  font-size: clamp(48px, 4.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.012em;
}
html:lang(en) .lead {
  margin-top: 18px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.005em;
}
html:lang(en) :is(.cell h3, .tile h3) {
  line-height: 1.18;
  letter-spacing: -0.01em;
}
html:lang(en) .cell h3 { display: block; min-height: 0; }
html:lang(en) .handy-card .cell-body { margin-top: 10px; }
html:lang(en) :is(.cell-body, .tile p) {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.005em;
  text-wrap: pretty;
}
html:lang(en) .cell-body { max-width: 42ch; margin-top: 12px; }
html:lang(en) .tile p { margin-top: 12px; }
html:lang(en) .custom-copy .cell-body { max-width: 46ch; }
html:lang(en) .point { grid-template-rows: 36px auto auto; }
html:lang(en) .points p { font-weight: 500; line-height: 1.5; }
html:lang(en) .sync .lead { max-width: 58ch; }
html:lang(en) .closing h2 {
  font-size: clamp(56px, 5.6vw, 80px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
@media (min-width: 735px) and (max-width: 1068px) {
  html:lang(en) .hero-layout { gap: clamp(32px, 6vw, 48px); }
  html:lang(en) .hero-title { font-size: 42px; }
  html:lang(en) .hero-sub { font-size: 19px; }
  html:lang(en) :where(body:not(.document-page) > main) h2 { font-size: 48px; }
  html:lang(en) .closing h2 { font-size: 64px; }
}
@media (min-width: 735px) and (max-height: 740px) {
  html:lang(en) .hero-title { font-size: clamp(38px, 4vw, 56px); }
  html:lang(en) .hero-sub { font-size: 19px; margin-top: 16px; }
}
@media (max-width: 734px) {
  html:lang(en) .hero-layout { grid-template-columns: 1fr; gap: 28px; }
  html:lang(en) .hero-title { font-size: clamp(34px, 10.2vw, 44px); line-height: 1.08; }
  html:lang(en) .hero-sub { max-width: 34ch; margin-top: 16px; font-size: 18px; }
  html:lang(en) :where(body:not(.document-page) > main) h2 { font-size: clamp(34px, 8.6vw, 40px); line-height: 1.12; }
  html:lang(en) .lead { margin-top: 14px; font-size: 19px; line-height: 1.45; }
  html:lang(en) :is(.ai, .no-ai) .lead { font-size: 19px; font-weight: 500; line-height: 1.45; }
  .privacy .points .point { grid-template-rows: 30px auto auto; align-content: start; }
  .privacy .points h3 { min-height: 2.6em; }
  html:lang(en) .closing h2 { font-size: clamp(30px, 8.6vw, 40px); line-height: 1.14; }
}

/* Wide screens center the introduction above the phone scene. */
@media (min-width: 735px) {
  /* Match the 56px scene gap plus the phone's 40px inset at the scene's scale. */
  .hero { --phone-rise: 80px; --spread: 360px; align-content: start; padding-block: calc(36px + min(980px, calc(100% - 48px)) / 30) clamp(16px, 2.5svh, 32px); }
  .hero-layout, html:lang(en) .hero-layout { gap: 36px; }
  .hero-bottom { width: min(100%, 800px); justify-self: center; justify-items: center; text-align: center; gap: 0; }
  .hero-side { display: contents; }
  .hero-text { grid-row: 1; width: 100%; }
  html:lang(zh) .hero-title { font-size: 44px; }
  /* Center the three Chinese characters; their punctuation hangs outside the line. */
  html:lang(zh) .hero-title .keep-tail { padding-right: 0; }
  .hero-sub, html:lang(en) .hero-sub { max-width: 680px; margin-inline: auto; margin-top: 24px; }
  .hero-cta { grid-row: 2; margin-top: 36px; align-items: center; }
  .hero .hero-visual { width: 100%; height: var(--scene-height, 980px); justify-self: center; }
  .hero .demo-stage { height: 1030px; }
  .hero .stage-floor { top: 1000px; }
}

@media (min-width: 735px) and (max-width: 1068px) {
  .hero { padding-top: calc(56px + min(692px, calc(100% - 48px)) / 30); }
}

@media (min-width: 1069px) {
  .hero-title, html:lang(en) .hero-title { font-size: 58px; }
  html:lang(zh) .hero-title { font-size: 60px; }
}

/* Reduced motion: no pinning, no scrubbing, nothing waits to appear. */

.still .pin { height: auto; }
.still .sticky { position: static; height: auto; padding: 120px 0; }
.still .ai .sticky { top: 0; min-height: calc(100svh - var(--nav-h)); padding: 24px 0; overflow: visible; }
.still .demo-stage { --fan: 0; }
.still .hero .side, html:not(.js) .hero .side { --pp: 1; }

/* Wide cards center the complete picture-and-copy group as one unit. */
@media (min-width: 735px) {
  .cell.cell-custom {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 380px);
    justify-content: center;
    align-items: center;
    column-gap: clamp(40px, 6vw, 88px);
    padding: 72px clamp(36px, 4.5vw, 64px);
    text-align: center;
  }
  .cell-custom .v-custom, .cell-custom .custom-copy { width: 100%; }
  .cell-custom .custom-copy .cell-body { margin-inline: auto; }
  :lang(zh) .cell-custom {
    grid-template-columns: minmax(0, 280px) minmax(0, 340px);
    column-gap: clamp(48px, 8vw, 120px);
  }
}

/* Center Chinese words independently of line-end punctuation. */
:lang(zh) :is(.custom-copy, .access-copy) .keep-tail { padding-right: 0; }
:lang(zh) :is(.custom-copy, .access-copy) .pm-end { margin-right: -1em; }
:lang(zh) :is(.custom-copy, .access-copy) .pm-start { margin-left: -1em; }

/* Categories alternate broad and compact compartments, with quieter surfaces. */
.place-copy { min-width: 0; width: 100%; }
:lang(zh) .categories .keep-tail { padding-right: 0; }

@media (min-width: 735px) {
  .categories .bento { gap: 32px; }
  .categories .cell {
    background: linear-gradient(180deg, #222228, #1d1d22);
    border-color: rgba(255, 255, 255, 0.065);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  }
  .categories .cat { line-height: 22px; }
  .categories .custom-copy .cat { display: flex; width: max-content; margin-inline: auto; }
  .categories .cell:not(.cell-custom) { padding: 56px 36px; }
  .categories .cell:not(.cell-custom) > .visual { margin-bottom: 40px; }
  .categories .cell:not(.cell-custom) .cell-body { max-width: 340px; }
  .categories .cell.cell-shopping .cell-body { max-width: 380px; }
  .categories .v-shops { width: min(100%, 494px); margin-inline: auto; }
  .categories .v-daily { flex-direction: column; gap: 14px; padding-block: 28px; }
  .categories .cell-food { --food-step: 66px; --food-node: 52px; }
  .categories .cell-food .stacks { gap: 14px; }
  .categories .cell-food .stack { width: 52px; height: 52px; }
  .categories .cell-food .stack i { font-size: 29px; box-shadow: none; }
  .categories .cell-places .cell-body { margin-inline: auto; }
  .categories .cell.cell-custom {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    padding: 56px 36px;
  }
  .categories .cell-custom .v-custom {
    width: min(100%, 280px);
    height: 240px;
    margin-bottom: 40px;
  }
  .categories .cell-custom .custom-copy { width: 100%; }
  .categories .cell-custom .cell-body { max-width: 340px; }
}

@media (min-width: 1069px) {
  .categories .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .categories .cell-shopping { grid-column: span 4; }
  .categories :is(.cell-food, .cell-alerts, .cell-places, .cell-ideas) { grid-column: span 2; }
  .categories :is(.cell-todo, .cell-daily, .cell-unsorted, .cell-custom) { grid-column: span 3; }
}

@media (min-width: 735px) and (max-width: 1068px) {
  .flash-intro { grid-template-columns: 1fr; gap: 40px; }
  .ai-stage { gap: 28px; }
  .note { padding: 10px 12px 10px 16px; }
  .note + .note::before { left: 16px; }
  .note p { font-size: 16px; }
  .note span { padding: 4px 9px; font-size: 12px; }
  .bin { height: 100px; }
  .cat-devices { --dw: clamp(150px, 20vw, 210px); }
}

@media (min-width: 735px) and (max-width: 1068px) {
  .categories .cell-shopping { grid-column: 1 / -1; }
  .categories :is(.cell-daily, .cell-food, .cell-todo, .cell-alerts, .cell-places, .cell-ideas, .cell-unsorted, .cell-custom) { grid-column: auto; }
  .categories .cell.cell { padding-inline: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .banner + .banner { display: none; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* The note saved in the Inbox flies into Shopping and lands in Today. */

.save { transition: transform 0.15s, filter 0.15s, background-color 0.3s ease, color 0.3s ease; }
.save.pressed { transform: scale(0.98); filter: brightness(0.85); }

.flying-note {
  position: absolute;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 980px;
  background: color-mix(in srgb, var(--cyan) 24%, #1c1c1e);
  box-shadow: 0 12px 30px -8px rgba(100, 210, 255, 0.55);
  color: var(--cyan);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
}

.sort-shop.bump { animation: bump 0.7s var(--ease); }
@keyframes bump {
  40% { transform: scale(1.02); box-shadow: inset 0 0 0 1px rgba(100, 210, 255, 0.3); }
}

.row-new { max-height: 64px; overflow: hidden; transition: max-height 0.6s var(--ease), padding 0.6s var(--ease), margin 0.6s var(--ease), opacity 0.5s 0.15s; }
.js .hero:not(.filed) .row-new { max-height: 0; padding-top: 0; padding-bottom: 0; margin-bottom: -10px; opacity: 0; }

/* Supporting information stays still while retaining the original colour accents. */
.todo-demo-done i svg { display: none; }
.undo-note > i { background: #7adca2; border-color: #7adca2; }
.undo-note svg { opacity: 1; }
.undo-note b::after { transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  .motion-replay .unsorted-notes span { animation: sorted-label 0.45s var(--ease) calc(var(--i) * 0.08s) both; }
  .motion-replay .unsorted-notes p { animation: sorted-outline 0.65s ease both; }
}
@keyframes sorted-label { from { opacity: 0.4; transform: translateX(3px); } to { opacity: 1; transform: none; } }
@keyframes sorted-outline { 50% { box-shadow: inset 0 0 0 1px rgba(143, 128, 255, 0.16); } }
@media (max-width: 734px) {
  .point { border-radius: 0; }
}

/* Category labels retain their identifying colors; surfaces stay neutral. */
.categories :is(.cell-daily, .cell-ideas, .cell-custom) > .cat,
.categories .custom-copy > .cat { color: var(--c); }
.categories :is(.cell-daily, .cell-ideas) > .cat svg { color: var(--c); }
.categories .custom-plus { color: var(--accent); }
