/* RemindThat website — one stylesheet, no framework.
   Colours follow the app (DESIGN.md): brand blue #1973E8, background #F3F6FB, category colours. */

/* ---------------------------------------------------------------- Tokens */

:root {
  color-scheme: light dark;
  interpolate-size: allow-keywords;

  --brand: #1973e8;
  --brand-hi: #4c9aff;
  --brand-ink: #0f5bc4;
  --orange: #ff9f0a;
  --red: #ff3b30;
  --amber: #ff9500;
  --yellow: #ffb800;
  --green: #34c759;
  --indigo: #5856d6;
  --pink: #ff2d55;
  --purple: #af52de;
  --gray: #8e8e93;
  --soon-ink: #8f4f00;

  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #0a1222;
  --ink-2: rgba(10, 18, 34, 0.66);
  --ink-3: rgba(10, 18, 34, 0.6);
  --line: rgba(10, 18, 34, 0.09);
  --wash: rgba(10, 18, 34, 0.06);
  --wash-2: rgba(10, 18, 34, 0.1);

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.05), 0 2px 8px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 2px 6px rgba(16, 24, 40, 0.04), 0 18px 40px -14px rgba(16, 36, 80, 0.16);
  --shadow-device: 0 50px 90px -34px rgba(18, 38, 90, 0.5), 0 26px 40px -26px rgba(18, 38, 90, 0.4);

  --r-xl: 32px;
  --r-l: 24px;
  --r-m: 18px;
  --gutter: clamp(16px, 4.6vw, 40px);
  --header-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.5, 0.64, 1);

  --font-latin: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial;
  --font: var(--font-latin), system-ui, sans-serif;
}

:lang(zh-Hans) {
  --font: var(--font-latin), 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
}
:lang(zh-Hant) {
  --font: var(--font-latin), 'PingFang HK', 'PingFang TC', 'Microsoft JhengHei', 'Noto Sans CJK HK', 'Noto Sans CJK TC', 'Noto Sans TC', sans-serif;
}

