/* Simpl.day static landing — Noir / Designer News inspired */
:root {
  color-scheme: dark;
  --bg: #000000;
  --bg-elevated: #0a0a0a;
  --card: #121214;
  --border: rgba(255, 255, 255, 0.12);
  --text: #ffffff;
  --muted: #a1a1a1;
  --muted2: #6b6b6b;
  --accent: #57a7ff;
  /* Type scale — every font-size on the page maps to one of these (display
     headlines keep their clamp() sizes). */
  --fs-xs: 0.75rem;
  --fs-sm: 0.8rem;
  --fs-base: 0.875rem;
  --fs-md: 0.95rem;
  --fs-lg: 1rem;
  --fs-xl: 1.05rem;
  --fs-2xl: 1.125rem;
  /* Standard grays and hairlines (dark scope). */
  --text-soft: #e8e8e8;
  --muted-bright: #b8bcc4;
  --line-soft: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --accent-a10: rgba(87, 167, 255, 0.1);
  --accent-a20: rgba(87, 167, 255, 0.2);
  --accent-a35: rgba(87, 167, 255, 0.35);
  --accent-a50: rgba(87, 167, 255, 0.5);
  --maxw: 1120px;
  --nav-h: 64px;
  --header-bg: linear-gradient(180deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.65) 100%);
  --header-border: rgba(255, 255, 255, 0.06);
  --hero-glow-1: rgba(87, 167, 255, 0.12);
  --dia-line: #6b6b6b;
  --dia-teal: #5dcaa5;
  --dia-sand: #c9a87c;
  --dia-fill: rgba(255, 255, 255, 0.07);
  --dia-stroke: rgba(255, 255, 255, 0.22);
  --phone-chassis-border: rgba(255, 255, 255, 0.1);
  --phone-chassis-bg: linear-gradient(165deg, #222228 0%, #121214 45%, #0a0a0c 100%);
  --phone-chassis-outer-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
  --phone-chassis-inset-highlight: rgba(255, 255, 255, 0.09);
  /* In-phone mock stays dark in both themes (readable previews). */
  --phone-screen-bg: linear-gradient(180deg, #141418 0%, #0a0a0b 100%);
  --phone-screen-fg: #c4c4c4;
  --phone-screen-inset: rgba(0, 0, 0, 0.45);
  --pager-bar-border: rgba(255, 255, 255, 0.24);
  --pager-bar-bg: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.55) 100%);
  --pager-tab-fg: #6a6a72;
  --pager-tab-fg-hover: #9898a0;
  --pager-tab-active-fg: #9fd0ff;
  --pager-tab-active-bg: rgba(87, 167, 255, 0.16);
  --pager-tab-active-ring: rgba(87, 167, 255, 0.2);
  --btn-pill-primary-bg: #ffffff;
  --btn-pill-primary-fg: #0a0a0a;
  --btn-pill-primary-hover: brightness(0.95);
  --btn-ghost-hover-bg: rgba(255, 255, 255, 0.06);
  --btn-tonal-bg: rgba(255, 255, 255, 0.08);
  --btn-tonal-hover-bg: rgba(255, 255, 255, 0.12);
  --form-input-bg: rgba(0, 0, 0, 0.2);
  --form-placeholder: rgba(255, 255, 255, 0.32);
  --join-card-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  --chip-on-fg: #0a0a0a;
  --stepper-item-hover-bg: rgba(255, 255, 255, 0.03);
  --stepper-item-active-bg: rgba(255, 255, 255, 0.05);
  --stepper-title-border: rgba(255, 255, 255, 0.1);
  --stepper-title-border-muted: rgba(255, 255, 255, 0.06);
  --stepper-title-border-active: rgba(255, 255, 255, 0.12);
  --stepper-name-active: #ffffff;
  --stepper-name-done: rgba(255, 255, 255, 0.9);
  --stepper-strong: rgba(255, 255, 255, 0.95);
  --stepper-strong-active: rgba(255, 255, 255, 0.95);
  --stepper-strong-done: rgba(255, 255, 255, 0.86);
  --app-stepper-arrow-border: rgba(255, 255, 255, 0.14);
  --app-stepper-arrow-bg: rgba(255, 255, 255, 0.04);
  --app-stepper-arrow-fg: rgba(255, 255, 255, 0.85);
  --app-stepper-arrow-hover-bg: rgba(255, 255, 255, 0.08);
  --app-stepper-arrow-hover-fg: #ffffff;
  --app-stepper-arrow-hover-border: rgba(255, 255, 255, 0.25);
  --form-status-error: #ff8a80;
  --form-status-ok: #7fd18b;
  --focus-ring: rgba(87, 167, 255, 0.5);
  --focus-ring-alt: rgba(87, 167, 255, 0.6);
  --btn-focus-ring: rgba(87, 167, 255, 0.55);
  --theme-toggle-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

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

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

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* —— Site header (Noir-style) —— */
/* Flex row: theme left, CTAs right — avoids overlap with absolute-centered nav on narrow screens */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  min-height: var(--nav-h);
  padding: 0.45rem clamp(1rem, 3vw, 1.5rem);
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--header-border);
}

/* Theme: Dark (default) + Light (journal) */
.theme-toggle {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: stretch;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 3px;
  gap: 0;
  box-shadow: var(--theme-toggle-shadow, 0 1px 0 rgba(255, 255, 255, 0.04));
}
.theme-toggle__opt {
  margin: 0;
  padding: 0.35rem 0.55rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted2);
  font-family: inherit;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.theme-toggle__opt:hover {
  color: var(--muted);
}
.theme-toggle__opt--active {
  background: var(--card);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--border);
}
.theme-toggle__opt:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  z-index: 1;
}
@media (max-width: 400px) {
  .theme-toggle__opt {
    padding: 0.32rem 0.45rem;
    font-size: 0.66rem;
  }
}

.nav-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem 0.5rem;
  flex: 1 1 auto;
  flex-wrap: wrap;
  min-width: 0;
}
.nav-actions .btn {
  white-space: nowrap;
}
@media (max-width: 380px) {
  .nav-actions .btn-sm {
    padding: 0.45rem 0.7rem;
    font-size: 0.75rem;
  }
  .site-header {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: var(--fs-md);
  border: none;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: transform 0.15s ease, filter 0.15s ease, background 0.15s ease;
}
.btn:active {
  transform: scale(0.98);
}

.btn-pill-primary {
  background: var(--btn-pill-primary-bg);
  color: var(--btn-pill-primary-fg);
}
.btn-pill-primary:hover {
  filter: var(--btn-pill-primary-hover);
  text-decoration: none;
}

.btn-pill-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-pill-ghost:hover {
  background: var(--btn-ghost-hover-bg);
  text-decoration: none;
}

.btn-sm {
  padding: 0.5rem 0.9rem;
  font-size: var(--fs-sm);
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5rem) 0 2rem;
  overflow: hidden;
}

.hero-spotlight {
  pointer-events: none;
  position: absolute;
  inset: -20% 0 40% 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, var(--hero-glow-1) 0%, transparent 55%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero-spotlight {
    animation: hero-spotlight-breathe 14s ease-in-out infinite;
  }
}
@keyframes hero-spotlight-breathe {
  0%,
  100% {
    opacity: 0.75;
  }
  50% {
    opacity: 1;
  }
}

.hero-brand-phones {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  margin: 0 auto 0.75rem;
  max-width: 100%;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
  color: var(--text);
  font-weight: 400;
}
.hero-brand-phones__line {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero-brand-phones__line strong {
  font-weight: 700;
}
.hero-brand-phones__tagline {
  margin: 0;
  max-width: 28rem;
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: var(--muted);
}
.hero-brand-phones__tagline em {
  font-style: normal;
  color: var(--accent);
  font-weight: 600;
}

.outcome-bridge {
  max-width: 31rem;
  margin: 0 auto;
  padding: 1rem 0 1.75rem;
  text-align: center;
}
.outcome-bridge__text {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--muted);
  padding: 0 clamp(1.1rem, 3vw, 1.5rem);
  text-wrap: pretty;
}
.outcome-bridge__text strong {
  color: var(--text);
  font-weight: 600;
}

.subhead {
  color: var(--muted);
  font-size: var(--fs-xl);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  line-height: 1.55;
}

/* —— Phone carousel (one screen per app page) —— */
.phone-scroller-outer {
  max-width: 100%;
  margin: 0.75rem auto 0;
  padding: 0 0 0.5rem;
}

.phone-scroller {
  display: flex;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem max(0.75rem, calc(50% - 150px)) 0.75rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
@media (prefers-reduced-motion: reduce) {
  .phone-scroller {
    scroll-behavior: auto;
  }
}

.phone-scroller::-webkit-scrollbar {
  display: none;
}

/* Bottom tab bar under phone row (same labels as in-app tab bar) */
.phone-pager {
  width: 100%;
  max-width: min(400px, calc(100vw - 1.5rem));
  margin: 0.45rem auto 0;
  padding: 0;
  box-sizing: border-box;
}
.phone-pager__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 0.32rem 0.3rem;
  border: 1px solid var(--pager-bar-border);
  border-radius: 12px;
  background: var(--pager-bar-bg);
}
.phone-pager__tab {
  box-sizing: border-box;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  padding: 0.48rem 0.14rem;
  border: none;
  background: transparent;
  color: var(--pager-tab-fg);
  font-family: inherit;
  font-size: clamp(0.75rem, 2.6vw, 0.95rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  border-radius: 8px;
  position: relative;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none;
  transition: color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease, font-weight 0.15s ease;
}
.phone-pager__tab:hover {
  color: var(--pager-tab-fg-hover);
}
.phone-pager__tab:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 1px;
  z-index: 1;
}
.phone-pager__tab--active {
  color: var(--pager-tab-active-fg);
  font-weight: 600;
  background: var(--pager-tab-active-bg);
  box-shadow: 0 0 0 1px var(--pager-tab-active-ring) inset;
}

