/* =====================================================================
   WDS — the site is a phone.
   Every motion here is something a phone actually does.
   ===================================================================== */

:root {
  --ink: #0A0A0C;
  --ink-2: #131317;
  --ink-3: #1C1C22;
  --bone: #F3F2EE;
  --muted: #9A9AA3;
  --line: rgba(243, 242, 238, 0.1);
  --lime: #D4FF3F;
  --coral: #FF6A3D;
  --blue: #4D7CFF;

  --display: "Unbounded", system-ui, sans-serif;
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;

  /* Phone-like spring: overshoots, then settles. */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --gutter: clamp(1rem, 4vw, 3rem);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
button { font: inherit; color: inherit; }

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

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

/* ---------- Top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1rem var(--gutter);
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.logo { display: inline-flex; text-decoration: none; }
.logo__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 0.85rem;
  background: var(--lime); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 0.8rem; letter-spacing: -0.02em;
  transition: transform 0.5s var(--spring);
}
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }

.bar__nav { display: flex; gap: 0.25rem; margin-left: auto; }
.bar__nav a {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  padding: 0 1rem; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.bar__nav a:hover { color: var(--bone); background: var(--ink-3); }
.bar__nav .bar__cta { color: var(--ink); background: var(--bone); }
.bar__nav .bar__cta:hover { color: var(--ink); background: var(--lime); }

/* Battery: charges as you scroll. */
.battery { display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); }
.battery__body {
  position: relative; width: 1.75rem; height: 0.85rem;
  border: 1.5px solid var(--muted); border-radius: 0.25rem; padding: 1.5px;
}
.battery__body::after {
  content: ""; position: absolute; right: -4px; top: 50%; width: 2px; height: 0.35rem;
  transform: translateY(-50%); background: var(--muted); border-radius: 0 1px 1px 0;
}
.battery__fill {
  display: block; height: 100%; width: calc(var(--p, 0) * 100%);
  background: var(--lime); border-radius: 1px;
}

@media (max-width: 640px) {
  .bar__nav a:not(.bar__cta) { display: none; }
  .battery__pct { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  /* Desktop: exactly one screen under the bar. The phone zooms to fit (site.js). */
  height: calc(100svh - 4.75rem);
  padding: clamp(1rem, 4vh, 3rem) var(--gutter);
  max-width: 1440px; margin: 0 auto;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr); height: auto; padding-bottom: 4rem; }
}
@media (min-width: 961px) and (max-height: 720px) {
  .facts, .stage__hint { display: none; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0;
  font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__dot {
  width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--lime);
  animation: ping 2.2s infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--lime) 60%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.headline {
  margin: clamp(0.75rem, 2.5vh, 1.5rem) 0 0;
  font-family: var(--display); font-weight: 800;
  /* Sized by width AND height, so three lines always fit above the fold. */
  font-size: clamp(2.25rem, min(6vw, 10.5svh), 5.75rem);
  line-height: 1.02; letter-spacing: -0.045em;
  text-wrap: balance;
}

/* Kinetic word: a lime "app icon" pill whose word swaps like a notification. */
.kinetic {
  position: relative; display: inline-flex; vertical-align: bottom;
  height: 1.08em; overflow: hidden;
  margin: 0 0.06em; padding: 0 0.28em;
  background: var(--lime); color: var(--ink);
  border-radius: 0.28em;
  transform: rotate(-2.5deg);
  transition: width 0.6s var(--spring);
}
.kinetic__word { flex: none; display: inline-block; line-height: 1.08; white-space: nowrap; }
.kinetic__word.is-out { animation: word-out 0.38s var(--ease) forwards; }
.kinetic__word.is-in  { animation: word-in 0.6s var(--spring) forwards; }
@keyframes word-out { to { transform: translateY(-110%); opacity: 0; } }
@keyframes word-in  { from { transform: translateY(110%); opacity: 0; } to { transform: none; opacity: 1; } }

.lede {
  max-width: 34rem; margin: clamp(0.75rem, 3vh, 1.75rem) 0 0;
  font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: #C9C8C3;
}

.ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: clamp(1rem, 4vh, 2.25rem); }