/* The visitor can pick light or dark in the header (data-theme, remembered); otherwise the system decides */
:root[data-theme='light'] {
  color-scheme: light;
}
:root[data-theme='dark'] {
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --brand-ink: #6aaeff;
    --red: #ff453a;
    --amber: #ff9f0a;
    --yellow: #ffd60a;
    --green: #30d158;
    --indigo: #6e6cf0;
    --pink: #ff375f;
    --purple: #bf5af2;
    --soon-ink: #ffb340;
    --bg: #000000;
    --surface: #151518;
    --ink: #f4f6fa;
    --ink-2: rgba(235, 240, 250, 0.68);
    --ink-3: rgba(235, 240, 250, 0.56);
    --line: rgba(255, 255, 255, 0.09);
    --wash: rgba(255, 255, 255, 0.08);
    --wash-2: rgba(255, 255, 255, 0.13);
    --shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.03);
    --shadow-md: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 20px 40px -18px rgba(0, 0, 0, 0.8);
    --shadow-device: 0 50px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05);
  }
}
:root[data-theme='dark'] {
  --brand-ink: #6aaeff;
  --red: #ff453a;
  --amber: #ff9f0a;
  --yellow: #ffd60a;
  --green: #30d158;
  --indigo: #6e6cf0;
  --pink: #ff375f;
  --purple: #bf5af2;
  --soon-ink: #ffb340;
  --bg: #000000;
  --surface: #151518;
  --ink: #f4f6fa;
  --ink-2: rgba(235, 240, 250, 0.68);
  --ink-3: rgba(235, 240, 250, 0.56);
  --line: rgba(255, 255, 255, 0.09);
  --wash: rgba(255, 255, 255, 0.08);
  --wash-2: rgba(255, 255, 255, 0.13);
  --shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.03);
  --shadow-md: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 20px 40px -18px rgba(0, 0, 0, 0.8);
  --shadow-device: 0 50px 90px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

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

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: var(--brand-ink);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
button {
  -webkit-tap-highlight-color: transparent;
}
:focus-visible {
  outline: 3px solid var(--brand-hi);
  outline-offset: 3px;
  border-radius: 8px;
}
::selection {
  background: rgba(76, 154, 255, 0.3);
}
html {
  scrollbar-color: var(--wash-2) transparent;
}
/* Switching light / dark: the new appearance spreads out from the header button (site.js) */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.container {
  width: min(1240px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.icon {
  flex: none;
}
.icon--flip {
  transform: scaleX(-1);
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 650;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

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

.display {
  position: relative;
  z-index: 0;
  font-size: clamp(2.8rem, 1.1rem + 6.3vw, 6.2rem);
  line-height: 1;
  letter-spacing: -0.045em;
  font-weight: 800;
}
:lang(zh) .display {
  font-size: clamp(2.7rem, 1.1rem + 5.8vw, 5.6rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}
.h2 {
  font-size: clamp(2.1rem, 1.2rem + 3.6vw, 4.1rem);
  line-height: 1.05;
  letter-spacing: -0.036em;
  font-weight: 760;
  text-wrap: balance;
}
:lang(zh) .h2 {
  line-height: 1.2;
  letter-spacing: 0;
}
.kicker {
  margin-bottom: 12px;
  color: var(--brand-ink);
  font-size: 0.95rem;
  font-weight: 650;
}
:lang(en) .kicker {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lead {
  max-width: 38em;
  color: var(--ink-2);
  font-size: clamp(1.08rem, 0.97rem + 0.45vw, 1.3rem);
  line-height: 1.55;
  text-wrap: pretty;
}
:lang(zh) .lead {
  line-height: 1.75;
}
.ph {
  display: inline-block;
}
.nw {
  white-space: nowrap;
}
.brandword {
  background: linear-gradient(100deg, #2e8bff 0%, #1973e8 48%, #5856d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mark {
  position: relative;
  white-space: nowrap;
}
.mark::after {
  content: '';
  position: absolute;
  z-index: -1;
  left: -0.03em;
  right: -0.03em;
  bottom: 0.04em;
  height: 0.13em;
  border-radius: 0.1em;
  background: var(--orange);
  transform-origin: left;
  animation: mark-draw 0.9s var(--ease-out) 0.5s both;
}
:lang(zh) .mark::after {
  bottom: -0.02em;
}
@keyframes mark-draw {
  from {
    transform: scaleX(0);
  }
}

.section,
.statement-wrap {
  position: relative;
  /* Things entering on the wheel swing in from the side: they must never widen the page */
  overflow-x: clip;
}
.section {
  padding-block: clamp(44px, 6.5vw, 96px);
}
.section-head {
  max-width: 760px;
  margin-bottom: clamp(24px, 3.6vw, 48px);
}
.section-head .lead {
  margin-top: 16px;
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head--center .lead {
  margin-inline: auto;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 1.02rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
  transition:
    transform 0.2s var(--ease-out),
    background-color 0.2s,
    box-shadow 0.2s,
    color 0.2s;
}
.btn:active {
  transform: scale(0.97);
}
.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow:
    0 10px 24px -10px rgba(25, 115, 232, 0.75),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--primary:hover {
  background: #1467d4;
}
.btn--ghost {
  background: var(--wash);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--wash-2);
}
.btn--sm {
  min-height: 38px;
  padding: 0 16px;
  gap: 6px;
  font-size: 0.92rem;
}
.btn.is-disabled {
  opacity: 0.55;
  cursor: default;
  box-shadow: none;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.cta-row--center {
  justify-content: center;
}
.soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px 4px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--orange) 15%, transparent);
  color: var(--soon-ink);
  font-size: 0.85rem;
  font-weight: 650;
}

/* ---------------------------------------------------------------- Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
}
.site-header.is-scrolled,
.site-header.is-menu {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 100%;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 720;
  letter-spacing: -0.01em;
  text-decoration: none !important;
}
.logo__icon {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 5px rgba(25, 115, 232, 0.35));
}
.site-nav {
  margin-left: auto;
}
.site-nav__list {
  display: flex;
  gap: 2px;
}
.site-nav a {
  display: block;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 560;
  text-decoration: none;
  transition:
    color 0.2s,
    background-color 0.2s;
}
.site-nav a:hover,
.site-nav a.is-current {
  background: var(--wash);
  color: var(--ink);
}
.site-header__end {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switch {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--wash);
}
.lang-switch a {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none !important;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.lang-switch a:hover {
  color: var(--ink);
}
.lang-switch a[aria-current] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.14);
}
.theme-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--wash);
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s;
}
.theme-btn:hover {
  background: var(--wash-2);
  color: var(--ink);
}
.theme-btn .icon {
  grid-area: 1 / 1;
  transition:
    transform 0.5s var(--ease-out),
    opacity 0.3s;
}
.theme-btn__sun,
:root[data-theme='dark'] .theme-btn__moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.6);
}
:root[data-theme='dark'] .theme-btn__sun {
  opacity: 1;
  transform: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-btn__moon {
    opacity: 0;
    transform: rotate(-90deg) scale(0.6);
  }
  :root:not([data-theme='light']) .theme-btn__sun {
    opacity: 1;
    transform: none;
  }
}
html:not(.js) .theme-btn {
  display: none;
}
.menu-btn {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--wash);
  color: var(--ink);
  cursor: pointer;
}
.menu-btn__close,
.menu-btn[aria-expanded='true'] .menu-btn__open {
  display: none;
}
.menu-btn[aria-expanded='true'] .menu-btn__close {
  display: block;
}
@media (max-width: 1020px) {
  .site-header__end {
    margin-left: auto;
  }
  .menu-btn {
    display: grid;
  }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    margin: 0;
    padding: 4px var(--gutter) 20px;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 18px 30px -18px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
      opacity 0.25s,
      transform 0.25s var(--ease-out),
      visibility 0s 0.25s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.25s,
      transform 0.25s var(--ease-out);
  }
  .site-nav__list {
    flex-direction: column;
  }
  .site-nav a {
    padding: 14px 4px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.1rem;
  }
  .site-nav a:hover {
    background: none;
  }
  html:not(.js) .site-nav {
    display: none;
  }
}
@media (max-width: 560px) {
  .header-cta {
    display: none;
  }
}
@media (max-width: 400px) {
  .site-header__inner {
    gap: 10px;
  }
  .site-header__end {
    gap: 6px;
  }
  .logo {
    font-size: 1.02rem;
  }
  .lang-switch a {
    min-width: 29px;
    padding: 0 6px;
  }
  .theme-btn {
    width: 34px;
    height: 34px;
  }
  .menu-btn {
    width: 36px;
    height: 36px;
  }
}

/* ---------------------------------------------------------------- Device (iPhone drawn in CSS) */

.device {
  --w: 300px;
  position: relative;
  flex: none;
  width: var(--w);
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.168);
  background: linear-gradient(150deg, #44474f 0%, #16171b 20%, #0b0c0e 50%, #1d1f24 80%, #44474f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 calc(var(--w) * 0.011) #08090a,
    var(--shadow-device);
}
.device__screen {
  position: relative;
  aspect-ratio: 393 / 852;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.135);
  background: #f3f6fb;
  container-type: inline-size;
  isolation: isolate;
}
.device--dark .device__screen {
  background: #000;
}
.device__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.device__status {
  position: absolute;
  inset: 0 0 auto;
  height: 15cqw;
  color: #000;
  pointer-events: none;
}
.device--dark .device__status {
  color: #fff;
}
.device__time {
  position: absolute;
  left: 16.8cqw;
  top: 8cqw;
  transform: translate(-50%, -50%);
  font-family: var(--font-latin), sans-serif;
  font-size: 4.3cqw;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1;
}
.device__glyphs {
  position: absolute;
  right: 7.2cqw;
  top: 8cqw;
  width: 19.6cqw;
  height: auto;
  transform: translateY(-50%);
}
.device__island {
  position: absolute;
  top: 2.8cqw;
  left: 50%;
  width: 32cqw;
  height: 9.4cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: #000;
}
.device__home {
  position: absolute;
  bottom: 2cqw;
  left: 50%;
  width: 34cqw;
  height: 1.3cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.82);
}
.device--dark .device__home {
  background: rgba(255, 255, 255, 0.85);
}
/* Follows the site's appearance: the screenshot in the app's dark appearance replaces the light one */
.shot-dark {
  display: none;
}
:root[data-theme='dark'] .shot-light {
  display: none;
}
:root[data-theme='dark'] .shot-dark {
  display: block;
}
:root[data-theme='dark'] .device--auto .device__screen {
  background: #000;
}
:root[data-theme='dark'] .device--auto .device__status {
  color: #fff;
}
:root[data-theme='dark'] .device--auto .device__home {
  background: rgba(255, 255, 255, 0.85);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .shot-light {
    display: none;
  }
  :root:not([data-theme='light']) .shot-dark {
    display: block;
  }
  :root:not([data-theme='light']) .device--auto .device__screen {
    background: #000;
  }
  :root:not([data-theme='light']) .device--auto .device__status {
    color: #fff;
  }
  :root:not([data-theme='light']) .device--auto .device__home {
    background: rgba(255, 255, 255, 0.85);
  }
}
.device--has-btn {
  margin-bottom: 56px;
}

/* Several screens in one device: crossfade */
.device--tabs .device__media,
.device--shots .device__media {
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.device--tabs .device__media.is-active,
.device--shots .device__media.is-active,
html:not(.js) .device--tabs .device__media:first-child,
html:not(.js) .device--shots .device__media:first-child {
  opacity: 1;
}

/* Replay / play / pause under a recording */
.clip-btn {
  position: absolute;
  left: 50%;
  top: calc(100% + 14px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px 8px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--wash);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  transform: translateX(-50%);
  transition:
    background-color 0.2s,
    color 0.2s;
  animation: fade-up 0.4s var(--ease-out);
}
.clip-btn:hover {
  background: var(--wash-2);
  color: var(--ink);
}
.clip-btn[hidden] {
  display: none;
}
.clip-btn .icon {
  display: none;
}
.clip-btn[data-state='replay'] .clip-btn__replay,
.clip-btn[data-state='play'] .clip-btn__play,
.clip-btn[data-state='pause'] .clip-btn__pause {
  display: block;
}

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

/* One canvas: sections never paint their own background, and their glows fade out before the
   section's top and bottom edges, so scrolling never reveals a seam */
.reel__glow,
.ai__bg,
.privacy__bg {
  -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
}
.hero__bg {
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + clamp(12px, 2vw, 28px)) 0 clamp(20px, 3vw, 40px);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.glow {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--c), transparent);
  animation: drift 18s ease-in-out infinite alternate;
}
.glow--a {
  --c: rgba(76, 154, 255, 0.45);
  width: 1000px;
  top: -420px;
  right: -260px;
}
.glow--b {
  --c: rgba(255, 170, 60, 0.16);
  width: 560px;
  top: 180px;
  right: 18%;
  animation-duration: 23s;
}
.glow--c {
  --c: rgba(88, 86, 214, 0.18);
  width: 820px;
  top: -320px;
  left: -360px;
  animation-duration: 27s;
}
@keyframes drift {
  to {
    transform: translate(-40px, 30px) scale(1.06);
  }
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: start;
  gap: clamp(32px, 5vw, 72px);
}
.hero__copy {
  padding-top: clamp(8px, 2.4vw, 36px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  padding: 5px 15px 5px 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  box-shadow:
    inset 0 0 0 1px var(--line),
    var(--shadow-sm);
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 620;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.hero__lead {
  margin-top: 22px;
}
.hero__note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 0.93rem;
}
.hero__note--center {
  justify-content: center;
}
.hero__note:empty {
  display: none;
}
.hero__visual {
  position: relative;
  display: grid;
  justify-items: center;
  padding-block: 16px;
}
.hero__device {
  --w: clamp(260px, 26vw, 336px);
  animation: rise 1s var(--ease-out) both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.97);
  }
}
.notifs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.notif {
  position: absolute;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: start;
  gap: 11px;
  width: clamp(250px, 23vw, 318px);
  padding: 12px 14px 13px 12px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  box-shadow:
    0 0 0 1px var(--line),
    0 20px 44px -16px rgba(16, 36, 80, 0.38);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.32;
  animation:
    notif-in 0.8s var(--ease-spring) var(--d, 0.6s) both,
    float var(--f, 7s) ease-in-out calc(var(--d, 0.6s) + 0.8s) infinite alternate;
}
.notif__icon {
  width: 38px;
  height: 38px;
}
.notif__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.notif__title {
  font-weight: 680;
}
.notif__time {
  color: var(--ink-3);
  font-size: 13px;
  white-space: nowrap;
}
.notif--0 {
  --d: 0.7s;
  --f: 6.5s;
  top: 12%;
  left: -4%;
}
.notif--1 {
  --d: 1.4s;
  --f: 8s;
  top: 43%;
  right: -7%;
}
.notif--2 {
  --d: 2.1s;
  --f: 7.2s;
  bottom: 13%;
  left: -1%;
}
@keyframes notif-in {
  from {
    opacity: 0;
    transform: translateY(-16px) scale(0.92);
  }
}
@keyframes float {
  to {
    translate: 0 -10px;
  }
}
.ui-note {
  max-width: 300px;
  margin-top: 22px;
  color: var(--ink-3);
  font-size: 0.85rem;
  text-align: center;
}
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero__copy {
    text-align: center;
  }
  .hero__lead {
    margin-inline: auto;
  }
  .hero .cta-row,
  .hero__note {
    justify-content: center;
  }
  .hero__device {
    --w: min(66vw, 300px);
  }
  .notif {
    width: min(270px, 72vw);
    font-size: 13.5px;
  }
  .notif--0 {
    top: 10%;
    left: 0;
  }
  .notif--1 {
    display: none;
  }
  .notif--2 {
    bottom: 12%;
    left: auto;
    right: 0;
  }
}