.phone-slide {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: min(300px, 90vw);
}
/* Center slide reads brighter; off-center slides recede (JS sets --focal after scroll) */
@media (prefers-reduced-motion: no-preference) {
  .phone-scroller[data-carousel-enhanced] .phone-slide {
    transition: opacity 0.45s cubic-bezier(0.25, 0.1, 0.2, 1), filter 0.45s cubic-bezier(0.25, 0.1, 0.2, 1);
  }
  .phone-scroller[data-carousel-enhanced] .phone-slide:not(.phone-slide--focal) {
    opacity: 0.45;
    filter: brightness(0.78) saturate(0.88);
  }
  .phone-scroller[data-carousel-enhanced] .phone-slide--focal {
    opacity: 1;
    filter: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .phone-scroller .phone-slide {
    opacity: 1 !important;
    filter: none !important;
  }
}

/* Device frame: one outer radius, inner = outer − bezel (concentric corners). */
.phone {
  --phone-bezel: 9px;
  --phone-radius-outer: 28px;
  --phone-radius-inner: calc(var(--phone-radius-outer) - var(--phone-bezel));
  position: relative;
  width: 100%;
  /* Shorter than 1:2 — less empty vertical space in the frame */
  aspect-ratio: 2 / 3;
  max-height: min(480px, 74vh);
  border-radius: var(--phone-radius-outer);
  border: 1px solid var(--phone-chassis-border);
  background: var(--phone-chassis-bg);
  box-shadow: var(--phone-chassis-outer-shadow), inset 0 1px 0 var(--phone-chassis-inset-highlight);
}

/* Touch overlay: tap ripples + horizontal swipe, hand follows; --touch-delay per slide
   Master loop: 3.6s — keep .phone screen mock animations on the same period.
   Ripples and drag nubs are timed to the hand’s *press* keyframes in phone-finger-patrol-* (not while traveling). */
.phone-finger {
  --touch-delay: 0s;
  position: absolute;
  z-index: 6;
  inset: var(--phone-bezel);
  border-radius: var(--phone-radius-inner);
  pointer-events: none;
  overflow: hidden;
}
.phone-slide:nth-child(1) .phone-finger {
  --touch-delay: 0s;
}
.phone-slide:nth-child(2) .phone-finger {
  --touch-delay: 0.4s;
}
.phone-slide:nth-child(3) .phone-finger {
  --touch-delay: 0.8s;
}
.phone-slide:nth-child(4) .phone-finger {
  --touch-delay: 1.2s;
}
.phone-slide:nth-child(5) .phone-finger {
  --touch-delay: 1.6s;
}
.phone-slide:nth-child(6) .phone-finger {
  --touch-delay: 2s;
}

.phone-touches {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.phone-tap {
  position: absolute;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  pointer-events: none;
  transform: translateZ(0);
}
.phone-tap--1 {
  left: 50%;
  top: 16%;
}
.phone-tap--2 {
  left: 68%;
  top: 34%;
}
.phone-tap--3 {
  left: 35%;
  top: 48%;
}
.phone-tap--4 {
  left: 58%;
  top: 62%;
}
.phone-tap::before,
.phone-tap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border-radius: 50%;
  box-sizing: border-box;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
}
/* expanding ring = “touch surface” + release */
.phone-tap::before {
  border: 2px solid rgba(87, 167, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 0 var(--accent-a20);
  opacity: 0;
}
.phone-tap--1::before {
  animation: phone-tap-pulse-1 3.6s ease-out var(--touch-delay) infinite;
}
.phone-tap--2::before {
  animation: phone-tap-pulse-2 3.6s ease-out var(--touch-delay) infinite;
}
.phone-tap--3::before {
  animation: phone-tap-pulse-3 3.6s ease-out var(--touch-delay) infinite;
}
.phone-tap--4::before {
  animation: phone-tap-pulse-4 3.6s ease-out var(--touch-delay) infinite;
}
/* inner click flash */
.phone-tap::after {
  background: radial-gradient(circle at 35% 35%, #fff, rgba(255, 255, 255, 0.45) 45%, rgba(255, 255, 255, 0) 70%);
  opacity: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transform: scale(0.25);
  box-shadow: 0 0 8px 1px rgba(255, 255, 255, 0.25);
}
.phone-tap--1::after {
  animation: phone-tap-tap-1 3.6s ease-out var(--touch-delay) infinite;
}
.phone-tap--2::after {
  animation: phone-tap-tap-2 3.6s ease-out var(--touch-delay) infinite;
}
.phone-tap--3::after {
  animation: phone-tap-tap-3 3.6s ease-out var(--touch-delay) infinite;
}
.phone-tap--4::after {
  animation: phone-tap-tap-4 3.6s ease-out var(--touch-delay) infinite;
}

/* Horizontal swipe nub: bottom of glass, flicks R→L */
.phone-swipe {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.phone-swipe__nub {
  position: absolute;
  top: 80%;
  left: 84%;
  width: 9px;
  height: 9px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(87, 167, 255, 0.4), 0 0 12px 3px var(--accent-a20), -18px 0 14px 4px var(--accent-a10);
  opacity: 0;
  animation: phone-swipe-flick 3.6s cubic-bezier(0.33, 0.1, 0.2, 1) var(--touch-delay) infinite;
}

/* Vertical drag on list area (e.g. scroll list) */
.phone-flick-y {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
}
.phone-flick-y__nub {
  position: absolute;
  top: 30%;
  left: 80%;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 1px rgba(87, 167, 255, 0.3), 0 10px 0 -0.5px rgba(255, 255, 255, 0.15), 0 20px 0 -0.5px var(--line-soft);
  opacity: 0;
  animation: phone-flick-y 3.6s cubic-bezier(0.4, 0, 0.2, 1) var(--touch-delay) infinite;
}

/* Tap rings fire with hand *press* keyframes: ~8%, ~30%, ~52%, ~78% in phone-finger-patrol-* (never mid-travel) */
@keyframes phone-tap-pulse-1 {
  0%,
  7.2% {
    transform: scale(0.15);
    opacity: 0;
  }
  7.4% {
    transform: scale(0.35);
    opacity: 0.65;
  }
  7.8%,
  10.2% {
    transform: scale(1.05);
    opacity: 0.45;
  }
  11%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
@keyframes phone-tap-tap-1 {
  0%,
  7% {
    transform: scale(0.1);
    opacity: 0;
  }
  7.2%,
  10.3% {
    transform: scale(0.7);
    opacity: 0.65;
  }
  10.6%,
  100% {
    transform: scale(0.1);
    opacity: 0;
  }
}
@keyframes phone-tap-pulse-2 {
  0%,
  28% {
    transform: scale(0.15);
    opacity: 0;
  }
  28.3% {
    transform: scale(0.35);
    opacity: 0.65;
  }
  28.6%,
  32% {
    transform: scale(1.05);
    opacity: 0.45;
  }
  32.5%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
@keyframes phone-tap-tap-2 {
  0%,
  27.6% {
    transform: scale(0.1);
    opacity: 0;
  }
  28%,
  32% {
    transform: scale(0.7);
    opacity: 0.65;
  }
  32.2%,
  100% {
    transform: scale(0.1);
    opacity: 0;
  }
}
@keyframes phone-tap-pulse-3 {
  0%,
  50% {
    transform: scale(0.15);
    opacity: 0;
  }
  50.3% {
    transform: scale(0.35);
    opacity: 0.65;
  }
  50.8%,
  54.8% {
    transform: scale(1.05);
    opacity: 0.45;
  }
  55.2%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
@keyframes phone-tap-tap-3 {
  0%,
  49.5% {
    transform: scale(0.1);
    opacity: 0;
  }
  50%,
  54.8% {
    transform: scale(0.7);
    opacity: 0.65;
  }
  55%,
  100% {
    transform: scale(0.1);
    opacity: 0;
  }
}
@keyframes phone-tap-pulse-4 {
  0%,
  75% {
    transform: scale(0.15);
    opacity: 0;
  }
  75.3% {
    transform: scale(0.35);
    opacity: 0.65;
  }
  75.8%,
  80% {
    transform: scale(1.05);
    opacity: 0.45;
  }
  80.5%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
@keyframes phone-tap-tap-4 {
  0%,
  75% {
    transform: scale(0.1);
    opacity: 0;
  }
  75.2%,
  80% {
    transform: scale(0.7);
    opacity: 0.65;
  }
  80.2%,
  100% {
    transform: scale(0.1);
    opacity: 0;
  }
}
/* Horizontal flick (if shown): only after 1st tap / travel — do not start during finger travel */
@keyframes phone-swipe-flick {
  0%,
  32% {
    left: 84%;
    top: 80%;
    opacity: 0;
    transform: scale(0.55);
  }
  32.5%,
  32.6% {
    left: 84%;
    top: 80%;
    opacity: 0.9;
    transform: scale(0.88);
  }
  34% {
    left: 64%;
  }
  36% {
    left: 48%;
  }
  39% {
    left: 32%;
    opacity: 0.5;
  }
  42% {
    left: 22%;
  }
  44%,
  100% {
    left: 18%;
    top: 80%;
    opacity: 0;
    transform: scale(0.45);
  }
}

/* Fallback vertical nub: runs mid-cycle after the finger has hit earlier rows (see per-screen overrides) */
@keyframes phone-flick-y {
  0%,
  55% {
    top: 32%;
    left: 80%;
    opacity: 0;
  }
  56% {
    opacity: 0.7;
  }
  60% {
    top: 44%;
  }
  64% {
    top: 54%;
  }
  68%,
  70% {
    top: 58%;
  }
  72%,
  100% {
    top: 58%;
    left: 80%;
    opacity: 0;
  }
}

.phone-finger__hand {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 20%;
  display: block;
  font-size: 30px;
  line-height: 1;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.65));
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.4);
  margin-left: -4px;
  margin-top: -2px;
  animation-duration: 3.6s;
  animation-timing-function: ease-in-out;
  animation-delay: var(--touch-delay);
  animation-iteration-count: infinite;
  will-change: left, top, transform;
}
.phone-finger--area .phone-finger__hand {
  animation-name: phone-finger-patrol-area;
}
.phone-finger--tasks .phone-finger__hand {
  animation-name: phone-finger-patrol-tasks;
}
.phone-finger--notes .phone-finger__hand {
  animation-name: phone-finger-patrol-notes;
}
.phone-finger--people .phone-finger__hand {
  animation-name: phone-finger-patrol-people;
}
.phone-finger--insights .phone-finger__hand {
  animation-name: phone-finger-patrol-insights;
}
.phone-finger--chat .phone-finger__hand {
  animation-name: phone-finger-patrol-chat;
}

/* 👆 only on the horizontally centered slide (class toggled in app.js; first slide in HTML) */
.phone-slide:not(.phone-slide--center) .phone-finger__hand {
  opacity: 0;
  visibility: hidden;
  animation: none;
  pointer-events: none;
}

/* Hand path + tap ring centers match each screen’s mock (same 3.6s / tap timing) */
@keyframes phone-finger-patrol-area {
  0%,
  100% {
    left: 32%;
    top: 31%;
    transform: translate(-50%, 0) scale(1) rotate(-7deg);
  }
  8%,
  10% {
    left: 32%;
    top: 31%;
    transform: translate(-50%, 0) scale(0.86) rotate(-3deg);
  }
  22% {
    left: 70%;
    top: 31%;
    transform: translate(-50%, 0) scale(0.95) rotate(3deg);
  }
  30%,
  32% {
    left: 70%;
    top: 31%;
    transform: translate(-50%, 0) scale(0.8) rotate(1deg);
  }
  45% {
    left: 32%;
    top: 46%;
    transform: translate(-50%, 0) scale(0.95) rotate(8deg);
  }
  52%,
  55% {
    left: 32%;
    top: 46%;
    transform: translate(-50%, 0) scale(0.8) rotate(5deg);
  }
  70% {
    left: 50%;
    top: 57%;
    transform: translate(-50%, 0) scale(0.95) rotate(0);
  }
  78%,
  80% {
    left: 50%;
    top: 57%;
    transform: translate(-50%, 0) scale(0.82) rotate(0);
  }
  90% {
    left: 32%;
    top: 31%;
    transform: translate(-50%, 0) scale(0.92) rotate(-7deg);
  }
}
@keyframes phone-finger-patrol-tasks {
  0%,
  100% {
    left: 15%;
    top: 34%;
    transform: translate(-50%, 0) scale(1) rotate(-8deg);
  }
  8%,
  10% {
    left: 15%;
    top: 34%;
    transform: translate(-50%, 0) scale(0.86) rotate(-2deg);
  }
  22% {
    left: 15%;
    top: 42%;
    transform: translate(-50%, 0) scale(0.95) rotate(0);
  }
  30%,
  32% {
    left: 15%;
    top: 42%;
    transform: translate(-50%, 0) scale(0.8) rotate(0);
  }
  45% {
    left: 15%;
    top: 50%;
    transform: translate(-50%, 0) scale(0.95) rotate(0);
  }
  52%,
  55% {
    left: 15%;
    top: 50%;
    transform: translate(-50%, 0) scale(0.8) rotate(0);
  }
  70% {
    left: 15%;
    top: 59%;
    transform: translate(-50%, 0) scale(0.95) rotate(0);
  }
  78%,
  80% {
    left: 15%;
    top: 59%;
    transform: translate(-50%, 0) scale(0.82) rotate(0);
  }
  90% {
    left: 15%;
    top: 34%;
    transform: translate(-50%, 0) scale(0.92) rotate(-8deg);
  }
}
@keyframes phone-finger-patrol-notes {
  0%,
  100% {
    left: 40%;
    top: 35%;
    transform: translate(-50%, 0) scale(1) rotate(-6deg);
  }
  8%,
  10% {
    left: 40%;
    top: 35%;
    transform: translate(-50%, 0) scale(0.86) rotate(-2deg);
  }
  22% {
    left: 40%;
    top: 44%;
    transform: translate(-50%, 0) scale(0.95) rotate(2deg);
  }
  30%,
  32% {
    left: 40%;
    top: 44%;
    transform: translate(-50%, 0) scale(0.8) rotate(0);
  }
  45% {
    left: 50%;
    top: 54%;
    transform: translate(-50%, 0) scale(0.95) rotate(0);
  }
  52%,
  55% {
    left: 50%;
    top: 54%;
    transform: translate(-50%, 0) scale(0.8) rotate(0);
  }
  70% {
    left: 50%;
    top: 68%;
    transform: translate(-50%, 0) scale(0.95) rotate(0);
  }
  78%,
  80% {
    left: 50%;
    top: 68%;
    transform: translate(-50%, 0) scale(0.82) rotate(0);
  }
  90% {
    left: 40%;
    top: 35%;
    transform: translate(-50%, 0) scale(0.92) rotate(-6deg);
  }
}
@keyframes phone-finger-patrol-people {
  0%,
  100% {
    left: 24%;
    top: 33%;
    transform: translate(-50%, 0) scale(1) rotate(-5deg);
  }
  8%,
  10% {
    left: 24%;
    top: 33%;
    transform: translate(-50%, 0) scale(0.86) rotate(-2deg);
  }
  22% {
    left: 32%;
    top: 51%;
    transform: translate(-50%, 0) scale(0.95) rotate(0);
  }
  30%,
  32% {
    left: 32%;
    top: 51%;
    transform: translate(-50%, 0) scale(0.8) rotate(0);
  }
  45% {
    left: 64%;
    top: 51%;
    transform: translate(-50%, 0) scale(0.95) rotate(0);
  }
  52%,
  55% {
    left: 64%;
    top: 51%;
    transform: translate(-50%, 0) scale(0.8) rotate(0);
  }
  70% {
    left: 24%;
    top: 40%;
    transform: translate(-50%, 0) scale(0.95) rotate(0);
  }
  78%,
  80% {
    left: 24%;
    top: 40%;
    transform: translate(-50%, 0) scale(0.82) rotate(0);
  }
  90% {
    left: 24%;
    top: 33%;
    transform: translate(-50%, 0) scale(0.92) rotate(-5deg);
  }
}
@keyframes phone-finger-patrol-insights {
  0%,
  100% {
    left: 50%;
    top: 36%;
    transform: translate(-50%, 0) scale(1) rotate(-4deg);
  }
  8%,
  10% {
    left: 50%;
    top: 36%;
    transform: translate(-50%, 0) scale(0.86) rotate(0);
  }
  22% {
    left: 78%;
    top: 37%;
    transform: translate(-50%, 0) scale(0.95) rotate(2deg);
  }
  30%,
  32% {
    left: 78%;
    top: 37%;
    transform: translate(-50%, 0) scale(0.8) rotate(0);
  }
  45% {
    left: 42%;
    top: 55%;
    transform: translate(-50%, 0) scale(0.95) rotate(0);
  }
  52%,
  55% {
    left: 42%;
    top: 55%;
    transform: translate(-50%, 0) scale(0.8) rotate(0);
  }
  70% {
    left: 50%;
    top: 70%;
    transform: translate(-50%, 0) scale(0.95) rotate(0);
  }
  78%,
  80% {
    left: 50%;
    top: 70%;
    transform: translate(-50%, 0) scale(0.82) rotate(0);
  }
  90% {
    left: 50%;
    top: 36%;
    transform: translate(-50%, 0) scale(0.92) rotate(-4deg);
  }
}
@keyframes phone-finger-patrol-chat {
  0%,
  100% {
    left: 76%;
    top: 35%;
    transform: translate(-50%, 0) scale(1) rotate(8deg);
  }
  8%,
  10% {
    left: 76%;
    top: 35%;
    transform: translate(-50%, 0) scale(0.86) rotate(4deg);
  }
  22% {
    left: 28%;
    top: 44%;
    transform: translate(-50%, 0) scale(0.95) rotate(-4deg);
  }
  30%,
  32% {
    left: 28%;
    top: 44%;
    transform: translate(-50%, 0) scale(0.8) rotate(-4deg);
  }
  45% {
    left: 72%;
    top: 54%;
    transform: translate(-50%, 0) scale(0.95) rotate(6deg);
  }
  52%,
  55% {
    left: 72%;
    top: 54%;
    transform: translate(-50%, 0) scale(0.8) rotate(2deg);
  }
  70% {
    left: 50%;
    top: 84%;
    transform: translate(-50%, 0) scale(0.95) rotate(0);
  }
  78%,
  80% {
    left: 50%;
    top: 84%;
    transform: translate(-50%, 0) scale(0.82) rotate(0);
  }
  90% {
    left: 76%;
    top: 35%;
    transform: translate(-50%, 0) scale(0.92) rotate(8deg);
  }
}

/* Tap ripples: same moment as @keyframes phone-tap-*; positions match hand stops */
.phone-finger--area .phone-tap--1 {
  left: 32%;
  top: 31%;
}
.phone-finger--area .phone-tap--2 {
  left: 70%;
  top: 31%;
}
.phone-finger--area .phone-tap--3 {
  left: 32%;
  top: 46%;
}
.phone-finger--area .phone-tap--4 {
  left: 50%;
  top: 57%;
}
.phone-finger--tasks .phone-tap--1 {
  left: 15%;
  top: 34%;
}
.phone-finger--tasks .phone-tap--2 {
  left: 15%;
  top: 42%;
}
.phone-finger--tasks .phone-tap--3 {
  left: 15%;
  top: 50%;
}
.phone-finger--tasks .phone-tap--4 {
  left: 15%;
  top: 59%;
}
.phone-finger--notes .phone-tap--1 {
  left: 40%;
  top: 35%;
}
.phone-finger--notes .phone-tap--2 {
  left: 40%;
  top: 44%;
}
.phone-finger--notes .phone-tap--3 {
  left: 50%;
  top: 54%;
}
.phone-finger--notes .phone-tap--4 {
  left: 50%;
  top: 68%;
}
.phone-finger--people .phone-tap--1 {
  left: 24%;
  top: 33%;
}
.phone-finger--people .phone-tap--2 {
  left: 32%;
  top: 51%;
}
.phone-finger--people .phone-tap--3 {
  left: 64%;
  top: 51%;
}
.phone-finger--people .phone-tap--4 {
  left: 24%;
  top: 40%;
}
.phone-finger--insights .phone-tap--1 {
  left: 50%;
  top: 36%;
}
.phone-finger--insights .phone-tap--2 {
  left: 78%;
  top: 37%;
}
.phone-finger--insights .phone-tap--3 {
  left: 42%;
  top: 55%;
}
.phone-finger--insights .phone-tap--4 {
  left: 50%;
  top: 70%;
}
.phone-finger--chat .phone-tap--1 {
  left: 76%;
  top: 35%;
}
.phone-finger--chat .phone-tap--2 {
  left: 28%;
  top: 44%;
}
.phone-finger--chat .phone-tap--3 {
  left: 72%;
  top: 54%;
}
.phone-finger--chat .phone-tap--4 {
  left: 50%;
  top: 84%;
}

/* Horizontal “swipe” nub: only on People (between names); other screens use vertical scroll hint */
.phone-finger--area .phone-swipe,
.phone-finger--tasks .phone-swipe,
.phone-finger--notes .phone-swipe,
.phone-finger--insights .phone-swipe,
.phone-finger--chat .phone-swipe {
  display: none;
}
.phone-finger--people .phone-swipe__nub {
  top: 32%;
  left: 75%;
  animation: phone-swipe-people 3.6s cubic-bezier(0.33, 0.1, 0.2, 1) var(--touch-delay) infinite;
}
/* After 2nd row tap (hand ~32%), not during first name press or travel */
@keyframes phone-swipe-people {
  0%,
  32% {
    left: 75%;
    top: 32%;
    opacity: 0;
    transform: scale(0.55);
  }
  32.5%,
  32.6% {
    left: 75%;
    top: 32%;
    opacity: 0.9;
    transform: scale(0.88);
  }
  34% {
    left: 58%;
  }
  37% {
    left: 44%;
  }
  40% {
    left: 30%;
    opacity: 0.5;
  }
  42% {
    left: 22%;
  }
  44%,
  100% {
    left: 18%;
    top: 32%;
    opacity: 0;
    transform: scale(0.45);
  }
}
.phone-finger--people .phone-flick-y {
  display: none;
}

/* Vertical scroll nub: list / sheet / thread — matches each layout */
.phone-finger--area .phone-flick-y__nub {
  top: 54%;
  left: 50%;
  animation: phone-flick-y-area 3.6s cubic-bezier(0.4, 0, 0.2, 1) var(--touch-delay) infinite;
}
/* Sheet scroll: after 4th tap (hand on bottom row ~78–80%), not while moving between area tiles */
@keyframes phone-flick-y-area {
  0%,
  79% {
    top: 52%;
    left: 50%;
    opacity: 0;
  }
  80% {
    opacity: 0.72;
  }
  83% {
    top: 56%;
  }
  86% {
    top: 60%;
  }
  88%,
  90% {
    top: 64%;
  }
  92%,
  100% {
    top: 64%;
    left: 50%;
    opacity: 0;
  }
}
.phone-finger--tasks .phone-flick-y__nub {
  top: 38%;
  left: 86%;
  animation: phone-flick-y-tasks 3.6s cubic-bezier(0.4, 0, 0.2, 1) var(--touch-delay) infinite;
}
@keyframes phone-flick-y-tasks {
  0%,
  55% {
    top: 36%;
    left: 86%;
    opacity: 0;
  }
  56% {
    opacity: 0.7;
  }
  60% {
    top: 48%;
  }
  64% {
    top: 56%;
  }
  68%,
  70% {
    top: 62%;
  }
  72%,
  100% {
    top: 62%;
    left: 86%;
    opacity: 0;
  }
}
.phone-finger--notes .phone-flick-y__nub {
  top: 40%;
  left: 40%;
  animation: phone-flick-y-notes 3.6s cubic-bezier(0.4, 0, 0.2, 1) var(--touch-delay) infinite;
}
@keyframes phone-flick-y-notes {
  0%,
  55% {
    top: 38%;
    left: 40%;
    opacity: 0;
  }
  56% {
    opacity: 0.68;
  }
  60% {
    top: 50%;
  }
  64% {
    top: 58%;
  }
  68%,
  70% {
    top: 64%;
  }
  72%,
  100% {
    top: 64%;
    left: 40%;
    opacity: 0;
  }
}
.phone-finger--insights .phone-flick-y__nub {
  top: 44%;
  left: 50%;
  animation: phone-flick-y-insights 3.6s cubic-bezier(0.4, 0, 0.2, 1) var(--touch-delay) infinite;
}
@keyframes phone-flick-y-insights {
  0%,
  55% {
    top: 40%;
    left: 50%;
    opacity: 0;
  }
  56% {
    opacity: 0.65;
  }
  60% {
    top: 50%;
  }
  64% {
    top: 60%;
  }
  68%,
  70% {
    top: 66%;
  }
  72%,
  100% {
    top: 66%;
    left: 50%;
    opacity: 0;
  }
}
.phone-finger--chat .phone-flick-y__nub {
  top: 44%;
  left: 80%;
  animation: phone-flick-y-chat 3.6s cubic-bezier(0.4, 0, 0.2, 1) var(--touch-delay) infinite;
}
/* Thread scroll: after hand reaches lower composer area (~70–80%) */
@keyframes phone-flick-y-chat {
  0%,
  72% {
    top: 40%;
    left: 80%;
    opacity: 0;
  }
  73% {
    opacity: 0.65;
  }
  77% {
    top: 52%;
  }
  80% {
    top: 62%;
  }
  84%,
  86% {
    top: 70%;
  }
  88%,
  100% {
    top: 70%;
    left: 80%;
    opacity: 0;
  }
}

.phone .screen {
  position: absolute;
  inset: var(--phone-bezel);
  border-radius: var(--phone-radius-inner);
  background: var(--phone-screen-bg);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  color: var(--phone-screen-fg);
  font-size: var(--fs-lg);
  line-height: 1.38;
  text-align: left;
  padding: 8px 9px 6px;
  overflow: hidden;
  border: none;
  box-shadow: inset 0 0 0 1px var(--phone-screen-inset);
  min-height: 0;
  /* Same period as .phone-finger (3.6s) so ambient drift stays in phase with the hand */
  animation: phone-surface-drift 3.6s ease-in-out infinite;
}

/* Scrollable list region */
.screen__body {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  animation: phone-body-scroll 3.6s ease-in-out infinite;
}

/* Auto / ambient motion: whole panel + list content */
@keyframes phone-surface-drift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(0.2px, -1px);
  }
  66% {
    transform: translate(-0.2px, 0.5px);
  }
}

/* List nudge: later in the cycle so it doesn’t read as scrolling before the finger has crossed rows */
@keyframes phone-body-scroll {
  0%,
  12%,
  100% {
    transform: translateY(0);
  }
  57% {
    transform: translateY(-8px);
  }
  68% {
    transform: translateY(-8px);
  }
  90% {
    transform: translateY(0);
  }
}

@keyframes phone-row-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* Staggered card motion (area tiles / task rows / notes / people) */
.screen--area .screen__body .screen__area-card,
.screen--tasks .screen__body .screen__task,
.screen--notes .screen__body .screen__note-col .screen__note,
.screen--people .screen__body .screen__person,
.screen--chat .screen__body .screen__msg,
.screen--chat .screen__body .screen__chat-suggest,
.screen--insights .screen__body .screen__chart,
.screen--insights .screen__body .screen__map,
.screen--insights .screen__body .screen__locs {
  animation: phone-row-float 3.6s ease-in-out infinite;
  will-change: transform;
}
.screen--area .screen__body .screen__area-card:nth-child(1) {
  animation-delay: 0s;
}
.screen--area .screen__body .screen__area-card:nth-child(2) {
  animation-delay: 0.15s;
}
.screen--area .screen__body .screen__area-card:nth-child(3) {
  animation-delay: 0.3s;
}
.screen--area .screen__body .screen__area-card:nth-child(4) {
  animation-delay: 0.45s;
}
.screen--tasks .screen__body .screen__task:nth-child(1) {
  animation-delay: 0s;
}
.screen--tasks .screen__body .screen__task:nth-child(2) {
  animation-delay: 0.1s;
}
.screen--tasks .screen__body .screen__task:nth-child(3) {
  animation-delay: 0.2s;
}
.screen--tasks .screen__body .screen__task:nth-child(4) {
  animation-delay: 0.3s;
}
.screen--tasks .screen__body .screen__task:nth-child(5) {
  animation-delay: 0.4s;
}
.screen--tasks .screen__body .screen__task:nth-child(6) {
  animation-delay: 0.5s;
}
.screen--notes .screen__body .screen__note-col .screen__note:nth-child(1) {
  animation-delay: 0s;
}
.screen--notes .screen__body .screen__note-col .screen__note:nth-child(2) {
  animation-delay: 0.2s;
}
.screen--notes .screen__body .screen__note-col .screen__note:nth-child(3) {
  animation-delay: 0.4s;
}
.screen--people .screen__body .screen__person:nth-child(1) {
  animation-delay: 0s;
}
.screen--people .screen__body .screen__person:nth-child(2) {
  animation-delay: 0.12s;
}
.screen--people .screen__body .screen__person:nth-child(3) {
  animation-delay: 0.24s;
}
.screen--people .screen__body .screen__person:nth-child(4) {
  animation-delay: 0.36s;
}
.screen--chat .screen__body .screen__msg:nth-child(1) {
  animation-delay: 0s;
}
.screen--chat .screen__body .screen__msg:nth-child(2) {
  animation-delay: 0.1s;
}
.screen--chat .screen__body .screen__msg:nth-child(3) {
  animation-delay: 0.2s;
}
.screen--chat .screen__body .screen__msg:nth-child(4) {
  animation-delay: 0.3s;
}
.screen--chat .screen__body .screen__chat-suggest {
  animation-delay: 0.4s;
}
.screen--insights .screen__body .screen__chart {
  animation-delay: 0s;
}
.screen--insights .screen__body .screen__map {
  animation-delay: 0.2s;
}
.screen--insights .screen__body .screen__locs {
  animation-delay: 0.4s;
}

/* Pause motion on hover for easier reading / interaction */
.phone .screen:hover,
.phone .screen:hover .screen__body,
.phone .screen:hover .screen__body .screen__area-card,
.phone .screen:hover .screen__body .screen__task,
.phone .screen:hover .screen__body .screen__note,
.phone .screen:hover .screen__body .screen__person,
.phone .screen:hover .screen__body .screen__stat,
.phone .screen:hover .screen__body .screen__area-sheet,
.phone .screen:hover .screen__body .screen__area-dimmer,
.phone .screen:hover .screen__body .screen__check--auto,
.phone .screen:hover .screen__body .screen__note-pop,
.phone .screen:hover .screen__body .screen__person-cta,
.phone .screen:hover .screen__body .screen__map__pin,
.phone .screen:hover .screen__body .screen__chart__bar,
.phone .screen:hover .screen__body .screen__insights-eyebrow,
.phone .screen:hover .screen__body .screen__msg,
.phone .screen:hover .screen__body .screen__chat-suggest,
.phone .screen:hover .screen__body .screen__chat-composer,
.phone .screen:hover .screen__body .screen__chat-composer__mic,
.phone .screen:hover .screen__body .screen__chat-composer__send,
.phone .screen:hover .screen__body .screen__chat-composer__field {
  animation-play-state: paused;
}
.phone .screen:hover ~ .phone-finger .phone-finger__hand,
.phone .screen:hover ~ .phone-finger .phone-tap::before,
.phone .screen:hover ~ .phone-finger .phone-tap::after,
.phone .screen:hover ~ .phone-finger .phone-swipe__nub,
.phone .screen:hover ~ .phone-finger .phone-flick-y__nub {
  animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
  .phone .screen,
  .phone .screen .screen__body,
  .phone .screen .screen__body .screen__area-card,
  .phone .screen .screen__body .screen__task,
  .phone .screen .screen__body .screen__note,
  .phone .screen .screen__body .screen__person,
  .phone .screen .screen__body .screen__area-sheet,
  .phone .screen .screen__body .screen__area-dimmer,
  .phone .screen .screen__body .screen__check--auto,
  .phone .screen .screen__body .screen__check--auto::after,
  .phone .screen .screen__body .screen__note-pop,
  .phone .screen .screen__body .screen__note-pop__line,
  .phone .screen .screen__body .screen__note-pop__state,
  .phone .screen .screen__body .screen__note-pop__mic,
  .phone .screen .screen__body .screen__note-pop__dots span,
  .phone .screen .screen__body .screen__person-cta,
  .phone .screen .screen__body .screen__map__pin,
  .phone .screen .screen__body .screen__chart__bar,
  .phone .screen .screen__body .screen__locs,
  .phone .screen .screen__body .screen__map,
  .phone .screen .screen__body .screen__chart,
  .phone .screen .screen__body .screen__insights-eyebrow,
  .phone .screen .screen__body--chat .screen__msg,
  .phone .screen .screen__body--area-scene .screen__area-card--lift,
  .phone .screen .screen__body--chat .screen__chat-suggest,
  .phone .screen .screen__body--chat .screen__chat-composer__field,
  .phone .screen .screen__body--chat .screen__chat-composer__mic,
  .phone .screen .screen__body--chat .screen__chat-composer__send {
    animation: none !important;
  }
  .phone .screen .screen__body--area-scene .screen__area-dimmer {
    opacity: 0.3 !important;
  }
  .phone .screen .screen__body--area-scene .screen__area-sheet {
    transform: none !important;
    opacity: 1 !important;
  }
  .phone .screen .screen__body--area-scene .screen__area-card--lift {
    transform: none !important;
    box-shadow: none !important;
  }
  .phone .screen .screen__body--notes-scene .screen__note-col {
    opacity: 0.9 !important;
  }
  .phone .screen .screen__body--notes-scene .screen__note-pop {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    margin-top: 0.35em !important;
  }
  .phone .screen .screen__body .screen__note-pop__line {
    clip-path: none !important;
    opacity: 1 !important;
  }
  .phone .screen .screen__body--people .screen__person-cta {
    transform: none !important;
    opacity: 1 !important;
  }
  .phone .screen .screen__body .screen__map__pin {
    opacity: 0.9 !important;
  }
  .phone .screen .screen__body .screen__chart__bar {
    transform: scaleY(var(--sy, 0.5)) !important;
  }
  .phone .screen .screen__body--people .screen__person--pick {
    background: var(--accent-a10) !important;
    border-color: var(--accent-a35) !important;
  }
  .phone .screen .screen__body--tasks .screen__check--auto {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
  }
  .phone .screen .screen__body--tasks .screen__check--auto::after {
    opacity: 1 !important;
  }
  .phone-finger {
    display: none !important;
  }
}

.screen__body::-webkit-scrollbar {
  width: 3px;
}
.screen__body::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 2px;
}

.screen__title {
  font-size: 21px;
  font-weight: 600;
  color: var(--text-soft);
  margin: 0 0 0.35em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.screen--notes .screen__note {
  margin: 0 0 0.45em;
  padding-left: 0.5em;
  border-left: 1px solid rgba(87, 167, 255, 0.4);
  color: var(--muted);
  font-size: 1em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* —— Areas: draggable cards + opened sheet (mock) —— */
.screen--area .screen__body--area-scene {
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.screen__body--area-scene .screen__area-canvas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35em;
  align-content: start;
  padding: 0 0 2px;
  position: relative;
  z-index: 0;
}
.screen__area-card {
  display: flex;
  flex-direction: column;
  gap: 0.2em;
  padding: 0.38em 0.35em;
  font-size: var(--fs-lg);
  color: var(--muted-bright);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  line-height: 1.2;
  transition: box-shadow 0.2s;
}
.screen__area-card__name {
  font-weight: 600;
  color: #d8d8d8;
}
.screen__area-card__meta {
  font-size: var(--fs-md);
  color: #7a7a7a;
}
.screen__body--area-scene .screen__area-card--lift {
  animation: area-card-lift 3.6s ease-in-out infinite;
  will-change: transform, box-shadow;
  z-index: 2;
}
@keyframes area-card-lift {
  0%,
  3% {
    transform: translate(0, 0) scale(1) rotate(0);
    box-shadow: none;
  }
  /* With first finger press (~8–10%) */
  7.5%,
  12% {
    transform: translate(3px, -4px) scale(1.05) rotate(-1.2deg);
    box-shadow: 0 8px 14px rgba(0, 0, 0, 0.45);
  }
  14%,
  20% {
    transform: translate(0, 2px) scale(1) rotate(0.5deg);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  }
  22%,
  50% {
    transform: translate(0, 0) scale(0.99);
    box-shadow: none;
    filter: brightness(0.88);
  }
  60%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0);
    box-shadow: none;
    filter: none;
  }
}
.screen__area-dimmer {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  animation: area-dim-pulse 3.6s ease-in-out infinite;
}
@keyframes area-dim-pulse {
  0%,
  10% {
    opacity: 0;
  }
  /* After 1st tap / lift, with sheet */
  12%,
  52% {
    opacity: 0.5;
  }
  55%,
  100% {
    opacity: 0;
  }
}
.screen__area-sheet {
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  z-index: 4;
  min-height: 46%;
  padding: 0.45em 0.4em 0.5em;
  background: linear-gradient(180deg, #1b1b20 0%, #101014 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  font-size: var(--fs-md);
  color: var(--muted);
  line-height: 1.3;
  transform: translateY(102%);
  opacity: 0.95;
  animation: area-sheet-slide 3.6s ease-in-out infinite;
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.45);
  will-change: transform;
}
@keyframes area-sheet-slide {
  0%,
  10% {
    transform: translateY(102%);
  }
  12%,
  52% {
    transform: translateY(0);
  }
  55%,
  100% {
    transform: translateY(102%);
  }
}
.screen__area-sheet__handle {
  width: 22px;
  height: 3px;
  margin: 0 auto 0.4em;
  background: var(--line-strong);
  border-radius: 2px;
}
.screen__area-sheet__head {
  font-size: 19px;
  font-weight: 600;
  color: var(--text-soft);
  margin: 0 0 0.4em;
}
.screen__area-sheet__line {
  margin: 0.25em 0;
  padding: 0.2em 0.25em;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.screen--tasks .screen__task {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin: 0.25em 0;
  color: var(--muted-bright);
  font-size: 1em;
}

.screen__check {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  min-width: 13px;
  min-height: 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-base);
  line-height: 1;
  color: #0a0a0a;
  background: transparent;
}
.screen__check--on {
  background: var(--accent);
  border-color: var(--accent);
}

/* Auto-check demo: boxes tick in sequence, then reset */
.screen__check--auto {
  position: relative;
  overflow: hidden;
  animation: task-check-box 3.6s ease-in-out infinite;
}
.screen__check--auto::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-base);
  line-height: 1;
  color: #0a0a0a;
  opacity: 0;
  animation: task-check-mark 3.6s ease-in-out infinite;
}
.screen--tasks .screen__body .screen__task:nth-child(1) .screen__check--auto,
.screen--tasks .screen__body .screen__task:nth-child(1) .screen__check--auto::after {
  animation-delay: 0s;
}
.screen--tasks .screen__body .screen__task:nth-child(2) .screen__check--auto,
.screen--tasks .screen__body .screen__task:nth-child(2) .screen__check--auto::after {
  animation-delay: 0.18s;
}
.screen--tasks .screen__body .screen__task:nth-child(3) .screen__check--auto,
.screen--tasks .screen__body .screen__task:nth-child(3) .screen__check--auto::after {
  animation-delay: 0.36s;
}
.screen--tasks .screen__body .screen__task:nth-child(4) .screen__check--auto,
.screen--tasks .screen__body .screen__task:nth-child(4) .screen__check--auto::after {
  animation-delay: 0.54s;
}
.screen--tasks .screen__body .screen__task:nth-child(5) .screen__check--auto,
.screen--tasks .screen__body .screen__task:nth-child(5) .screen__check--auto::after {
  animation-delay: 0.72s;
}
.screen--tasks .screen__body .screen__task:nth-child(6) .screen__check--auto,
.screen--tasks .screen__body .screen__task:nth-child(6) .screen__check--auto::after {
  animation-delay: 0.9s;
}
@keyframes task-check-box {
  0%,
  3% {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
  }
  4%,
  38% {
    background: var(--accent);
    border-color: var(--accent);
  }
  42%,
  48% {
    background: var(--accent);
    border-color: var(--accent);
  }
  52%,
  100% {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.3);
  }
}
@keyframes task-check-mark {
  0%,
  3% {
    opacity: 0;
  }
  4%,
  40% {
    opacity: 1;
  }
  52%,
  100% {
    opacity: 0;
  }
}