.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 3.5rem; padding: 0 1.6rem; border-radius: 1.1rem;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform 0.45s var(--spring), background-color 0.2s, color 0.2s;
}
/* Press squash, like a tapped icon. */
.btn:active { transform: scale(0.94) !important; transition-duration: 0.1s; }
.btn--primary { background: var(--lime); color: var(--ink); }
.btn--primary:hover { background: var(--bone); }
.btn--ghost { background: var(--ink-3); color: var(--bone); }
.btn--ghost:hover { background: #26262E; }

.facts {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  list-style: none; padding: 0; margin: clamp(1rem, 5vh, 3rem) 0 0;
  font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.facts li { display: inline-flex; align-items: center; gap: 0.6rem; }
.facts li + li::before { content: ""; width: 0.3rem; height: 0.3rem; border-radius: 50%; background: var(--ink-3); box-shadow: 0 0 0 1px var(--line); }

/* ---------- Stage + phone ---------- */
.hero__stage {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}
/* Screen light: the phone throws lime onto the page. */
.hero__stage::before {
  content: ""; position: absolute; z-index: -1;
  width: 120%; aspect-ratio: 1; left: 50%; top: 45%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--lime) 18%, transparent), transparent 70%);
  transition: opacity 0.8s var(--ease);
  pointer-events: none;
}
.hero__stage.is-unlocked::before { opacity: 0.45; }

.phone {
  --w: 330px;
  width: var(--w); aspect-ratio: 330 / 690;
  perspective: 1200px;
  /* Scaled as a whole so the inside never reflows; set by fitPhone(). */
  zoom: var(--s, 1);
}

.phone__tilt {
  position: relative; width: 100%; height: 100%;
  padding: 11px; border-radius: 56px;
  background: linear-gradient(145deg, #2A2A31, #111114 60%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 50px 90px -30px rgba(0, 0, 0, 0.9),
    0 30px 60px -40px color-mix(in srgb, var(--lime) 40%, transparent);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.9s var(--spring);
}
.phone.is-tracking .phone__tilt { transition-duration: 0.15s; transition-timing-function: linear; }

.phone__side {
  position: absolute; right: -3px; top: 150px; width: 4px; height: 72px;
  padding: 0; border: 0; border-radius: 0 3px 3px 0;
  background: #2A2A31; cursor: pointer;
}
.phone__side:hover { background: var(--lime); }

.phone__screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 46px; overflow: hidden;
  background: var(--ink-2);
  isolation: isolate;
}

/* ---------- Lock screen ---------- */
.lock {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  padding: 3.25rem 0.85rem 0.75rem;
  background: var(--lime); color: var(--ink);
  transform: translateY(var(--drag, 0px));
  transition: transform 0.7s var(--spring), border-radius 0.4s;
  will-change: transform;
}
.phone.is-dragging .lock { transition: none; }
.phone.is-unlocked .lock { transform: translateY(-105%); }