/* ---------------------------------------------------------------- Reel: segments on a wheel, like the app's category dial */

@property --reel-tint {
  syntax: '<color>';
  inherits: true;
  initial-value: #1973e8;
}
.reel {
  /* The board: the app's full width, three quarters of its height (393 × 640 pt) */
  --board: min(clamp(250px, 25vw, 340px), calc((100svh - var(--header-h) - 230px) / 1.6285));
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(4px, 1.5vw, 16px) clamp(44px, 5vw, 72px);
  transition: --reel-tint 0.9s var(--ease-out);
}
.reel__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(calc(var(--board) * 1.5) calc(var(--board) * 1.5) at 50% 58%, color-mix(in srgb, var(--reel-tint) 24%, transparent), transparent 72%),
    radial-gradient(70% 34% at 50% 100%, color-mix(in srgb, var(--reel-tint) 9%, transparent), transparent 70%);
  pointer-events: none;
}
.reel__inner {
  display: grid;
  justify-items: center;
}
.reel-dial {
  position: relative;
  width: min(820px, 100%);
  height: 62px;
  overflow: clip;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.reel-dial:active {
  cursor: grabbing;
}
.reel-dial__item {
  position: absolute;
  left: 50%;
  top: 6px;
  padding: 4px 10px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: clamp(1.45rem, 1.05rem + 1.2vw, 2rem);
  font-weight: 760;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  translate: -50% 0;
  transition: color 0.3s;
}
:lang(zh) .reel-dial__item {
  letter-spacing: 0.01em;
}
.reel-dial__item.is-near {
  color: var(--ink);
}
.reel-dial__item:focus-visible {
  outline-offset: -2px;
}
.reel__caption {
  max-width: 26em;
  min-height: 1.5em;
  margin-top: 2px;
  color: var(--ink-2);
  font-size: clamp(1.02rem, 0.94rem + 0.4vw, 1.22rem);
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}
.reel__caption.is-new {
  animation: caption-in 0.6s var(--ease-out);
}
@keyframes caption-in {
  from {
    opacity: 0;
    filter: blur(6px);
    translate: 0 8px;
  }
}
.reel__stage {
  position: relative;
  width: 100%;
  height: calc(var(--board) * 1.6285 + 48px);
  margin-top: clamp(14px, 2vw, 24px);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.reel__page {
  position: absolute;
  left: 50%;
  top: 0;
  width: var(--board);
  aspect-ratio: 393 / 640;
  margin-left: calc(var(--board) / -2);
  overflow: hidden;
  border-radius: calc(var(--board) * 0.1);
  background: #f3f6fb;
  box-shadow:
    0 34px 60px -30px rgba(16, 36, 80, 0.5),
    0 12px 24px -16px rgba(16, 36, 80, 0.3);
  cursor: pointer;
  will-change: transform, opacity;
}
.reel__page.is-current {
  cursor: default;
}
.reel__page::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  pointer-events: none;
}
.reel__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
:root[data-theme='dark'] .reel__page {
  box-shadow:
    0 34px 70px -30px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}
:root[data-theme='dark'] .reel__page::after {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .reel__page {
    box-shadow:
      0 34px 70px -30px rgba(0, 0, 0, 0.95),
      0 0 0 1px rgba(255, 255, 255, 0.06);
  }
  :root:not([data-theme='light']) .reel__page::after {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  }
}
.reel__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  width: var(--board);
}
.reel__bar {
  flex: 1;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--wash-2);
}
.reel__bar span {
  display: block;
  height: 100%;
  background: var(--reel-tint);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.reel__toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--wash);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s;
}
.reel__toggle:hover {
  background: var(--wash-2);
}
.reel__toggle .icon {
  display: none;
}
.reel__toggle[data-state='play'] .reel__play,
.reel__toggle[data-state='pause'] .reel__pause {
  display: block;
}
.reel__play {
  margin-left: 2px;
}
/* Without JavaScript: the chapter names as a list, the first segment's picture */
html:not(.js) .reel-dial {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 6px;
  height: auto;
  -webkit-mask-image: none;
  mask-image: none;
}
html:not(.js) .reel-dial__item {
  position: static;
  translate: none;
  font-size: 1.05rem;
}
html:not(.js) .reel__page:not(.is-current),
html:not(.js) .reel__controls {
  display: none;
}
@media (max-width: 640px) {
  .reel {
    --board: min(76vw, 320px, calc((100svh - var(--header-h) - 210px) / 1.6285));
  }
  .reel-dial {
    height: 52px;
  }
  .reel-dial__item {
    font-size: 1.4rem;
  }
}

