/* The page's colour is three animatable numbers (OKLCH lightness, chroma, hue), so a change
   of mood swings around the colour wheel and stays vivid, instead of fading through grey. */
@property --ml { syntax: "<number>"; inherits: true; initial-value: 0.5; }
@property --mc { syntax: "<number>"; inherits: true; initial-value: 0.27; }
@property --mh { syntax: "<number>"; inherits: true; initial-value: 293; }

:root {
  --violet: #7f22fe;
  --violet-deep: #4b0fb0;
  --violet-glow: #b27bff;
  --ink: #120d18;
  --paper: #ffffff;
  --muted: rgba(255, 255, 255, 0.74);
  --glass: rgba(255, 255, 255, 0.14);
  --glass-line: rgba(255, 255, 255, 0.28);
  --mx: 50vw;
  --my: 40vh;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  --bg-a: oklch(calc(var(--ml) + 0.07) var(--mc) var(--mh));
  --bg-b: oklch(var(--ml) var(--mc) var(--mh));
  --bg-c: oklch(calc(var(--ml) - 0.15) calc(var(--mc) * 0.9) var(--mh));
  background: radial-gradient(120% 90% at 50% 20%, var(--bg-a) 0%, var(--bg-b) 45%, var(--bg-c) 100%) fixed;
  transition: --ml 1.6s ease, --mc 1.6s ease, --mh 1.6s ease;
  color: var(--paper);
  font: 400 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Light that follows the cursor. */
.spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(38vmax 38vmax at var(--mx) var(--my), rgba(214, 180, 255, 0.45), transparent 70%);
  mix-blend-mode: soft-light;
  z-index: 0;
}

.grain {
  position: fixed;
  inset: -50%;
  pointer-events: none;
  opacity: 0.07;
  z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 40px);
}

.bar { transition: backdrop-filter 0.3s, box-shadow 0.3s; }
.bar.scrolled {
  background: color-mix(in srgb, var(--bg-b) 62%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font: 700 18px/1 Inter, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85);
}

.bar-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px);
  transition: background 0.2s;
}
.bar-link:hover { background: rgba(255, 255, 255, 0.24); }

main { position: relative; z-index: 1; }

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

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  padding: 72px 16px 7vh;
}