.lock__top { display: flex; flex-direction: column; align-items: center; }
.lock__date { font-family: var(--mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.lock__time {
  font-family: var(--display); font-weight: 800;
  font-size: calc(var(--w) * 0.235); line-height: 1; letter-spacing: -0.06em;
  margin-top: 0.15rem; font-variant-numeric: tabular-nums;
}

.notes {
  list-style: none; padding: 0; margin: auto 0 0;
  display: flex; flex-direction: column-reverse; gap: 0.4rem;
}
.note {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.7rem 0.8rem; border-radius: 1.2rem;
  background: var(--ink); color: var(--bone);
  transform-origin: 50% 0;
  animation: note-in 0.75s var(--spring) both;
}
.note:nth-child(n+2) { opacity: 0.94; }
@keyframes note-in {
  from { transform: translateY(-40px) scale(0.86); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.note__icon {
  flex: none; width: 2.2rem; height: 2.2rem; border-radius: 0.65rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--c, var(--lime)); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 0.55rem;
}
.note__body { min-width: 0; flex: 1; line-height: 1.3; }
.note__row { display: flex; justify-content: space-between; gap: 0.5rem; }
.note__title { font-weight: 600; font-size: 0.82rem; }
.note__when { font-size: 0.72rem; color: var(--muted); }
.note__text { font-size: 0.78rem; color: #C9C8C3; }

.lock__handle {
  display: flex; flex-direction: column; align-items: center; gap: 0.55rem;
  margin-top: 0.9rem; padding: 0.6rem 0 0.35rem;
  background: none; border: 0; cursor: grab;
  touch-action: none;
}
.lock__handle:active { cursor: grabbing; }
.lock__hint { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; animation: hint 2.6s var(--ease) infinite; }
.lock__bar { width: 8rem; height: 5px; border-radius: 3px; background: var(--ink); }
@keyframes hint { 0%, 100% { transform: none; } 50% { transform: translateY(-5px); } }

/* ---------- Home screen ---------- */
.home {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column;
  padding: 3.25rem 1rem 0.75rem;
  background:
    radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--blue) 26%, transparent), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, color-mix(in srgb, var(--lime) 14%, transparent), transparent 60%),
    var(--ink-2);
}

.home__head { display: flex; flex-direction: column; gap: 0.2rem; padding: 0 0.25rem; }
.home__label { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.home__title { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; line-height: 1.1; }

.grid {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem 0.6rem;
}
.app {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  opacity: 0; transform: scale(0.3) translateY(30px);
}
.phone.is-unlocked .app {
  animation: app-in 0.7s var(--spring) forwards;
  animation-delay: calc(0.18s + var(--i) * 0.06s);
}
@keyframes app-in { to { opacity: 1; transform: none; } }

.app__icon {
  position: relative; width: 3.6rem; height: 3.6rem; border-radius: 1.05rem;
  background: var(--c); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.app__icon.is-installed { animation: installed 0.6s var(--spring); }
@keyframes installed { 40% { transform: scale(0.86); } 100% { transform: none; } }

.app__name { font-size: 0.66rem; font-weight: 500; text-align: center; line-height: 1.2; }
.app__pct { font-family: var(--mono); font-size: 0.6rem; color: var(--muted); margin-top: -0.25rem; }

.widget {
  display: flex; flex-direction: column; gap: 0.3rem;
  margin-top: 1.4rem; padding: 1rem; border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  opacity: 0; transform: scale(0.9) translateY(30px);
}
.phone.is-unlocked .widget { animation: app-in 0.8s var(--spring) forwards; animation-delay: 0.5s; }
.widget__row { display: flex; justify-content: space-between; align-items: center; }
.widget__label, .widget__live { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.widget__live { display: inline-flex; align-items: center; gap: 0.4rem; color: var(--lime); }
.widget__big { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.04em; line-height: 1.1; margin-top: 0.2rem; }
.widget__small { font-size: 0.75rem; color: #C9C8C3; }

.dock {
  margin-top: auto;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem;
  padding: 0.7rem; border-radius: 1.8rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}
.dock__icon {
  justify-self: center;
  width: 3.4rem; height: 3.4rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink-3); color: var(--bone);
  opacity: 0; transform: translateY(40px);
}
.dock__icon svg { width: 1.5rem; height: 1.5rem; }
.dock__icon--lime { background: var(--lime); color: var(--ink); }
.dock__icon--blue { background: var(--blue); color: var(--bone); }
.phone.is-unlocked .dock__icon { animation: app-in 0.7s var(--spring) forwards; animation-delay: 0.1s; }

.stage__hint {
  margin: 0; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  transition: opacity 0.4s;
}
.hero__stage.is-unlocked .stage__hint { opacity: 0; }

/* ---------- Wake-up: the screen starts off, then lights up. ---------- */
.blackout {
  position: absolute; inset: 0; z-index: 8; pointer-events: none;
  background: #000; opacity: 0;
  transition: opacity 0.9s var(--ease);
}
.phone.is-asleep .blackout { opacity: 1; transition: none; }
.phone.is-asleep .lock__time { transform: scale(0.94); }
.lock__time { transition: transform 1s var(--spring); }

/* ---------- Buzz: the phone vibrates when a notification lands. ---------- */
/* Uses `translate`, so it stacks with the tilt `transform`. */
.phone__tilt.is-buzz { animation: buzz 0.42s linear; }
@keyframes buzz {
  0%, 100% { translate: 0 0; }
  12% { translate: -3px 0; } 25% { translate: 3px 0; }
  37% { translate: -3px 0; } 50% { translate: 3px 0; }
  62% { translate: -2px 0; } 75% { translate: 2px 0; }
}

/* ---------- App icons are real buttons ---------- */
.app__btn {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.app__btn .app__icon { transition: transform 0.4s var(--spring); }
.app__btn:hover .app__icon { transform: scale(1.06); }
.app__btn:active .app__icon, .app__icon.is-pressed { transform: scale(0.84); transition-duration: 0.12s; }

/* ---------- Splash: an opened app grows out of its icon. ---------- */
.splash {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 2rem 1.5rem;
  background: var(--c, var(--lime)); color: var(--ink);
  border-radius: 46px;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  transform: scale(0.16); opacity: 0; visibility: hidden;
  transition: transform 0.55s var(--spring), opacity 0.25s, visibility 0s 0.55s;
}
.splash.is-open {
  transform: none; opacity: 1; visibility: visible;
  transition: transform 0.6s var(--spring), opacity 0.2s, visibility 0s;
}
.splash__close {
  position: absolute; top: 3rem; right: 1rem;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); cursor: pointer;
}
.splash__icon {
  width: 5.5rem; height: 5.5rem; border-radius: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--c, var(--lime));
  font-family: var(--display); font-weight: 800; font-size: 1.1rem;
}
.splash.is-open:not(.is-denied) .splash__icon { animation: installed 0.7s var(--spring) 0.35s both; }
.splash__name { margin-top: 0.75rem; font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.04em; }
.splash__note { font-size: 0.9rem; }
.splash__pct { margin-top: 1rem; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Ghost thumb: the phone demos itself until you touch it. ---------- */
.thumb {
  position: absolute; z-index: 7; left: 0; top: 0;
  width: 3.5rem; height: 3.5rem; margin: -1.75rem 0 0 -1.75rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55), 0 8px 24px rgba(0, 0, 0, 0.25);
  opacity: 0; pointer-events: none;
}

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden; white-space: nowrap;
  background: var(--lime); color: var(--ink);
  transform: rotate(-1.5deg); margin: 0 -2rem;
  padding: 1rem 0;
  font-family: var(--display); font-weight: 800; font-size: clamp(1rem, 2vw, 1.5rem);
  letter-spacing: -0.02em; text-transform: uppercase;
}
.ticker__track { display: inline-flex; gap: 1.5rem; animation: slide 28s linear infinite; }
.ticker i { font-style: normal; }
@keyframes slide { to { transform: translateX(-50%); } }

/* =====================================================================
   Sections — each one is another screen of the phone.
   ===================================================================== */
html { scroll-behavior: smooth; }
.sec { max-width: 1440px; margin: 0 auto; padding: clamp(6rem, 16vh, 11rem) var(--gutter) 0; scroll-margin-top: 4rem; }
.hero { scroll-margin-top: 5rem; }

.sec__head { max-width: 52rem; }
.sec__label { margin: 0; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); }
.sec__title {
  margin: 1rem 0 0;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.25rem, 5.4vw, 4.75rem); line-height: 1.02; letter-spacing: -0.045em;
  text-wrap: balance;
}
.sec__lede { margin: 1.25rem 0 0; max-width: 36rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: #C9C8C3; }

/* ---------- 01 Home screen: app cards ---------- */
.apps {
  list-style: none; padding: 0; margin: clamp(2.5rem, 6vh, 4rem) 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); gap: 1rem;
}
.card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 21rem; padding: 1.5rem;
  border-radius: 2rem;
  background: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