/* ---------------------------------------------------------------- Problem: the same cards, six months later */

.problem {
  padding-top: clamp(40px, 5vw, 72px);
  padding-bottom: clamp(24px, 3vw, 48px);
}
.late-word {
  transition: color 0.6s;
}
.problem.is-late .late-word {
  color: var(--red);
}
.aging {
  display: grid;
  justify-items: center;
  gap: 28px;
}
.aging__switch {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 9px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  box-shadow:
    var(--shadow-md),
    inset 0 0 0 1px var(--line);
  color: var(--ink);
  font: inherit;
  font-size: 0.98rem;
  font-weight: 650;
  cursor: pointer;
}
.aging__label {
  color: var(--ink-3);
  transition: color 0.3s;
}
.aging:not(.is-late) .aging__label--early,
.aging.is-late .aging__label--late {
  color: var(--ink);
}
.aging__track {
  position: relative;
  width: 52px;
  height: 31px;
  border-radius: 999px;
  background: var(--green);
  transition: background-color 0.4s;
}
.aging__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transition: transform 0.45s var(--ease-spring);
}
.aging.is-late .aging__track {
  background: var(--red);
}
.aging.is-late .aging__knob {
  transform: translateX(21px);
}
.aging__cards {
  display: grid;
  gap: 14px;
  width: min(430px, 100%);
}
.aging__card {
  display: grid;
  filter: drop-shadow(0 12px 22px rgba(16, 36, 80, 0.12));
}
.aging__img {
  grid-area: 1 / 1;
  width: 100%;
  height: auto;
  transition: opacity 0.5s var(--ease-out) calc(var(--i) * 120ms);
}
.aging__img--late,
.aging.is-late .aging__img--early {
  opacity: 0;
}
.aging.is-late .aging__img--late {
  opacity: 1;
}
.aging.is-late .aging__card {
  animation: bump 0.65s var(--ease-out) calc(var(--i) * 120ms);
}
@keyframes bump {
  35% {
    transform: translateY(-7px) rotate(-0.6deg);
  }
  70% {
    transform: translateY(1px);
  }
}
.caption {
  color: var(--ink-3);
  font-size: 0.88rem;
  text-align: center;
}