/* —— Notes: list + “new note” + voice —— */
.screen--notes .screen__body--notes-scene {
  position: relative;
  min-height: 0;
  overflow: hidden;
}
.screen__note-col {
  position: relative;
  z-index: 0;
  transition: filter 0.2s, opacity 0.2s;
  animation: note-col-dim 3.6s ease-in-out infinite;
}
@keyframes note-col-dim {
  0%,
  5%,
  70%,
  100% {
    opacity: 1;
    filter: none;
  }
  12%,
  64% {
    opacity: 0.38;
    filter: blur(0.2px) brightness(0.75);
  }
}
.screen__note-pop {
  position: absolute;
  left: 0;
  right: 0;
  top: 12%;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 0.45em 0.4em 0.35em;
  background: #16161b;
  border: 1px solid rgba(87, 167, 255, 0.3);
  border-radius: 8px;
  font-size: var(--fs-base);
  line-height: 1.3;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
  transform: translateY(110%) scale(0.9);
  opacity: 0;
  animation: note-pop-in 3.6s ease-in-out infinite;
  will-change: transform, opacity;
}
@keyframes note-pop-in {
  0%,
  7%,
  68%,
  100% {
    transform: translateY(110%) scale(0.9);
    opacity: 0;
  }
  10%,
  65% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.screen__note-pop__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-soft);
  margin: 0 0 0.4em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--line-soft);
}
.screen__note-pop__voice {
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin-bottom: 0.4em;
}
.screen__note-pop__mic {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff4d4d, #b01010);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
  position: relative;
  flex-shrink: 0;
  animation: note-mic-breathe 1.2s ease-in-out infinite;
}
@keyframes note-mic-breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 80, 80, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 2px rgba(255, 80, 80, 0.2);
  }
}
.screen__note-pop__mic::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 1px;
  height: 3px;
  margin-left: -0.5px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 0 0 1px 1px;
}
.screen__note-pop__state {
  color: var(--accent);
  font-size: var(--fs-base);
  font-weight: 500;
}
.screen__note-pop__dots {
  display: flex;
  gap: 1px;
  margin-left: auto;
  align-items: center;
  height: 6px;
}
.screen__note-pop__dots span {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: var(--accent);
  animation: note-dot 0.45s ease-in-out infinite;
}
.screen__note-pop__dots span:nth-child(2) {
  animation-delay: 0.09s;
}
.screen__note-pop__dots span:nth-child(3) {
  animation-delay: 0.18s;
}
@keyframes note-dot {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}
.screen__note-pop__field {
  color: #b0b0b0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.35em 0.3em;
  background: rgba(0, 0, 0, 0.25);
  min-height: 2.2em;
}
.screen__note-pop__line {
  margin: 0.15em 0;
  clip-path: inset(0 100% 0 0);
  animation: note-line-1 3.6s ease-in-out infinite;
  opacity: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: normal;
  word-wrap: break-word;
}
.screen__note-pop__line--2 {
  animation-name: note-line-2;
}
.screen__note-pop__line--3 {
  animation-name: note-line-3;
}
@keyframes note-line-1 {
  0%,
  14% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  16%,
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}
@keyframes note-line-2 {
  0%,
  20% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  24%,
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}
@keyframes note-line-3 {
  0%,
  32% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  36%,
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.screen--people .screen__body--people {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 1.6em;
  overflow: hidden;
}
.screen--people .screen__person {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin: 0.25em 0;
  font-size: 1em;
  padding: 0.2em 0.3em;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: border-color 0.15s, background 0.15s;
}
.screen--people .screen__person--pick {
  animation: people-select-pulse 3.6s ease-in-out infinite;
}
@keyframes people-select-pulse {
  0%,
  3%,
  55%,
  100% {
    background: transparent;
    border-color: transparent;
  }
  5%,
  48% {
    background: var(--accent-a10);
    border-color: var(--accent-a35);
  }
}
.screen__person-cta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  gap: 0.35em;
  justify-content: center;
  padding: 0.28em 0.2em;
  background: linear-gradient(0deg, rgba(12, 12, 16, 0.98) 0%, rgba(20, 20, 26, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  font-size: var(--fs-base);
  font-weight: 500;
  transform: translateY(120%);
  opacity: 0;
  animation: people-cta-rise 3.6s ease-in-out infinite;
}
@keyframes people-cta-rise {
  0%,
  4%,
  52%,
  100% {
    transform: translateY(120%);
    opacity: 0;
  }
  6%,
  48% {
    transform: translateY(0);
    opacity: 1;
  }
}
.screen__person-cta__btn {
  padding: 0.28em 0.55em;
  border-radius: 4px;
  flex: 1;
  text-align: center;
  max-width: 50%;
  white-space: nowrap;
}
.screen__person-cta__btn--msg {
  background: var(--accent-a20);
  border: 1px solid rgba(87, 167, 255, 0.4);
  color: #a8d0ff;
  animation: people-btn-msg 0.72s ease-in-out infinite 0.1s;
}
.screen__person-cta__btn--call {
  background: var(--line-soft);
  border: 1px solid var(--line-strong);
  color: #c8c8c8;
  animation: people-btn-call 0.72s ease-in-out infinite 0.1s;
}
@keyframes people-btn-msg {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15);
  }
}
@keyframes people-btn-call {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.1);
  }
}
.screen__avatar {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-width: 18px;
  min-height: 18px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(87, 167, 255, 0.45), var(--accent-a10));
  border: 1px solid var(--accent-a35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-soft);
}
.screen__name {
  color: #a8a8a8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* —— AI-Chat: thread + composer —— */
.screen--chat .screen__body {
  animation: none;
}
.screen--chat .screen__body--chat {
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0.2em;
  padding-bottom: 0;
  overflow: hidden;
}
.screen__chat-sub {
  margin: 0 0 0.35em;
  font-size: var(--fs-base);
  color: #7a7a8a;
  flex-shrink: 0;
}
.screen__chat-thread {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  padding: 0.15em 0.05em 0.1em 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.screen__msg {
  display: flex;
  width: 100%;
  max-width: 100%;
}
.screen__msg--user {
  justify-content: flex-end;
}
.screen__msg--assistant {
  justify-content: flex-start;
}
.screen__msg__bubble {
  display: inline-block;
  max-width: 92%;
  padding: 0.32em 0.4em;
  font-size: var(--fs-base);
  line-height: 1.3;
  border-radius: 6px;
  word-wrap: break-word;
  border: 1px solid var(--line-soft);
}
.screen__msg--user .screen__msg__bubble {
  background: linear-gradient(145deg, var(--accent-a50) 0%, rgba(87, 167, 255, 0.22) 100%);
  border-color: var(--accent-a35);
  color: #e8eef8;
  border-bottom-right-radius: 2px;
}
.screen__msg--assistant .screen__msg__bubble {
  background: rgba(255, 255, 255, 0.07);
  color: #b8b8c0;
  border-bottom-left-radius: 2px;
}
.screen__chat-suggest {
  flex-shrink: 0;
  font-size: var(--fs-sm);
  color: var(--accent);
  padding: 0.15em 0.2em 0.05em;
  text-align: center;
  border-top: 1px dashed var(--accent-a20);
  animation: chat-suggest-blink 3.6s ease-in-out infinite;
}
@keyframes chat-suggest-blink {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.85;
  }
}
.screen__chat-composer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.3em;
  margin-top: auto;
  padding: 0.3em 0.25em;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.25);
}
.screen__chat-composer__field {
  flex: 1;
  min-width: 0;
  font-size: var(--fs-sm);
  color: #6a6a70;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: chat-cursor-blink 1.8s step-end infinite;
}
@keyframes chat-cursor-blink {
  0%,
  40%,
  100% {
    border-right: 0 solid transparent;
  }
  50%,
  90% {
    border-right: 1px solid var(--accent-a50);
  }
}
.screen__chat-composer__actions {
  display: flex;
  align-items: center;
  gap: 0.25em;
  flex-shrink: 0;
}
.screen__chat-composer__mic {
  display: block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff5c5c, #a01818);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: chat-mic-pulse 1.2s ease-in-out infinite;
}
.screen__chat-composer__mic::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 0;
  height: 0;
  margin-left: -1px;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-top: 2px solid rgba(0, 0, 0, 0.3);
}
@keyframes chat-mic-pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}
.screen__chat-composer__send {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  position: relative;
  opacity: 0.6;
  animation: chat-send-nudge 3.6s ease-in-out infinite;
}
.screen__chat-composer__send::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 45%;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 2px 0 2px 3px;
  border-color: transparent transparent transparent #0a0a0a;
  transform: translateY(-50%);
}
@keyframes chat-send-nudge {
  0%,
  100% {
    transform: none;
  }
  92% {
    transform: none;
  }
  96% {
    transform: scale(1.08);
  }
}