/* Spotlight in the app's own colour, following the cursor. */
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(22rem circle at var(--mx, 50%) var(--my, -30%), color-mix(in srgb, var(--c, var(--bone)) 16%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.35s;
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

.card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.card__icon {
  width: 5.25rem; height: 5.25rem; border-radius: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--c); color: var(--ink);
}
.card__stage {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4rem 0.7rem; border-radius: 999px; background: var(--ink-3); color: var(--bone);
}
.card__name { margin: auto 0 0; padding-top: 2.5rem; font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.04em; }
.card__text { margin: 0.5rem 0 0; font-size: 0.98rem; color: #C9C8C3; }
.card__meta { display: flex; align-items: center; gap: 0.4rem; margin-top: 1.25rem; }
.chip { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.35rem 0.6rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }

.card--idea { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.card--idea:hover { box-shadow: inset 0 0 0 1.5px var(--lime); }
.card__link { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: inherit; }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card__icon--plus { background: var(--ink-3); color: var(--bone); transition: transform 0.5s var(--spring), background-color 0.2s, color 0.2s; }
.card--idea:hover .card__icon--plus { transform: rotate(90deg); background: var(--lime); color: var(--ink); }
.card__cta { font-weight: 600; color: var(--lime); }

/* Redaction: marker bars draw across the text as the card arrives. */
.redact {
  display: block; height: 0.8em; width: var(--w, 100%);
  border-radius: 0.2em; background: var(--bone);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform 0.7s var(--ease);
}
.card.is-in .redact { transform: none; }
.card.is-in .card__lines .redact:nth-child(1) { transition-delay: 0.35s; }
.card.is-in .card__lines .redact:nth-child(2) { transition-delay: 0.5s; }
.card.is-in .card__lines .redact:nth-child(3) { transition-delay: 0.65s; }
.redact--name { height: 1.1em; margin-top: 0.15em; background: var(--c); }
.card__lines { display: flex; flex-direction: column; gap: 0.45rem; margin: 1rem 0 0; }
.card__lines .redact { height: 0.55em; background: var(--ink-3); }

.card__icon .card__shackle { transition: transform 0.4s var(--spring); }
.card__icon.is-nope { animation: nope 0.45s linear; }
.card__icon.is-nope .card__shackle { transform: translateY(-2px); }

.card__peek {
  margin-left: auto; min-height: 2.75rem; padding: 0 1rem; border: 0; border-radius: 999px;
  background: var(--ink-3); color: var(--bone); font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.4s var(--spring);
}
.card__peek:hover { background: var(--c); color: var(--ink); }
.card__peek:active { transform: scale(0.92); }

/* Redacted labels on the phone's home screen. */
.app__name--redacted { color: transparent; background: var(--bone); border-radius: 3px; line-height: 1; padding: 0 0.15rem; user-select: none; }

/* Face ID fail on a client app: the lock shakes once the splash is open. */
.splash.is-denied.is-open .splash__icon { animation: nope 0.5s linear 0.55s both; }
.splash__icon svg { display: block; }

/* ---------- 02 Software update ---------- */
.update {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: start;
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
@media (max-width: 860px) { .update { grid-template-columns: minmax(0, 1fr); } }
.update__panel { position: sticky; top: 6.5rem; }
@media (max-width: 860px) { .update__panel { top: 5rem; z-index: 2; } }

.update__card {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.5rem 1rem;
  padding: 1.25rem; border-radius: 1.75rem;
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line), 0 20px 50px -20px rgba(0, 0, 0, 0.8);
}
.update__icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 0.8rem;
}
.update__info { display: flex; flex-direction: column; min-width: 0; }
.update__name { font-weight: 600; }
.update__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.update__card.is-done .update__label { color: var(--lime); }
.update__pct { font-family: var(--display); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.update__track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--ink-3); overflow: hidden; margin-top: 0.5rem; }
.update__fill { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: 4px; background: var(--lime); }
.update__note { margin: 1rem 0 0; max-width: 26rem; font-size: 0.95rem; color: var(--muted); }
@media (max-width: 860px) { .update__note { display: none; } }

.rel { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.rel__item {
  display: grid; grid-template-columns: auto auto 1fr; gap: 1rem; align-items: start;
  padding: 1.75rem 0; border-top: 1px solid var(--line);
  opacity: 0.35; transition: opacity 0.5s var(--ease);
}
.rel__item:last-child { border-bottom: 1px solid var(--line); }
.rel__item.is-done { opacity: 1; }
.rel__check {
  width: 1.9rem; height: 1.9rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px var(--ink-3); color: transparent;
  transition: background-color 0.3s, color 0.3s, box-shadow 0.3s, transform 0.5s var(--spring);
  transform: scale(0.8);
}
.rel__item.is-done .rel__check { background: var(--lime); color: var(--ink); box-shadow: none; transform: none; }
.rel__v { font-family: var(--mono); font-size: 0.85rem; padding-top: 0.25rem; color: var(--muted); min-width: 2.5rem; }
.rel__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2.25rem); letter-spacing: -0.04em; line-height: 1.1; }
.rel__body p { margin: 0.5rem 0 0; color: #C9C8C3; max-width: 30rem; }

/* ---------- 03 Settings ---------- */
.settings {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem;
  margin-top: clamp(2.5rem, 6vh, 4rem);
}
.panel { padding: 1.75rem; border-radius: 2rem; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.panel--fun { background: var(--bone); color: var(--ink); box-shadow: none; }
.panel__title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -0.04em; }
.panel__sub { margin: 0.25rem 0 1rem; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.panel--fun .panel__sub { color: #5A5A63; }
.panel__list { list-style: none; padding: 0; margin: 0; }
.panel__list li {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 0; border-top: 1px solid var(--line);
}
.panel--fun .panel__list li { border-top-color: rgba(10, 10, 12, 0.1); }
.panel__row-label { font-size: 1.05rem; font-weight: 500; }

.toggle {
  --on: var(--lime);
  position: relative; flex: none;
  width: 3.5rem; height: 2.1rem; padding: 0; border: 0; border-radius: 999px;
  background: var(--ink-3); cursor: pointer;
  transition: background-color 0.3s;
}
.panel--fun .toggle { --on: var(--ink); background: #CFCEC8; }
.toggle::after {
  content: ""; position: absolute; top: 0.2rem; left: 0.2rem;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--bone); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.45s var(--spring), width 0.2s var(--ease);
}
.toggle:active::after { width: 2.1rem; }
.toggle[aria-checked="true"] { background: var(--on); }
.toggle[aria-checked="true"]::after { transform: translateX(1.4rem); }
.toggle[aria-checked="true"]:active::after { transform: translateX(1rem); }
.panel--fun .toggle[aria-checked="true"]::after { background: var(--lime); }
.toggle.is-nope { animation: nope 0.45s linear; }
@keyframes nope {
  0%, 100% { translate: 0 0; } 20% { translate: -6px 0; } 40% { translate: 6px 0; }
  60% { translate: -4px 0; } 80% { translate: 4px 0; }
}

/* ---------- 04 About this phone ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }

.about__text { margin-top: 1.75rem; max-width: 36rem; }
.about__text p { margin: 0 0 1.1rem; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: #C9C8C3; }
.about__text p:first-child { color: var(--bone); }

.about__aside {
  display: flex; gap: 0.85rem; align-items: baseline;
  max-width: 36rem; margin: 1.5rem 0 0; padding: 1rem 1.1rem;
  border-radius: 1.25rem; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.98rem; color: #C9C8C3;
}
.about__aside-tag {
  flex: none; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.1em;
  padding: 0.25rem 0.5rem; border-radius: 999px; background: var(--lime); color: var(--ink);
}

.about__phone {
  padding: 1.25rem; border-radius: 2.25rem;
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.about__crumb {
  display: flex; gap: 0.4rem; align-items: center; margin: 0.25rem 0.5rem 1rem;
  font-size: 0.85rem; color: var(--muted);
}
.about__crumb strong { color: var(--bone); font-weight: 600; }

/* Grouped list, like a phone's Settings. */
.spec { margin: 0 0 0.85rem; border-radius: 1.25rem; background: var(--ink-3); overflow: hidden; }
.spec__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.85rem 1rem; margin-left: 0;
}
.spec__row + .spec__row { box-shadow: inset 0 1px 0 var(--line); }
.spec__row--stack { flex-direction: column; align-items: stretch; gap: 0.35rem; }
.spec dt { font-weight: 500; white-space: nowrap; }
.spec dd { margin: 0; color: var(--muted); text-align: right; }
.spec__row--stack dd { text-align: left; }

.spec__version {
  font: inherit; color: var(--muted); background: none; border: 0; padding: 0.25rem 0; cursor: pointer;
  min-height: 2.75rem; margin: -0.75rem 0; white-space: nowrap;
  transition: color 0.2s;
}
.spec__version:hover { color: var(--bone); }
.spec__version.is-tap { animation: installed 0.35s var(--spring); }
.spec__version.is-dev { color: var(--lime); }
.spec__hint { margin: 0.25rem 0.5rem 0; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.storage {
  display: flex; gap: 2px; height: 0.9rem; margin-top: 0.35rem;
  border-radius: 0.35rem; background: #2A2A31; overflow: hidden;
}
.storage__seg { display: block; height: 100%; width: 0; background: var(--c); transition: width 1.2s var(--ease); }
.storage.is-in .storage__seg { width: var(--w); }
.storage.is-in .storage__seg:nth-child(2) { transition-delay: 0.15s; }
.storage.is-in .storage__seg:nth-child(3) { transition-delay: 0.3s; }
.storage__legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin-top: 0.6rem; font-size: 0.8rem; }
.storage__legend span { display: inline-flex; align-items: center; gap: 0.4rem; }
.storage__legend i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--c); }