/* ---------------------------------------------------------------- Statement (words light up while scrolling) */

.statement-wrap {
  padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5.5vw, 80px);
}
.statement {
  max-width: 21em;
  margin-inline: auto;
  font-size: clamp(1.75rem, 0.95rem + 3.3vw, 3.6rem);
  font-weight: 760;
  line-height: 1.18;
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
}
:lang(zh) .statement {
  max-width: 17em;
  line-height: 1.42;
  letter-spacing: 0.01em;
}
.statement .hl {
  color: var(--brand);
}
.js .statement .w {
  opacity: 0.16;
  transition: opacity 0.4s;
}
.js .statement .w.on {
  opacity: 1;
}

/* ---------------------------------------------------------------- Capture */

.capture__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    'head device'
    'tabs device'
    'panel device'
    'notes device';
  grid-template-rows: auto auto 1fr auto;
  column-gap: clamp(40px, 7vw, 110px);
}
.capture__head {
  grid-area: head;
}
.capture__head .section-head {
  margin-bottom: 28px;
}
.capture__tabs {
  grid-area: tabs;
}
.capture__device {
  grid-area: device;
  align-self: center;
}
.capture__device .device {
  --w: clamp(270px, 25vw, 330px);
}
.capture__panels {
  grid-area: panel;
}
.capture__notes {
  grid-area: notes;
}
.segmented {
  position: relative;
  display: inline-grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  padding: 4px;
  border-radius: 999px;
  background: var(--wash);
}
.segmented__thumb {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: var(--surface);
  box-shadow:
    0 3px 10px -2px rgba(16, 24, 40, 0.18),
    0 0 0 0.5px var(--line);
  transform: translateX(calc(var(--index, 0) * 100%));
  transition: transform 0.5s var(--ease-spring);
}
.segmented__tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s;
}
.segmented__tab[aria-selected='true'] {
  color: var(--ink);
}
.segmented__progress {
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
  opacity: 0;
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.segmented__tab[aria-selected='true'] .segmented__progress {
  opacity: 1;
}
.capture__panel {
  max-width: 34em;
  margin-top: 24px;
  animation: dial-in-next 0.6s var(--ease-out);
}
[data-dir='prev'] .capture__panel {
  animation-name: dial-in-prev;
}
@keyframes dial-in-next {
  from {
    opacity: 0;
    transform: translateY(900px) rotate(3deg) translateY(-900px);
  }
}
@keyframes dial-in-prev {
  from {
    opacity: 0;
    transform: translateY(900px) rotate(-3deg) translateY(-900px);
  }
}
.capture__body {
  font-size: 1.15rem;
  line-height: 1.6;
}
:lang(zh) .capture__body {
  line-height: 1.85;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
}
.chips__label {
  width: 100%;
  margin-bottom: 2px;
  color: var(--ink-3);
  font-size: 0.85rem;
  font-weight: 620;
}
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}
.capture__notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.capture__notes li {
  display: flex;
  gap: 10px;
}
.capture__notes .icon {
  margin-top: 3px;
  color: var(--green);
}
.capture__notes strong {
  display: block;
  font-size: 0.98rem;
}
.capture__notes span {
  color: var(--ink-2);
  font-size: 0.92rem;
  line-height: 1.5;
}
@media (max-width: 1100px) {
  .capture__notes {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .capture__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'head' 'tabs' 'device' 'panel' 'notes';
    grid-template-rows: none;
  }
  .capture__tabs {
    justify-self: center;
  }
  .capture__device {
    justify-self: center;
    margin-top: 32px;
  }
  .capture__device .device {
    --w: min(70vw, 300px);
  }
  .capture__panel {
    margin-top: 0;
    margin-inline: auto;
  }
}
@media (max-width: 440px) {
  .segmented__tab {
    gap: 6px;
    padding: 0 13px;
    font-size: 0.95rem;
  }
  .segmented__tab .icon {
    display: none;
  }
}

/* ---------------------------------------------------------------- Timeline (sticky phone, steps scroll past) */

