/* ============ BASE ============ */
:root {
  --bg: #000;
  --surface: #0c0c0d;
  --surface-2: #131315;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f5f5f7;
  --text-dim: rgba(245, 245, 247, 0.55);
  --text-faint: rgba(245, 245, 247, 0.3);
  --green: #8cff00;
  --r1: #ff6b9d; --r2: #c678ff; --r3: #78d4ff;
  --r4: #7aff8e; --r5: #ffea7a; --r6: #ffb07a;
  --rainbow: linear-gradient(100deg, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5), var(--r6));
  --radius: 24px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.045em; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -0.04em; }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
em { font-style: normal; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 0.1em 0.4em; }

.rainbow-text {
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}

/* ============ SCROLL SNAP — the page steps beat by beat ============ */
html.snap { scroll-snap-type: y mandatory; }
.snap-marker {
  position: absolute;
  left: 0;
  width: 1px;
  height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  pointer-events: none;
}
.cta { scroll-snap-align: start; }
.footer { scroll-snap-align: end; }

/* ============ REVEAL / PARALLAX ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal.in { opacity: 1; transform: none; }

[data-parallax] { will-change: transform; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .wsplit .w { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ============ NAV ============ */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 16px clamp(20px, 4vw, 48px);
  background: transparent;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.68rem;
  letter-spacing: -0.02em;
}
.nav-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 2px solid transparent;
  background:
    linear-gradient(#000, #000) padding-box,
    var(--rainbow) border-box;
}
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); font-size: 0.92rem; }
.nav-links a { color: var(--text-dim); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  color: #000 !important;
  background: #fff;
  padding: 7px 16px;
  border-radius: 99px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { transform: scale(1.04); box-shadow: 0 0 24px rgba(255, 255, 255, 0.25); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 28px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.apple-logo { width: 15px; height: 18px; margin-top: -2px; flex: none; }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 8px 40px rgba(255, 255, 255, 0.22); }
.btn-ghost { border: 2px solid rgba(255, 255, 255, 0.28); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.5); transform: translateY(-2px); }

/* ============ BEATS — one thing on screen at a time ============ */
.beats { position: relative; }
.beats-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.beat {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  text-align: center;
  padding: 0 6vw;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s 0.55s;
}
.beat.active { visibility: visible; transition-delay: 0s; }
.beat h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
  max-width: 1000px;
  text-wrap: balance;
}
.beat-line {
  font-size: clamp(1.9rem, 4.4vw, 3.4rem);
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.beat-big {
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  text-wrap: balance;
}

/* word-by-word arrival: each .wsplit word animates in when its ancestor goes .active / .in */
.wsplit .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.45em);
  filter: blur(6px);
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}
.active .w, .in .w {
  opacity: 1;
  transform: none;
  filter: none;
  transition-delay: calc(var(--w) * 150ms);
}
/* element words (rainbow gradient, em accents) travel as one unit; blur breaks background-clip */
em.w, .w.rainbow-text { filter: none; }

/* letter-by-letter emphasis (hero "distracted.") */
.lsplit { white-space: nowrap; background: none; }

/* every few seconds a couple of letters flip upside down, then right themselves */
@media (prefers-reduced-motion: no-preference) {
  .active .lsplit .l:nth-child(4) { animation: letterFlip 5.2s ease-in-out 3.1s infinite; }
  .active .lsplit .l:nth-child(9) { animation: letterFlip 5.2s ease-in-out 3.35s infinite; }
}
@keyframes letterFlip {
  0%, 100% { transform: none; }
  5%, 13% { transform: rotate(180deg); }
  18% { transform: none; }
}
.wsplit .l {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  background-image: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.active .l, .in .l {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--w) * 150ms + var(--l) * 110ms);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.4rem;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  translate: -50% 0;
  width: 22px; height: 36px;
  border: 1.5px solid var(--text-faint);
  border-radius: 12px;
}
.scroll-hint span {
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--text-dim);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0; }
}