/* ---------- 05 Messages ---------- */
.sec--hi { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 860px) { .sec--hi { grid-template-columns: minmax(0, 1fr); } }

.chat {
  display: flex; flex-direction: column;
  border-radius: 2rem; overflow: hidden;
  background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line), 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.chat__head { display: flex; align-items: center; gap: 0.85rem; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.chat__avatar {
  width: 2.75rem; height: 2.75rem; border-radius: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 0.7rem;
}
.chat__name { display: block; font-weight: 600; }
.chat__status { display: block; font-size: 0.82rem; color: var(--muted); }

.thread {
  list-style: none; margin: 0; padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.45rem;
  min-height: 16rem; max-height: 26rem; overflow-y: auto;
}
.bubble {
  max-width: 80%; padding: 0.7rem 1rem;
  font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere;
  animation: bubble-in 0.5s var(--spring) both;
}
@keyframes bubble-in { from { opacity: 0; transform: translateY(12px) scale(0.92); } to { opacity: 1; transform: none; } }
.bubble--them { align-self: flex-start; background: var(--ink-3); border-radius: 1.3rem 1.3rem 1.3rem 0.4rem; transform-origin: 0 100%; }
.bubble--me { align-self: flex-end; background: var(--lime); color: var(--ink); border-radius: 1.3rem 1.3rem 0.4rem 1.3rem; transform-origin: 100% 100%; }
.bubble--failed { background: var(--coral); }
.receipt { align-self: flex-end; font-size: 0.72rem; color: var(--muted); margin-top: -0.15rem; }

.typing { align-self: flex-start; display: flex; gap: 0.3rem; padding: 0.85rem 1rem; border-radius: 1.3rem 1.3rem 1.3rem 0.4rem; background: var(--ink-3); }
.typing span { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--muted); animation: dot 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.quick { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0 1.25rem 1rem; }
.quick__chip {
  min-height: 2.75rem; padding: 0 1rem; border-radius: 999px; border: 0;
  background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-3);
  font-size: 0.92rem; font-weight: 500; cursor: pointer;
  transition: box-shadow 0.2s, background-color 0.2s, color 0.2s, transform 0.4s var(--spring);
}
.quick__chip:hover { box-shadow: inset 0 0 0 1.5px var(--lime); }
.quick__chip:active { transform: scale(0.94); }
.quick__chip[aria-pressed="true"] { background: var(--lime); color: var(--ink); box-shadow: none; }