.scene {
  position: relative;
  width: min(62vmin, 520px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.mascot {
  all: unset;
  position: relative;
  z-index: 2;
  width: 100%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mascot {
  animation: drop-in 1.1s cubic-bezier(0.25, 1.4, 0.45, 1) 0.15s backwards, breathe 4.5s ease-in-out 1.3s infinite;
}
@keyframes drop-in {
  from { opacity: 0; translate: 0 -40vh; scale: 0.7; }
  60% { opacity: 1; }
}
@keyframes breathe {
  50% { scale: 1.025 0.985; }
}
.mascot:focus-visible { outline: 3px solid rgba(255, 255, 255, 0.8); outline-offset: 8px; border-radius: 40%; }

.stage {
  display: block;
  transform-style: preserve-3d;
  will-change: transform;
  filter: drop-shadow(0 16px 22px rgba(30, 5, 70, 0.3));
}
.stage svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Easter egg: the dance. Individual transform properties, so the pointer-follow tilt
   (set on `transform`) keeps working underneath. */
.scene.dancing .stage { animation: dance 2.4s cubic-bezier(0.35, 0, 0.3, 1); }
@keyframes dance {
  0% { translate: 0 0; rotate: 0deg; scale: 1 1; }
  7% { translate: 0 -34px; rotate: -8deg; scale: 0.94 1.08; }
  14% { translate: 0 0; rotate: 0deg; scale: 1.12 0.88; }
  22% { translate: -26px -30px; rotate: -16deg; scale: 0.96 1.05; }
  30% { translate: -8px 0; rotate: -4deg; scale: 1.1 0.9; }
  38% { translate: 26px -30px; rotate: 16deg; scale: 0.96 1.05; }
  46% { translate: 8px 0; rotate: 4deg; scale: 1.1 0.9; }
  52% { translate: 0 0; rotate: 0deg; scale: 1.14 0.86; }
  66% { translate: 0 -64px; rotate: 360deg; scale: 0.92 1.1; }
  78% { translate: 0 0; rotate: 360deg; scale: 1.18 0.82; }
  86% { translate: 0 -14px; rotate: 360deg; scale: 0.95 1.06; }
  93% { translate: 0 0; rotate: 360deg; scale: 1.05 0.96; }
  100% { translate: 0 0; rotate: 360deg; scale: 1 1; }
}
.scene.dancing .shadow { animation: dance-shadow 2.4s cubic-bezier(0.35, 0, 0.3, 1); }
@keyframes dance-shadow {
  7%, 22%, 38% { scale: 0.75 0.8; opacity: 0.6; }
  14%, 30%, 46% { scale: 1.1 1; opacity: 1; }
  66% { scale: 0.55 0.6; opacity: 0.35; }
  78% { scale: 1.15 1; opacity: 1; }
}
.scene.dancing .chip { animation: chip-bop 0.4s ease-in-out 6 alternate; }
.scene.dancing .c2, .scene.dancing .c4 { animation-delay: 0.2s; }
@keyframes chip-bop {
  to { margin-top: -14px; rotate: 4deg; }
}
.note {
  position: absolute;
  left: calc(50% + var(--x));
  top: 30%;
  z-index: 4;
  color: #fff;
  font: 800 clamp(22px, 3.2vmin, 34px)/1 Inter, system-ui, sans-serif;
  text-shadow: 0 4px 14px rgba(30, 0, 80, 0.35);
  pointer-events: none;
  animation: note-float 1.8s ease-out forwards;
}
@keyframes note-float {
  0% { opacity: 0; translate: 0 10px; scale: 0.5; rotate: -10deg; }
  20% { opacity: 1; scale: 1.1; }
  100% { opacity: 0; translate: var(--drift) -120px; scale: 0.9; rotate: 12deg; }
}

.shadow {
  animation: shadow-in 1.1s ease 0.15s backwards, shadow-breathe 4.5s ease-in-out 1.3s infinite;
  position: absolute;
  bottom: 8.5%;
  left: 47%;
  width: 50%;
  height: 6%;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(25, 0, 60, 0.5), rgba(25, 0, 60, 0.18) 60%, transparent);
  filter: blur(2px);
  z-index: 1;
  will-change: transform;
}

@keyframes shadow-in {
  from { opacity: 0; scale: 0.3 1; }
}
@keyframes shadow-breathe {
  50% { scale: 1.04 0.94; opacity: 0.85; }
}

.chip {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 10px;
  border-radius: 14px;
  white-space: nowrap;
  font-size: clamp(12px, 1.6vmin, 15px);
  font-weight: 500;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(40, 5, 90, 0.28);
  translate: calc(-50% + var(--x)) calc(-50% + var(--y));
  will-change: transform;
  animation: chip-in 0.8s cubic-bezier(0.3, 1.5, 0.5, 1) backwards, float 7s ease-in-out infinite;
  animation-delay: var(--in), var(--bob);
  transition: opacity 0.35s ease, scale 0.35s ease, filter 0.35s ease;
}
.c1 { --x: -40vmin; --y: -19vmin; --in: 1.05s; --bob: 0s; }
.c2 { --x: 36vmin; --y: -25vmin; --in: 1.2s; --bob: -2s; }
.c3 { --x: 40vmin; --y: 12vmin; --in: 1.35s; --bob: -4s; }
.c4 { --x: -38vmin; --y: 17vmin; --in: 1.5s; --bob: -5.5s; }

@keyframes chip-in {
  from { opacity: 0; scale: 0.4; filter: blur(6px); }
}

/* A chip being ticked off: the circle fills, the text is struck through, then it drifts away. */
.chip .label { position: relative; }
.chip .label::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 55%;
  height: 2px;
  border-radius: 2px;
  background: #7c7390;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease 0.15s;
}
.chip.done .label { color: #8a8398; transition: color 0.3s 0.2s; }
.chip.done .label::after { transform: scaleX(1); }
.chip.done .tick { animation: tick-pop 0.45s cubic-bezier(0.3, 1.8, 0.5, 1); }
.chip.away { opacity: 0; scale: 0.6; filter: blur(4px); }
.chip em { font-style: normal; color: #b45309; font-weight: 600; font-variant-numeric: tabular-nums; }

@keyframes float {
  50% { margin-top: -10px; }
}

.tick {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #c9c3d3;
  flex: none;
  transition: background-color 0.2s, border-color 0.2s;
}
@keyframes tick-pop {
  50% { scale: 1.35; }
}
.chip.done .tick {
  border-color: #10b981;
  background: #10b981 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/12px no-repeat;
}

.copy {
  text-align: center;
  max-width: 760px;
}

h1 {
  margin: 0;
  font: 800 clamp(34px, 5.6vw, 70px)/1.04 Inter, system-ui, sans-serif;
  font-optical-sizing: auto;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

h1 .word {
  display: inline-block;
  animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
  animation-delay: calc(0.55s + var(--i) * 0.06s);
}
@keyframes rise {
  from { opacity: 0; translate: 0 0.6em; rotate: 4deg; filter: blur(8px); }
}
.copy > p,
.actions {
  animation: fade-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
.copy > p { animation-delay: 1.05s; }
.actions { animation-delay: 1.2s; }
.bar { animation: fade-down 0.8s ease 0.3s backwards; }
@keyframes fade-up {
  from { opacity: 0; translate: 0 18px; }
}
@keyframes fade-down {
  from { opacity: 0; translate: 0 -14px; }
}

.copy > p {
  margin: 18px auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s cubic-bezier(0.3, 1.5, 0.5, 1), background 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn, .bar-link { gap: 10px; }
.i { width: 20px; height: 20px; flex: none; }
.btn .i { margin-top: -2px; }
.bar-link { display: inline-flex; align-items: center; gap: 7px; }
.bar-link .i { width: 16px; height: 16px; }
.req {
  margin: 14px 0 0 !important;
  font-size: 13px !important;
  color: rgba(255, 255, 255, 0.6) !important;
  animation: fade-up 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 1.3s backwards;
}
.btn.primary {
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 14px 34px rgba(20, 0, 50, 0.4);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(20, 0, 50, 0.5); }
.btn.primary { position: relative; overflow: hidden; isolation: isolate; }
.btn.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(178, 123, 255, 0.55) 50%, transparent 65%);
  translate: -110% 0;
}
.btn.primary:hover::after { transition: translate 0.7s ease; translate: 110% 0; }
.btn.ghost {
  color: var(--paper);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(10px);
}
.btn.ghost:hover { background: rgba(255, 255, 255, 0.24); }

.fine { font-size: 14px !important; color: var(--paper) !important; }

/* ---------- Background doodles ---------- */

.doodles {
  position: absolute;
  inset: 0 0 auto 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.doodle {
  position: absolute;
  color: rgba(255, 255, 255, 0.22);
  animation: doodle-drift var(--dur, 14s) ease-in-out var(--delay, 0s) infinite alternate;
  will-change: transform;
}
.doodle svg { display: block; width: 100%; height: 100%; overflow: visible; }
.doodle path, .doodle circle { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes doodle-drift {
  from { translate: 0 0; rotate: var(--r0, -6deg); }
  to { translate: var(--dx, 12px) var(--dy, -16px); rotate: var(--r1, 6deg); }
}

/* ---------- Sections ---------- */

section { position: relative; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid var(--glass-line);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font: 800 clamp(30px, 4.4vw, 52px)/1.05 Inter, system-ui, sans-serif;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p, .feature-text p, .private-card p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.8vw, 18px);
  text-wrap: pretty;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  margin: 0 2px;
  padding: 0 6px;
  border-radius: 7px;
  background: var(--paper);
  color: var(--ink);
  font: 700 13px/1 Inter, sans-serif;
  box-shadow: 0 3px 0 rgba(20, 0, 50, 0.3);
  vertical-align: 2px;
}

/* Text beside a mock, alternating sides. */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  max-width: 1120px;
  margin: 0 auto;
  padding: 14vh 24px;
}
.feature.flip .feature-text { order: 2; }

.ticks { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.ticks li::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  background: #10b981 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center/13px no-repeat;
}

/* Mock windows: white cards like the app. */
.mock {
  position: relative;
  color: var(--ink);
  background: var(--paper);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(30, 0, 80, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.capture { padding: 18px; rotate: -1.5deg; }
.capture-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 58px;
  padding: 0 16px;
  border-radius: 16px;
  background: #f4f1f8;
  font-size: 19px;
  font-weight: 500;
}
.capture-plus {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--violet);
  color: #fff;
  font-weight: 700;
}
.typed { white-space: nowrap; overflow: hidden; }
.caret { width: 2px; height: 24px; margin-left: -10px; background: var(--violet); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.capture-chips { display: flex; gap: 8px; min-height: 30px; margin: 14px 4px 0; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  scale: 0.7;
  transition: opacity 0.3s, scale 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.pill.show { opacity: 1; scale: 1; }
.pill.amber { background: #fef3c7; color: #92400e; }
.pill.violet { background: #ede4ff; color: #5b21b6; }
.capture-hint { display: flex; justify-content: space-between; margin: 16px 4px 2px; font-size: 13px; color: #857d93; }
.key { padding: 2px 8px; border-radius: 6px; background: #efebf5; font-weight: 600; color: #5b536a; }

/* Psychology grid */
.psych { max-width: 1120px; margin: 0 auto; padding: 12vh 24px; }
.methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.method {
  padding: 26px;
  border-radius: 24px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s, border-color 0.3s;
}
.method.in:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.19); border-color: rgba(255, 255, 255, 0.4); }
.method h3 { margin: 16px 0 6px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.method p { margin: 0; color: var(--muted); font-size: 15px; }
.method-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--violet);
  box-shadow: 0 5px 0 rgba(20, 0, 50, 0.22);
}
.method-icon svg { width: 24px; height: 24px; }
.method.in:hover .method-icon { animation: wiggle 0.6s ease; }
@keyframes wiggle {
  25% { rotate: -10deg; }
  75% { rotate: 8deg; }
}

/* Calendar mock */
.agenda { padding: 20px 20px 96px; rotate: 1.5deg; }
.agenda-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 12px; font-size: 18px; }
.agenda-head span { font-size: 13px; color: #857d93; }
.event {
  display: grid;
  grid-template-columns: 52px 4px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  font-weight: 600;
}
.event + .event { margin-top: 4px; }
.event .time { font-size: 14px; color: #857d93; font-variant-numeric: tabular-nums; }
.bar-c { width: 4px; height: 34px; border-radius: 4px; }
.bar-c.sky { background: #0ea5e9; }
.bar-c.violet { background: var(--violet); }
.bar-c.amber { background: #f59e0b; }
.event small { display: block; font-size: 12px; font-weight: 500; color: #857d93; }
.event.now { background: #f4eeff; }
.event.now small { color: #b45309; font-weight: 600; }
.done-mark { color: #10b981; font-weight: 800; }
.join {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--violet);
  color: #fff;
  font-size: 13px;
  animation: join-pulse 2s ease-in-out infinite;
}
@keyframes join-pulse {
  50% { box-shadow: 0 0 0 7px rgba(127, 34, 254, 0.18); }
}
.toast {
  position: absolute;
  left: 50%;
  bottom: -26px;
  width: min(92%, 380px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(250, 248, 252, 0.97);
  box-shadow: 0 20px 50px rgba(30, 0, 80, 0.35), 0 0 0 1px rgba(20, 0, 50, 0.06);
  translate: -50% 0;
  font-size: 13px;
  rotate: -2deg;
}
.toast div { flex: 1; min-width: 0; }
.toast b { display: block; font-size: 14px; }
.toast span { color: #857d93; }
.toast-btn { flex: none; padding: 6px 10px; border-radius: 9px; background: #efebf5; color: #3b3448 !important; font-weight: 600; }
.agenda.in .toast { animation: toast-in 0.8s cubic-bezier(0.3, 1.4, 0.5, 1) 0.6s backwards, toast-shake 4s ease-in-out 1.6s infinite; }
@keyframes toast-in {
  from { opacity: 0; translate: -50% 40px; scale: 0.9; }
}
@keyframes toast-shake {
  0%, 12%, 100% { transform: none; }
  3%, 9% { transform: translateX(-4px) rotate(-1deg); }
  6% { transform: translateX(4px) rotate(1deg); }
}

/* The orb's faces */
.orb-section { max-width: 1120px; margin: 0 auto; padding: 12vh 24px; }
.faces { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px, 3vw, 34px); }
.faces figure { margin: 0; display: grid; justify-items: center; gap: 12px; transition: translate 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); }
.faces img {
  width: clamp(64px, 9vw, 96px);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 16px 34px rgba(30, 0, 80, 0.35);
  transition: scale 0.4s cubic-bezier(0.3, 1.5, 0.5, 1), box-shadow 0.4s;
}
.faces figcaption { font-size: 14px; font-weight: 600; color: var(--muted); transition: color 0.3s; }
.faces figure.on { translate: 0 -10px; }
.faces figure.on img { scale: 1.14; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9), 0 22px 44px rgba(30, 0, 80, 0.45); }
.faces figure.on figcaption { color: var(--paper); }

/* Moods: the page takes on the colour of the face you're pointing at. */
.faces figure { cursor: pointer; border-radius: 20px; outline: none; }
.faces figure:focus-visible img { box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(255, 255, 255, 0.35); }

/* Privacy */
.private { max-width: 1120px; margin: 0 auto; padding: 8vh 24px; }
.private-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 32px;
  text-align: center;
  background: rgba(18, 13, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.outro {
  display: grid;
  justify-items: center;
  gap: 24px;
  padding: 14vh 16px 10vh;
  text-align: center;
}
.outro .req { margin-top: -8px !important; }
.outro-line {
  margin: 0;
  max-width: 14ch;
  font: 800 clamp(40px, 6.4vw, 78px)/1.02 Inter, system-ui, sans-serif;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

/* Footer: the little mascot sits on its top edge. */
.foot {
  position: relative;
  z-index: 1;
  margin-top: clamp(90px, 14vw, 150px);
  background: rgba(18, 13, 20, 0.42);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
}
.peek {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: clamp(120px, 16vw, 170px);
  margin-bottom: -6px;
  translate: -50% 30%;
  opacity: 0;
  transition: translate 1s cubic-bezier(0.25, 1.4, 0.4, 1), opacity 0.5s;
}
.peek svg { display: block; width: 100%; height: auto; }
.foot.in .peek { translate: -50% 0; opacity: 1; }
.foot-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 24px 36px;
  text-align: center;
}
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.foot-links a:hover { color: var(--paper); }
.foot-note { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

@media (max-width: 820px) {
  .feature { grid-template-columns: 1fr; padding: 9vh 20px; }
  .feature.flip .feature-text { order: 0; }
  .capture, .agenda { rotate: 0deg; }
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }
.method.reveal:nth-child(3n + 2) { transition-delay: 0.08s; }
.method.reveal:nth-child(3n) { transition-delay: 0.16s; }
.feature .mock.reveal { transition-delay: 0.12s; }

/* Small screens: two chips, tucked in so nothing runs off the page. */
@media (max-width: 640px) {
  .scene { width: min(78vw, 420px); }
  .chip { font-size: 12px; padding: 7px 11px 7px 8px; }
  .c2, .c4 { display: none; }
  .c1 { --x: -14vw; --y: -36vw; }
  .c3 { --x: 16vw; --y: 36vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01s !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Plan pages (/pro) ---------- */

.plan-page { min-height: 100vh; display: grid; place-items: center; padding: 96px 16px 48px; }
.plan-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(100%, 520px);
  padding: clamp(28px, 5vw, 44px);
  border-radius: 32px;
  text-align: center;
  background: rgba(18, 13, 20, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}
.plan-face { width: 88px; height: 88px; border-radius: 50%; box-shadow: 0 16px 34px rgba(30, 0, 80, 0.35); }
.plan-card .eyebrow { margin: 4px 0 0; }
.plan-title { font-size: clamp(30px, 5vw, 44px); }
.plan-lede { margin: 0; color: var(--muted); }
.plan-ticks { justify-items: start; text-align: left; margin: 8px 0 4px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.plan-price b { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; }
.plan-price span { color: var(--muted); }
.plan-card .btn { width: 100%; }
.plan-alt { margin: -6px 0 2px; font-size: 14px; color: var(--muted); }
.plan-buttons { display: grid; gap: 10px; width: 100%; }
.plan-buttons small { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font-size: 11px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.plan-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
}
.foot-plain { margin-top: 0; }

/* ---------- Pricing ---------- */

.pricing { max-width: 1000px; margin: 0 auto; padding: 12vh 24px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; align-items: stretch; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 30px;
  border-radius: 28px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(14px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
}
.plan h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.plan .price { display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font-size: 52px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.plan .price span { color: var(--muted); }
.plan .price-alt { margin-top: -8px; font-size: 13px; color: var(--muted); }
.plan .ticks { margin: 4px 0 8px; flex: 1; align-content: start; }
.plan .ticks li { align-items: flex-start; font-size: 15px; }
.plan .ticks li::before { margin-top: 1px; }
.plan .ticks em { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); }
.plan .btn { align-self: stretch; }
.plan.pro {
  background: var(--paper);
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 30px 70px rgba(30, 0, 80, 0.4);
}
.plan.pro .price span, .plan.pro .price-alt { color: #6b6378; }
.plan.pro .ticks em { background: #efe7ff; color: #6d28d9; }
.plan.in.pro:hover { transform: translateY(-6px); }
.plan-badge {
  position: absolute;
  top: -13px;
  right: 24px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f59e0b, #ec4899);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.35);
}
.plan.reveal:nth-child(2) { transition-delay: 0.1s; }

.bar-nav { margin-left: auto; margin-right: 12px; }
.bar-nav a { color: inherit; text-decoration: none; font-size: 14px; font-weight: 600; opacity: 0.85; transition: opacity 0.2s; }
.bar-nav a:hover { opacity: 1; }

/* ---------- Download form (dialog on the homepage, page at /download) ---------- */

.dl-dialog {
  width: min(440px, calc(100vw - 32px));
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 100px rgba(30, 0, 80, 0.5);
  overflow: visible;
}
.dl-dialog[open] { animation: dl-in 0.45s cubic-bezier(0.2, 1.3, 0.4, 1); }
.dl-dialog::backdrop { background: rgba(20, 5, 45, 0.55); backdrop-filter: blur(6px); animation: dl-fade 0.3s ease; }
@keyframes dl-in { from { opacity: 0; transform: translateY(24px) scale(0.94); } }
@keyframes dl-fade { from { opacity: 0; } }
.dl-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #f1eef6;
  color: #5b536a;
  font: 400 22px/1 Inter, sans-serif;
  cursor: pointer;
}
.dl-close:hover { background: #e6e0ef; }
.dl-panel { padding: 30px 28px 24px; }
.dl-form, .dl-done { display: grid; gap: 12px; text-align: center; }
.dl-form[hidden], .dl-done[hidden] { display: none; }
.dl-face { width: 64px; height: 64px; margin: 0 auto 2px; border-radius: 50%; box-shadow: 0 10px 24px rgba(30, 0, 80, 0.25); }
.dl-title { font-size: 26px; }
.dl-lede { margin: -4px 0 6px; color: #6b6378; font-size: 15px; }
.dl-field { display: grid; gap: 6px; text-align: left; font-size: 13px; font-weight: 600; color: #4b445a; }
.dl-field input {
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid #e4dfec;
  border-radius: 14px;
  background: #faf8fd;
  color: var(--ink);
  font: 500 16px Inter, sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.dl-field input:focus { border-color: var(--violet); background: #fff; box-shadow: 0 0 0 4px rgba(127, 34, 254, 0.14); }
.dl-field input[aria-invalid="true"] { border-color: #e11d48; box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.12); }
.dl-check { display: flex; align-items: center; gap: 10px; text-align: left; font-size: 14px; color: #4b445a; cursor: pointer; }
.dl-check input { width: 18px; height: 18px; accent-color: var(--violet); }
.dl-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.dl-submit { width: 100%; margin-top: 4px; }
.dl-submit[disabled] { opacity: 0.7; cursor: progress; }
.dl-error { margin: 0; color: #e11d48; font-size: 14px; font-weight: 500; }
.dl-fine { margin: 0; color: #857d93; font-size: 12px; }
.dl-done .dl-face { animation: dl-pop 0.6s cubic-bezier(0.2, 1.6, 0.4, 1); }
@keyframes dl-pop { from { transform: scale(0.3); opacity: 0; } }

/* The /download page puts the same form on the violet background. */
.dl-page { background: var(--paper); color: var(--ink); border: 0; box-shadow: 0 40px 100px rgba(30, 0, 80, 0.45); }
.dl-page .dl-form, .dl-page .dl-done { width: 100%; }

/* ---------- Legal pages ---------- */
.legal { padding: 96px 16px 48px; }
.legal-card {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 28px;
  background: var(--paper);
  color: #2e2838;
  box-shadow: 0 30px 80px rgba(30, 0, 80, 0.4);
  line-height: 1.65;
}
.legal-card .eyebrow { background: #f1eaff; border-color: transparent; color: #6d28d9; }
.legal-card h1 { margin: 6px 0 4px; font-size: clamp(32px, 5vw, 44px); letter-spacing: -0.04em; line-height: 1.05; color: var(--ink); }
.legal-date { margin: 0 0 12px; color: #857d93; font-size: 14px; }
.legal-card h2 { margin: 28px 0 8px; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.legal-card ul { margin: 8px 0; padding-left: 20px; }
.legal-card li { margin: 6px 0; }
.legal-card p { margin: 8px 0; }
.legal-card a { color: #6d28d9; }
.dl-fine a { color: inherit; }

/* Small inline icons beside a feature's name, and the devices mock-up. */
.fi { width: 1.1em; height: 1.1em; margin-right: 6px; vertical-align: -0.2em; flex: none; }
.ticks li svg.fi { margin-right: 0; margin-top: 1px; color: #6d28d9; }
.plan:not(.pro) .ticks li svg.fi { color: currentColor; }
.devices { padding: 20px; rotate: -1deg; }
.send-note {
  margin: 4px 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f4f1f8;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}
.dev { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; }
.dev + .dev { margin-top: 4px; }
.dev-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #ede4ff; color: #5b21b6; }
.dev-icon .fi { margin: 0; }
.dev .what { flex: 1; font-weight: 600; }
.dev small { display: block; font-size: 12px; font-weight: 500; color: #857d93; }
@media (max-width: 800px) { .devices { rotate: 0deg; } }