/* ============ MAC WINDOW MOCK ============ */
.mac-window {
  position: relative;
  background: #050506;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 0.5px rgba(255, 255, 255, 0.04) inset;
  text-align: left;
}
.traffic-lights { display: flex; gap: 7px; padding: 0 18px 12px; }
.traffic-lights i { width: 11px; height: 11px; border-radius: 50%; background: #2a2a2c; }
.window-title {
  padding: 0 20px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.task-list { list-style: none; }
.task {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.task-list.small .task { padding: 9px 18px; font-size: 0.95rem; }
.check {
  flex: none;
  width: 17px; height: 17px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}
.task-list.small .check { width: 14px; height: 14px; }
.t-title { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task.frog .t-title { color: var(--green); font-weight: 700; }
.task.frog .check { border-color: var(--green); }
.frog-mark { font-size: 0.85em; }
.task.dim1 { opacity: 0.55; }
.chip {
  font-size: 0.72em;
  font-weight: 600;
  font-style: normal;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: 1px;
}

/* ============ FOCUS SCROLL STORY (full viewport) ============ */
.focus-scroll { position: relative; height: 1400svh; }
.focus-sticky.arrived { opacity: 1; }
.focus-sticky {
  opacity: 0;
  transition: opacity 0.9s ease;
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: linear-gradient(165deg, #0e0e12, #060608);
}
.desktop { position: absolute; inset: 0; }

.menubar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 30px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}
.mb-apple { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.mb-item { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.18); }
.mb-item.w1 { width: 38px; } .mb-item.w2 { width: 26px; } .mb-item.w3 { width: 46px; }
.mb-right { margin-left: auto; display: flex; }

.fake-window.main-window {
  position: absolute;
  top: 30px; left: 0; right: 0; bottom: 0;
  background: #0e0e11;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: top 0.9s cubic-bezier(0.16, 1, 0.3, 1), left 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    right 0.9s cubic-bezier(0.16, 1, 0.3, 1), bottom 0.9s cubic-bezier(0.16, 1, 0.3, 1),
    border-radius 0.9s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
}
.s-frame .fake-window.main-window {
  top: 78px; left: 26px; right: 26px; bottom: 26px;
  border-radius: 14px;
  opacity: 0.3;
}
.s-working .fake-window.main-window { opacity: 1; }
.menubar { transition: opacity 0.6s ease; }
.s-frame .menubar { opacity: 0.4; }
.s-working .menubar { opacity: 1; }
.fkw-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}
.fkw-dots { display: flex; gap: 7px; }
.fkw-dots i { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.fkw-pill {
  flex: 0 1 320px;
  height: 20px;
  margin: 0 auto;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
}
.fkw-body { flex: 1; display: flex; min-height: 0; }
.fkw-side {
  width: 20%;
  max-width: 220px;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.fkw-side i { display: block; height: 7px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); }
.fkw-side i.w80 { width: 80%; } .fkw-side i.w70 { width: 70%; }
.fkw-side i.w65 { width: 65%; } .fkw-side i.w60 { width: 60%; } .fkw-side i.w50 { width: 50%; }
.fkw-main { flex: 1; padding: 24px 28px; }
.fk-line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); margin-bottom: 14px; }
.fk-line.tall { height: 14px; margin-bottom: 20px; background: rgba(255, 255, 255, 0.09); }
.fk-line.w80 { width: 80%; } .fk-line.w75 { width: 75%; } .fk-line.w70 { width: 70%; }
.fk-line.w65 { width: 65%; } .fk-line.w55 { width: 55%; }
.fk-line.w45 { width: 45%; } .fk-line.w40 { width: 40%; }

.mac-window.in-screen {
  position: absolute;
  top: 46%; left: 50%;
  width: min(360px, 74vw);
  padding: 14px 0 16px;
  border-radius: 16px;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.s-clear .mac-window.in-screen { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.s-frame .mac-window.in-screen { opacity: 0; transform: translate(-50%, -50%) scale(0.9); }
.mac-window.in-screen .traffic-lights { padding: 0 16px 10px; }
.mac-window.in-screen .traffic-lights i { width: 9px; height: 9px; background: #333; }
.mac-window.in-screen .traffic-lights i:nth-child(1) { background: #ff5f57; }
.mac-window.in-screen .traffic-lights i:nth-child(2) { background: #febc2e; }
.mac-window.in-screen .traffic-lights i:nth-child(3) { background: #28c840; }
.mac-window.in-screen .window-title { padding: 0 18px 8px; font-size: 0.7rem; }

/* start button inside the list window — the row is height 0 until it slams in */
.start-row {
  display: flex;
  height: 0;
  padding: 0 16px;
  transition: height 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.s-button .start-row { height: 62px; }
.s-button .start-btn { animation: slamIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both; }
@keyframes slamIn {
  0% { opacity: 0; transform: scale(2.6); }
  55% { opacity: 1; transform: scale(0.96); }
  75% { transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
.start-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  padding: 11px 0;
  border-radius: 99px;
  cursor: default;
  border: 2px solid transparent;
  background:
    linear-gradient(#0a0a0b, #0a0a0b) padding-box,
    var(--rainbow) border-box;
  opacity: 0;
  transform: scale(2.6);
  transition: filter 0.15s;
}
.start-btn svg { width: 15px; height: 15px; }
.start-btn.pressed { filter: brightness(1.7); }

/* mouse cursor */
.cursor {
  position: absolute;
  top: 0; left: 0;
  width: 26px; height: 26px;
  z-index: 6;
  opacity: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
  pointer-events: none;
  transition: transform 0.95s cubic-bezier(0.5, 0.05, 0.2, 1), opacity 0.3s ease;
}

/* full-screen focus frame */
/* ---- the chaos: buried list, piling windows, notifications, a call ---- */
.todo-window {
  position: absolute;
  top: 44%; left: 50%;
  width: min(340px, 72vw);
  padding: 14px 0 18px;
  border-radius: 16px;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.75);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.s-list .todo-window { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.dw {
  position: absolute;
  background: #101014;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  overflow: hidden;
  opacity: 0;
  transform: translateY(70px) scale(0.96);
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.dw-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.dw-tab { width: 84px; height: 10px; border-radius: 5px; background: rgba(255, 255, 255, 0.14); }
.dw-tab.short { width: 46px; background: rgba(255, 255, 255, 0.07); }
.dw-title-line { width: 110px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.dw-title-line.short { width: 70px; }
.dw-body { padding: 18px 18px 8px; }
.dw-body .fk-line { margin-bottom: 12px; }
.dw-body.rows { display: flex; flex-direction: column; gap: 12px; padding-bottom: 16px; }
.dw-row { display: flex; align-items: center; gap: 10px; }
.dw-row i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); flex: none; }
.dw-row.unread i { background: var(--r3); }
.dw-row b { height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); }
.dw-row b.w60 { width: 60%; } .dw-row b.w70 { width: 70%; }
.dw-row b.w75 { width: 75%; } .dw-row b.w80 { width: 80%; }
.dw-body.bubbles { display: flex; flex-direction: column; gap: 9px; padding-bottom: 16px; }
.bubble { display: block; height: 16px; border-radius: 9px; }
.bubble.them { background: rgba(255, 255, 255, 0.12); align-self: flex-start; }
.bubble.me { background: rgba(10, 132, 255, 0.55); align-self: flex-end; }
.bubble.w45 { width: 45%; } .bubble.w55 { width: 55%; }
.bubble.w60 { width: 60%; } .bubble.w70 { width: 70%; }

.dw-browser { top: 12%; left: 7%; width: 54%; height: 62%; }
.dw-mail { top: 22%; right: 6%; width: 42%; height: 52%; }
.dw-chat { bottom: 9%; left: 30%; width: 32%; height: 44%; }

.s-away .dw-browser { opacity: 1; transform: none; }
.s-pile .dw-mail { opacity: 1; transform: none; transition-delay: 0.1s; }
.s-switch .dw-mail { opacity: 1; transform: none; transition-delay: 0.25s; }
.s-pile .dw-chat { opacity: 1; transform: none; transition-delay: 0.35s; }

/* notifications sliding in top-right */
.notifs {
  position: absolute;
  top: 44px; right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(300px, 78vw);
  z-index: 5;
}
.notif {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(40, 40, 46, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  transform: translateX(calc(100% + 24px));
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.notif-icon {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  flex: none;
}
.notif-icon.slack { background: #4a154b; color: #fff; }
.notif-icon.msg { background: #34c759; }
.notif-icon.cal { background: #fff; }
.notif-body { display: flex; flex-direction: column; font-size: 0.8rem; color: var(--text-dim); min-width: 0; }
.notif-body b { color: var(--text); font-size: 0.82rem; }
.s-pile .n1 { transform: none; transition-delay: 0.55s; }
.s-pile .n2 { transform: none; transition-delay: 1.15s; }
.s-call .n3 { transform: none; transition-delay: 0.5s; }
.s-distract .n1 { transform: none; transition-delay: 0.3s; }
.s-distract .n2 { transform: none; transition-delay: 1.5s; }

/* incoming call card */
.call {
  position: absolute;
  top: 12%; left: 50%;
  transform: translate(-50%, -30px) scale(0.8);
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 16px;
  border-radius: 18px;
  background: rgba(46, 46, 52, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6);
  opacity: 0;
  z-index: 6;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.s-call .call { opacity: 1; transform: translate(-50%, 0) scale(1); transition-delay: 0.15s; }
.call-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #c678ff, #78d4ff);
  color: #000;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.call-text { display: flex; flex-direction: column; font-size: 0.8rem; color: var(--text-dim); }
.call-text b { color: var(--text); font-size: 0.92rem; }
.call-btns { display: flex; gap: 9px; margin-left: 8px; }
.cb {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #fff;
}
.cb-decline { background: #ff453a; }
.cb-accept { background: #30d158; animation: callPulse 1.4s ease-in-out infinite; }
@keyframes callPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5); }
  55% { box-shadow: 0 0 0 9px rgba(48, 209, 88, 0); }
}

/* an hour later: the lights go down on the whole mess */
.desktop { transition: filter 0.9s ease; }
.s-lost .desktop { filter: brightness(0.42) saturate(0.45); }

.frame { position: absolute; inset: 0; pointer-events: none; }
.frame-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 56px;
  background: var(--rainbow);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #000;
  transform: translateY(-101%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.s-frame .frame-top { transform: translateY(0); }
.frame-task {
  display: grid;
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.frame-task .ft { grid-area: 1 / 1; text-align: center; transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
#ftNext { opacity: 0; transform: translateY(14px); }
.s-swapped #ftFirst { opacity: 0; }
.s-swapped #ftNext { opacity: 1; transform: none; transition-delay: 0.15s; }
.frame-actions {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
}
.fb {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: 99px;
  padding: 6px 16px;
  transition: transform 0.12s, filter 0.12s;
}
.fb-skip { background: rgba(0, 0, 0, 0.18); color: #000; }
.fb-done { background: #000; color: #fff; }
.fb.pressed { transform: scale(0.92); filter: brightness(1.8); }
.frame-timer {
  font-weight: 600;
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
}
.frame-edge { position: absolute; }
.frame-edge { transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, opacity 0.4s ease 0.65s; }
.s-frame .edge-left, .s-frame .edge-right { transform: scaleY(1); }
.s-frame .edge-bottom { opacity: 1; }
.edge-left {
  left: 0; top: 56px; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--r1), var(--r2), var(--r3), var(--r4));
  transform-origin: top;
  transform: scaleY(0);
}
.edge-right {
  right: 0; top: 56px; bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--r6), var(--r5), var(--r4), var(--r3));
  transform-origin: top;
  transform: scaleY(0);
}
.edge-bottom {
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--r4), var(--r3), var(--r2), var(--r1), var(--r6), var(--r5), var(--r4));
  opacity: 0;
}

/* celebration */
.confetti { position: absolute; inset: 0; overflow: hidden; z-index: 7; pointer-events: none; }
.confetti span {
  position: absolute;
  top: -4vh;
  width: 10px; height: 10px;
  border-radius: 2px;
  opacity: 0;
}
.celebrate .confetti span {
  animation: confettiFall var(--dur) cubic-bezier(0.3, 0, 0.8, 1) var(--delay) both;
}
@keyframes confettiFall {
  0% { transform: translate(0, 0) rotate(0deg); opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translate(var(--dx), 112vh) rotate(var(--rot)); opacity: 0; }
}
.congrats {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  z-index: 8;
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--rainbow);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  pointer-events: none;
}
.celebrate .congrats { animation: congratsPop 3s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes congratsPop {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }
  8% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
  15% { transform: translate(-50%, -50%) scale(1); }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.98); }
}

/* stage text */
.stage-text {
  position: absolute;
  left: 50%;
  bottom: clamp(48px, 10svh, 110px);
  transform: translateX(-50%);
  width: min(880px, 92vw);
  text-align: center;
  pointer-events: none;
  z-index: 9;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.s-center .stage-text { transform: translateX(-50%) translateY(-38svh); }
.st {
  position: absolute;
  inset: auto 0 0;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  letter-spacing: -0.035em;
  text-wrap: balance;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.9), 0 1px 12px rgba(0, 0, 0, 0.8);
  visibility: hidden;
  transition: visibility 0s 0.55s;
}
.st.active { visibility: visible; transition-delay: 0s; }
.st em { font-style: normal; color: var(--r1); }

/* ============ FEATURE SHOWCASE — one per screen ============ */
.features-scroll { position: relative; height: 700svh; }
.features-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 5.5vh, 60px);
  overflow: hidden;
}
.feat-texts {
  position: relative;
  width: min(940px, 92vw);
  height: clamp(150px, 24vh, 220px);
  text-align: center;
}
.feat-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s 0.55s;
}
.feat-text.active { visibility: visible; transition-delay: 0s; }
.feat-text h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); letter-spacing: -0.04em; text-wrap: balance; }
.feat-visual { position: relative; flex: none; }
.feat-window {
  width: min(400px, 90vw);
  padding: 16px 0 20px;
  border-radius: 18px;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.feat-window.dimmed { opacity: 0; transform: scale(0.96); }
.feat-custom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.feat-custom.active { opacity: 1; transform: none; }

/* quick add: a looping demo — keys hit, input pops over a big app window,
   the task types itself, enter, a check, gone */
.qa-scene { position: relative; width: 100%; max-width: 430px; height: 100%; min-height: 340px; }
.qa-desktop {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #0e0e11;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  overflow: hidden;
  filter: brightness(0.7);
}
.qa-desktop .dw-body { flex: 1; }
.qa-float {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 82%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.qa-float .quickadd-mock { width: 100%; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8); }

/* the chord press */
.qa-keys kbd { transition: transform 0.12s ease, background 0.12s ease, border-bottom-width 0.12s ease; }
.qa-scene.press .qa-keys kbd {
  transform: translateY(2px);
  background: rgba(255, 255, 255, 0.16);
  border-bottom-width: 1px;
  color: #fff;
}

/* the input pops in, types, checks, and goes */
.qa-live {
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 1.4em;
}
.qa-scene.showing .qa-live { opacity: 1; transform: none; }
.qa-check {
  position: absolute;
  right: 13px;
  top: 50%;
  translate: 0 -50%;
  color: #7aff8e;
  font-weight: 700;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.qa-scene.entered .qa-check { opacity: 1; transform: none; }
.qa-scene.entered #qaCaret { display: none; }
.qa-scene.entered #qaText { opacity: 0.45; }

/* sync devices */
.sync-scene { display: flex; align-items: center; justify-content: center; width: 100%; }
.dev2 {
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: #0a0a0b;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}
.dev2 i { display: block; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.18); }
.dev2 i.frogline { background: rgba(140, 255, 0, 0.55); }
.dev2 i.l80 { width: 80%; } .dev2 i.l70 { width: 70%; }
.dev2 i.l60 { width: 60%; } .dev2 i.l55 { width: 55%; }
.dev2 i.frogline { width: 65%; }
.mac2 { width: 190px; height: 130px; border-radius: 10px; padding: 18px 16px; }
.phone2 { width: 66px; height: 124px; border-radius: 12px; padding: 14px 9px; gap: 9px; }
.phone2 i { height: 6px; }
.sync-scene .sync-line { flex: 0 1 110px; }

/* type a time → get a timer */
#parsedChip { display: none; }
.feat-ui.parsed #parsedChip { display: inline-block; animation: chipPop 0.35s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes chipPop { from { transform: scale(0.5); opacity: 0; } to { transform: none; opacity: 1; } }
.feat-ui.parsed #typeCaret { display: none; }
.timer-wrap { opacity: 0; transform: translateY(8px); transition: opacity 0.45s, transform 0.45s; }
.feat-ui.parsed .timer-wrap { opacity: 1; transform: none; }
.feat-panels { position: relative; height: 340px; }
.feat-ui {
  position: absolute;
  inset: 0;
  padding-top: 4px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.feat-ui.active { opacity: 1; transform: none; }

.day-label {
  padding: 12px 20px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.feat-ui .ai-prompt { margin: 6px 18px 4px; }
.feat-ui .when-pills { padding: 8px 18px 12px; }
.feat-ui .keys { padding: 16px 18px 14px; }
.feat-ui .quickadd-mock { margin: 6px 18px; width: auto; max-width: none; }
.feat-ui .sync-visual { padding: 48px 0 10px; }
.feat-timer {
  font-variant-numeric: tabular-nums;
  font-size: 3.4rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  padding-top: 30px;
}
.feat-timer-hint { text-align: center; color: var(--text-faint); font-size: 0.85rem; }
.chip.recur { color: var(--r3); border-color: rgba(120, 212, 255, 0.25); }

/* shared feature-visual pieces */
.ai-prompt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 99px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
}
.ai-wand { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.when-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.when-pill {
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 7px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
}
.when-pill.active { background: #fff; color: #000; border-color: #fff; font-weight: 600; }

.keys { display: flex; gap: 6px; }
kbd {
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 8px;
  background: var(--surface-2);
  padding: 4px 10px;
  color: var(--text-dim);
}
.quickadd-mock {
  position: relative;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid transparent;
  background-clip: padding-box;
}
.quickadd-mock::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 13px;
  padding: 1px;
  background: var(--rainbow);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.qa-caret {
  display: inline-block;
  width: 2px; height: 1em;
  background: #fff;
  margin-right: 2px;
  vertical-align: -2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.sync-visual { display: flex; align-items: center; width: 100%; justify-content: center; }
.dev { border: 1.5px solid rgba(255, 255, 255, 0.35); display: block; }
.dev-mac { width: 74px; height: 48px; border-radius: 6px; }
.dev-phone { width: 26px; height: 48px; border-radius: 7px; }
.sync-line {
  flex: 0 1 90px;
  height: 0;
  border-top: 2px dashed rgba(255, 255, 255, 0.2);
  margin: 0 12px;
  position: relative;
}
.sync-line::after {
  content: "";
  position: absolute;
  top: -4px; left: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--r3);
  box-shadow: 0 0 10px var(--r3);
  animation: syncDot 2.4s linear infinite;
}
@keyframes syncDot {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 6px); opacity: 0; }
}


/* ============ CTA ============ */
.cta {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px;
  overflow: hidden;
}
.cta h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.04em; }
.cta-glow {
  position: absolute;
  bottom: -55%;
  left: 50%;
  translate: -50% 0;
  width: 1200px; height: 800px;
  background: radial-gradient(ellipse at 50% 85%, rgba(198, 120, 255, 0.03), transparent 60%);
  pointer-events: none;
}
.cta-inner { position: relative; }
.cta-icon {
  width: 88px; height: 88px;
  border-radius: 22px;
  margin-bottom: 28px;
  border: 3px solid transparent;
  background:
    linear-gradient(#000, #000) padding-box,
    var(--rainbow) border-box;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(198, 120, 255, 0.12);
}
.cta p { color: var(--text-dim); margin-top: 0.9rem; }
.cta .hero-actions { margin-top: 2.2rem; }

/* ============ FLOATING ESCAPE HATCH ============ */
.float-nav {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 60;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.float-nav.show { opacity: 1; transform: none; pointer-events: auto; }
.fn-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  background: rgba(24, 24, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.fn-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); transform: translateY(-2px); }
.fn-btn svg { width: 17px; height: 17px; }

/* ============ LEGAL ============ */
.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 150px 24px 100px;
}
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal-updated { color: var(--text-faint); font-size: 0.9rem; margin-top: 0.8rem; }
.legal-tldr {
  margin: 2.2rem 0 0;
  padding: 22px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}
.legal-tldr em { color: var(--text); font-weight: 600; }
.legal h2 {
  font-size: 1.3rem;
  margin: 2.6rem 0 0.7rem;
}
.legal p, .legal li { color: var(--text-dim); }
.legal p + p { margin-top: 0.8rem; }
.legal ul { margin: 0.8rem 0 0 1.2rem; display: grid; gap: 0.8rem; }
.legal li strong, .legal p strong { color: var(--text); font-weight: 600; }
.legal a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.3); }
.legal a:hover { text-decoration-color: #fff; }

/* ============ FOOTER ============ */
.footer {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px 44px;
  font-size: 0.85rem;
  color: var(--text-faint);
}
.footer a { color: var(--text-faint); transition: color 0.2s; }
.footer a:hover { color: var(--text); }
.footer-dot { opacity: 0.5; }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .feat-window { width: min(340px, 86vw); }
  .feat-custom { padding: 0 6vw; }
  .feat-panels { height: 280px; }
  .dw-browser { left: 4%; width: 70%; }
  .dw-mail { right: 3%; width: 56%; }
  .dw-chat { left: 14%; width: 52%; }
}
@media (max-width: 640px) {
  .frame-top { height: 46px; justify-content: flex-start; padding-left: 14px; }
  .frame-task { font-size: 0.9rem; }
  .frame-timer { display: none; }
  .frame-actions { right: 8px; }
  .fb { padding: 4px 11px; font-size: 0.72rem; }
  .edge-left, .edge-right { top: 46px; width: 5px; }
  .edge-bottom { height: 5px; }
  .s-frame .fake-window.main-window { top: 64px; left: 16px; right: 16px; bottom: 16px; }
  .stage-text { bottom: 40px; }
}