.tl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(40px, 8vw, 120px);
}
.tl__device {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.tl__device .device {
  --w: min(clamp(250px, 24vw, 320px), calc((100svh - var(--header-h) - 56px) / 2.24));
}
.device__spot {
  position: absolute;
  left: 2cqw;
  right: 2cqw;
  top: var(--top, 0%);
  height: calc(var(--bottom, 100%) - var(--top, 0%));
  border-radius: 4cqw;
  box-shadow:
    0 0 0 220cqw rgba(6, 10, 22, 0.44),
    inset 0 0 0 0.6cqw rgba(255, 255, 255, 0.7);
  opacity: 0;
  pointer-events: none;
  transition:
    top 0.7s var(--ease-out),
    height 0.7s var(--ease-out),
    opacity 0.4s;
}
.tl.is-active .device__spot {
  opacity: 1;
}
.tl__steps {
  position: relative;
  padding-block: 4vh 16vh;
}
.tl__steps::before {
  content: '';
  position: absolute;
  left: 13px;
  top: calc(4vh + 15vh);
  bottom: calc(16vh + 15vh);
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(var(--red) 0 22%, var(--brand) 22% 28%, var(--yellow) 28% 50%, var(--green) 50% 75%, var(--gray) 75%);
  opacity: 0.35;
}
.tl__step {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 30vh;
  padding-left: 48px;
}
.js .tl__step {
  opacity: 0.25;
  transition: opacity 0.5s;
}
.js .tl__step.is-active {
  opacity: 1;
}
.tl__step h3 {
  position: relative;
  font-size: clamp(1.7rem, 1.15rem + 1.9vw, 2.6rem);
  font-weight: 760;
  letter-spacing: -0.026em;
  line-height: 1.1;
}
.tl__dot {
  position: absolute;
  left: -41px;
  top: calc(0.55em - 8px);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tone);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--tone) 22%, transparent);
}
.tone-red {
  --tone: var(--red);
}
.tone-blue {
  --tone: var(--brand);
}
.tone-amber {
  --tone: var(--yellow);
}
.tone-green {
  --tone: var(--green);
}
.tone-gray {
  --tone: var(--gray);
}
.tone-blue .tl__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}
.tl__step p {
  max-width: 26em;
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 1.15rem;
  line-height: 1.6;
}
:lang(zh) .tl__step p {
  line-height: 1.85;
}
@media (max-width: 900px) {
  .tl {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .tl__device {
    top: var(--header-h);
    z-index: 2;
    display: grid;
    justify-items: center;
    margin-inline: calc(-1 * var(--gutter));
    padding: 10px var(--gutter) 34px;
    background: linear-gradient(var(--bg) 82%, transparent);
  }
  .tl__device .device {
    --w: min(56vw, calc(50svh / 2.24));
  }
  .tl__steps {
    padding-block: 0 14vh;
  }
  .tl__steps::before {
    display: none;
  }
  .tl__step {
    min-height: 30svh;
    justify-content: flex-end;
    padding-bottom: 4svh;
  }
}

/* ---------------------------------------------------------------- Motion (dial + swipe) */

.motion__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.feature-card {
  --chip: var(--brand);
  position: relative;
  isolation: isolate;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 8px;
  overflow: hidden;
  padding: clamp(28px, 3.6vw, 48px) clamp(20px, 3.6vw, 44px) clamp(26px, 3vw, 40px);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: 60%;
  background: radial-gradient(70% 70% at 50% 0%, color-mix(in srgb, var(--chip) 22%, transparent), transparent 70%);
  transition: background 0.8s;
}
.feature-card .device {
  --w: clamp(240px, 22vw, 296px);
}
.feature-card__text {
  max-width: 30em;
  text-align: center;
}
.feature-card h3 {
  font-size: 1.6rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}
.feature-card p {
  margin-top: 10px;
  color: var(--ink-2);
}
.dial-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}
.dial-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--wash);
  color: var(--ink-2);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 620;
  cursor: pointer;
  transition:
    background-color 0.3s,
    color 0.3s;
}
.dial-chip:hover {
  color: var(--ink);
}
.dial-chip[aria-pressed='true'] {
  background: var(--chip);
  color: #fff;
}
.cat-all,
[data-cat='all'] {
  --chip: var(--brand);
}
.cat-everyday,
[data-cat='everyday'] {
  --chip: var(--green);
}
.cat-documents,
[data-cat='documents'] {
  --chip: var(--indigo);
}
.cat-medicine,
[data-cat='medicine'] {
  --chip: var(--pink);
}
@media (max-width: 860px) {
  .motion__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature-card .device {
    --w: min(66vw, 290px);
  }
}

/* ---------------------------------------------------------------- Reminders */