.screen--area .screen__greet,
.screen--tasks .screen__greet,
.screen--people .screen__greet,
.screen--notes .screen__greet,
.screen--insights .screen__greet {
  margin: 0 0 0.38em;
  color: var(--muted);
  font-size: var(--fs-lg);
  line-height: 1.28;
  flex-shrink: 0;
}
.screen--area .screen__greet {
  font-size: var(--fs-xl);
}
.phone .screen p {
  margin: 0;
}
/* —— Insights: chart + map —— */
.screen--insights .screen__body--insights {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  min-height: 0;
  overflow: hidden;
}
.screen__insights-eyebrow {
  margin: 0;
  font-size: var(--fs-base);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #7a7a8a;
  flex-shrink: 0;
}
.screen__insights-eyebrow--2 {
  margin-top: 0.15em;
}
.screen__chart {
  display: flex;
  flex-direction: column;
  gap: 0.15em;
  min-height: 3.2em;
  padding: 0.25em 0.1em 0.15em;
  position: relative;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  flex-shrink: 0;
}
.screen__chart__plot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2px;
  flex: 1;
  min-height: 2.2em;
  padding: 0 0.1em 0.15em;
}
.screen__chart__bar {
  flex: 1;
  min-width: 0;
  height: 2.1em;
  position: relative;
  background: linear-gradient(180deg, rgba(87, 167, 255, 0.65) 0%, var(--accent-a10) 100%);
  border-radius: 1px 1px 0 0;
  transform-origin: bottom center;
  transform: scaleY(var(--sy, 0.5));
  animation: bar-h-pulse 3.6s ease-in-out infinite;
  align-self: flex-end;
}
.screen__chart__bar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  top: 0;
  background: linear-gradient(180deg, var(--line) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}
.screen__chart__bar:nth-child(1) {
  animation-delay: 0s;
}
.screen__chart__bar:nth-child(2) {
  animation-delay: 0.04s;
}
.screen__chart__bar:nth-child(3) {
  animation-delay: 0.08s;
}
.screen__chart__bar:nth-child(4) {
  animation-delay: 0.12s;
}
.screen__chart__bar:nth-child(5) {
  animation-delay: 0.16s;
}
.screen__chart__bar:nth-child(6) {
  animation-delay: 0.2s;
}
.screen__chart__bar:nth-child(7) {
  animation-delay: 0.24s;
}
.screen__chart__bar--now {
  background: linear-gradient(180deg, #6bb5ff 0%, var(--accent-a20) 100%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  animation: bar-today 1.8s ease-in-out infinite;
}
@keyframes bar-h-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.1);
  }
}
@keyframes bar-today {
  0%,
  100% {
    filter: brightness(1.08);
  }
  50% {
    filter: brightness(1.2);
  }
}
.screen__chart__axis {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6a6a6e;
  letter-spacing: 0.02em;
  padding: 0 0.12em 0.05em;
  pointer-events: none;
  white-space: nowrap;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.screen__map {
  position: relative;
  height: 2.2em;
  border-radius: 4px;
  background: #0c1218;
  border: 1px solid var(--accent-a20);
  overflow: hidden;
  flex-shrink: 0;
}
.screen__map__base {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #101820 0%, #0a0e14 40%, #121c28 100%);
  opacity: 0.9;
}
.screen__map__base::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 30% 45%, rgba(87, 167, 255, 0.12) 0%, transparent 55%);
  pointer-events: none;
}
.screen__map__pin {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(87, 167, 255, 0.3);
  animation: map-pin 3.6s ease-in-out infinite;
}
.screen__map__pin--1 {
  left: 18%;
  top: 42%;
  animation-delay: 0s;
}
.screen__map__pin--2 {
  left: 55%;
  top: 36%;
  animation-delay: 0.18s;
}
.screen__map__pin--3 {
  left: 68%;
  top: 58%;
  animation-delay: 0.36s;
}
@keyframes map-pin {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
.screen__locs {
  margin: 0;
  padding: 0.15em 0.25em 0;
  font-size: var(--fs-base);
  line-height: 1.3;
  color: #8a8a9a;
  list-style: none;
  flex-shrink: 0;
}
.screen__locs li {
  margin: 0.1em 0;
}
.screen__locs strong {
  color: #c8c8d8;
  font-weight: 600;
}

@media (min-width: 700px) {
  .phone .screen {
    font-size: var(--fs-xl);
    padding: 10px 11px 11px;
  }
  .screen__title {
    font-size: 22px;
  }
  .screen--area .screen__greet,
  .screen--tasks .screen__greet,
  .screen--people .screen__greet,
  .screen--notes .screen__greet,
  .screen--insights .screen__greet,
  .screen__insights-eyebrow,
  .screen__locs,
  .screen__chat-sub {
    font-size: var(--fs-xl);
  }
  .screen--area .screen__greet {
    font-size: var(--fs-2xl);
  }
}
@media (max-width: 700px) {
  .phone .screen {
    font-size: var(--fs-md);
    padding: 8px 9px 9px;
  }
  .screen__title {
    font-size: var(--fs-2xl);
  }
  .screen--area .screen__greet,
  .screen--tasks .screen__greet,
  .screen--people .screen__greet,
  .screen--notes .screen__greet,
  .screen--insights .screen__greet,
  .screen__insights-eyebrow,
  .screen__locs,
  .screen__chat-sub {
    font-size: var(--fs-md);
  }
  .screen--area .screen__greet {
    font-size: var(--fs-lg);
  }
  .phone-scroller {
    padding-left: max(0.5rem, calc(50% - min(150px, 45vw)));
    padding-right: max(0.5rem, calc(50% - min(150px, 45vw)));
  }
  .phone-slide {
    width: min(260px, 90vw);
  }
}

/* —— Sections —— */
section {
  padding: 0 0 4rem;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--text);
}

/* App flow — vertical stepper (state from scroll; no transition animation) */
.app-flow {
  max-width: 40rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  padding-bottom: 1rem;
}
.app-stepper-shell {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0.25rem;
  max-width: 100%;
  margin: 0 auto;
}
.app-stepper-shell .app-stepper {
  flex: 1 1 0;
  min-width: 0;
}
.app-stepper-arrow {
  flex: 0 0 auto;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  width: clamp(2.75rem, 6vw, 2.9rem);
  height: clamp(2.75rem, 6vw, 2.9rem);
  margin: 0;
  padding: 0;
  border: 1px solid var(--app-stepper-arrow-border);
  border-radius: 50%;
  background: var(--app-stepper-arrow-bg);
  color: var(--app-stepper-arrow-fg);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.app-stepper-arrow:hover {
  background: var(--app-stepper-arrow-hover-bg);
  color: var(--app-stepper-arrow-hover-fg);
  border-color: var(--app-stepper-arrow-hover-border);
}
.app-stepper-arrow:focus-visible {
  outline: 2px solid var(--focus-ring-alt);
  outline-offset: 2px;
}
.app-stepper-arrow__visually {
  display: flex;
  line-height: 0;
  pointer-events: none;
}
.app-stepper-pager {
  margin: 0.5rem 0 0.2rem;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted2);
}
.app-stepper-pager-hint {
  margin: 0.15rem 0 0;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
  text-align: center;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--muted2);
  opacity: 0.9;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