.compose { display: flex; flex-direction: column; gap: 0.5rem; padding: 1rem 1.25rem 1.25rem; border-top: 1px solid var(--line); }
.compose__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.compose__email, .compose__msg {
  width: 100%; font: inherit; font-size: 1rem; color: var(--bone);
  background: var(--ink); border: 1.5px solid var(--ink-3); border-radius: 1.4rem;
  padding: 0.8rem 1.1rem;
  transition: border-color 0.2s;
}
.compose__email::placeholder, .compose__msg::placeholder { color: #7D7D86; }
.compose__email:focus, .compose__msg:focus { outline: none; border-color: var(--lime); }
.compose__row { display: flex; align-items: flex-end; gap: 0.5rem; }
.compose__msg { resize: none; min-height: 3.1rem; max-height: 9rem; line-height: 1.4; }
.compose__send {
  flex: none; width: 3.1rem; height: 3.1rem; border: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--ink); cursor: pointer;
  transition: transform 0.4s var(--spring), opacity 0.2s;
}
.compose__send:hover { transform: scale(1.06); }
.compose__send:active { transform: scale(0.9); }
.compose__send:disabled { opacity: 0.5; cursor: progress; }
.compose__error { margin: 0; min-height: 1.2em; font-size: 0.85rem; color: var(--coral); }