.reminders__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(40px, 7vw, 100px);
}
.reminders__device .device {
  --w: clamp(260px, 24vw, 316px);
}
.plans {
  position: relative;
  padding: 26px clamp(16px, 3vw, 30px) 10px;
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.plans__axis,
.plan__track {
  position: relative;
  margin: 0 22px 0 8px;
}
.plans__axis {
  height: 22px;
  margin-bottom: 6px;
  color: var(--ink-3);
  font-size: 0.78rem;
  font-weight: 650;
}
.plans__axis span {
  position: absolute;
  left: var(--x);
  transform: translateX(-50%);
  white-space: nowrap;
}
.plans__axis span:first-child {
  transform: translateX(-8px);
}
.plans__axis span:last-child {
  transform: translateX(calc(-100% + 14px));
}
.plan {
  padding: 18px 0 34px;
  border-top: 1px solid var(--line);
}
.plan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.plan__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  color: var(--c);
}
.plan__name {
  font-size: 1.15rem;
  font-weight: 720;
}
.plan__tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 12%, transparent);
  color: var(--c);
  font-size: 0.8rem;
  font-weight: 680;
}
.plan__summary {
  margin: 6px 0 16px 40px;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.plan__track {
  height: 22px;
}
.plan__line {
  position: absolute;
  top: 50%;
  left: var(--from);
  right: 0;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--c) 30%, transparent), var(--c));
  transform-origin: left;
}
.plan__dot,
.plan__end {
  position: absolute;
  top: 50%;
  border-radius: 50%;
}
.plan__dot {
  left: var(--x);
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  background: var(--surface);
  box-shadow: inset 0 0 0 3.5px var(--c);
}
.plan__end {
  left: 100%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  background: var(--c);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 20%, transparent);
}
.plan__end.is-remind::before {
  content: '';
  position: absolute;
  inset: -9px;
  border: 2px solid color-mix(in srgb, var(--c) 45%, transparent);
  border-radius: 50%;
}
.plan__end span {
  position: absolute;
  left: 50%;
  top: calc(100% + 9px);
  transform: translateX(-50%);
  color: var(--c);
  font-size: 0.75rem;
  font-weight: 720;
  white-space: nowrap;
}
.js .plan__line {
  transform: scaleX(0);
}
.js .plan__dot,
.js .plan__end {
  transform: scale(0);
}
.js .plans.is-in .plan__line {
  transform: none;
  transition: transform 1.1s var(--ease-out) calc(var(--row) * 180ms);
}
.js .plans.is-in .plan__dot,
.js .plans.is-in .plan__end {
  transform: none;
  transition: transform 0.55s var(--ease-spring) calc(var(--row) * 180ms + 250ms + var(--i) * 120ms);
}
.extras {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(32px, 4vw, 56px);
}
.extra {
  padding: 28px;
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow:
    var(--shadow-sm),
    inset 0 0 0 1px var(--line);
}
.extra .icon {
  margin-bottom: 16px;
  color: var(--brand);
}
.extra h3 {
  font-size: 1.18rem;
  font-weight: 720;
}
.extra p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.98rem;
}
@media (max-width: 900px) {
  .reminders__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .reminders__device {
    justify-self: center;
  }
  .reminders__device .device {
    --w: min(66vw, 300px);
  }
  .extras {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------------------------------------------------------- AI */

.ai {
  overflow: clip;
}
.ai__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 45% at 22% 50%, rgba(175, 82, 222, 0.13), transparent 70%),
    radial-gradient(35% 35% at 8% 85%, rgba(76, 154, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.ai__grid {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 120px);
}
.ai__visual {
  position: relative;
  display: grid;
  padding-left: clamp(70px, 9vw, 120px);
}
.ai__back {
  --w: clamp(200px, 18vw, 250px);
  position: absolute;
  left: 0;
  top: 8%;
  transform: rotate(-7deg);
  opacity: 0.92;
}
.ai__front {
  --w: clamp(250px, 23vw, 304px);
  z-index: 1;
}
.points {
  display: grid;
  gap: 22px;
}
.points li {
  display: flex;
  gap: 16px;
}
.points .icon {
  margin-top: 2px;
  color: #a35bd9;
}
.points h3 {
  font-size: 1.12rem;
  font-weight: 720;
}
.points p {
  margin-top: 4px;
  color: var(--ink-2);
}
.providers {
  margin-top: 28px;
}
.providers__label {
  margin-bottom: 12px;
  color: var(--ink-3);
  font-size: 0.85rem;
  font-weight: 650;
}
.providers__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.providers__list li {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow:
    var(--shadow-sm),
    inset 0 0 0 1px var(--line);
  font-size: 0.9rem;
  font-weight: 620;
}
@media (max-width: 900px) {
  .ai__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .ai__visual {
    justify-self: center;
    padding-left: min(18vw, 80px);
  }
  .ai__back {
    --w: min(46vw, 210px);
  }
  .ai__front {
    --w: min(62vw, 280px);
  }
}

/* ---------------------------------------------------------------- Privacy */

.privacy {
  isolation: isolate;
  overflow: clip;
}
.privacy__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 42% at 50% 30%, rgba(25, 115, 232, 0.16), transparent 72%),
    radial-gradient(30% 35% at 88% 70%, rgba(88, 86, 214, 0.12), transparent 70%),
    radial-gradient(28% 30% at 8% 65%, rgba(48, 209, 88, 0.07), transparent 70%);
}
.privacy__grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}
.privacy__device .device {
  --w: clamp(240px, 22vw, 296px);
}
.privacy__items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 44px;
}
.privacy__items .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  color: var(--brand-ink);
}
.privacy__items h3 {
  font-size: 1.15rem;
  font-weight: 720;
}
.privacy__items p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 0.98rem;
}
.privacy__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(36px, 4.5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.privacy__foot p {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 46em;
  color: var(--ink-2);
}
.privacy__foot p .icon {
  margin-top: 2px;
  color: var(--green);
}
@media (max-width: 900px) {
  .privacy__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .privacy__device {
    justify-self: center;
  }
  .privacy__device .device {
    --w: min(62vw, 280px);
  }
}
@media (max-width: 560px) {
  .privacy__items {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* ---------------------------------------------------------------- More (bento) */

.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.bento__item {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 26px 24px;
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow:
    var(--shadow-sm),
    inset 0 0 0 1px var(--line);
}
.bento__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
}
.bento__item h3 {
  font-size: 1.15rem;
  font-weight: 720;
  letter-spacing: -0.01em;
}
.bento__item p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.96rem;
}
.bento__item.has-shot {
  padding-bottom: 0;
}
.bento__item.is-dark {
  --ink-2: rgba(235, 240, 250, 0.68);
  background: #0b0b0f;
  color: #f4f6fa;
}
.bento__item.is-dark .bento__icon {
  background: rgba(76, 154, 255, 0.18);
  color: #6aaeff;
}
.bento__shot {
  position: relative;
  flex: 1;
  min-height: 280px;
  margin: 26px 6% 0;
  overflow: hidden;
  border: 5px solid #16171b;
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  background: #f3f6fb;
}
.is-dark .bento__shot {
  border-color: #2a2b30;
  background: #000;
}
.bento__img {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: auto;
}
.bento__item--2 {
  grid-column: 1;
  grid-row: 1 / span 2;
}
.bento__item--3 {
  grid-column: 4;
  grid-row: 1 / span 2;
}
.bento__item--0 {
  grid-column: 2;
  grid-row: 1;
}
.bento__item--1 {
  grid-column: 3;
  grid-row: 1;
}
.bento__item--4 {
  grid-column: 2;
  grid-row: 2;
}
.bento__item--5 {
  grid-column: 3;
  grid-row: 2;
}
.bento__item--6 {
  grid-column: 1 / span 2;
  grid-row: 3;
}
.bento__item--7 {
  grid-column: 3 / span 2;
  grid-row: 3;
}
@media (max-width: 1000px) {
  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
  }
  .bento__item[class*='bento__item--'] {
    grid-column: auto;
    grid-row: auto;
  }
  .bento__item.has-shot {
    grid-row: span 2;
  }
}
@media (max-width: 600px) {
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .bento__item.has-shot {
    grid-row: auto;
  }
  .bento__shot {
    min-height: 300px;
    margin-inline: 10%;
  }
}

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

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(36px, 6vw, 96px);
}
.faq__intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.faq__intro .section-head {
  margin-bottom: 24px;
}
.faq__help {
  max-width: 26em;
  margin-bottom: 24px;
  color: var(--ink-2);
}
.anchor-alias {
  position: absolute;
  top: 0;
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__item:first-child {
  border-top: 1px solid var(--line);
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 2px;
  font-size: 1.1rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
.faq__item summary::-webkit-details-marker {
  display: none;
}
.faq__item summary .icon {
  color: var(--ink-3);
  transition: transform 0.35s var(--ease-out);
}
.faq__item[open] summary .icon {
  transform: rotate(180deg);
}
.faq__item::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 0.35s var(--ease-out),
    content-visibility 0.35s allow-discrete;
}
.faq__item[open]::details-content {
  block-size: auto;
}
.faq__answer {
  max-width: 40em;
  padding: 0 2px 24px;
  color: var(--ink-2);
}
:lang(zh) .faq__answer {
  line-height: 1.8;
}
@media (max-width: 860px) {
  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq__intro {
    position: static;
  }
}

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

.final {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(64px, 8.5vw, 120px);
  text-align: center;
}
.final__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(38% 42% at 50% 48%, rgba(76, 154, 255, 0.24), transparent 72%);
}
.final__inner {
  display: grid;
  justify-items: center;
}
.final__icon {
  width: 112px;
  height: 112px;
  filter: drop-shadow(0 24px 34px rgba(25, 115, 232, 0.45));
  animation: float 6s ease-in-out infinite alternate;
}
.display--final {
  margin-top: 28px;
  font-size: clamp(2.4rem, 1.1rem + 4.8vw, 5rem);
}
:lang(zh) .display--final {
  font-size: clamp(2.4rem, 1.1rem + 4.6vw, 4.8rem);
}
.final .lead {
  margin-top: 18px;
}

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