/* One card visible: phone tabs choose the step */
.app-stepper--single .app-stepper__item:not(.app-stepper__item--active) {
  display: none;
}
.app-stepper {
  list-style: none;
  margin: 0;
  padding: 0;
}
.app-stepper__item {
  display: block;
  min-height: 0;
  position: relative;
  margin: 0;
  padding: clamp(0.9rem, 2.5vw, 1.2rem);
  border-radius: 12px;
  cursor: pointer;
}
.app-stepper__item:focus-visible {
  outline: 2px solid var(--btn-focus-ring);
  outline-offset: 2px;
}
@media (min-width: 600px) {
  .app-stepper__item:hover {
    background: var(--stepper-item-hover-bg);
  }
  .app-stepper__item--active {
    background: var(--stepper-item-active-bg);
  }
}
.app-stepper__item--upcoming .app-stepper__name,
.app-stepper__item--upcoming .app-stepper__bullets,
.app-stepper__item--upcoming .app-stepper__lede {
  color: var(--muted2);
  opacity: 0.75;
}
.app-stepper__item--done .app-stepper__name,
.app-stepper__item--done .app-stepper__bullets,
.app-stepper__item--done .app-stepper__lede,
.app-stepper__item--active .app-stepper__name,
.app-stepper__item--active .app-stepper__bullets,
.app-stepper__item--active .app-stepper__lede {
  color: var(--text);
  opacity: 1;
}
.app-stepper__item--active .app-stepper__name {
  color: var(--stepper-name-active);
}
.app-stepper__item--active .app-stepper__bullets,
.app-stepper__item--active .app-stepper__lede {
  color: var(--muted);
}
.app-stepper__item--done .app-stepper__name,
.app-stepper__item--done .app-stepper__bullets,
.app-stepper__item--done .app-stepper__lede {
  color: var(--muted);
}
.app-stepper__item--done .app-stepper__name {
  color: var(--stepper-name-done);
}
.app-stepper__content {
  min-width: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.app-stepper__row--title {
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--stepper-title-border);
  flex: 0 0 auto;
}
.app-stepper__row--body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
  flex: 1 1 auto;
}
.app-stepper__item--upcoming .app-stepper__row--title,
.app-stepper__item--done .app-stepper__row--title {
  border-bottom-color: var(--stepper-title-border-muted);
}
.app-stepper__item--active .app-stepper__row--title {
  border-bottom-color: var(--stepper-title-border-active);
}
.app-stepper__name {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.25;
  color: var(--text);
  text-transform: none;
}
.app-stepper__lede {
  margin: 0;
  font-size: var(--fs-base);
  line-height: 1.48;
  letter-spacing: -0.012em;
  color: var(--muted2);
}
.app-stepper__bullets {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--muted2);
  list-style: disc;
}
.app-stepper__bullets li {
  margin: 0.28rem 0 0;
}
.app-stepper__bullets li:first-child {
  margin-top: 0;
}
.app-stepper__bullets strong {
  font-weight: 600;
  color: var(--stepper-strong);
  letter-spacing: -0.01em;
}
.app-stepper__item--upcoming .app-stepper__bullets strong {
  color: var(--text);
  opacity: 0.85;
}
.app-stepper__item--active .app-stepper__bullets strong {
  color: var(--stepper-strong-active);
  opacity: 1;
}
.app-stepper__item--done .app-stepper__bullets strong {
  color: var(--stepper-strong-done);
  opacity: 0.95;
}

@media (prefers-reduced-motion: no-preference) {
  .app-stepper--single .app-stepper__item--active .app-stepper__content {
    animation: app-stepper-card-in 0.4s cubic-bezier(0.22, 0.75, 0.18, 1) forwards;
  }
}
@keyframes app-stepper-card-in {
  from {
    opacity: 0.45;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .app-stepper--single .app-stepper__item--active .app-stepper__content {
    animation: none !important;
  }
}

/* Beta + one join card (merged) */
.get-beta {
  max-width: 40rem;
  text-align: center;
}
.get-beta h2 {
  margin-bottom: 0.5rem;
}
.get-beta__promise {
  margin: 0 auto 0.5rem;
  max-width: 30rem;
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--muted);
}
.get-beta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.6rem;
  margin: 1.4rem 0 0;
  align-items: center;
  justify-content: center;
}
.get-beta__fineprint {
  font-size: var(--fs-sm);
  color: var(--muted2);
  line-height: 1.5;
  margin: 0.9rem 0 0;
  text-align: center;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}

.btn-tonal {
  background: var(--btn-tonal-bg);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-tonal:hover {
  background: var(--btn-tonal-hover-bg);
  text-decoration: none;
}

.join-card {
  margin-top: 1.1rem;
  padding: 1.5rem 1.35rem 1.6rem;
  background: transparent;
  border: none;
  border-radius: 16px;
  box-shadow: none;
  text-align: center;
}
.join-card__title {
  font-size: var(--fs-xl);
  font-weight: 600;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.join-card__sub {
  font-size: var(--fs-base);
  color: var(--muted2);
  line-height: 1.5;
  margin: 0 auto 0.65rem;
  max-width: 26rem;
}
.join-card__what-next {
  font-size: var(--fs-sm);
  color: var(--muted2);
  line-height: 1.5;
  margin: 0 auto 1.1rem;
  max-width: 28rem;
  opacity: 0.95;
}
.join-card .field--row .row-inline {
  justify-content: center;
}
.join-card .form-more summary {
  text-align: center;
}
.join-card #access-form input:not([type="radio"]):not([type="checkbox"]),
.join-card #access-form textarea {
  text-align: left;
}
.join-card .form-status {
  text-align: center;
}

#access-form {
  max-width: none;
}
#access-form .field {
  margin-bottom: 1rem;
}
#access-form .field--tight {
  margin-bottom: 0.85rem;
}
#access-form .field--flush {
  margin-bottom: 0;
}
#access-form label,
#access-form .field-label {
  display: block;
  font-size: var(--fs-sm);
  color: var(--muted2);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.join-card #access-form label,
.join-card #access-form .field-label {
  text-align: left;
}
#access-form input,
#access-form textarea,
#access-form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--form-input-bg);
  color: var(--text);
  font: inherit;
}
#access-form input::placeholder,
#access-form textarea::placeholder {
  color: var(--form-placeholder);
}
#access-form textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.form-row-2 {
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) {
  .form-row-2 {
    grid-template-columns: 1fr 1fr;
  }
}
.field--row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.row-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem 0.8rem;
  border-radius: 9px;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text);
  font-size: var(--fs-base);
}
.chip input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.chip:has(:checked) {
  background: var(--accent);
  color: var(--chip-on-fg);
  border-color: var(--accent);
}
/* #access-form label sets muted2 with ID specificity, which was winning over
   the rules above — the selected pill read grey-on-amber. Match that weight. */
#access-form .chip { color: var(--text); }
#access-form .chip:has(:checked) { color: var(--chip-on-fg); }

.form-more {
  margin: 0.25rem 0 0.5rem;
  border: none;
  padding: 0;
}
.form-more summary {
  cursor: pointer;
  font-size: var(--fs-base);
  color: var(--muted);
  list-style: none;
  padding: 0.4rem 0;
}
.form-more summary::-webkit-details-marker {
  display: none;
}
.join-card__submit {
  margin-top: 0.2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.form-status {
  font-size: var(--fs-md);
  color: var(--muted);
  margin: 0.5rem 0 0;
  min-height: 1.25em;
}
.form-status--error {
  color: var(--form-status-error);
}

/* ── Wish: one box, no identity (#1438) ─────────────────────────────── */
.wish {
  text-align: center;
  padding: 0.2rem 0 0;
}
.wish-card {
  max-width: 30rem;
  margin: 0 auto;
  padding: 1.4rem 1.35rem 1rem;
}
.wish-card__title {
  font-size: var(--fs-xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--text);
}
.wish-card__sub {
  font-size: var(--fs-base);
  color: var(--muted2);
  line-height: 1.5;
  margin: 0 auto 0.85rem;
  max-width: 26rem;
}
.wish-card textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--form-input-bg);
  color: var(--text);
  font: inherit;
  min-height: 3.6rem;
  resize: vertical;
  text-align: left;
}
.wish-card textarea::placeholder {
  color: var(--form-placeholder);
}
.wish-card__submit {
  margin-top: 0.7rem;
}
.wish-card .form-status {
  text-align: center;
}

/* Footer */
.site-footer {
  text-align: center;
  max-width: 40rem;
}
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2.5rem;
}
.site-footer .footer-brand {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem 0.7rem;
  font-size: var(--fs-md);
  font-weight: 500;
  color: var(--text);
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem 0.65rem;
  font-size: var(--fs-base);
  color: var(--muted);
  margin: 0 0 0.7rem;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--text);
}
footer .tagline {
  color: var(--muted2);
  font-size: var(--fs-md);
  line-height: 1.5;
  margin: 0.2rem 0 0;
  max-width: 28rem;
  margin-left: auto;
  margin-right: auto;
}
.site-footer .visa {
  margin: 0.85rem auto 0;
  font-size: var(--fs-xs);
  color: var(--muted2);
  line-height: 1.55;
  max-width: 34rem;
  text-align: center;
}
.sep {
  color: var(--muted2);
  user-select: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  padding: 0.5rem 1rem;
  background: #fff;
  color: #000;
}