/* ---------- Footer ---------- */
.foot {
  max-width: 1440px; margin: clamp(6rem, 16vh, 11rem) auto 0; padding: 0 var(--gutter) 2.5rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.foot__lock {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 0.6rem;
  min-height: 2.75rem; padding: 0 1.1rem; border-radius: 999px;
  background: var(--ink-3); text-decoration: none; font-weight: 500;
  transition: transform 0.45s var(--spring), background-color 0.2s, color 0.2s;
}
.foot__lock:hover { background: var(--lime); color: var(--ink); }
.foot__mark {
  margin: 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(6rem, 27vw, 24rem); line-height: 0.82; letter-spacing: -0.07em;
  color: var(--ink-3); user-select: none;
}
.foot__mark span { color: var(--lime); }
.foot__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Toast: a notification for the whole page ---------- */
.toast {
  position: fixed; z-index: 50; left: 50%; top: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
  max-width: min(26rem, calc(100vw - 2rem));
  padding: 0.75rem 1.1rem 0.75rem 0.75rem; border-radius: 1.4rem;
  background: var(--bone); color: var(--ink);
  box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.7);
  transform: translate(-50%, -160%); opacity: 0; pointer-events: none;
  transition: transform 0.55s var(--spring), opacity 0.3s;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.toast__icon {
  flex: none; width: 2.25rem; height: 2.25rem; border-radius: 0.65rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--lime);
  font-family: var(--display); font-weight: 800; font-size: 0.55rem;
}
.toast__text { font-size: 0.95rem; font-weight: 500; }

/* ---------- Reveals ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; }
.js .reveal.is-in { animation: rise 0.9s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 0.08s); }
.reveal[data-d="1"] { --d: 1; } .reveal[data-d="2"] { --d: 2; } .reveal[data-d="3"] { --d: 3; }
.reveal[data-d="4"] { --d: 4; } .reveal[data-d="5"] { --d: 5; }

/* ---------- Reduced motion: everything lands, nothing moves. ---------- */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html:not(.force-motion) .js .reveal, html.js:not(.force-motion) .reveal { opacity: 1; }
  html:not(.force-motion) .ticker__track { animation: none; }
}