.site-footer {
  padding-block: 48px 32px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.site-footer h2 {
  margin-bottom: 14px;
  color: var(--ink-3);
  font-size: 0.85rem;
  font-weight: 650;
}
.site-footer li + li {
  margin-top: 10px;
}
.site-footer__col a {
  color: var(--ink-2);
}
.site-footer__col a:hover,
.site-footer__col a[aria-current] {
  color: var(--ink);
}
.site-footer__brand p {
  max-width: 22em;
  margin-top: 14px;
  color: var(--ink-2);
}
.site-footer__brand .site-footer__names {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 0.88rem;
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.85rem;
}
@media (max-width: 760px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---------------------------------------------------------------- Language suggestion */

.lang-banner {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(560px, calc(100% - 32px));
  padding: 10px 8px 10px 18px;
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow:
    0 0 0 1px var(--line),
    0 22px 44px -14px rgba(0, 0, 0, 0.35);
  transform: translateX(-50%);
  animation: banner-in 0.5s var(--ease-spring);
}
.lang-banner[hidden] {
  display: none;
}
.lang-banner__text {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 560;
}
.lang-banner__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--ink-3);
  cursor: pointer;
}
@keyframes banner-in {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
}
@media (max-width: 480px) {
  .lang-banner {
    flex-wrap: wrap;
  }
  .lang-banner__text {
    flex-basis: calc(100% - 52px);
  }
}

/* ---------------------------------------------------------------- Privacy policy page */

.doc {
  padding-block: 48px 120px;
}
.doc__grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  grid-template-areas: 'head head' 'toc body';
  gap: 32px 72px;
}
.doc__head {
  grid-area: head;
  max-width: 780px;
  padding-block: 32px 24px;
}
.doc__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-weight: 620;
}
.doc__meta {
  margin-top: 14px;
  color: var(--ink-3);
  font-weight: 560;
}
.doc__head .lead {
  margin-top: 22px;
}
.doc__toc {
  grid-area: toc;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}
.doc__toc ol {
  border-left: 2px solid var(--line);
}
.doc__toc a {
  display: block;
  margin-left: -2px;
  padding: 6px 0 6px 16px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  font-size: 0.93rem;
}
.doc__toc a:hover {
  border-left-color: var(--brand);
  color: var(--ink);
  text-decoration: none;
}
.doc__body {
  grid-area: body;
  max-width: 720px;
}
.doc__body section + section {
  margin-top: 44px;
}
.doc__body h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
  font-weight: 720;
  letter-spacing: -0.015em;
}
.doc__body p,
.doc__body li {
  color: var(--ink-2);
  font-size: 1.04rem;
  line-height: 1.75;
}
:lang(zh) .doc__body p,
:lang(zh) .doc__body li {
  line-height: 1.9;
}
.doc__body p + p,
.doc__body p + ol,
.doc__body ol + p,
.doc__body ol + ol {
  margin-top: 14px;
}
.doc__body ol {
  padding-left: 1.5em;
  list-style: decimal;
}
.doc__body li + li {
  margin-top: 8px;
}
.doc__body a {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
@media (max-width: 860px) {
  .doc__grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: 'head' 'body';
  }
  .doc__toc {
    display: none;
  }
}

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

.nf {
  display: grid;
  align-items: center;
  min-height: 72vh;
  padding-block: 64px 96px;
}
.nf__inner {
  display: grid;
  justify-items: center;
  text-align: center;
}
.nf__icon {
  width: 88px;
  height: 88px;
  filter: drop-shadow(0 18px 28px rgba(25, 115, 232, 0.4));
}
.nf__code {
  margin-top: 18px;
  background: linear-gradient(180deg, var(--ink) 25%, transparent 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}
.nf__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  margin-top: 28px;
  text-align: left;
}
.nf__block {
  padding: 26px;
  border-radius: var(--r-l);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.nf__block h2 {
  font-size: 1.25rem;
  font-weight: 720;
}
.nf__block p {
  margin: 8px 0 20px;
  color: var(--ink-2);
}
@media (max-width: 860px) {
  .nf__grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
}

/* ---------------------------------------------------------------- Scroll reveal & motion preferences */

/* Entering like the next page on the app's category dial: half a step round a wheel whose axis is
   far below, settling with a soft overshoot */
.js .reveal {
  opacity: 0;
  transform: translateY(1200px) rotate(3.6deg) translateY(-1200px) scale(0.97);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.95s cubic-bezier(0.2, 1.08, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-in {
  opacity: 1;
  transform: none;
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .js .device--tabs .device__media,
  .js .device--shots .device__media,
  .js .aging__img,
  .js .statement .w,
  .reel {
    transition-duration: 0.3s !important;
  }
  .theme-btn .icon {
    transition-duration: 0.2s !important;
  }
}