/* —— Light: warm journal / paper (page, chrome, and in-phone mock) —— */
html[data-theme="light"] {
  color-scheme: light;
  --chat-user-fg: #ffffff;
  /* Natural journal: warm paper ground, stone ink, morning-light glow. */
  --text-soft: #292524;
  --muted-bright: #57534e;
  --line-soft: rgba(28, 25, 23, 0.08);
  --line: rgba(28, 25, 23, 0.14);
  --line-strong: rgba(28, 25, 23, 0.22);
  --accent-a10: rgba(246, 216, 184, 0.55);
  --accent-a20: rgba(226, 168, 108, 0.4);
  --accent-a35: rgba(178, 108, 34, 0.35);
  --accent-a50: rgba(178, 108, 34, 0.5);
  --phone-screen-bg: linear-gradient(180deg, #fefdfb 0%, #f0ebe3 100%);
  --phone-screen-fg: #44403c;
  --phone-screen-inset: rgba(0, 0, 0, 0.08);
  --bg: #faf7f1;
  --bg-elevated: #f1ebe0;
  --card: #fffcf5;
  --border: rgba(28, 25, 23, 0.14);
  --text: #1c1917;
  --muted: #57534e;
  --muted2: #78716c;
  --accent: #9c5a17;
  --header-bg: linear-gradient(180deg, rgba(250, 247, 241, 0.97) 0%, rgba(250, 247, 241, 0.86) 100%);
  --header-border: rgba(60, 55, 50, 0.12);
  --hero-glow-1: rgba(246, 216, 184, 0.5);
  --dia-line: #78716c;
  --dia-teal: #0f6e56;
  --dia-sand: #8a6a2f;
  --dia-fill: rgba(28, 25, 23, 0.05);
  --dia-stroke: rgba(28, 25, 23, 0.16);
  --phone-chassis-border: rgba(60, 55, 50, 0.18);
  --phone-chassis-bg: linear-gradient(165deg, #e3ddd3 0%, #d4cdc2 45%, #c9c0b2 100%);
  --phone-chassis-outer-shadow: 0 20px 48px rgba(60, 48, 30, 0.14);
  --phone-chassis-inset-highlight: rgba(255, 255, 255, 0.55);
  --pager-bar-border: rgba(60, 55, 50, 0.14);
  --pager-bar-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0%, rgba(235, 229, 217, 0.95) 100%);
  --pager-tab-fg: #57534e;
  --pager-tab-fg-hover: #44403c;
  --pager-tab-active-fg: #7a4410;
  --pager-tab-active-bg: rgba(226, 168, 108, 0.25);
  --pager-tab-active-ring: rgba(178, 108, 34, 0.3);
  --btn-pill-primary-bg: #1c1917;
  --btn-pill-primary-fg: #faf7f0;
  --btn-pill-primary-hover: brightness(1.08);
  --btn-ghost-hover-bg: rgba(0, 0, 0, 0.05);
  --btn-tonal-bg: rgba(0, 0, 0, 0.05);
  --btn-tonal-hover-bg: rgba(0, 0, 0, 0.08);
  --form-input-bg: rgba(255, 255, 255, 0.65);
  --form-placeholder: rgba(28, 25, 23, 0.38);
  --join-card-shadow: 0 8px 28px rgba(60, 48, 30, 0.1);
  --chip-on-fg: #ffffff;
  --stepper-item-hover-bg: rgba(0, 0, 0, 0.04);
  --stepper-item-active-bg: rgba(0, 0, 0, 0.06);
  --stepper-title-border: rgba(28, 25, 23, 0.1);
  --stepper-title-border-muted: rgba(28, 25, 23, 0.06);
  --stepper-title-border-active: rgba(28, 25, 23, 0.14);
  --stepper-name-active: #1c1917;
  --stepper-name-done: #292524;
  --stepper-strong: #292524;
  --stepper-strong-active: #1c1917;
  --stepper-strong-done: #44403c;
  --app-stepper-arrow-border: rgba(60, 55, 50, 0.15);
  --app-stepper-arrow-bg: rgba(255, 255, 255, 0.5);
  --app-stepper-arrow-fg: #44403c;
  --app-stepper-arrow-hover-bg: rgba(0, 0, 0, 0.05);
  --app-stepper-arrow-hover-fg: #1c1917;
  --app-stepper-arrow-hover-border: rgba(60, 55, 50, 0.25);
  --form-status-error: #b91c1c;
  --form-status-ok: #15803d;
  --focus-ring: rgba(29, 78, 216, 0.45);
  --focus-ring-alt: rgba(29, 78, 216, 0.5);
  --btn-focus-ring: rgba(29, 78, 216, 0.45);
  --theme-toggle-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* In-phone UI mock: journal paper, ink text, same accent as the page */
html[data-theme="light"] .phone .screen .screen__body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
}
html[data-theme="light"] .phone .screen .screen__body {
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}
html[data-theme="light"] .phone .screen .screen__title {
  color: #1c1917;
  border-bottom-color: rgba(28, 25, 23, 0.12);
}
html[data-theme="light"] .screen--area .screen__greet,
html[data-theme="light"] .screen--tasks .screen__greet,
html[data-theme="light"] .screen--people .screen__greet,
html[data-theme="light"] .screen--notes .screen__greet,
html[data-theme="light"] .screen--insights .screen__greet {
  color: #57534e;
}
html[data-theme="light"] .screen--notes .screen__note {
  border-left-color: rgba(29, 78, 216, 0.45);
  color: #57534e;
}
html[data-theme="light"] .screen__note-col {
  animation-name: note-col-dim-light;
}
html[data-theme="light"] .screen__area-card {
  color: #57534e;
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(28, 25, 23, 0.12);
}
html[data-theme="light"] .screen__area-card__name {
  color: #292524;
}
html[data-theme="light"] .screen__area-card__meta {
  color: #78716c;
}
html[data-theme="light"] .screen__area-dimmer {
  background: rgba(0, 0, 0, 0.1);
}
html[data-theme="light"] .screen__area-sheet {
  background: linear-gradient(180deg, #fffef9 0%, #ebe5d9 100%);
  border-color: rgba(28, 25, 23, 0.1);
  color: #57534e;
  box-shadow: 0 -8px 20px rgba(60, 48, 30, 0.12);
}
html[data-theme="light"] .screen__area-sheet__handle {
  background: rgba(0, 0, 0, 0.12);
}
html[data-theme="light"] .screen__area-sheet__head {
  color: #1c1917;
}
html[data-theme="light"] .screen__area-sheet__line {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(28, 25, 23, 0.08);
}
html[data-theme="light"] .screen--tasks .screen__task {
  color: #44403c;
}
html[data-theme="light"] .screen__check {
  border-color: rgba(28, 25, 23, 0.22);
  color: #1c1917;
}
html[data-theme="light"] .screen__check--on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
html[data-theme="light"] .screen__check--auto {
  animation-name: task-check-box-light;
}
html[data-theme="light"] .screen__check--auto::after {
  color: #fff;
}
html[data-theme="light"] .screen__note-pop {
  background: #fffef9;
  border-color: rgba(29, 78, 216, 0.35);
  box-shadow: 0 12px 24px rgba(60, 48, 30, 0.12);
}
html[data-theme="light"] .screen__note-pop__title {
  color: #1c1917;
  border-bottom-color: rgba(28, 25, 23, 0.1);
}
html[data-theme="light"] .screen__note-pop__state {
  color: var(--accent);
}
html[data-theme="light"] .screen__note-pop__dots span {
  background: var(--accent);
}
html[data-theme="light"] .screen__note-pop__field {
  color: #57534e;
  border-color: rgba(28, 25, 23, 0.12);
  background: rgba(255, 255, 255, 0.75);
}
html[data-theme="light"] .screen--people .screen__person--pick {
  animation-name: people-select-pulse-light;
}
html[data-theme="light"] .screen__person-cta {
  background: linear-gradient(0deg, rgba(255, 254, 249, 0.98) 0%, rgba(240, 235, 227, 0.95) 100%);
  border-color: rgba(28, 25, 23, 0.1);
}
html[data-theme="light"] .screen__person-cta__btn--msg {
  background: rgba(29, 78, 216, 0.15);
  border-color: rgba(29, 78, 216, 0.4);
  color: #1e3a8a;
}
html[data-theme="light"] .screen__person-cta__btn--call {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(28, 25, 23, 0.15);
  color: #44403c;
}
html[data-theme="light"] .screen__avatar {
  background: linear-gradient(145deg, rgba(29, 78, 216, 0.4), rgba(29, 78, 216, 0.12));
  border-color: rgba(29, 78, 216, 0.4);
  color: #1c1917;
}
html[data-theme="light"] .screen__name {
  color: #57534e;
}
html[data-theme="light"] .screen__chat-sub {
  color: #78716c;
}
html[data-theme="light"] .screen__chat-thread {
  scrollbar-color: rgba(0, 0, 0, 0.12) transparent;
}
html[data-theme="light"] .screen__msg__bubble {
  border-color: rgba(28, 25, 23, 0.08);
}
html[data-theme="light"] .screen__msg--user .screen__msg__bubble {
  background: linear-gradient(145deg, rgba(29, 78, 216, 0.28) 0%, rgba(29, 78, 216, 0.12) 100%);
  border-color: rgba(29, 78, 216, 0.4);
  color: #1e3a8a;
}
html[data-theme="light"] .screen__msg--assistant .screen__msg__bubble {
  background: rgba(0, 0, 0, 0.05);
  color: #44403c;
}
html[data-theme="light"] .screen__chat-suggest {
  color: var(--accent);
  border-top-color: rgba(29, 78, 216, 0.3);
}
html[data-theme="light"] .screen__chat-composer {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(28, 25, 23, 0.12);
  box-shadow: 0 -2px 8px rgba(60, 48, 30, 0.08);
}
html[data-theme="light"] .screen__chat-composer__field {
  color: #78716c;
  animation: chat-cursor-blink-light 1.8s step-end infinite;
}
html[data-theme="light"] .screen__chat-composer__send {
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}
html[data-theme="light"] .screen__insights-eyebrow {
  color: #78716c;
}
html[data-theme="light"] .screen__chart {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(28, 25, 23, 0.1);
}
html[data-theme="light"] .screen__chart__bar {
  background: linear-gradient(180deg, rgba(29, 78, 216, 0.5) 0%, rgba(29, 78, 216, 0.1) 100%);
}
html[data-theme="light"] .screen__chart__bar::after {
  background: linear-gradient(180deg, var(--line-strong) 0%, transparent 60%);
}
html[data-theme="light"] .screen__chart__bar--now {
  background: linear-gradient(180deg, #3b82f6 0%, rgba(29, 78, 216, 0.2) 100%);
  box-shadow: 0 0 0 1px rgba(29, 78, 216, 0.3);
}
html[data-theme="light"] .screen__chart__axis {
  color: #78716c;
  border-top-color: rgba(28, 25, 23, 0.1);
}
html[data-theme="light"] .screen__map {
  background: #e8e4dc;
  border-color: rgba(29, 78, 216, 0.28);
}
html[data-theme="light"] .screen__map__base {
  background: linear-gradient(135deg, #ddd8ce 0%, #d0c9bc 40%, #c4bdb0 100%);
  opacity: 1;
}
html[data-theme="light"] .screen__map__base::after {
  background: radial-gradient(ellipse 80% 50% at 30% 45%, rgba(29, 78, 216, 0.14) 0%, transparent 55%);
}
html[data-theme="light"] .screen__map__pin {
  background: var(--accent);
  box-shadow: 0 0 0 1px #fff, 0 0 0 2px rgba(29, 78, 216, 0.4);
}
html[data-theme="light"] .screen__locs {
  color: #78716c;
}
html[data-theme="light"] .screen__locs strong {
  color: #292524;
}

@keyframes note-col-dim-light {
  0%,
  5%,
  70%,
  100% {
    opacity: 1;
    filter: none;
  }
  12%,
  64% {
    opacity: 0.42;
    filter: blur(0.2px) brightness(0.94);
  }
}

@keyframes task-check-box-light {
  0%,
  3% {
    background: transparent;
    border-color: rgba(28, 25, 23, 0.22);
  }
  4%,
  38% {
    background: var(--accent);
    border-color: var(--accent);
  }
  42%,
  48% {
    background: var(--accent);
    border-color: var(--accent);
  }
  52%,
  100% {
    background: transparent;
    border-color: rgba(28, 25, 23, 0.22);
  }
}

@keyframes people-select-pulse-light {
  0%,
  3%,
  55%,
  100% {
    background: transparent;
    border-color: transparent;
  }
  5%,
  48% {
    background: rgba(29, 78, 216, 0.1);
    border-color: rgba(29, 78, 216, 0.4);
  }
}

@keyframes chat-cursor-blink-light {
  0%,
  40%,
  100% {
    border-right: 0 solid transparent;
  }
  50%,
  90% {
    border-right: 1px solid rgba(29, 78, 216, 0.55);
  }
}

/* ── Landing assistant (chat hero) ──────────────────────────────────────── */
.hero--chat {
  padding-bottom: 1.25rem;
}
.hero-chat {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  margin: 0 auto;
  max-width: 640px;
  padding: 0 clamp(1rem, 4vw, 1.5rem);
  color: var(--text);
}
.hero-chat__brand {
  margin: 0;
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.hero-chat__brand strong {
  font-weight: 700;
}
.hero-chat__dot {
  color: var(--accent);
  text-shadow: 0 0 22px rgba(87, 167, 255, 0.65);
}
.hero-chat__tagline {
  margin: 0;
  max-width: 32rem;
  font-size: clamp(1.02rem, 2.6vw, 1.22rem);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: -0.015em;
  color: var(--muted);
}
.hero-chat__tagline strong {
  display: block;
  margin-top: 0.75rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-diagram {
  margin: 0.85rem 0 0.1rem;
  width: 100%;
  max-width: 31rem;
}
.hero-diagram__svg {
  display: block;
  width: 100%;
  height: auto;
}
.hero-diagram__svg ellipse,
.hero-diagram__svg path,
.hero-diagram__svg line,
.hero-diagram__svg circle,
.hero-diagram__svg rect {
  vector-effect: non-scaling-stroke;
}
/* Hero diagram motion: tangle ellipses drift, dots ride the lines (SMIL in
   the markup), week blocks breathe. All gated on no-preference; the SMIL
   dots are hidden (and the SVG timeline paused from app.js) under reduce. */
@media (prefers-reduced-motion: no-preference) {
  /* Each ellipse's markup transform is rotate(a cx cy); the animation
     replaces it with a CSS rotation around the same point (fill-box centre
     of an ellipse == its cx,cy), sweeping from the base angle (--a0) a full
     turn to --a1 — sign of the sweep sets the direction. */
  .hero-diagram__tangle ellipse {
    transform-box: fill-box;
    transform-origin: center;
    animation: heroTangleSpin 40s linear infinite;
  }
  .hero-diagram__tangle ellipse:nth-child(1) { --a0: 12deg; --a1: 372deg; animation-duration: 46s; }
  .hero-diagram__tangle ellipse:nth-child(2) { --a0: 52deg; --a1: -308deg; animation-duration: 33s; }
  .hero-diagram__tangle ellipse:nth-child(3) { --a0: 78deg; --a1: -282deg; animation-duration: 58s; }
  .hero-diagram__tangle ellipse:nth-child(4) { --a0: 108deg; --a1: 468deg; animation-duration: 29s; }
  .hero-diagram__tangle ellipse:nth-child(5) { --a0: 138deg; --a1: -222deg; animation-duration: 51s; }
  .hero-diagram__tangle ellipse:nth-child(6) { --a0: 162deg; --a1: 522deg; animation-duration: 37s; }
  .hero-diagram__tangle ellipse:nth-child(7) { --a0: -28deg; --a1: 332deg; animation-duration: 62s; }
  .hero-diagram__tangle ellipse:nth-child(8) { --a0: -60deg; --a1: -420deg; animation-duration: 27s; }
  .hero-diagram__tangle ellipse:nth-child(9) { --a0: 25deg; --a1: 385deg; animation-duration: 44s; }
  .hero-diagram__tangle ellipse:nth-child(10) { --a0: -42deg; --a1: -402deg; animation-duration: 55s; }
  .hero-diagram__tangle ellipse:nth-child(11) { --a0: 70deg; --a1: -290deg; animation-duration: 31s; }
  .hero-diagram__tangle ellipse:nth-child(12) { --a0: -14deg; --a1: 346deg; animation-duration: 48s; }
  .hero-diagram__tangle ellipse:nth-child(13) { --a0: 96deg; --a1: -264deg; animation-duration: 35s; }
  .hero-diagram__tangle ellipse:nth-child(14) { --a0: 40deg; --a1: 400deg; animation-duration: 60s; }
  .hero-diagram__week rect {
    animation: heroWeekBlink 3.2s ease-in-out infinite;
  }
  .hero-diagram__week rect:nth-child(1) { animation-duration: 2.7s; animation-delay: -0.9s; }
  .hero-diagram__week rect:nth-child(2) { animation-duration: 4.1s; animation-delay: -2.4s; }
  .hero-diagram__week rect:nth-child(3) { animation-duration: 3.3s; animation-delay: -1.1s; }
  .hero-diagram__week rect:nth-child(4) { animation-duration: 2.4s; animation-delay: -0.3s; }
  .hero-diagram__week rect:nth-child(5) { animation-duration: 4.6s; animation-delay: -3.2s; }
  .hero-diagram__week rect:nth-child(6) { animation-duration: 2.9s; animation-delay: -1.7s; }
  .hero-diagram__week rect:nth-child(7) { animation-duration: 3.8s; animation-delay: -0.6s; }
  .hero-diagram__week rect:nth-child(8) { animation-duration: 2.6s; animation-delay: -2.0s; }
  .hero-diagram__week rect:nth-child(9) { animation-duration: 4.3s; animation-delay: -1.4s; }
  .hero-diagram__week rect:nth-child(10) { animation-duration: 3.1s; animation-delay: -2.8s; }
  .hero-diagram__week rect:nth-child(11) { animation-duration: 3.6s; animation-delay: -0.2s; }
  .hero-diagram__week rect:nth-child(12) { animation-duration: 2.5s; animation-delay: -1.9s; }
}
@keyframes heroTangleSpin {
  from { transform: rotate(var(--a0)); }
  to { transform: rotate(var(--a1)); }
}
@keyframes heroWeekBlink {
  50% { opacity: 0.3; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-diagram__dots {
    display: none;
  }
}
@media (max-width: 640px) {
  .hero-diagram {
    margin: 0.7rem 0 0;
  }
  .hero-diagram__days {
    display: none;
  }
}
.hero-chat__lede {
  margin: 0.1rem 0 0.4rem;
  max-width: 34rem;
  font-size: clamp(0.85rem, 2vw, 0.98rem);
  line-height: 1.5;
  color: var(--muted);
}

.chat {
  width: 100%;
  max-width: 620px;
  margin: 0.9rem auto 0;
  text-align: left;
  background: linear-gradient(180deg, rgba(87, 167, 255, 0.055) 0%, rgba(18, 18, 22, 0) 30%), var(--card);
  border: 1px solid rgba(87, 167, 255, 0.16);
  border-radius: 24px;
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.45),
    0 0 70px -28px var(--accent-a35);
  padding: 1rem 1rem 0.85rem;
}
.chat__log {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 40vh;
  min-height: 4.5rem;
  overflow-y: auto;
  padding: 0.25rem 0.35rem 0.6rem;
  scrollbar-width: thin;
}
.chat__msg {
  max-width: 85%;
  padding: 0.55rem 0.8rem;
  border-radius: 14px;
  font-size: var(--fs-md);
  line-height: 1.45;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.chat__msg--bot {
  align-self: flex-start;
  background: var(--btn-tonal-bg, var(--line-soft));
  color: var(--text);
  border-bottom-left-radius: 5px;
}
.chat__msg--user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--chat-user-fg, #001226);
  font-weight: 500;
  border-bottom-right-radius: 5px;
}
.chat__msg--typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.chat__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
  animation: chat-dot 1.2s infinite ease-in-out both;
}
.chat__dot:nth-child(2) {
  animation-delay: 0.18s;
}
.chat__dot:nth-child(3) {
  animation-delay: 0.36s;
}
@keyframes chat-dot {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .chat__dot {
    animation: none;
  }
}

.chat__composer {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  margin-top: 0.35rem;
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
}
.chat__input {
  flex: 1 1 auto;
  resize: none;
  max-height: 160px;
  min-height: 2.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--form-input-bg, rgba(0, 0, 0, 0.2));
  color: var(--text);
  font: inherit;
  font-size: var(--fs-md);
  line-height: 1.4;
}
.chat__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(87, 167, 255, 0.18);
}
.chat__input::placeholder {
  color: var(--muted2, #6b6b6b);
}
.chat__send {
  flex: 0 0 auto;
  width: 2.6rem;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 0 18px -4px rgba(87, 167, 255, 0.7);
  transition: transform 0.12s ease, opacity 0.12s ease, box-shadow 0.12s ease;
}
.chat__send:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px -2px rgba(87, 167, 255, 0.85);
}
.chat__send:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.chat__suggests {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.6rem 0 0;
}
.chat__chip {
  padding: 0.48rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(87, 167, 255, 0.28);
  background: rgba(87, 167, 255, 0.08);
  color: var(--text);
  font-size: var(--fs-base);
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.chat__chip:hover {
  background: rgba(87, 167, 255, 0.18);
  border-color: var(--accent-a50);
}
.chat__disclaimer {
  margin: 0.6rem 0.25rem 0;
  font-size: var(--fs-xs);
  line-height: 1.4;
  color: var(--muted2, #6b6b6b);
  text-align: center;
}
.chat__disclaimer a {
  color: var(--muted);
  text-decoration: underline;
}

/* —— Site tabs (Home / Founder's notes), shown under the hero brand —— */
.site-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.15rem 0 0.1rem;
}
.site-tabs__tab {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.site-tabs__tab:hover {
  color: var(--text);
  background: var(--btn-ghost-hover-bg);
  text-decoration: none;
}
.site-tabs__tab:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.site-tabs__tab--active {
  background: var(--pager-tab-active-bg);
  color: var(--pager-tab-active-fg);
  border-color: var(--pager-tab-active-ring);
}

/* —— Home narrative scroll (hero headline, feature bands, mini FAQ) —— */

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.5rem 0 0.4rem;
}
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--btn-ghost-hover-bg); color: var(--text); }

.feat {
  text-align: center;
  padding: 3.4rem 0 3.2rem;
  border-top: 1px solid var(--header-border);
}
.feat--chat { border-top: none; padding-top: 1.2rem; }
.hows-section { border-top: none; }
.feat--chat .chat { margin: 0 auto; max-width: 640px; text-align: left; }
.feat__title {
  /* Section titles speak at the headline's volume (matches .hero-h1). */
  font-size: clamp(1.9rem, 5.2vw, 3.1rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.9rem;
}
.feat__sub {
  max-width: 38rem;
  margin: 0 auto 1.4rem;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.7;
}
.feat__art {
  display: block;
  width: min(300px, 72%);
  margin: 0 auto 0.9rem;
}
.feat__art svg { display: block; width: 100%; height: auto; }
.feat--still .feat__still-img {
  display: block;
  width: min(100%, 24rem);
  height: auto;
  margin: 0 auto;
}
.feat__quote {
  color: var(--text);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  letter-spacing: 0.02em;
  margin: 1.3rem 0 0.5rem;
}
.feat__quote-sub {
  color: var(--muted2);
  font-size: var(--fs-sm);
  max-width: 30rem;
  margin: 0 auto;
  line-height: 1.55;
}
.feat__more { margin: 1.3rem 0 0; font-size: var(--fs-md); }
.feat__more a { color: var(--muted); }
.feat__more a:hover { color: var(--text); text-decoration: none; }

.faq-mini {
  max-width: 40rem;
  margin: 0 auto;
  text-align: left;
}
.faq-mini__item {
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--card);
  overflow: hidden;
}
.faq-mini__item + .faq-mini__item { margin-top: 0.65rem; }
.faq-mini__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: background 0.15s ease;
}
.faq-mini__q::-webkit-details-marker { display: none; }
.faq-mini__q::marker { content: ""; }
.faq-mini__q:hover { background: var(--stepper-item-hover-bg); }
.faq-mini__q:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.faq-mini__chev {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.faq-mini__chev::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.faq-mini__item[open] .faq-mini__chev { transform: rotate(180deg); color: var(--text); }
.faq-mini__a {
  margin: 0;
  padding: 0 1.15rem 1.05rem;
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.65;
}

/* —— Life-area rows: alternating illustration + text —— */
.life {
  text-align: center;
  padding-block: 3.4rem 1.5rem;
  border-top: 1px solid var(--header-border);
}
.life-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.6rem, 4.5vw, 4rem);
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.4rem 0;
  text-align: left;
}
.life-row__art {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-elevated);
  padding: 0.6rem;
  overflow: hidden;
}
.life-row__art svg { display: block; width: 100%; height: auto; }
.life-row--flip .life-row__art { order: 2; }
.life-row--flip .life-row__text { order: 1; }
.life-row__text h3 {
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  color: var(--text);
}
.life-row__text p {
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.7;
  margin: 0 0 0.8rem;
}
.life-row__text p:last-child { margin-bottom: 0; }
@media (max-width: 860px) {
  .life-row {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    padding: 1.9rem 0;
    max-width: 34rem;
  }
  .life-row--flip .life-row__art { order: 0; }
  .life-row--flip .life-row__text { order: 1; }
  .life-row__text { text-align: left; }
  .life-row + .life-row { border-top: 1px solid var(--header-border); }
}

/* —— Life-row photos: real imagery pulled into the noir palette —— */
.life-row__art { position: relative; padding: 0; }
.life-row__art img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 15px;
  filter: brightness(0.6) saturate(0.72) contrast(1.02);
}
.life-row__art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 15px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.45) 100%),
    radial-gradient(120% 120% at 50% 50%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

/* —— Problem-first opener on each life row —— */
.life-row__problem {
  color: var(--text) !important;
  font-size: clamp(1rem, 2.4vw, 1.12rem) !important;
  font-weight: 500;
  line-height: 1.5 !important;
  letter-spacing: -0.01em;
  margin-bottom: 0.7rem !important;
}

/* ============================================================
   Desktop layout (≥1024px) — stop rendering as a tall mobile
   strip: put the hero, feature bands and form to work across
   the width. Below this the single-column mobile flow stands.
   ============================================================ */
@media (min-width: 1024px) {
  /* Hero: same centered stack as mobile, scaled up for the desktop canvas */
  .hero--chat { padding-top: clamp(2.5rem, 7vh, 4.5rem); }
  .hero-chat { max-width: 62rem; gap: 0; }
  .hero-chat__tagline { max-width: 46rem; font-size: 1.32rem; }
  .hero-diagram {
    width: 100%;
    max-width: 52rem;
    margin: 1.6rem auto 0;
  }

  /* The chat panel earns more room than a phone column */
  .feat--chat .chat { max-width: 820px; }

  /* Feature bands: art beside the copy instead of stacked above it */
  .feat--band {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    column-gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    max-width: 64rem;
    text-align: left;
  }
  .feat--band .feat__art {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: min(320px, 100%);
    margin: 0;
  }
  .feat--band .feat__title {
    grid-column: 2;
    align-self: end;
  }
  .feat--band .feat__sub {
    grid-column: 2;
    align-self: start;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  /* FAQ, signup and footer stop being narrow phone cards */
  .faq-mini { max-width: 52rem; margin-inline: auto; }
  .get-beta { max-width: 46rem; }
  .site-footer { max-width: 54rem; }
}

/* —— Top bar: small wordmark left, tabs right, on every page width —— */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.75rem;
  padding: 0.7rem 0;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--header-border);
}
.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.75rem;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2rem);
}
/* Clear the fixed bar */
body { padding-top: 3.65rem; }
.top-bar__brand {
  font-size: var(--fs-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.top-bar__brand:hover { text-decoration: none; color: var(--accent); }
.top-bar__dot { color: var(--accent); text-shadow: 0 0 16px rgba(87, 167, 255, 0.6); }

/* Mobile-first hero: centered copy, diagram below */
.hero--chat { padding-top: clamp(1.6rem, 5vh, 3.2rem); }
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}

@media (min-width: 1024px) {
  .hero-copy { gap: 1.5rem; }
}

/* ============================================================
   Founder's notes & FAQs — question cards, merged onto the home
   page so the site is one scroll instead of two pages.
   ============================================================ */
/* Page-scoped styles for the founder-note help center. Tokens come from styles.css. */
.fn-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.1rem clamp(1.1rem, 4vw, 2rem) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1rem;
  flex-wrap: wrap;
}
.fn-search input::placeholder { color: var(--form-placeholder); }
.fn-search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.fn-noresults {
  display: none;
  text-align: center;
  color: var(--muted2);
  font-size: var(--fs-md);
  margin: 2rem 0 0;
}

/* —— Question cards: a grid of collapsed cards; click to expand in place —— */
.fn-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.1rem;
  margin: 2.2rem 0 0;
  padding: 0 1.1rem;
}
.fn-tile {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  overflow: hidden;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.fn-tile[open] { grid-column: 1 / -1; }
.fn-tile__sum {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.15rem;
  padding: 1.05rem 1rem 1.05rem;
  cursor: pointer;
  list-style: none;
}
.fn-tile__sum::-webkit-details-marker { display: none; }
.fn-tile__sum::marker { content: ""; }
.fn-tile:hover { background: var(--stepper-item-hover-bg); border-color: var(--dia-stroke); }
.fn-tile[open] { background: var(--stepper-item-active-bg); }
.fn-tile__sum:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -2px; }
.fn-tile__art { width: min(72%, 168px); margin-bottom: 0.5rem; }
.fn-tile__art svg { display: block; width: 100%; height: auto; }
.fn h2 {
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin: 0;
  color: var(--text);
}
.fn-num {
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent);
  margin-right: 0.45rem;
  letter-spacing: 0.02em;
}
.fn-tile__sub {
  color: var(--muted2);
  font-size: var(--fs-sm);
  line-height: 1.45;
  margin-top: 0.15rem;
}
.fn-tile__chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-top: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  transition: transform 0.2s ease, color 0.15s ease;
}
.fn-tile__chev::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.fn-tile[open] .fn-tile__chev { transform: rotate(180deg); color: var(--text); }
.fn-tile__body {
  text-align: left;
  border-top: 1px solid var(--border);
  padding: 1.15rem clamp(1.1rem, 4vw, 1.8rem) 1.3rem;
}
.fn-tile__body > :first-child { margin-top: 0; }

/* —— Body typography —— */
.fn h3 {
  font-size: var(--fs-lg);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 1.5rem 0 0.4rem;
  color: var(--text);
}
.fn p, .fn li {
  color: var(--muted);
  font-size: var(--fs-md);
  line-height: 1.7;
}
.fn p { margin: 0 0 0.9rem; }
.fn ul, .fn ol { margin: 0 0 0.9rem; padding-left: 1.3rem; }
.fn li { margin: 0 0 0.45rem; }
.fn strong { color: var(--text); font-weight: 600; }
.fn blockquote {
  margin: 1.2rem 0;
  padding: 0.15rem 0 0.15rem 1.1rem;
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-size: var(--fs-lg);
  line-height: 1.6;
}
.fn blockquote p { color: var(--text); margin: 0; }
.fn code {
  background: var(--btn-tonal-bg);
  border-radius: 6px;
  padding: 0.05rem 0.35rem;
  font-size: 0.84em;
}

/* —— Lesson cards —— */
.fn-card {
  margin: 1.1rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 12px;
  background: var(--bg-elevated);
}
.fn-card__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2);
  margin: 0 0 0.4rem;
}
.fn-card p { margin: 0; font-size: var(--fs-md); }
.fn-card p + p { margin-top: 0.5rem; }
.fn-card .fn-lesson { color: var(--text); font-weight: 600; }

/* —— The still center (closing image from the app) —— */
.fn-still {
  text-align: center;
  max-width: 34rem;
  margin: 4rem auto 0.5rem;
}

/* —— Calm reveal on scroll —— */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Top-bar nav + section search now that everything lives on one page */
.top-bar__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex: 0 0 auto;
}
.top-bar__nav .btn-sm { white-space: nowrap; padding: 0.45rem 0.9rem; font-size: var(--fs-sm); }
@media (max-width: 430px) {
  .top-bar__nav { gap: 0.4rem; }
  .top-bar__nav .btn-sm { padding: 0.4rem 0.72rem; font-size: 0.76rem; }
  .top-bar__brand { font-size: var(--fs-xl); }
}
@media (max-width: 360px) {
  .top-bar__nav { gap: 0.35rem; }
  .top-bar__nav .btn-sm { padding: 0.36rem 0.58rem; font-size: 0.7rem; }
  .top-bar__brand { font-size: 0.94rem; }
}
.top-bar__link {
  color: var(--muted);
  font-size: var(--fs-base);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.top-bar__link:hover { color: var(--text); text-decoration: none; }
.feat--notes .fn-search { max-width: 30rem; margin: 0 auto 1.6rem; }
.feat--notes .fn-search input {
  width: 100%;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--form-input-bg);
  color: var(--text);
  font-family: inherit;
  font-size: var(--fs-md);
  outline: none;
}
.feat--notes .fn-search input::placeholder { color: var(--form-placeholder); }
.feat--notes .fn-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.feat--notes .fn-grid { text-align: left; }
@media (max-width: 520px) {
  .top-bar__link { display: none; }
}

/* ── 2026-08-22 persona-first restructure ─────────────────────────────── */

/* Visible hero headline (h1 was visually-hidden before) */
.hero-h1 {
  font-size: clamp(1.9rem, 5.2vw, 3.1rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text);
  margin: 0 0 0.65rem;
}

/* Trust strip under the hero tagline */
.trust-strip {
  font-size: var(--fs-sm);
  letter-spacing: 0.01em;
  color: var(--muted, var(--muted));
  margin: 0.9rem 0 0;
}

/* SENT-week line (unhidden manually Sep 8–11) */

/* Quiet header link (demoted from button) */
.top-bar__link {
  font-size: var(--fs-base);
  color: var(--muted, var(--muted));
  text-decoration: none;
  padding: 0.45rem 0.35rem;
}
.top-bar__link:hover { color: var(--text); }

/* Product screenshot frames */
.shots__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}
.shots__frame { margin: 0; text-align: center; }
.shots__frame img {
  width: 100%;
  max-width: 260px;
  border-radius: 22px;
  border: 1px solid var(--dia-stroke, #2a2f3a);
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.45);
}
.shots__frame figcaption {
  margin-top: 0.7rem;
  font-size: var(--fs-base);
  color: var(--muted, var(--muted));
}
@media (max-width: 720px) {
  .shots__row { grid-template-columns: 1fr; }
  .shots__frame img { max-width: 220px; }
}

/* Preface line above the still-center quote */
.feat__preface {
  max-width: 42rem;
  margin: 0 auto 1.4rem;
  font-size: var(--fs-lg);
  line-height: 1.65;
  color: var(--muted, var(--muted));
}

/* Founder block */
.founder__row {
  display: flex;
  align-items: flex-start;
  gap: 1.3rem;
  max-width: 46rem;
  margin: 1.4rem auto 0;
  text-align: left;
}
.founder__avatar {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  background: var(--dia-fill, #171b24);
  border: 1px solid var(--dia-stroke, #2a2f3a);
}
.founder__photo {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--dia-stroke, #2a2f3a);
}
.founder__text {
  margin: 0;
  font-size: var(--fs-lg);
  line-height: 1.7;
  color: var(--muted, var(--muted-bright));
}
@media (max-width: 560px) {
  .founder__row { flex-direction: column; align-items: center; text-align: center; }
}

/* The restructured hero uses strong mid-sentence — keep it inline. */
.hero-copy .hero-chat__tagline strong { display: inline; margin: 0; }

/* Hero value list — the 5-second answer, above the fold */
.hero-values {
  list-style: none;
  margin: 1.1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  text-align: left;
  max-width: 30rem;
  margin-inline: auto;
}
.hero-values li {
  font-size: var(--fs-xl);
  line-height: 1.5;
  color: var(--muted, var(--muted-bright));
}
.hero-values li strong { color: var(--text); font-weight: 650; }
.hero-cta {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: var(--fs-lg);
  padding: 0.7rem 1.5rem;
}

/* Rotating hero verb — a quiet crossfade, never a jump */
.hero-h1--rotator {
  min-height: 2.4em; /* two lines on mobile, so swaps never shift the page */
  display: flex;
  align-items: center;
  justify-content: center;
}
#hero-rotator {
  /* Short fade: a long one leaves the sentence visibly blank mid-swap. */
  transition: opacity 0.22s ease;
}
#hero-rotator.is-fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) {
  #hero-rotator { transition: none; }
}

/* Where the project actually is, stated plainly above the headline. It
   replaced a poetic problem line on 2026-09-04: a visitor's first question is
   "can I use this?", and the honest answer is the better opener. */
.hero-status {
  max-width: 34rem;
  margin: 0 auto 1.1rem;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--muted, var(--muted));
}
.hero-status__label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--accent);
  font-weight: 600;
}
.hero-status__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.hero-status__link:hover,
.hero-status__link:focus-visible { color: var(--accent); }
/* Only the verb span swaps; the sentence around it holds still */
/* Fixed three-line shape: brand line / rotating verb line / "matters today."
   Only line two fades; line three never blinks. Plain block flow — the flex
   base style put anonymous boxes around the <br>s and opened a phantom gap. */
.hero-h1--rotator { display: block; }
.hero-rotate-line { display: inline-block; min-height: 1.12em; }
.hero-rotate-line { display: inline-block; min-width: 0; }
#hero-rotator .hero-verb { color: var(--accent); }
.hero-values--how { max-width: 34rem; }

/* ── How cards — horizontal swipe row ─────────────────────────────────── */
.hows {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 1.4rem 1.1rem 0.9rem;
  scroll-padding-inline: 1.1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--dia-stroke, #2a2f3a) transparent;
}
.how-card {
  flex: 0 0 auto;
  width: min(300px, 76vw);
  scroll-snap-align: start;
  background: var(--dia-fill, #12151c);
  border: none;
  border-radius: 18px;
  padding: 1.6rem 1.5rem 1.7rem;
  text-align: center;
}
.how-card svg { width: 100%; height: 72px; margin-bottom: 0.6rem; }
.how-card h3 {
  margin: 0 0 0.35rem;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text);
}
.how-card p {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--muted, var(--muted));
}
.hows__hint {
  margin: 0.2rem 0 0;
  font-size: var(--fs-sm);
  color: var(--muted, #7a7f88);
  text-align: right;
}
@media (min-width: 900px) {
  .hows__hint { display: none; } /* desktop shows several cards at once */
}

/* ── Phone frame around the live Companion sample ─────────────────────── */
.try-it { text-align: center; }
.phone-frame {
  position: relative;
  max-width: 380px;
  margin: 1.6rem auto 0;
  padding: 2.4rem 0.9rem 1.1rem;
  border: 1px solid var(--dia-stroke, #2a2f3a);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 0.02), transparent 30%),
    var(--dia-fill, #0f1218);
  box-shadow: 0 18px 60px rgb(0 0 0 / 0.5);
}
.phone-frame__notch {
  position: absolute;
  top: 0.65rem;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 8px;
  border-radius: 5px;
  background: rgb(255 255 255 / 0.08);
}
.phone-frame__title {
  position: absolute;
  top: 1.15rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  color: var(--muted, var(--muted));
  text-transform: uppercase;
}
.phone-frame .chat { border: none; background: transparent; box-shadow: none; }

/* Post-Companion ask */
.see-it-all { text-align: center; }
.see-it-all .feat__title { max-width: 30rem; margin-inline: auto; }
.see-it-all__more {
  margin: 1.6rem 0 0;
  font-size: var(--fs-md);
  color: var(--muted, var(--muted));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

/* ── Below-the-asks cleanup: card grid + principles ───────────────────── */
.life-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
  text-align: left;
}
.life-grid .how-card { width: auto; }
.life-card__problem {
  font-weight: 650;
  color: var(--text);
  margin: 0 0 0.4rem;
  font-size: var(--fs-md);
  line-height: 1.5;
}
.principles__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
  margin-top: 1.6rem;
  text-align: left;
}
.principle h3 {
  margin: 0 0 0.4rem;
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--text);
}
.principle p {
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--muted, var(--muted));
}
/* The still-center closes smaller and quieter */
.feat__still-img { max-width: 320px; height: auto; }

/* ── Companion demo: confirm chips + receipts ─────────────────────────── */

/* The animated tangle rotates past the viewBox sized for the still — let it
   paint outside instead of clipping at the top and bottom. The bleed lands on
   the hero's own black, so nothing collides. */
.hero-diagram__svg { overflow: visible; }
.hero-diagram { overflow: visible; }

/* ── "Are you at SENT today?" ask card ──────────────────────────────────── */
/* A dialog over the page, not a wall in front of it: the scrim is thin enough
   to read the hero through, so the visitor can see there is a site behind the
   question rather than a door before it. */
.ask-veil {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(4, 6, 10, 0.55);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.ask-veil__close {
  position: absolute;
  top: 0.5rem;
  right: 0.85rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.ask-veil__close:hover { color: var(--text); }
.ask-veil__col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.35rem;
  width: 100%;
  max-width: 30rem;
  max-height: calc(100dvh - 2.5rem);
  overflow-y: auto;
  padding: 2.5rem 1.5rem 1.7rem;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: var(--card);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5), 0 2px 10px rgba(0, 0, 0, 0.28);
}
.ask-veil__brand {
  width: min(21rem, 78%);
  padding-bottom: 1.35rem; /* equals .ask-veil__col gap — even air either side */
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.ask-veil__dot { color: var(--accent); }
.sent-ask {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  text-align: center;
}
.sent-ask__q {
  margin: 0;
  font-size: clamp(1.12rem, 3.1vw, 1.4rem);
  font-weight: 700;
  line-height: 1.34;
  color: var(--text);
  text-align: center;
}
.sent-ask__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  max-width: 38rem;
}
.sent-ask__no,
.sent-ask__chip {
  color: var(--text);
  border: 1px solid var(--header-border, var(--line-strong));
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.sent-ask__chip:hover { border-color: var(--accent); color: var(--accent); }
.sent-ask__chip--picked {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-a10);
}
.sent-ask__skip {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: var(--fs-md);
  cursor: pointer;
  margin-top: 0.4rem;
  flex-basis: 100%;
}
.sent-ask__skip:hover { color: var(--text); }

/* "You:" strip above the Companion demo */
.chat-you {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.4rem;
  line-height: 1.5;
  padding: 0.45rem 0.75rem 0.55rem;
  border-bottom: 1px solid var(--header-border, rgba(255, 255, 255, 0.1));
}
.chat-you__label {
  font-size: var(--fs-sm);
  color: var(--muted);
}
.chat-you__chip {
  font-size: var(--fs-sm);
  padding: 0.22rem 0.7rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--header-border, var(--line-strong));
  border-radius: 999px;
  cursor: pointer;
}
.chat-you__chip:hover { border-color: var(--accent); color: var(--accent); }
.chat-you__chip--on {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-a10);
}

/* inline 1-3 word input for the "Other…" persona chip */
.sent-ask__other-input {
  font: inherit;
  font-size: var(--fs-md);
  padding: 0.5rem 1rem;
  width: 11rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 999px;
  outline: none;
}
.sent-ask__other-input::placeholder { color: var(--muted); }

.sent-ask__q--second { margin-top: 0.9rem; font-size: clamp(1.05rem, 2.6vw, 1.3rem); }

html[data-theme="light"] .ask-veil {
  background: rgba(46, 36, 26, 0.32);
}
html[data-theme="light"] .ask-veil__col {
  box-shadow: 0 26px 60px rgba(60, 45, 30, 0.24), 0 2px 10px rgba(60, 45, 30, 0.12);
}
html[data-theme="light"] .sent-ask__other-input { color: var(--text); }

.ask-veil .theme-toggle {
  position: absolute;
  top: 0.7rem;
  left: 0.85rem;
  z-index: 1;
}

/* Natural-journal voice in light: Spectral serif for display type (the body
   stays Inter for screen readability). Dark keeps Inter everywhere. */
html[data-theme="light"] .hero-h1,
html[data-theme="light"] .feat__title,
html[data-theme="light"] .sent-ask__q,
html[data-theme="light"] .join-card__title,
html[data-theme="light"] .fn-tile h2,
html[data-theme="light"] .how-card h3,
html[data-theme="light"] .hero-status {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
}

/* "Try it" callout above the Companion demo */

/* Six-pillar chip row at the top of the demo Companion (decorative) */

/* Controls don't inherit typography by default — without this, every
   <button> falls back to the UA font (Arial) instead of Inter/Spectral. */
button,
input,
select,
textarea {
  font-family: inherit;
}

/* ── Story copy ─────────────────────────────────────────────────────────── */
/* The citizenship line: what the diagram shows, said once in words. */

/* ── U2: the welcome takeover arrives, it doesn't pop ───────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .ask-veil { animation: ask-veil-in 260ms ease-out both; }
  .ask-veil__col { animation: ask-col-in 320ms cubic-bezier(0.2, 0.8, 0.3, 1) both; }
  @keyframes ask-col-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
}
@keyframes ask-veil-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ask-col-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── U3: the hand-drawn arrow beckons ───────────────────────────────────── */

/* ── U4: sections unfold as you scroll (one class, set by JS) ───────────── */
@media (prefers-reduced-motion: no-preference) {
  .unfold {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 620ms ease-out, transform 620ms cubic-bezier(0.2, 0.8, 0.3, 1);
  }
  .unfold.is-in { opacity: 1; transform: none; }
}

/* Blossoms: outlined petals on dark, properly filled on journal paper. */
.hero-diagram__bloom ellipse { fill-opacity: 0.42; }
html[data-theme="light"] .hero-diagram__bloom ellipse { fill-opacity: 0.9; }
html[data-theme="light"] .hero-diagram__bloom circle { fill-opacity: 1; }

/* The turn, said at the same volume as the headline: from your own week
   to everyone's. */
.coflourish-line {
  max-width: 30rem;
  margin: 0.2rem auto 2.2rem;
  padding: 0 1.4rem;
  text-align: center;
  font-size: clamp(1.9rem, 5.2vw, 3.1rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text);
}
.coflourish-line__word { color: var(--accent); }
html[data-theme="light"] .coflourish-line {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
}

/* Three people, quietly threaded — the co-flourish line made visible. */

/* ── What moves a life ───────────────────────────────────────────────────
   The runner stands still and the world comes to meet them (the Chrome dino
   is the reference the founder gave). One keyframe moves every travelling
   layer; only the duration differs, so the ground and the things standing on
   it share a plane while the blossoms above drift at a third of the speed and
   read as depth. A rider arriving every 2s is what charges the ring. */
/* Same voice and size as .coflourish-line above it — this is the section's
   headline, not a caption under a picture. The three highlighted words are the
   two directions the drawing shows: the turning inside the ring, and what
   arrives from outside it. */
.pull-caption {
  max-width: 32rem;
  margin: 0.2rem auto 1.4rem;
  padding: 0 1.4rem;
  text-align: center;
  /* Roughly half the headline. Two sentences and a hundred characters do not
     want the co-flourish line's size — at 3.1rem it ran five lines and read as
     the page's argument rather than the drawing's title. */
  font-size: clamp(1.24rem, 3.2vw, 1.72rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.32;
  color: var(--text);
}
.pull-caption__em { color: var(--accent); }
html[data-theme="light"] .pull-caption {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
}
/* Same width as the life graph above — the section's two diagrams should not
   disagree about how wide a figure is. */
.pull {
  /* Almost no margin of its own: the How? section below brings 3.4rem of its
     own padding, and the drawing already ends in a faint speckled line. */
  margin: 0 auto 0.4rem;
  padding: 0 1.1rem;
  max-width: 56rem;
}
.pull__svg { display: block; width: 100%; height: auto; }
/* …and the same trick it uses to get there: at this width a 1.4-unit stroke
   would render near 2.6px and read heavier than every other line on the page.
   Pinning the stroke to screen units keeps one hand throughout. */
.pull__svg circle,
.pull__svg path,
.pull__svg line,
.pull__svg rect,
.pull__svg ellipse { vector-effect: non-scaling-stroke; }
.pull__parts text {
  font-size: 8.5px;
  fill: var(--muted);
}
html[data-theme="light"] .pull__parts text {
  font-family: "Spectral", Georgia, serif;
  font-style: italic;
  font-size: 9px;
}
/* On a phone the box renders ~330px wide, so 11 user units land under 8 real
   pixels. The words grow to hold the same read the desktop one has — the same
   trade the life graph makes when its leaves get too small to keep. */
@media (max-width: 700px) {
  .pull__parts text { font-size: 12px; }
  html[data-theme="light"] .pull__parts text { font-size: 12.5px; }
}
.pull__ride {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Blooms carry their own fills, so they opt out of the glyph stroke rules. */
.pull__bloom { stroke-width: 0.7; }
/* The pulse is invisible until a rider actually lands. */
.pull__pulse { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .pull__ring {
    animation: pull-spin 46s linear infinite;
    transform-origin: 78px 88px;
    transform-box: view-box;
  }
  /* Two animations, one clock. The mask is atmosphere; correctness is the
     opacity keyframe, because a RADIAL fade cannot cover every flight
     height — a rider coming in high or low ends its run further from the
     ring than one at eye level, and was surviving at 13-17% opacity to
     pop out at the loop wrap. */
  .pull__ride { animation: pull-travel 12s linear infinite, pull-fade 12s linear infinite; }
  .pull__speck { animation: pull-travel 8s linear infinite; }
  .pull__drift { animation: pull-travel 24s linear infinite; }
  .pull__pulse {
    animation: pull-pulse 2s ease-out 2s infinite;
    transform-origin: 78px 88px;
    transform-box: view-box;
  }
  .pull__charge { animation: pull-charge 2s ease-out 2s infinite; }
}
@keyframes pull-spin { to { transform: rotate(360deg); } }
@keyframes pull-travel {
  from { transform: translateX(320px); }
  to { transform: translateX(0); }
}
@keyframes pull-fade {
  0% { opacity: 0; }
  14% { opacity: 1; }
  95% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes pull-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  100% { transform: scale(1.32); opacity: 0; }
}
@keyframes pull-charge {
  0% { opacity: 1; }
  32%, 100% { opacity: 0.72; }
}

.co-flourish {
  margin: 0 auto 2.4rem;
  padding: 0 1.4rem;
  max-width: 26rem;
}
.co-flourish__svg {
  display: block;
  width: 100%;
  height: auto;
}
.co-flourish__svg circle,
.co-flourish__svg path,
.co-flourish__svg rect { vector-effect: non-scaling-stroke; }
@media (prefers-reduced-motion: reduce) {
  .co-flourish__motes { display: none; }
}

/* The welcome card's Continue carries the whole card — give it more presence
   than the header's own small pill without resizing every .btn-sm. */
.sent-ask__go {
  padding: 0.66rem 1.5rem;
  font-size: var(--fs-md);
}

/* ── "The whole of a life, on one screen" — device beside the claim ── */

/* Titanium rail, black body, screen. Reads the same in both themes. */
.device-phone {
  position: relative;
  width: min(100%, 272px);
  padding: 9px;
  border-radius: 34px;
  background: linear-gradient(150deg, #dcd8d2 0%, #b3aea8 45%, #cfcbc5 100%);
  box-shadow: 0 20px 54px rgb(0 0 0 / 0.3);
}
.device-phone::before,
.device-phone::after {
  content: "";
  position: absolute;
  left: -2px;
  width: 3px;
  border-radius: 3px;
  background: #b3aea8;
}
.device-phone::before { top: 21%; height: 7%; }
.device-phone::after { top: 31%; height: 7%; }
.device-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 27px;
  background: #07070a;
}

@media (max-width: 820px) {
  .device-phone { width: min(100%, 236px); }
}

/* ── Life graph: one point out to six pillars, and back to one ──────────── */
.life-graph {
  margin: 0 auto 1.6rem;
  padding: 0 1.1rem;
  max-width: 56rem;
}
.life-graph__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.life-graph__svg circle,
.life-graph__svg path { vector-effect: non-scaling-stroke; }
.life-graph .lg-pillar {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.life-graph .lg-leaf { font-size: 14px; }
.life-graph .lg-pct { font-size: 19px; font-weight: 700; text-anchor: middle; }
.life-graph .lg-pct-sub { font-size: 8px; text-anchor: middle; }
.life-graph .lg-nav { font-size: 9px; text-anchor: middle; letter-spacing: 0.04em; }
html[data-theme="light"] .life-graph .lg-pillar {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
}
/* Leaf names carry the detail; below tablet they'd stack into noise, so the
   shape of the idea (one → many → one) stands on its own. */
@media (max-width: 700px) {
  .life-graph .lg-leaf { display: none; }
  .life-graph .lg-pillar { font-size: 24px; }
}

/* The travelling dots are SMIL, so a media query can't slow them — it can only
   take them away. Removed, the graph is exactly what it was before: still legible. */
@media (prefers-reduced-motion: reduce) {
  .life-graph__pulses { display: none; }
}

/* The life graph says it; this names it. */
.life-graph__caption {
  /* Same voice as .hero-h1 — this is the section's headline, not a caption. */
  margin: 2.4rem auto 0.4rem;
  padding: 0 1.2rem;
  max-width: 34rem;
  text-align: center;
  font-size: clamp(1.9rem, 5.2vw, 3.1rem);
  font-weight: 750;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}
.life-graph__caption-em { color: var(--accent); }
html[data-theme="light"] .life-graph__caption {
  font-family: "Spectral", Georgia, "Times New Roman", serif;
}

/* ── Ask dock: the Companion demo, demoted to a corner ──────────────────── */
.ask-dock {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}
.ask-dock__launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.62rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text);
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}
.ask-dock__launcher:hover { border-color: var(--accent); color: var(--accent); }
.ask-dock__panel {
  width: min(23rem, calc(100vw - 2.2rem));
  max-height: min(34rem, calc(100vh - 6rem));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-elevated);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}
.ask-dock__panel[hidden] { display: none; }
.ask-dock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.5rem 0.6rem 0.95rem;
  border-bottom: 1px solid var(--line-soft);
}
.ask-dock__title { font-size: var(--fs-md); font-weight: 700; color: var(--text); }
.ask-dock__close {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 0.5rem;
  cursor: pointer;
}
.ask-dock__close:hover { color: var(--text); }
/* The chat fills the panel; it no longer sits inside a phone. */
.ask-dock .chat { border: none; background: transparent; box-shadow: none; padding: 0; }
.ask-dock .chat__log { max-height: 15rem; overflow-y: auto; padding: 0.8rem 0.95rem; }
.ask-dock .chat__composer { padding: 0 0.95rem 0.5rem; }
.ask-dock .chat__suggests { padding: 0 0.95rem 0.4rem; }
.ask-dock .chat__disclaimer { padding: 0 0.95rem 0.85rem; margin: 0; }
.ask-dock #chat-you { padding: 0.5rem 0.95rem; }
@media (prefers-reduced-motion: no-preference) {
  .ask-dock__panel { animation: ask-dock-in 200ms cubic-bezier(0.2, 0.8, 0.3, 1) both; }
}
@keyframes ask-dock-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 520px) {
  .ask-dock__launcher-text { display: none; }
  .ask-dock__launcher { padding: 0.72rem; }
}

/* The real understand screen crowns the life graph. */
.life-graph__device {
  display: flex;
  justify-content: center;
  margin: 0 0 -0.4rem;
}
.life-graph__device .device-phone { width: min(100%, 190px); }
@media (max-width: 640px) {
  .life-graph__device .device-phone { width: min(100%, 150px); }
}

/* ── The understand screen, drawn live so it follows the site's theme ────── */
.phone-live {
  --ph-bg: #0c0c0f;
  --ph-fg: #e9e9ec;
  --ph-dim: #85858e;
  --ph-grid: rgba(255, 255, 255, 0.16);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.7rem 0.55rem 0.5rem;
  border-radius: 27px;
  background: var(--ph-bg);
  color: var(--ph-fg);
  /* Not a phone's true 9/19.5. The screen holds one width-bound shape, and a
     frame twice as tall as it is wide leaves half itself empty no matter how
     large the shape grows. This is a phone-shaped frame around a diagram, and
     it is cut to the diagram. */
  aspect-ratio: 9 / 13;
}
html[data-theme="light"] .phone-live {
  --ph-bg: #fffdf9;
  --ph-fg: #1c1917;
  --ph-dim: #8a8175;
  --ph-grid: rgba(28, 25, 23, 0.14);
}
.phone-live__scale {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 8px;
  color: var(--ph-dim);
  border-radius: 999px;
  border: 1px solid var(--ph-grid);
}
.phone-live__scale .is-on {
  color: var(--ph-fg);
  font-weight: 700;
  border-bottom: 1.5px solid var(--accent);
}
.phone-live__radar {
  display: block;
  width: 100%;
  height: auto;
  margin: auto 0;   /* centre the shape in the space the screen gives it */
}
.phone-live .ph-axis { font-size: 12px; fill: var(--ph-dim); }
.phone-live .ph-pct { font-size: 27px; font-weight: 700; fill: var(--ph-fg); }
.phone-live .ph-pct-sub { font-size: 10px; fill: var(--ph-dim); }
.phone-live__nav {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0.2rem 0.1rem;
  border-top: 1px solid var(--ph-grid);
  font-size: 7px;
  color: var(--ph-dim);
}
.phone-live__nav .is-on { color: var(--accent); font-weight: 700; }
/* the device reads better a touch larger now that it holds real content */
.life-graph__device .device-phone { width: min(100%, 252px); }
@media (max-width: 640px) {
  .life-graph__device .device-phone { width: min(100%, 200px); }
}
